undo some swagger changes

v0.2.3 v0.2.3
Vernon Keenan 2023-10-27 01:14:03 +00:00
parent 2dd452bbb2
commit 592dec5cf9
14 changed files with 2305 additions and 334 deletions

View File

@ -19,7 +19,7 @@ import (
// Account account
//
// swagger:model account
// swagger:model Account
type Account struct {
// Account Number
@ -34,16 +34,13 @@ type Account struct {
// Annual Revenue Estimate
AnnualRevenue *float64 `json:"AnnualRevenue,omitempty"`
// Salesforce AppExchange URL
AppExchange *string `json:"AppExchange,omitempty"`
// billing address
BillingAddress *AccountBillingAddress `json:"BillingAddress,omitempty"`
BillingAddress *Address `json:"BillingAddress,omitempty"`
// Contact ID
BillingContactID *string `json:"BillingContactID,omitempty"`
// The channels associated with the track (Multiselect Picklist).
// Marketing Channels (Multiselect Picklist)
Channels *string `json:"Channels,omitempty"`
// Closed Date
@ -161,7 +158,7 @@ type Account struct {
SalesforceFirst *bool `json:"SalesforceFirst,omitempty"`
// shipping address
ShippingAddress *AccountBillingAddress `json:"ShippingAddress,omitempty"`
ShippingAddress *Address `json:"ShippingAddress,omitempty"`
// Shipping Contact ID
ShippingContactID *string `json:"ShippingContactID,omitempty"`

View File

@ -1,72 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
// (c) 2012-2023 by Vernon Keenan
// All rights reserved worldwide.
// Proprietary product; unlicensed use is not allowed
package sfgate_models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// AccountBillingAddress account billing address
//
// swagger:model accountBillingAddress
type AccountBillingAddress struct {
// City
City *string `json:"City,omitempty"`
// Country full name
Country *string `json:"Country,omitempty"`
// Country Code
CountryCode *string `json:"CountryCode,omitempty"`
// Postal Code
PostalCode *string `json:"PostalCode,omitempty"`
// State full name
State *string `json:"State,omitempty"`
// State Code
StateCode *string `json:"StateCode,omitempty"`
// Street number and name
Street *string `json:"Street,omitempty"`
}
// Validate validates this account billing address
func (m *AccountBillingAddress) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this account billing address based on context it is used
func (m *AccountBillingAddress) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *AccountBillingAddress) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *AccountBillingAddress) UnmarshalBinary(b []byte) error {
var res AccountBillingAddress
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}

View File

@ -18,7 +18,7 @@ import (
// Cluster cluster
//
// swagger:model cluster
// swagger:model Cluster
type Cluster struct {
// Created By
@ -40,7 +40,7 @@ type Cluster struct {
ID string `json:"ID,omitempty"`
// IP Address
IPAddress *string `json:"IPAddress,omitempty"`
IPAddress *string `json:"IpAddress,omitempty"`
// Last Modified By
LastModifiedByID *string `json:"LastModifiedByID,omitempty"`
@ -63,7 +63,7 @@ type Cluster struct {
// Subnet
Subnet *string `json:"Subnet,omitempty"`
// The ID of the tenant who owns this Database
// tenantid
TenantID *string `json:"TenantID,omitempty"`
// Type

View File

@ -19,7 +19,7 @@ import (
// Contact contact
//
// swagger:model contact
// swagger:model Contact
type Contact struct {
// The primary account ID of this contact
@ -34,7 +34,7 @@ type Contact struct {
// Birthdate
BirthDate *string `json:"BirthDate,omitempty"`
// The channels associated with the track (Multiselect Picklist).
// Marketing Channels (Multiselect Picklist)
Channels *string `json:"Channels,omitempty"`
// Created By User ID
@ -43,7 +43,7 @@ type Contact struct {
// Created Date
CreatedDate *string `json:"CreatedDate,omitempty"`
// crunchbase URL
// Crunchbase URL
CrunchbaseURL *string `json:"CrunchbaseURL,omitempty"`
// Department
@ -62,12 +62,12 @@ type Contact struct {
EmailBounceDate *string `json:"EmailBounceDate,omitempty"`
// Email Bounce Reason
EmailBouncedReason *string `json:"EmailBouncedReason,omitempty"`
// Facebook Page
Facebook *string `json:"Facebook,omitempty"`
EmailBounceReason *string `json:"EmailBounceReason,omitempty"`
// Fax Number
Facebook *string `json:"Facebook,omitempty"`
// fax
Fax *string `json:"Fax,omitempty"`
// First Name
@ -104,7 +104,7 @@ type Contact struct {
LinkedIn *string `json:"LinkedIn,omitempty"`
// mailing address
MailingAddress *AccountBillingAddress `json:"MailingAddress,omitempty"`
MailingAddress *Address `json:"MailingAddress,omitempty"`
// Mobile Phone
MobilePhone *string `json:"MobilePhone,omitempty"`
@ -112,11 +112,11 @@ type Contact struct {
// Full Name
Name *string `json:"Name,omitempty"`
// number investments
// Number of Investments
NumberInvestments *float64 `json:"NumberInvestments,omitempty"`
// other address
OtherAddress *AccountBillingAddress `json:"OtherAddress,omitempty"`
OtherAddress *Address `json:"OtherAddress,omitempty"`
// Other Phone
OtherPhone *string `json:"OtherPhone,omitempty"`
@ -133,7 +133,7 @@ type Contact struct {
// URL of a photograph of this User
PhotoURL *string `json:"PhotoURL,omitempty"`
// Reports To
// Reports To User ID
ReportsToID *string `json:"ReportsToID,omitempty"`
// Salutation
@ -142,13 +142,13 @@ type Contact struct {
// Slug
Slug *string `json:"Slug,omitempty"`
// Tenant Identifier
// tenant identifier
TenantID *string `json:"TenantID,omitempty"`
// Contact Title
Title *string `json:"Title,omitempty"`
// Twitter URL
// twitter
Twitter *string `json:"Twitter,omitempty"`
}

View File

@ -19,7 +19,7 @@ import (
// Contract contract
//
// swagger:model contract
// swagger:model Contract
type Contract struct {
// Account
@ -31,8 +31,8 @@ type Contract struct {
// Activated Date
ActivatedDate *string `json:"ActivatedDate,omitempty"`
// billing address
BillingAddress *AccountBillingAddress `json:"BillingAddress,omitempty"`
// Billing Address
BillingAddress *Address `json:"BillingAddress,omitempty"`
// Billing Contact
BillingContactID *string `json:"BillingContactID,omitempty"`
@ -79,7 +79,7 @@ type Contract struct {
// Hourly Rate
HourlyRate *float64 `json:"HourlyRate,omitempty"`
// Record Id
// Telnexus Record Id
ID string `json:"ID,omitempty"`
// Last Modified By User ID
@ -100,8 +100,8 @@ type Contract struct {
// Perpetual Agreement?
Perpetual *bool `json:"Perpetual,omitempty"`
// shipping address
ShippingAddress *AccountBillingAddress `json:"ShippingAddress,omitempty"`
// Shipping Address
ShippingAddress *Address `json:"ShippingAddress,omitempty"`
// Shipping Contact
ShippingContactID *string `json:"ShippingContactID,omitempty"`

View File

@ -18,7 +18,7 @@ import (
// Database A Database provisioned and owned by a Tenant
//
// swagger:model database
// swagger:model Database
type Database struct {
// Is this database active?

View File

@ -18,7 +18,7 @@ import (
// Role A functional role within a Tenant
//
// swagger:model role
// swagger:model Role
type Role struct {
// the corresponding auth0 role

View File

@ -18,12 +18,9 @@ import (
// Template template
//
// swagger:model template
// swagger:model Template
type Template struct {
// Company
CompanyID *string `json:"CompanyID,omitempty"`
// created by ID
CreatedByID *string `json:"CreatedByID,omitempty"`
@ -60,7 +57,7 @@ type Template struct {
// Record Type Name
RecordTypeName *string `json:"RecordTypeName,omitempty"`
// Tenant that owns this object instance
// tenant identifier
TenantID *string `json:"TenantID,omitempty"`
// Type

View File

@ -20,7 +20,7 @@ import (
// Tenant Account Tenant
//
// swagger:model tenant
// swagger:model Tenant
type Tenant struct {
// The Account that owns this Tenant
@ -57,9 +57,9 @@ type Tenant struct {
TenantName *string `json:"TenantName,omitempty"`
// tenant users
TenantUsers []*TenantTenantUsersItems `json:"TenantUsers"`
TenantUsers []*TenantUser `json:"TenantUsers"`
// The type of Tenant
// Type of tenant
Type *string `json:"Type,omitempty"`
// The version number of the Tenant Onboarding system used to create this tenant

View File

@ -1,99 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
// (c) 2012-2023 by Vernon Keenan
// All rights reserved worldwide.
// Proprietary product; unlicensed use is not allowed
package sfgate_models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// TenantTenantUsersItems Relationship object that connects users to a tenant
//
// swagger:model tenantTenantUsersItems
type TenantTenantUsersItems struct {
// The makeTenantUser access level for this User
AccessLevel *string `json:"AccessLevel,omitempty"`
// Account ID
AccountID *string `json:"AccountID,omitempty"`
// Auth0 User ID
Auth0UserID *string `json:"Auth0UserID,omitempty"`
// Account Name
CompanyName *string `json:"CompanyName,omitempty"`
// Contact ID
ContactID *string `json:"ContactID,omitempty"`
// Account
ExternalAccount *string `json:"ExternalAccount,omitempty"`
// Tenant active?
TenantActive *bool `json:"TenantActive,omitempty"`
// The Tenant ID
TenantID *string `json:"TenantID,omitempty"`
// Tenant Name
TenantName *string `json:"TenantName,omitempty"`
// Tenant Status
TenantStatus *string `json:"TenantStatus,omitempty"`
// Tenant type
TenantType *string `json:"TenantType,omitempty"`
// Tenant Version
TenantVersion *string `json:"TenantVersion,omitempty"`
// User Email Address
UserEmail *string `json:"UserEmail,omitempty"`
// User Full Name
UserFullName *string `json:"UserFullName,omitempty"`
// The User ID
UserID *string `json:"UserID,omitempty"`
// Username
Username *string `json:"Username,omitempty"`
}
// Validate validates this tenant tenant users items
func (m *TenantTenantUsersItems) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this tenant tenant users items based on context it is used
func (m *TenantTenantUsersItems) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *TenantTenantUsersItems) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TenantTenantUsersItems) UnmarshalBinary(b []byte) error {
var res TenantTenantUsersItems
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}

View File

@ -20,12 +20,9 @@ import (
// Topic A research topic that collects data
//
// swagger:model topic
// swagger:model Topic
type Topic struct {
// The channels associated with the track (Multiselect Picklist).
Channels *string `json:"Channels,omitempty"`
// Created By User ID
CreatedByID *string `json:"CreatedByID,omitempty"`

View File

@ -20,7 +20,7 @@ import (
// User user
//
// swagger:model user
// swagger:model User
type User struct {
// API Gateway URL
@ -39,7 +39,7 @@ type User struct {
AccountID *string `json:"AccountID,omitempty"`
// address
Address *AccountBillingAddress `json:"Address,omitempty"`
Address *Address `json:"Address,omitempty"`
// Alias
Alias *string `json:"Alias,omitempty"`
@ -89,6 +89,9 @@ type User struct {
// Account
ExternalAccount *string `json:"ExternalAccount,omitempty"`
// Fabric API Key
FabricAPIKey *string `json:"FabricAPIKey,omitempty"`
// Fax
Fax *string `json:"Fax,omitempty"`
@ -113,6 +116,9 @@ type User struct {
// Is the user enabled for Communities?
IsPortalEnabled *bool `json:"IsPortalEnabled,omitempty"`
// Has Profile Photo
IsProfilePhotoActive *bool `json:"IsProfilePhotoActive,omitempty"`
// is system controlled
IsSystemControlled *bool `json:"IsSystemControlled,omitempty"`
@ -149,9 +155,6 @@ type User struct {
// Out of office message
OutOfOfficeMessage *string `json:"OutOfOfficeMessage,omitempty"`
// Password (encrypted)
Password *string `json:"Password,omitempty"`
// Phone
Phone *string `json:"Phone,omitempty"`
@ -161,32 +164,41 @@ type User struct {
// Profile
ProfileID *string `json:"ProfileID,omitempty"`
// Login Provider
// Provider
Provider *string `json:"Provider,omitempty"`
// Info Emails
ReceivesAdminEmails *bool `json:"ReceivesAdminEmails,omitempty"`
// Admin Info Emails
ReceivesAdminInfoEmails *bool `json:"ReceivesAdminInfoEmails,omitempty"`
// Info Emails
ReceivesInfoEmails *bool `json:"ReceivesInfoEmails,omitempty"`
// Email Sender Address
SenderEmail *string `json:"SenderEmail,omitempty"`
// Email Sender Name
SenderName *string `json:"SenderName,omitempty"`
// Email Signature
Signature *string `json:"Signature,omitempty"`
// Small Photo URL
SmallPhotoURL *string `json:"SmallPhotoURL,omitempty"`
// The time day starts
StartOfDay *string `json:"StartOfDay,omitempty"`
// Onboarding Status
// Status
Status *string `json:"Status,omitempty"`
// Tenant ID associated with this user
TenantID *string `json:"TenantID,omitempty"`
// tenant users
TenantUsers []*TenantTenantUsersItems `json:"TenantUsers"`
TenantUsers []*TenantUser `json:"TenantUsers"`
// Time Zone
TimeZone *string `json:"TimeZone,omitempty"`
@ -201,7 +213,7 @@ type User struct {
UserRoleID *string `json:"UserRoleID,omitempty"`
// user roles
UserRoles []*UserUserRolesItems0 `json:"UserRoles"`
UserRoles []*UserRole `json:"UserRoles"`
// User Type
UserType *string `json:"UserType,omitempty"`
@ -398,76 +410,3 @@ func (m *User) UnmarshalBinary(b []byte) error {
*m = res
return nil
}
// UserUserRolesItems0 Relationship object that connects user to a role
//
// swagger:model UserUserRolesItems0
type UserUserRolesItems0 struct {
// Account Id
AccountID *string `json:"AccountID,omitempty"`
// Linked role ID
Auth0RoleID *string `json:"Auth0RoleID,omitempty"`
// Auth0 User ID
Auth0UserID *string `json:"Auth0UserID,omitempty"`
// Company Name
CompanyName *string `json:"CompanyName,omitempty"`
// Contact ID
ContactID *string `json:"ContactID,omitempty"`
// Account Number
ExternalAccount *string `json:"ExternalAccount,omitempty"`
// Role description
RoleDescription *string `json:"RoleDescription,omitempty"`
// The Role ID
RoleID *string `json:"RoleID,omitempty"`
// Role Name
RoleName *string `json:"RoleName,omitempty"`
// User Email Address
UserEmail *string `json:"UserEmail,omitempty"`
// User Full Name
UserFullName *string `json:"UserFullName,omitempty"`
// The User ID
UserID *string `json:"UserID,omitempty"`
// Username
Username *string `json:"Username,omitempty"`
}
// Validate validates this user user roles items0
func (m *UserUserRolesItems0) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this user user roles items0 based on context it is used
func (m *UserUserRolesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *UserUserRolesItems0) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *UserUserRolesItems0) UnmarshalBinary(b []byte) error {
var res UserUserRolesItems0
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff