crayon_accounts

package
v0.0.0-...-4ac4f36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for crayon accounts API

func (*Client) GetCrayonAccountByID

func (a *Client) GetCrayonAccountByID(params *GetCrayonAccountByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCrayonAccountByIDOK, error)

GetCrayonAccountByID get crayon account by Id API

func (*Client) GetCrayonAccounts

func (a *Client) GetCrayonAccounts(params *GetCrayonAccountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCrayonAccountsOK, error)

GetCrayonAccounts get crayon accounts API

func (*Client) PostCrayonAccount

func (a *Client) PostCrayonAccount(params *PostCrayonAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostCrayonAccountOK, error)

PostCrayonAccount post crayon account API

func (*Client) PutCrayonAccount

func (a *Client) PutCrayonAccount(params *PutCrayonAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutCrayonAccountOK, error)

PutCrayonAccount put crayon account API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetCrayonAccountByID(params *GetCrayonAccountByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCrayonAccountByIDOK, error)

	GetCrayonAccounts(params *GetCrayonAccountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCrayonAccountsOK, error)

	PostCrayonAccount(params *PostCrayonAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostCrayonAccountOK, error)

	PutCrayonAccount(params *PutCrayonAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutCrayonAccountOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new crayon accounts API client.

type GetCrayonAccountByIDOK

type GetCrayonAccountByIDOK struct {
	Payload *models.CrayonAccount
}
GetCrayonAccountByIDOK describes a response with status code 200, with default header values.

Success

func NewGetCrayonAccountByIDOK

func NewGetCrayonAccountByIDOK() *GetCrayonAccountByIDOK

NewGetCrayonAccountByIDOK creates a GetCrayonAccountByIDOK with default headers values

func (*GetCrayonAccountByIDOK) Error

func (o *GetCrayonAccountByIDOK) Error() string

func (*GetCrayonAccountByIDOK) GetPayload

func (o *GetCrayonAccountByIDOK) GetPayload() *models.CrayonAccount

type GetCrayonAccountByIDParams

type GetCrayonAccountByIDParams struct {

	// ID.
	//
	// Format: int32
	ID int32

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetCrayonAccountByIDParams contains all the parameters to send to the API endpoint

for the get crayon account by Id operation.

Typically these are written to a http.Request.

func NewGetCrayonAccountByIDParams

func NewGetCrayonAccountByIDParams() *GetCrayonAccountByIDParams

NewGetCrayonAccountByIDParams creates a new GetCrayonAccountByIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetCrayonAccountByIDParamsWithContext

func NewGetCrayonAccountByIDParamsWithContext(ctx context.Context) *GetCrayonAccountByIDParams

NewGetCrayonAccountByIDParamsWithContext creates a new GetCrayonAccountByIDParams object with the ability to set a context for a request.

func NewGetCrayonAccountByIDParamsWithHTTPClient

func NewGetCrayonAccountByIDParamsWithHTTPClient(client *http.Client) *GetCrayonAccountByIDParams

NewGetCrayonAccountByIDParamsWithHTTPClient creates a new GetCrayonAccountByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetCrayonAccountByIDParamsWithTimeout

func NewGetCrayonAccountByIDParamsWithTimeout(timeout time.Duration) *GetCrayonAccountByIDParams

NewGetCrayonAccountByIDParamsWithTimeout creates a new GetCrayonAccountByIDParams object with the ability to set a timeout on a request.

func (*GetCrayonAccountByIDParams) SetContext

func (o *GetCrayonAccountByIDParams) SetContext(ctx context.Context)

SetContext adds the context to the get crayon account by Id params

func (*GetCrayonAccountByIDParams) SetDefaults

func (o *GetCrayonAccountByIDParams) SetDefaults()

SetDefaults hydrates default values in the get crayon account by Id params (not the query body).

All values with no default are reset to their zero value.

func (*GetCrayonAccountByIDParams) SetHTTPClient

func (o *GetCrayonAccountByIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get crayon account by Id params

func (*GetCrayonAccountByIDParams) SetID

func (o *GetCrayonAccountByIDParams) SetID(id int32)

SetID adds the id to the get crayon account by Id params

func (*GetCrayonAccountByIDParams) SetTimeout

func (o *GetCrayonAccountByIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get crayon account by Id params

func (*GetCrayonAccountByIDParams) WithContext

WithContext adds the context to the get crayon account by Id params

func (*GetCrayonAccountByIDParams) WithDefaults

WithDefaults hydrates default values in the get crayon account by Id params (not the query body).

All values with no default are reset to their zero value.

func (*GetCrayonAccountByIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get crayon account by Id params

func (*GetCrayonAccountByIDParams) WithID

WithID adds the id to the get crayon account by Id params

func (*GetCrayonAccountByIDParams) WithTimeout

WithTimeout adds the timeout to the get crayon account by Id params

func (*GetCrayonAccountByIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCrayonAccountByIDReader

type GetCrayonAccountByIDReader struct {
	// contains filtered or unexported fields
}

GetCrayonAccountByIDReader is a Reader for the GetCrayonAccountByID structure.

func (*GetCrayonAccountByIDReader) ReadResponse

func (o *GetCrayonAccountByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetCrayonAccountsOK

type GetCrayonAccountsOK struct {
	Payload *models.APICollectionOfCrayonAccount
}
GetCrayonAccountsOK describes a response with status code 200, with default header values.

Success

func NewGetCrayonAccountsOK

func NewGetCrayonAccountsOK() *GetCrayonAccountsOK

NewGetCrayonAccountsOK creates a GetCrayonAccountsOK with default headers values

func (*GetCrayonAccountsOK) Error

func (o *GetCrayonAccountsOK) Error() string

func (*GetCrayonAccountsOK) GetPayload

type GetCrayonAccountsParams

type GetCrayonAccountsParams struct {

	// ConsumerID.
	//
	// Format: int32
	ConsumerID *int32

	// CustomerTenantType.
	CustomerTenantType *string

	// OrganizationID.
	//
	// Format: int32
	OrganizationID *int32

	// Page.
	//
	// Format: int32
	Page *int32

	// PageSize.
	//
	// Format: int32
	PageSize *int32

	// PublisherID.
	//
	// Format: int32
	PublisherID *int32

	// Search.
	Search *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetCrayonAccountsParams contains all the parameters to send to the API endpoint

for the get crayon accounts operation.

Typically these are written to a http.Request.

func NewGetCrayonAccountsParams

func NewGetCrayonAccountsParams() *GetCrayonAccountsParams

NewGetCrayonAccountsParams creates a new GetCrayonAccountsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetCrayonAccountsParamsWithContext

func NewGetCrayonAccountsParamsWithContext(ctx context.Context) *GetCrayonAccountsParams

NewGetCrayonAccountsParamsWithContext creates a new GetCrayonAccountsParams object with the ability to set a context for a request.

func NewGetCrayonAccountsParamsWithHTTPClient

func NewGetCrayonAccountsParamsWithHTTPClient(client *http.Client) *GetCrayonAccountsParams

NewGetCrayonAccountsParamsWithHTTPClient creates a new GetCrayonAccountsParams object with the ability to set a custom HTTPClient for a request.

func NewGetCrayonAccountsParamsWithTimeout

func NewGetCrayonAccountsParamsWithTimeout(timeout time.Duration) *GetCrayonAccountsParams

NewGetCrayonAccountsParamsWithTimeout creates a new GetCrayonAccountsParams object with the ability to set a timeout on a request.

func (*GetCrayonAccountsParams) SetConsumerID

func (o *GetCrayonAccountsParams) SetConsumerID(consumerID *int32)

SetConsumerID adds the consumerId to the get crayon accounts params

func (*GetCrayonAccountsParams) SetContext

func (o *GetCrayonAccountsParams) SetContext(ctx context.Context)

SetContext adds the context to the get crayon accounts params

func (*GetCrayonAccountsParams) SetCustomerTenantType

func (o *GetCrayonAccountsParams) SetCustomerTenantType(customerTenantType *string)

SetCustomerTenantType adds the customerTenantType to the get crayon accounts params

func (*GetCrayonAccountsParams) SetDefaults

func (o *GetCrayonAccountsParams) SetDefaults()

SetDefaults hydrates default values in the get crayon accounts params (not the query body).

All values with no default are reset to their zero value.

func (*GetCrayonAccountsParams) SetHTTPClient

func (o *GetCrayonAccountsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get crayon accounts params

func (*GetCrayonAccountsParams) SetOrganizationID

func (o *GetCrayonAccountsParams) SetOrganizationID(organizationID *int32)

SetOrganizationID adds the organizationId to the get crayon accounts params

func (*GetCrayonAccountsParams) SetPage

func (o *GetCrayonAccountsParams) SetPage(page *int32)

SetPage adds the page to the get crayon accounts params

func (*GetCrayonAccountsParams) SetPageSize

func (o *GetCrayonAccountsParams) SetPageSize(pageSize *int32)

SetPageSize adds the pageSize to the get crayon accounts params

func (*GetCrayonAccountsParams) SetPublisherID

func (o *GetCrayonAccountsParams) SetPublisherID(publisherID *int32)

SetPublisherID adds the publisherId to the get crayon accounts params

func (*GetCrayonAccountsParams) SetSearch

func (o *GetCrayonAccountsParams) SetSearch(search *string)

SetSearch adds the search to the get crayon accounts params

func (*GetCrayonAccountsParams) SetTimeout

func (o *GetCrayonAccountsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get crayon accounts params

func (*GetCrayonAccountsParams) WithConsumerID

func (o *GetCrayonAccountsParams) WithConsumerID(consumerID *int32) *GetCrayonAccountsParams

WithConsumerID adds the consumerID to the get crayon accounts params

func (*GetCrayonAccountsParams) WithContext

WithContext adds the context to the get crayon accounts params

func (*GetCrayonAccountsParams) WithCustomerTenantType

func (o *GetCrayonAccountsParams) WithCustomerTenantType(customerTenantType *string) *GetCrayonAccountsParams

WithCustomerTenantType adds the customerTenantType to the get crayon accounts params

func (*GetCrayonAccountsParams) WithDefaults

WithDefaults hydrates default values in the get crayon accounts params (not the query body).

All values with no default are reset to their zero value.

func (*GetCrayonAccountsParams) WithHTTPClient

func (o *GetCrayonAccountsParams) WithHTTPClient(client *http.Client) *GetCrayonAccountsParams

WithHTTPClient adds the HTTPClient to the get crayon accounts params

func (*GetCrayonAccountsParams) WithOrganizationID

func (o *GetCrayonAccountsParams) WithOrganizationID(organizationID *int32) *GetCrayonAccountsParams

WithOrganizationID adds the organizationID to the get crayon accounts params

func (*GetCrayonAccountsParams) WithPage

WithPage adds the page to the get crayon accounts params

func (*GetCrayonAccountsParams) WithPageSize

func (o *GetCrayonAccountsParams) WithPageSize(pageSize *int32) *GetCrayonAccountsParams

WithPageSize adds the pageSize to the get crayon accounts params

func (*GetCrayonAccountsParams) WithPublisherID

func (o *GetCrayonAccountsParams) WithPublisherID(publisherID *int32) *GetCrayonAccountsParams

WithPublisherID adds the publisherID to the get crayon accounts params

func (*GetCrayonAccountsParams) WithSearch

func (o *GetCrayonAccountsParams) WithSearch(search *string) *GetCrayonAccountsParams

WithSearch adds the search to the get crayon accounts params

func (*GetCrayonAccountsParams) WithTimeout

WithTimeout adds the timeout to the get crayon accounts params

func (*GetCrayonAccountsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCrayonAccountsReader

type GetCrayonAccountsReader struct {
	// contains filtered or unexported fields
}

GetCrayonAccountsReader is a Reader for the GetCrayonAccounts structure.

func (*GetCrayonAccountsReader) ReadResponse

func (o *GetCrayonAccountsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostCrayonAccountOK

type PostCrayonAccountOK struct {
	Payload *models.CrayonAccount
}
PostCrayonAccountOK describes a response with status code 200, with default header values.

Success

func NewPostCrayonAccountOK

func NewPostCrayonAccountOK() *PostCrayonAccountOK

NewPostCrayonAccountOK creates a PostCrayonAccountOK with default headers values

func (*PostCrayonAccountOK) Error

func (o *PostCrayonAccountOK) Error() string

func (*PostCrayonAccountOK) GetPayload

func (o *PostCrayonAccountOK) GetPayload() *models.CrayonAccount

type PostCrayonAccountParams

type PostCrayonAccountParams struct {

	// CrayonAccount.
	CrayonAccount *models.CrayonAccount

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostCrayonAccountParams contains all the parameters to send to the API endpoint

for the post crayon account operation.

Typically these are written to a http.Request.

func NewPostCrayonAccountParams

func NewPostCrayonAccountParams() *PostCrayonAccountParams

NewPostCrayonAccountParams creates a new PostCrayonAccountParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPostCrayonAccountParamsWithContext

func NewPostCrayonAccountParamsWithContext(ctx context.Context) *PostCrayonAccountParams

NewPostCrayonAccountParamsWithContext creates a new PostCrayonAccountParams object with the ability to set a context for a request.

func NewPostCrayonAccountParamsWithHTTPClient

func NewPostCrayonAccountParamsWithHTTPClient(client *http.Client) *PostCrayonAccountParams

NewPostCrayonAccountParamsWithHTTPClient creates a new PostCrayonAccountParams object with the ability to set a custom HTTPClient for a request.

func NewPostCrayonAccountParamsWithTimeout

func NewPostCrayonAccountParamsWithTimeout(timeout time.Duration) *PostCrayonAccountParams

NewPostCrayonAccountParamsWithTimeout creates a new PostCrayonAccountParams object with the ability to set a timeout on a request.

func (*PostCrayonAccountParams) SetContext

func (o *PostCrayonAccountParams) SetContext(ctx context.Context)

SetContext adds the context to the post crayon account params

func (*PostCrayonAccountParams) SetCrayonAccount

func (o *PostCrayonAccountParams) SetCrayonAccount(crayonAccount *models.CrayonAccount)

SetCrayonAccount adds the crayonAccount to the post crayon account params

func (*PostCrayonAccountParams) SetDefaults

func (o *PostCrayonAccountParams) SetDefaults()

SetDefaults hydrates default values in the post crayon account params (not the query body).

All values with no default are reset to their zero value.

func (*PostCrayonAccountParams) SetHTTPClient

func (o *PostCrayonAccountParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post crayon account params

func (*PostCrayonAccountParams) SetTimeout

func (o *PostCrayonAccountParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post crayon account params

func (*PostCrayonAccountParams) WithContext

WithContext adds the context to the post crayon account params

func (*PostCrayonAccountParams) WithCrayonAccount

func (o *PostCrayonAccountParams) WithCrayonAccount(crayonAccount *models.CrayonAccount) *PostCrayonAccountParams

WithCrayonAccount adds the crayonAccount to the post crayon account params

func (*PostCrayonAccountParams) WithDefaults

WithDefaults hydrates default values in the post crayon account params (not the query body).

All values with no default are reset to their zero value.

func (*PostCrayonAccountParams) WithHTTPClient

func (o *PostCrayonAccountParams) WithHTTPClient(client *http.Client) *PostCrayonAccountParams

WithHTTPClient adds the HTTPClient to the post crayon account params

func (*PostCrayonAccountParams) WithTimeout

WithTimeout adds the timeout to the post crayon account params

func (*PostCrayonAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostCrayonAccountReader

type PostCrayonAccountReader struct {
	// contains filtered or unexported fields
}

PostCrayonAccountReader is a Reader for the PostCrayonAccount structure.

func (*PostCrayonAccountReader) ReadResponse

func (o *PostCrayonAccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PutCrayonAccountOK

type PutCrayonAccountOK struct {
	Payload *models.CrayonAccount
}
PutCrayonAccountOK describes a response with status code 200, with default header values.

Success

func NewPutCrayonAccountOK

func NewPutCrayonAccountOK() *PutCrayonAccountOK

NewPutCrayonAccountOK creates a PutCrayonAccountOK with default headers values

func (*PutCrayonAccountOK) Error

func (o *PutCrayonAccountOK) Error() string

func (*PutCrayonAccountOK) GetPayload

func (o *PutCrayonAccountOK) GetPayload() *models.CrayonAccount

type PutCrayonAccountParams

type PutCrayonAccountParams struct {

	// CrayonAccount.
	CrayonAccount *models.CrayonAccount

	// ID.
	//
	// Format: int32
	ID int32

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PutCrayonAccountParams contains all the parameters to send to the API endpoint

for the put crayon account operation.

Typically these are written to a http.Request.

func NewPutCrayonAccountParams

func NewPutCrayonAccountParams() *PutCrayonAccountParams

NewPutCrayonAccountParams creates a new PutCrayonAccountParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPutCrayonAccountParamsWithContext

func NewPutCrayonAccountParamsWithContext(ctx context.Context) *PutCrayonAccountParams

NewPutCrayonAccountParamsWithContext creates a new PutCrayonAccountParams object with the ability to set a context for a request.

func NewPutCrayonAccountParamsWithHTTPClient

func NewPutCrayonAccountParamsWithHTTPClient(client *http.Client) *PutCrayonAccountParams

NewPutCrayonAccountParamsWithHTTPClient creates a new PutCrayonAccountParams object with the ability to set a custom HTTPClient for a request.

func NewPutCrayonAccountParamsWithTimeout

func NewPutCrayonAccountParamsWithTimeout(timeout time.Duration) *PutCrayonAccountParams

NewPutCrayonAccountParamsWithTimeout creates a new PutCrayonAccountParams object with the ability to set a timeout on a request.

func (*PutCrayonAccountParams) SetContext

func (o *PutCrayonAccountParams) SetContext(ctx context.Context)

SetContext adds the context to the put crayon account params

func (*PutCrayonAccountParams) SetCrayonAccount

func (o *PutCrayonAccountParams) SetCrayonAccount(crayonAccount *models.CrayonAccount)

SetCrayonAccount adds the crayonAccount to the put crayon account params

func (*PutCrayonAccountParams) SetDefaults

func (o *PutCrayonAccountParams) SetDefaults()

SetDefaults hydrates default values in the put crayon account params (not the query body).

All values with no default are reset to their zero value.

func (*PutCrayonAccountParams) SetHTTPClient

func (o *PutCrayonAccountParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the put crayon account params

func (*PutCrayonAccountParams) SetID

func (o *PutCrayonAccountParams) SetID(id int32)

SetID adds the id to the put crayon account params

func (*PutCrayonAccountParams) SetTimeout

func (o *PutCrayonAccountParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the put crayon account params

func (*PutCrayonAccountParams) WithContext

WithContext adds the context to the put crayon account params

func (*PutCrayonAccountParams) WithCrayonAccount

func (o *PutCrayonAccountParams) WithCrayonAccount(crayonAccount *models.CrayonAccount) *PutCrayonAccountParams

WithCrayonAccount adds the crayonAccount to the put crayon account params

func (*PutCrayonAccountParams) WithDefaults

WithDefaults hydrates default values in the put crayon account params (not the query body).

All values with no default are reset to their zero value.

func (*PutCrayonAccountParams) WithHTTPClient

func (o *PutCrayonAccountParams) WithHTTPClient(client *http.Client) *PutCrayonAccountParams

WithHTTPClient adds the HTTPClient to the put crayon account params

func (*PutCrayonAccountParams) WithID

WithID adds the id to the put crayon account params

func (*PutCrayonAccountParams) WithTimeout

WithTimeout adds the timeout to the put crayon account params

func (*PutCrayonAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutCrayonAccountReader

type PutCrayonAccountReader struct {
	// contains filtered or unexported fields
}

PutCrayonAccountReader is a Reader for the PutCrayonAccount structure.

func (*PutCrayonAccountReader) ReadResponse

func (o *PutCrayonAccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL