Documentation
¶
Overview ¶
Package associations provides primitives to interact with the openapi HTTP API.
Code generated by github.com/faetools/devtool version (devel) DO NOT EDIT.
Package associations provides primitives to interact with the openapi HTTP API.
Code generated by github.com/faetools/devtool version (devel) DO NOT EDIT.
Index ¶
- Constants
- type ArchiveBatchJSONBody
- type ArchiveBatchJSONRequestBody
- type ArchiveBatchResponse
- type AssociatedId
- type BatchInputPublicAssociation
- type BatchInputPublicObjectId
- type BatchResponsePublicAssociation
- type BatchResponsePublicAssociationMulti
- type BatchResponsePublicAssociationMultiStatus
- type BatchResponsePublicAssociationStatus
- type Client
- func (c *Client) ArchiveBatch(ctx context.Context, fromObjectType string, toObjectType string, ...) (*ArchiveBatchResponse, error)
- func (c *Client) ArchiveBatchWithBody(ctx context.Context, fromObjectType string, toObjectType string, ...) (*ArchiveBatchResponse, error)
- func (c *Client) CreateBatch(ctx context.Context, fromObjectType string, toObjectType string, ...) (*CreateBatchResponse, error)
- func (c *Client) CreateBatchWithBody(ctx context.Context, fromObjectType string, toObjectType string, ...) (*CreateBatchResponse, error)
- func (c *Client) GetAllTypes(ctx context.Context, fromObjectType string, toObjectType string, ...) (*GetAllTypesResponse, error)
- func (c *Client) ReadBatch(ctx context.Context, fromObjectType string, toObjectType string, ...) (*ReadBatchResponse, error)
- func (c *Client) ReadBatchWithBody(ctx context.Context, fromObjectType string, toObjectType string, ...) (*ReadBatchResponse, error)
- type ClientInterface
- type CollectionResponsePublicAssociationDefiniton
- type CreateBatchJSONBody
- type CreateBatchJSONRequestBody
- type CreateBatchResponse
- type Error
- type ErrorCategory
- type ErrorCategoryHttpStatus
- type ErrorDetail
- type ErrorDetail_Context
- type Error_Context
- type Error_Links
- type GetAllTypesResponse
- type NextPage
- type Paging
- type PublicAssociation
- type PublicAssociationDefiniton
- type PublicAssociationMulti
- type PublicObjectId
- type ReadBatchJSONBody
- type ReadBatchJSONRequestBody
- type ReadBatchResponse
- type StandardError
- type StandardError_Context
- type StandardError_Links
Constants ¶
const ( HapikeyScopes = "hapikey.Scopes" Oauth2Scopes = "oauth2.Scopes" Oauth2_legacyScopes = "oauth2_legacy.Scopes" )
const DefaultServer = "https://api.hubapi.com/"
DefaultServer is the default server to be used.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveBatchJSONBody ¶
type ArchiveBatchJSONBody BatchInputPublicAssociation
ArchiveBatchJSONBody defines parameters for ArchiveBatch.
type ArchiveBatchJSONRequestBody ¶
type ArchiveBatchJSONRequestBody ArchiveBatchJSONBody
ArchiveBatchJSONRequestBody defines body for ArchiveBatch for application/json ContentType.
type ArchiveBatchResponse ¶
func (ArchiveBatchResponse) Status ¶
func (r ArchiveBatchResponse) Status() string
Status returns HTTPResponse.Status
func (ArchiveBatchResponse) StatusCode ¶
func (r ArchiveBatchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AssociatedId ¶
AssociatedId defines model for AssociatedId.
type BatchInputPublicAssociation ¶
type BatchInputPublicAssociation struct {
Inputs []PublicAssociation `json:"inputs"`
}
BatchInputPublicAssociation defines model for BatchInputPublicAssociation.
type BatchInputPublicObjectId ¶
type BatchInputPublicObjectId struct {
Inputs []PublicObjectId `json:"inputs"`
}
BatchInputPublicObjectId defines model for BatchInputPublicObjectId.
type BatchResponsePublicAssociation ¶
type BatchResponsePublicAssociation struct {
CompletedAt time.Time `json:"completedAt"`
Errors *[]StandardError `json:"errors,omitempty"`
NumErrors *int32 `json:"numErrors,omitempty"`
RequestedAt *time.Time `json:"requestedAt,omitempty"`
Results []PublicAssociation `json:"results"`
StartedAt time.Time `json:"startedAt"`
Status BatchResponsePublicAssociationStatus `json:"status"`
}
BatchResponsePublicAssociation defines model for BatchResponsePublicAssociation.
type BatchResponsePublicAssociationMulti ¶
type BatchResponsePublicAssociationMulti struct {
CompletedAt time.Time `json:"completedAt"`
Errors *[]StandardError `json:"errors,omitempty"`
NumErrors *int32 `json:"numErrors,omitempty"`
RequestedAt *time.Time `json:"requestedAt,omitempty"`
Results []PublicAssociationMulti `json:"results"`
StartedAt time.Time `json:"startedAt"`
Status BatchResponsePublicAssociationMultiStatus `json:"status"`
}
BatchResponsePublicAssociationMulti defines model for BatchResponsePublicAssociationMulti.
type BatchResponsePublicAssociationMultiStatus ¶
type BatchResponsePublicAssociationMultiStatus string
BatchResponsePublicAssociationMultiStatus defines model for BatchResponsePublicAssociationMulti.Status.
const ( BatchResponsePublicAssociationMultiStatusCANCELED BatchResponsePublicAssociationMultiStatus = "CANCELED" BatchResponsePublicAssociationMultiStatusCOMPLETE BatchResponsePublicAssociationMultiStatus = "COMPLETE" BatchResponsePublicAssociationMultiStatusPENDING BatchResponsePublicAssociationMultiStatus = "PENDING" BatchResponsePublicAssociationMultiStatusPROCESSING BatchResponsePublicAssociationMultiStatus = "PROCESSING" )
Defines values for BatchResponsePublicAssociationMultiStatus.
type BatchResponsePublicAssociationStatus ¶
type BatchResponsePublicAssociationStatus string
BatchResponsePublicAssociationStatus defines model for BatchResponsePublicAssociation.Status.
const ( BatchResponsePublicAssociationStatusCANCELED BatchResponsePublicAssociationStatus = "CANCELED" BatchResponsePublicAssociationStatusCOMPLETE BatchResponsePublicAssociationStatus = "COMPLETE" BatchResponsePublicAssociationStatusPENDING BatchResponsePublicAssociationStatus = "PENDING" BatchResponsePublicAssociationStatusPROCESSING BatchResponsePublicAssociationStatus = "PROCESSING" )
Defines values for BatchResponsePublicAssociationStatus.
type Client ¶
Client conforms to the OpenAPI3 specification for this service.
func NewClient ¶
NewClient creates a new Client with reasonable defaults.
func (*Client) ArchiveBatch ¶
func (c *Client) ArchiveBatch(ctx context.Context, fromObjectType string, toObjectType string, body ArchiveBatchJSONRequestBody, reqEditors ...client.RequestEditorFn) (*ArchiveBatchResponse, error)
func (*Client) ArchiveBatchWithBody ¶
func (c *Client) ArchiveBatchWithBody(ctx context.Context, fromObjectType string, toObjectType string, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*ArchiveBatchResponse, error)
ArchiveBatchWithBody request with arbitrary body returning *ArchiveBatchResponse
func (*Client) CreateBatch ¶
func (c *Client) CreateBatch(ctx context.Context, fromObjectType string, toObjectType string, body CreateBatchJSONRequestBody, reqEditors ...client.RequestEditorFn) (*CreateBatchResponse, error)
func (*Client) CreateBatchWithBody ¶
func (c *Client) CreateBatchWithBody(ctx context.Context, fromObjectType string, toObjectType string, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*CreateBatchResponse, error)
CreateBatchWithBody request with arbitrary body returning *CreateBatchResponse
func (*Client) GetAllTypes ¶
func (c *Client) GetAllTypes(ctx context.Context, fromObjectType string, toObjectType string, reqEditors ...client.RequestEditorFn) (*GetAllTypesResponse, error)
GetAllTypes request returning *GetAllTypesResponse
func (*Client) ReadBatch ¶
func (c *Client) ReadBatch(ctx context.Context, fromObjectType string, toObjectType string, body ReadBatchJSONRequestBody, reqEditors ...client.RequestEditorFn) (*ReadBatchResponse, error)
func (*Client) ReadBatchWithBody ¶
func (c *Client) ReadBatchWithBody(ctx context.Context, fromObjectType string, toObjectType string, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*ReadBatchResponse, error)
ReadBatchWithBody request with arbitrary body returning *ReadBatchResponse
type ClientInterface ¶
type ClientInterface interface {
// ArchiveBatch request with any body
ArchiveBatchWithBody(ctx context.Context, fromObjectType string, toObjectType string, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*ArchiveBatchResponse, error)
ArchiveBatch(ctx context.Context, fromObjectType string, toObjectType string, body ArchiveBatchJSONRequestBody, reqEditors ...client.RequestEditorFn) (*ArchiveBatchResponse, error)
// CreateBatch request with any body
CreateBatchWithBody(ctx context.Context, fromObjectType string, toObjectType string, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*CreateBatchResponse, error)
CreateBatch(ctx context.Context, fromObjectType string, toObjectType string, body CreateBatchJSONRequestBody, reqEditors ...client.RequestEditorFn) (*CreateBatchResponse, error)
// ReadBatch request with any body
ReadBatchWithBody(ctx context.Context, fromObjectType string, toObjectType string, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*ReadBatchResponse, error)
ReadBatch(ctx context.Context, fromObjectType string, toObjectType string, body ReadBatchJSONRequestBody, reqEditors ...client.RequestEditorFn) (*ReadBatchResponse, error)
// GetAllTypes request
GetAllTypes(ctx context.Context, fromObjectType string, toObjectType string, reqEditors ...client.RequestEditorFn) (*GetAllTypesResponse, error)
}
ClientInterface interface specification for the client.
type CollectionResponsePublicAssociationDefiniton ¶
type CollectionResponsePublicAssociationDefiniton struct {
Paging *Paging `json:"paging,omitempty"`
Results []PublicAssociationDefiniton `json:"results"`
}
CollectionResponsePublicAssociationDefiniton defines model for CollectionResponsePublicAssociationDefiniton.
type CreateBatchJSONBody ¶
type CreateBatchJSONBody BatchInputPublicAssociation
CreateBatchJSONBody defines parameters for CreateBatch.
type CreateBatchJSONRequestBody ¶
type CreateBatchJSONRequestBody CreateBatchJSONBody
CreateBatchJSONRequestBody defines body for CreateBatch for application/json ContentType.
type CreateBatchResponse ¶
type CreateBatchResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *BatchResponsePublicAssociation
JSON207 *BatchResponsePublicAssociation
}
func (CreateBatchResponse) Status ¶
func (r CreateBatchResponse) Status() string
Status returns HTTPResponse.Status
func (CreateBatchResponse) StatusCode ¶
func (r CreateBatchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Error ¶
type Error struct {
// The error category
Category string `json:"category"`
// Context about the error condition
Context *Error_Context `json:"context,omitempty"`
// A unique identifier for the request. Include this value with any error reports or support tickets
CorrelationId string `json:"correlationId"`
// further information about the error
Errors *[]ErrorDetail `json:"errors,omitempty"`
// A map of link names to associated URIs containing documentation about the error or recommended remediation steps
Links *Error_Links `json:"links,omitempty"`
// A human readable message describing the error along with remediation steps where appropriate
Message string `json:"message"`
// A specific category that contains more specific detail about the error
SubCategory *string `json:"subCategory,omitempty"`
}
Error defines model for Error.
type ErrorCategory ¶
type ErrorCategory struct {
HttpStatus ErrorCategoryHttpStatus `json:"httpStatus"`
Name string `json:"name"`
}
ErrorCategory defines model for ErrorCategory.
type ErrorCategoryHttpStatus ¶
type ErrorCategoryHttpStatus string
ErrorCategoryHttpStatus defines model for ErrorCategory.HttpStatus.
const ( ErrorCategoryHttpStatusACCEPTED ErrorCategoryHttpStatus = "ACCEPTED" ErrorCategoryHttpStatusALREADYREPORTED ErrorCategoryHttpStatus = "ALREADY_REPORTED" ErrorCategoryHttpStatusBADGATEWAY ErrorCategoryHttpStatus = "BAD_GATEWAY" ErrorCategoryHttpStatusBADREQUEST ErrorCategoryHttpStatus = "BAD_REQUEST" ErrorCategoryHttpStatusCONFLICT ErrorCategoryHttpStatus = "CONFLICT" ErrorCategoryHttpStatusCONTINUE ErrorCategoryHttpStatus = "CONTINUE" ErrorCategoryHttpStatusCREATED ErrorCategoryHttpStatus = "CREATED" ErrorCategoryHttpStatusEXPECTATIONFAILED ErrorCategoryHttpStatus = "EXPECTATION_FAILED" ErrorCategoryHttpStatusFAILEDDEPENDENCY ErrorCategoryHttpStatus = "FAILED_DEPENDENCY" ErrorCategoryHttpStatusFORBIDDEN ErrorCategoryHttpStatus = "FORBIDDEN" ErrorCategoryHttpStatusFOUND ErrorCategoryHttpStatus = "FOUND" ErrorCategoryHttpStatusGATEWAYTIMEOUT ErrorCategoryHttpStatus = "GATEWAY_TIMEOUT" ErrorCategoryHttpStatusGONE ErrorCategoryHttpStatus = "GONE" ErrorCategoryHttpStatusHTTPVERSIONNOTSUPPORTED ErrorCategoryHttpStatus = "HTTP_VERSION_NOT_SUPPORTED" ErrorCategoryHttpStatusIMATEAPOT ErrorCategoryHttpStatus = "IM_A_TEAPOT" ErrorCategoryHttpStatusIMUSED ErrorCategoryHttpStatus = "IM_USED" ErrorCategoryHttpStatusINSUFFICIENTSTORAGE ErrorCategoryHttpStatus = "INSUFFICIENT_STORAGE" ErrorCategoryHttpStatusINTERNALSERVERERROR ErrorCategoryHttpStatus = "INTERNAL_SERVER_ERROR" ErrorCategoryHttpStatusINTERNALSTALESERVICEDISCOVERY ErrorCategoryHttpStatus = "INTERNAL_STALE_SERVICE_DISCOVERY" ErrorCategoryHttpStatusLENGTHREQUIRED ErrorCategoryHttpStatus = "LENGTH_REQUIRED" ErrorCategoryHttpStatusLOCKED ErrorCategoryHttpStatus = "LOCKED" ErrorCategoryHttpStatusLOOPDETECTED ErrorCategoryHttpStatus = "LOOP_DETECTED" ErrorCategoryHttpStatusMETHODNOTALLOWED ErrorCategoryHttpStatus = "METHOD_NOT_ALLOWED" ErrorCategoryHttpStatusMISDIRECTEDREQUEST ErrorCategoryHttpStatus = "MISDIRECTED_REQUEST" ErrorCategoryHttpStatusMOVEDPERMANENTLY ErrorCategoryHttpStatus = "MOVED_PERMANENTLY" ErrorCategoryHttpStatusMULTIPLECHOICES ErrorCategoryHttpStatus = "MULTIPLE_CHOICES" ErrorCategoryHttpStatusMULTISTATUS ErrorCategoryHttpStatus = "MULTI_STATUS" ErrorCategoryHttpStatusNETWORKAUTHENTICATIONREQUIRED ErrorCategoryHttpStatus = "NETWORK_AUTHENTICATION_REQUIRED" ErrorCategoryHttpStatusNOCONTENT ErrorCategoryHttpStatus = "NO_CONTENT" ErrorCategoryHttpStatusNONAUTHORITATIVEINFORMATION ErrorCategoryHttpStatus = "NON_AUTHORITATIVE_INFORMATION" ErrorCategoryHttpStatusNOTACCEPTABLE ErrorCategoryHttpStatus = "NOT_ACCEPTABLE" ErrorCategoryHttpStatusNOTEXTENDED ErrorCategoryHttpStatus = "NOT_EXTENDED" ErrorCategoryHttpStatusNOTFOUND ErrorCategoryHttpStatus = "NOT_FOUND" ErrorCategoryHttpStatusNOTIMPLEMENTED ErrorCategoryHttpStatus = "NOT_IMPLEMENTED" ErrorCategoryHttpStatusNOTMODIFIED ErrorCategoryHttpStatus = "NOT_MODIFIED" ErrorCategoryHttpStatusOK ErrorCategoryHttpStatus = "OK" ErrorCategoryHttpStatusPARTIALCONTENT ErrorCategoryHttpStatus = "PARTIAL_CONTENT" ErrorCategoryHttpStatusPAYMENTREQUIRED ErrorCategoryHttpStatus = "PAYMENT_REQUIRED" ErrorCategoryHttpStatusPERMANENTREDIRECT ErrorCategoryHttpStatus = "PERMANENT_REDIRECT" ErrorCategoryHttpStatusPRECONDITIONFAILED ErrorCategoryHttpStatus = "PRECONDITION_FAILED" ErrorCategoryHttpStatusPRECONDITIONREQUIRED ErrorCategoryHttpStatus = "PRECONDITION_REQUIRED" ErrorCategoryHttpStatusPROCESSING ErrorCategoryHttpStatus = "PROCESSING" ErrorCategoryHttpStatusPROXYAUTHENTICATIONREQUIRED ErrorCategoryHttpStatus = "PROXY_AUTHENTICATION_REQUIRED" ErrorCategoryHttpStatusREQUESTEDRANGENOTSATISFIABLE ErrorCategoryHttpStatus = "REQUESTED_RANGE_NOT_SATISFIABLE" ErrorCategoryHttpStatusREQUESTENTITYTOOLARGE ErrorCategoryHttpStatus = "REQUEST_ENTITY_TOO_LARGE" ErrorCategoryHttpStatusREQUESTHEADERSFIELDSTOOLARGE ErrorCategoryHttpStatus = "REQUEST_HEADERS_FIELDS_TOO_LARGE" ErrorCategoryHttpStatusREQUESTTIMEOUT ErrorCategoryHttpStatus = "REQUEST_TIMEOUT" ErrorCategoryHttpStatusREQUESTURITOOLONG ErrorCategoryHttpStatus = "REQUEST_URI_TOO_LONG" ErrorCategoryHttpStatusRESETCONTENT ErrorCategoryHttpStatus = "RESET_CONTENT" ErrorCategoryHttpStatusSEEOTHER ErrorCategoryHttpStatus = "SEE_OTHER" ErrorCategoryHttpStatusSERVICEUNAVAILABLE ErrorCategoryHttpStatus = "SERVICE_UNAVAILABLE" ErrorCategoryHttpStatusSWITCHINGPROTOCOLS ErrorCategoryHttpStatus = "SWITCHING_PROTOCOLS" ErrorCategoryHttpStatusTEMPORARYREDIRECT ErrorCategoryHttpStatus = "TEMPORARY_REDIRECT" ErrorCategoryHttpStatusTOOMANYREQUESTS ErrorCategoryHttpStatus = "TOO_MANY_REQUESTS" ErrorCategoryHttpStatusUNAUTHORIZED ErrorCategoryHttpStatus = "UNAUTHORIZED" ErrorCategoryHttpStatusUNAVAILABLEFORLEGALREASONS ErrorCategoryHttpStatus = "UNAVAILABLE_FOR_LEGAL_REASONS" ErrorCategoryHttpStatusUNPROCESSABLEENTITY ErrorCategoryHttpStatus = "UNPROCESSABLE_ENTITY" ErrorCategoryHttpStatusUNSUPPORTEDMEDIATYPE ErrorCategoryHttpStatus = "UNSUPPORTED_MEDIA_TYPE" ErrorCategoryHttpStatusUPGRADEREQUIRED ErrorCategoryHttpStatus = "UPGRADE_REQUIRED" ErrorCategoryHttpStatusUSEPROXY ErrorCategoryHttpStatus = "USE_PROXY" ErrorCategoryHttpStatusVARIANTALSONEGOTIATES ErrorCategoryHttpStatus = "VARIANT_ALSO_NEGOTIATES" )
Defines values for ErrorCategoryHttpStatus.
type ErrorDetail ¶
type ErrorDetail struct {
// The status code associated with the error detail
Code *string `json:"code,omitempty"`
// Context about the error condition
Context *ErrorDetail_Context `json:"context,omitempty"`
// The name of the field or parameter in which the error was found.
In *string `json:"in,omitempty"`
// A human readable message describing the error along with remediation steps where appropriate
Message string `json:"message"`
// A specific category that contains more specific detail about the error
SubCategory *string `json:"subCategory,omitempty"`
}
ErrorDetail defines model for ErrorDetail.
type ErrorDetail_Context ¶
Context about the error condition
func (ErrorDetail_Context) Get ¶
func (a ErrorDetail_Context) Get(fieldName string) (value []string, found bool)
Getter for additional properties for ErrorDetail_Context. Returns the specified element and whether it was found
func (ErrorDetail_Context) MarshalJSON ¶
func (a ErrorDetail_Context) MarshalJSON() ([]byte, error)
Override default JSON handling for ErrorDetail_Context to handle AdditionalProperties
func (*ErrorDetail_Context) Set ¶
func (a *ErrorDetail_Context) Set(fieldName string, value []string)
Setter for additional properties for ErrorDetail_Context
func (*ErrorDetail_Context) UnmarshalJSON ¶
func (a *ErrorDetail_Context) UnmarshalJSON(b []byte) error
Override default JSON handling for ErrorDetail_Context to handle AdditionalProperties
type Error_Context ¶
Context about the error condition
func (Error_Context) Get ¶
func (a Error_Context) Get(fieldName string) (value []string, found bool)
Getter for additional properties for Error_Context. Returns the specified element and whether it was found
func (Error_Context) MarshalJSON ¶
func (a Error_Context) MarshalJSON() ([]byte, error)
Override default JSON handling for Error_Context to handle AdditionalProperties
func (*Error_Context) Set ¶
func (a *Error_Context) Set(fieldName string, value []string)
Setter for additional properties for Error_Context
func (*Error_Context) UnmarshalJSON ¶
func (a *Error_Context) UnmarshalJSON(b []byte) error
Override default JSON handling for Error_Context to handle AdditionalProperties
type Error_Links ¶
A map of link names to associated URIs containing documentation about the error or recommended remediation steps
func (Error_Links) Get ¶
func (a Error_Links) Get(fieldName string) (value string, found bool)
Getter for additional properties for Error_Links. Returns the specified element and whether it was found
func (Error_Links) MarshalJSON ¶
func (a Error_Links) MarshalJSON() ([]byte, error)
Override default JSON handling for Error_Links to handle AdditionalProperties
func (*Error_Links) Set ¶
func (a *Error_Links) Set(fieldName string, value string)
Setter for additional properties for Error_Links
func (*Error_Links) UnmarshalJSON ¶
func (a *Error_Links) UnmarshalJSON(b []byte) error
Override default JSON handling for Error_Links to handle AdditionalProperties
type GetAllTypesResponse ¶
type GetAllTypesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CollectionResponsePublicAssociationDefiniton
}
func (GetAllTypesResponse) Status ¶
func (r GetAllTypesResponse) Status() string
Status returns HTTPResponse.Status
func (GetAllTypesResponse) StatusCode ¶
func (r GetAllTypesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type NextPage ¶
NextPage defines model for NextPage.
type Paging ¶
type Paging struct {
Next *NextPage `json:"next,omitempty"`
}
Paging defines model for Paging.
type PublicAssociation ¶
type PublicAssociation struct {
From PublicObjectId `json:"from"`
To PublicObjectId `json:"to"`
Type string `json:"type"`
}
PublicAssociation defines model for PublicAssociation.
type PublicAssociationDefiniton ¶
PublicAssociationDefiniton defines model for PublicAssociationDefiniton.
type PublicAssociationMulti ¶
type PublicAssociationMulti struct {
From PublicObjectId `json:"from"`
// The IDs of objects that are associated with the object identified by the ID in 'from'.
To []AssociatedId `json:"to"`
}
PublicAssociationMulti defines model for PublicAssociationMulti.
type PublicObjectId ¶
type PublicObjectId struct {
// The unique ID that identifies an object.
Id string `json:"id"`
}
PublicObjectId defines model for PublicObjectId.
type ReadBatchJSONBody ¶
type ReadBatchJSONBody BatchInputPublicObjectId
ReadBatchJSONBody defines parameters for ReadBatch.
type ReadBatchJSONRequestBody ¶
type ReadBatchJSONRequestBody ReadBatchJSONBody
ReadBatchJSONRequestBody defines body for ReadBatch for application/json ContentType.
type ReadBatchResponse ¶
type ReadBatchResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BatchResponsePublicAssociationMulti
JSON207 *BatchResponsePublicAssociationMulti
}
func (ReadBatchResponse) Status ¶
func (r ReadBatchResponse) Status() string
Status returns HTTPResponse.Status
func (ReadBatchResponse) StatusCode ¶
func (r ReadBatchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StandardError ¶
type StandardError struct {
Category ErrorCategory `json:"category"`
Context StandardError_Context `json:"context"`
Errors []ErrorDetail `json:"errors"`
Id *string `json:"id,omitempty"`
Links StandardError_Links `json:"links"`
Message string `json:"message"`
Status string `json:"status"`
SubCategory *map[string]interface{} `json:"subCategory,omitempty"`
}
StandardError defines model for StandardError.
type StandardError_Context ¶
StandardError_Context defines model for StandardError.Context.
func (StandardError_Context) Get ¶
func (a StandardError_Context) Get(fieldName string) (value []string, found bool)
Getter for additional properties for StandardError_Context. Returns the specified element and whether it was found
func (StandardError_Context) MarshalJSON ¶
func (a StandardError_Context) MarshalJSON() ([]byte, error)
Override default JSON handling for StandardError_Context to handle AdditionalProperties
func (*StandardError_Context) Set ¶
func (a *StandardError_Context) Set(fieldName string, value []string)
Setter for additional properties for StandardError_Context
func (*StandardError_Context) UnmarshalJSON ¶
func (a *StandardError_Context) UnmarshalJSON(b []byte) error
Override default JSON handling for StandardError_Context to handle AdditionalProperties
type StandardError_Links ¶
StandardError_Links defines model for StandardError.Links.
func (StandardError_Links) Get ¶
func (a StandardError_Links) Get(fieldName string) (value string, found bool)
Getter for additional properties for StandardError_Links. Returns the specified element and whether it was found
func (StandardError_Links) MarshalJSON ¶
func (a StandardError_Links) MarshalJSON() ([]byte, error)
Override default JSON handling for StandardError_Links to handle AdditionalProperties
func (*StandardError_Links) Set ¶
func (a *StandardError_Links) Set(fieldName string, value string)
Setter for additional properties for StandardError_Links
func (*StandardError_Links) UnmarshalJSON ¶
func (a *StandardError_Links) UnmarshalJSON(b []byte) error
Override default JSON handling for StandardError_Links to handle AdditionalProperties
Source Files
¶
- client.gen.go
- servers.gen.go
- types.gen.go