accounts

package
v0.0.0-...-13576d3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2018 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 accounts API

func New

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

New creates a new accounts API client.

func (*Client) CreateAccount

func (a *Client) CreateAccount(params *CreateAccountParams) (*CreateAccountOK, error)

CreateAccount creates an account

{"nickname":"Create a new account","response":"createAccountResponse.html","request":"createAccountRequest.html"}

func (*Client) DeleteAccount

func (a *Client) DeleteAccount(params *DeleteAccountParams) (*DeleteAccountOK, error)

DeleteAccount deletes the account specified by the account ID parameter

{"nickname":"Retire","response":"deleteAccount.html"}

func (*Client) DeleteMetadataForAccount

func (a *Client) DeleteMetadataForAccount(params *DeleteMetadataForAccountParams) (*DeleteMetadataForAccountOK, error)

DeleteMetadataForAccount removes any associated metadata

{"nickname":"Clear metadata from account","request" :"deleteAccountMetadataRequest.html","response":"deleteAccountMetadataResponse.html"}

func (*Client) GetAccountByID

func (a *Client) GetAccountByID(params *GetAccountByIDParams) (*GetAccountByIDOK, error)

GetAccountByID returns a single account specified by the account ID parameter

{"nickname":"Retrieve an existing account","response":"getAccountByID.html"}

func (*Client) GetAllAccounts

func (a *Client) GetAllAccounts(params *GetAllAccountsParams) (*GetAllAccountsOK, error)

GetAllAccounts returns a collection of all account objects by default 10 values are returned records are returned in natural order

{"nickname":"Get all accounts","response":"getAccountAll.html"}

func (*Client) GetMetadataForAccount

func (a *Client) GetMetadataForAccount(params *GetMetadataForAccountParams) (*GetMetadataForAccountOK, error)

GetMetadataForAccount retrieves any associated metadata

{"nickname":"Retrieve metadata on account","request":"getAccountMetadataRequest.html","response":"getAccountMetadataResponse.html"}

func (*Client) SetMetadataForAccount

func (a *Client) SetMetadataForAccount(params *SetMetadataForAccountParams) (*SetMetadataForAccountOK, error)

SetMetadataForAccount removes any existing metadata keys and create the provided data

{"nickname":"Set metadata on account","request":"setAccountMetadataRequest.html","response":"setAccountMetadataResponse.html"}

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpsertMetadataForAccount

func (a *Client) UpsertMetadataForAccount(params *UpsertMetadataForAccountParams) (*UpsertMetadataForAccountOK, error)

UpsertMetadataForAccount updates any existing metadata key values and insert any new key values no keys will be removed

{"nickname":"Upsert metadata on account","request":"upsertAccountMetadataRequest.html","response":"upsertAccountMetadataResponse.html"}

type CreateAccountDefault

type CreateAccountDefault struct {
	Payload *models.BFError
	// contains filtered or unexported fields
}

CreateAccountDefault handles this case with default header values.

error

func NewCreateAccountDefault

func NewCreateAccountDefault(code int) *CreateAccountDefault

NewCreateAccountDefault creates a CreateAccountDefault with default headers values

func (*CreateAccountDefault) Code

func (o *CreateAccountDefault) Code() int

Code gets the status code for the create account default response

func (*CreateAccountDefault) Error

func (o *CreateAccountDefault) Error() string

type CreateAccountOK

type CreateAccountOK struct {
	Payload *models.AccountPagedMetadata
}

CreateAccountOK handles this case with default header values.

success

func NewCreateAccountOK

func NewCreateAccountOK() *CreateAccountOK

NewCreateAccountOK creates a CreateAccountOK with default headers values

func (*CreateAccountOK) Error

func (o *CreateAccountOK) Error() string

type CreateAccountParams

type CreateAccountParams struct {

	/*Request
	  The account object to be created.

	*/
	Request *models.CreateAccountRequest

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

CreateAccountParams contains all the parameters to send to the API endpoint for the create account operation typically these are written to a http.Request

func NewCreateAccountParams

func NewCreateAccountParams() *CreateAccountParams

NewCreateAccountParams creates a new CreateAccountParams object with the default values initialized.

func NewCreateAccountParamsWithContext

func NewCreateAccountParamsWithContext(ctx context.Context) *CreateAccountParams

NewCreateAccountParamsWithContext creates a new CreateAccountParams object with the default values initialized, and the ability to set a context for a request

func NewCreateAccountParamsWithHTTPClient

func NewCreateAccountParamsWithHTTPClient(client *http.Client) *CreateAccountParams

NewCreateAccountParamsWithHTTPClient creates a new CreateAccountParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateAccountParamsWithTimeout

func NewCreateAccountParamsWithTimeout(timeout time.Duration) *CreateAccountParams

NewCreateAccountParamsWithTimeout creates a new CreateAccountParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateAccountParams) SetContext

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

SetContext adds the context to the create account params

func (*CreateAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create account params

func (*CreateAccountParams) SetRequest

func (o *CreateAccountParams) SetRequest(request *models.CreateAccountRequest)

SetRequest adds the request to the create account params

func (*CreateAccountParams) SetTimeout

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

SetTimeout adds the timeout to the create account params

func (*CreateAccountParams) WithContext

WithContext adds the context to the create account params

func (*CreateAccountParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create account params

func (*CreateAccountParams) WithRequest

WithRequest adds the request to the create account params

func (*CreateAccountParams) WithTimeout

func (o *CreateAccountParams) WithTimeout(timeout time.Duration) *CreateAccountParams

WithTimeout adds the timeout to the create account params

func (*CreateAccountParams) WriteToRequest

func (o *CreateAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateAccountReader

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

CreateAccountReader is a Reader for the CreateAccount structure.

func (*CreateAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteAccountDefault

type DeleteAccountDefault struct {
	Payload *models.BFError
	// contains filtered or unexported fields
}

DeleteAccountDefault handles this case with default header values.

error

func NewDeleteAccountDefault

func NewDeleteAccountDefault(code int) *DeleteAccountDefault

NewDeleteAccountDefault creates a DeleteAccountDefault with default headers values

func (*DeleteAccountDefault) Code

func (o *DeleteAccountDefault) Code() int

Code gets the status code for the delete account default response

func (*DeleteAccountDefault) Error

func (o *DeleteAccountDefault) Error() string

type DeleteAccountOK

type DeleteAccountOK struct {
	Payload *models.AccountPagedMetadata
}

DeleteAccountOK handles this case with default header values.

success

func NewDeleteAccountOK

func NewDeleteAccountOK() *DeleteAccountOK

NewDeleteAccountOK creates a DeleteAccountOK with default headers values

func (*DeleteAccountOK) Error

func (o *DeleteAccountOK) Error() string

type DeleteAccountParams

type DeleteAccountParams struct {

	/*AccountID*/
	AccountID string
	/*DeleteGatewayData*/
	DeleteGatewayData bool
	/*Organizations
	  A list of organization-IDs used to restrict the scope of API calls.

	*/
	Organizations []string

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

DeleteAccountParams contains all the parameters to send to the API endpoint for the delete account operation typically these are written to a http.Request

func NewDeleteAccountParams

func NewDeleteAccountParams() *DeleteAccountParams

NewDeleteAccountParams creates a new DeleteAccountParams object with the default values initialized.

func NewDeleteAccountParamsWithContext

func NewDeleteAccountParamsWithContext(ctx context.Context) *DeleteAccountParams

NewDeleteAccountParamsWithContext creates a new DeleteAccountParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteAccountParamsWithHTTPClient

func NewDeleteAccountParamsWithHTTPClient(client *http.Client) *DeleteAccountParams

NewDeleteAccountParamsWithHTTPClient creates a new DeleteAccountParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteAccountParamsWithTimeout

func NewDeleteAccountParamsWithTimeout(timeout time.Duration) *DeleteAccountParams

NewDeleteAccountParamsWithTimeout creates a new DeleteAccountParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteAccountParams) SetAccountID

func (o *DeleteAccountParams) SetAccountID(accountID string)

SetAccountID adds the accountId to the delete account params

func (*DeleteAccountParams) SetContext

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

SetContext adds the context to the delete account params

func (*DeleteAccountParams) SetDeleteGatewayData

func (o *DeleteAccountParams) SetDeleteGatewayData(deleteGatewayData bool)

SetDeleteGatewayData adds the deleteGatewayData to the delete account params

func (*DeleteAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete account params

func (*DeleteAccountParams) SetOrganizations

func (o *DeleteAccountParams) SetOrganizations(organizations []string)

SetOrganizations adds the organizations to the delete account params

func (*DeleteAccountParams) SetTimeout

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

SetTimeout adds the timeout to the delete account params

func (*DeleteAccountParams) WithAccountID

func (o *DeleteAccountParams) WithAccountID(accountID string) *DeleteAccountParams

WithAccountID adds the accountID to the delete account params

func (*DeleteAccountParams) WithContext

WithContext adds the context to the delete account params

func (*DeleteAccountParams) WithDeleteGatewayData

func (o *DeleteAccountParams) WithDeleteGatewayData(deleteGatewayData bool) *DeleteAccountParams

WithDeleteGatewayData adds the deleteGatewayData to the delete account params

func (*DeleteAccountParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete account params

func (*DeleteAccountParams) WithOrganizations

func (o *DeleteAccountParams) WithOrganizations(organizations []string) *DeleteAccountParams

WithOrganizations adds the organizations to the delete account params

func (*DeleteAccountParams) WithTimeout

func (o *DeleteAccountParams) WithTimeout(timeout time.Duration) *DeleteAccountParams

WithTimeout adds the timeout to the delete account params

func (*DeleteAccountParams) WriteToRequest

func (o *DeleteAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteAccountReader

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

DeleteAccountReader is a Reader for the DeleteAccount structure.

func (*DeleteAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteMetadataForAccountDefault

type DeleteMetadataForAccountDefault struct {
	Payload *models.BFError
	// contains filtered or unexported fields
}

DeleteMetadataForAccountDefault handles this case with default header values.

error

func NewDeleteMetadataForAccountDefault

func NewDeleteMetadataForAccountDefault(code int) *DeleteMetadataForAccountDefault

NewDeleteMetadataForAccountDefault creates a DeleteMetadataForAccountDefault with default headers values

func (*DeleteMetadataForAccountDefault) Code

Code gets the status code for the delete metadata for account default response

func (*DeleteMetadataForAccountDefault) Error

type DeleteMetadataForAccountOK

type DeleteMetadataForAccountOK struct {
	Payload models.DynamicMetadata
}

DeleteMetadataForAccountOK handles this case with default header values.

success

func NewDeleteMetadataForAccountOK

func NewDeleteMetadataForAccountOK() *DeleteMetadataForAccountOK

NewDeleteMetadataForAccountOK creates a DeleteMetadataForAccountOK with default headers values

func (*DeleteMetadataForAccountOK) Error

type DeleteMetadataForAccountParams

type DeleteMetadataForAccountParams struct {

	/*AccountID*/
	AccountID string
	/*Organizations
	  A list of organization-IDs used to restrict the scope of API calls.

	*/
	Organizations []string

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

DeleteMetadataForAccountParams contains all the parameters to send to the API endpoint for the delete metadata for account operation typically these are written to a http.Request

func NewDeleteMetadataForAccountParams

func NewDeleteMetadataForAccountParams() *DeleteMetadataForAccountParams

NewDeleteMetadataForAccountParams creates a new DeleteMetadataForAccountParams object with the default values initialized.

func NewDeleteMetadataForAccountParamsWithContext

func NewDeleteMetadataForAccountParamsWithContext(ctx context.Context) *DeleteMetadataForAccountParams

NewDeleteMetadataForAccountParamsWithContext creates a new DeleteMetadataForAccountParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteMetadataForAccountParamsWithHTTPClient

func NewDeleteMetadataForAccountParamsWithHTTPClient(client *http.Client) *DeleteMetadataForAccountParams

NewDeleteMetadataForAccountParamsWithHTTPClient creates a new DeleteMetadataForAccountParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteMetadataForAccountParamsWithTimeout

func NewDeleteMetadataForAccountParamsWithTimeout(timeout time.Duration) *DeleteMetadataForAccountParams

NewDeleteMetadataForAccountParamsWithTimeout creates a new DeleteMetadataForAccountParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteMetadataForAccountParams) SetAccountID

func (o *DeleteMetadataForAccountParams) SetAccountID(accountID string)

SetAccountID adds the accountId to the delete metadata for account params

func (*DeleteMetadataForAccountParams) SetContext

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

SetContext adds the context to the delete metadata for account params

func (*DeleteMetadataForAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete metadata for account params

func (*DeleteMetadataForAccountParams) SetOrganizations

func (o *DeleteMetadataForAccountParams) SetOrganizations(organizations []string)

SetOrganizations adds the organizations to the delete metadata for account params

func (*DeleteMetadataForAccountParams) SetTimeout

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

SetTimeout adds the timeout to the delete metadata for account params

func (*DeleteMetadataForAccountParams) WithAccountID

WithAccountID adds the accountID to the delete metadata for account params

func (*DeleteMetadataForAccountParams) WithContext

WithContext adds the context to the delete metadata for account params

func (*DeleteMetadataForAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete metadata for account params

func (*DeleteMetadataForAccountParams) WithOrganizations

func (o *DeleteMetadataForAccountParams) WithOrganizations(organizations []string) *DeleteMetadataForAccountParams

WithOrganizations adds the organizations to the delete metadata for account params

func (*DeleteMetadataForAccountParams) WithTimeout

WithTimeout adds the timeout to the delete metadata for account params

func (*DeleteMetadataForAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteMetadataForAccountReader

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

DeleteMetadataForAccountReader is a Reader for the DeleteMetadataForAccount structure.

func (*DeleteMetadataForAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAccountByIDDefault

type GetAccountByIDDefault struct {
	Payload *models.BFError
	// contains filtered or unexported fields
}

GetAccountByIDDefault handles this case with default header values.

error

func NewGetAccountByIDDefault

func NewGetAccountByIDDefault(code int) *GetAccountByIDDefault

NewGetAccountByIDDefault creates a GetAccountByIDDefault with default headers values

func (*GetAccountByIDDefault) Code

func (o *GetAccountByIDDefault) Code() int

Code gets the status code for the get account by ID default response

func (*GetAccountByIDDefault) Error

func (o *GetAccountByIDDefault) Error() string

type GetAccountByIDOK

type GetAccountByIDOK struct {
	Payload *models.AccountPagedMetadata
}

GetAccountByIDOK handles this case with default header values.

success

func NewGetAccountByIDOK

func NewGetAccountByIDOK() *GetAccountByIDOK

NewGetAccountByIDOK creates a GetAccountByIDOK with default headers values

func (*GetAccountByIDOK) Error

func (o *GetAccountByIDOK) Error() string

type GetAccountByIDParams

type GetAccountByIDParams struct {

	/*AccountID*/
	AccountID string
	/*Organizations*/
	Organizations []string

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

GetAccountByIDParams contains all the parameters to send to the API endpoint for the get account by ID operation typically these are written to a http.Request

func NewGetAccountByIDParams

func NewGetAccountByIDParams() *GetAccountByIDParams

NewGetAccountByIDParams creates a new GetAccountByIDParams object with the default values initialized.

func NewGetAccountByIDParamsWithContext

func NewGetAccountByIDParamsWithContext(ctx context.Context) *GetAccountByIDParams

NewGetAccountByIDParamsWithContext creates a new GetAccountByIDParams object with the default values initialized, and the ability to set a context for a request

func NewGetAccountByIDParamsWithHTTPClient

func NewGetAccountByIDParamsWithHTTPClient(client *http.Client) *GetAccountByIDParams

NewGetAccountByIDParamsWithHTTPClient creates a new GetAccountByIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetAccountByIDParamsWithTimeout

func NewGetAccountByIDParamsWithTimeout(timeout time.Duration) *GetAccountByIDParams

NewGetAccountByIDParamsWithTimeout creates a new GetAccountByIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetAccountByIDParams) SetAccountID

func (o *GetAccountByIDParams) SetAccountID(accountID string)

SetAccountID adds the accountId to the get account by ID params

func (*GetAccountByIDParams) SetContext

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

SetContext adds the context to the get account by ID params

func (*GetAccountByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get account by ID params

func (*GetAccountByIDParams) SetOrganizations

func (o *GetAccountByIDParams) SetOrganizations(organizations []string)

SetOrganizations adds the organizations to the get account by ID params

func (*GetAccountByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get account by ID params

func (*GetAccountByIDParams) WithAccountID

func (o *GetAccountByIDParams) WithAccountID(accountID string) *GetAccountByIDParams

WithAccountID adds the accountID to the get account by ID params

func (*GetAccountByIDParams) WithContext

WithContext adds the context to the get account by ID params

func (*GetAccountByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get account by ID params

func (*GetAccountByIDParams) WithOrganizations

func (o *GetAccountByIDParams) WithOrganizations(organizations []string) *GetAccountByIDParams

WithOrganizations adds the organizations to the get account by ID params

func (*GetAccountByIDParams) WithTimeout

func (o *GetAccountByIDParams) WithTimeout(timeout time.Duration) *GetAccountByIDParams

WithTimeout adds the timeout to the get account by ID params

func (*GetAccountByIDParams) WriteToRequest

func (o *GetAccountByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetAccountByIDReader

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

GetAccountByIDReader is a Reader for the GetAccountByID structure.

func (*GetAccountByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAllAccountsDefault

type GetAllAccountsDefault struct {
	Payload *models.BFError
	// contains filtered or unexported fields
}

GetAllAccountsDefault handles this case with default header values.

error

func NewGetAllAccountsDefault

func NewGetAllAccountsDefault(code int) *GetAllAccountsDefault

NewGetAllAccountsDefault creates a GetAllAccountsDefault with default headers values

func (*GetAllAccountsDefault) Code

func (o *GetAllAccountsDefault) Code() int

Code gets the status code for the get all accounts default response

func (*GetAllAccountsDefault) Error

func (o *GetAllAccountsDefault) Error() string

type GetAllAccountsOK

type GetAllAccountsOK struct {
	Payload *models.AccountPagedMetadata
}

GetAllAccountsOK handles this case with default header values.

success

func NewGetAllAccountsOK

func NewGetAllAccountsOK() *GetAllAccountsOK

NewGetAllAccountsOK creates a GetAllAccountsOK with default headers values

func (*GetAllAccountsOK) Error

func (o *GetAllAccountsOK) Error() string

type GetAllAccountsParams

type GetAllAccountsParams struct {

	/*ID
	  A list of account IDs used to filter the output.

	*/
	ID []string
	/*IncludeRetired
	  Whether retired products should be returned.

	*/
	IncludeRetired *bool
	/*Metadata*/
	Metadata *string
	/*Offset
	  The offset from the first taxation-link to return.

	*/
	Offset *int32
	/*Order
	  Ihe direction of any ordering, either ASC or DESC.

	*/
	Order *string
	/*OrderBy
	  Specify a field used to order the result set.

	*/
	OrderBy *string
	/*Organizations
	  A list of organization-IDs used to restrict the scope of API calls.

	*/
	Organizations []string
	/*Records
	  The maximum number of taxation-links to return.

	*/
	Records *int32
	/*UsersOnly
	  Whether only accounts have a user should be returned.

	*/
	UsersOnly *bool

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

GetAllAccountsParams contains all the parameters to send to the API endpoint for the get all accounts operation typically these are written to a http.Request

func NewGetAllAccountsParams

func NewGetAllAccountsParams() *GetAllAccountsParams

NewGetAllAccountsParams creates a new GetAllAccountsParams object with the default values initialized.

func NewGetAllAccountsParamsWithContext

func NewGetAllAccountsParamsWithContext(ctx context.Context) *GetAllAccountsParams

NewGetAllAccountsParamsWithContext creates a new GetAllAccountsParams object with the default values initialized, and the ability to set a context for a request

func NewGetAllAccountsParamsWithHTTPClient

func NewGetAllAccountsParamsWithHTTPClient(client *http.Client) *GetAllAccountsParams

NewGetAllAccountsParamsWithHTTPClient creates a new GetAllAccountsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetAllAccountsParamsWithTimeout

func NewGetAllAccountsParamsWithTimeout(timeout time.Duration) *GetAllAccountsParams

NewGetAllAccountsParamsWithTimeout creates a new GetAllAccountsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetAllAccountsParams) SetContext

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

SetContext adds the context to the get all accounts params

func (*GetAllAccountsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get all accounts params

func (*GetAllAccountsParams) SetID

func (o *GetAllAccountsParams) SetID(id []string)

SetID adds the id to the get all accounts params

func (*GetAllAccountsParams) SetIncludeRetired

func (o *GetAllAccountsParams) SetIncludeRetired(includeRetired *bool)

SetIncludeRetired adds the includeRetired to the get all accounts params

func (*GetAllAccountsParams) SetMetadata

func (o *GetAllAccountsParams) SetMetadata(metadata *string)

SetMetadata adds the metadata to the get all accounts params

func (*GetAllAccountsParams) SetOffset

func (o *GetAllAccountsParams) SetOffset(offset *int32)

SetOffset adds the offset to the get all accounts params

func (*GetAllAccountsParams) SetOrder

func (o *GetAllAccountsParams) SetOrder(order *string)

SetOrder adds the order to the get all accounts params

func (*GetAllAccountsParams) SetOrderBy

func (o *GetAllAccountsParams) SetOrderBy(orderBy *string)

SetOrderBy adds the orderBy to the get all accounts params

func (*GetAllAccountsParams) SetOrganizations

func (o *GetAllAccountsParams) SetOrganizations(organizations []string)

SetOrganizations adds the organizations to the get all accounts params

func (*GetAllAccountsParams) SetRecords

func (o *GetAllAccountsParams) SetRecords(records *int32)

SetRecords adds the records to the get all accounts params

func (*GetAllAccountsParams) SetTimeout

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

SetTimeout adds the timeout to the get all accounts params

func (*GetAllAccountsParams) SetUsersOnly

func (o *GetAllAccountsParams) SetUsersOnly(usersOnly *bool)

SetUsersOnly adds the usersOnly to the get all accounts params

func (*GetAllAccountsParams) WithContext

WithContext adds the context to the get all accounts params

func (*GetAllAccountsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get all accounts params

func (*GetAllAccountsParams) WithID

WithID adds the id to the get all accounts params

func (*GetAllAccountsParams) WithIncludeRetired

func (o *GetAllAccountsParams) WithIncludeRetired(includeRetired *bool) *GetAllAccountsParams

WithIncludeRetired adds the includeRetired to the get all accounts params

func (*GetAllAccountsParams) WithMetadata

func (o *GetAllAccountsParams) WithMetadata(metadata *string) *GetAllAccountsParams

WithMetadata adds the metadata to the get all accounts params

func (*GetAllAccountsParams) WithOffset

func (o *GetAllAccountsParams) WithOffset(offset *int32) *GetAllAccountsParams

WithOffset adds the offset to the get all accounts params

func (*GetAllAccountsParams) WithOrder

func (o *GetAllAccountsParams) WithOrder(order *string) *GetAllAccountsParams

WithOrder adds the order to the get all accounts params

func (*GetAllAccountsParams) WithOrderBy

func (o *GetAllAccountsParams) WithOrderBy(orderBy *string) *GetAllAccountsParams

WithOrderBy adds the orderBy to the get all accounts params

func (*GetAllAccountsParams) WithOrganizations

func (o *GetAllAccountsParams) WithOrganizations(organizations []string) *GetAllAccountsParams

WithOrganizations adds the organizations to the get all accounts params

func (*GetAllAccountsParams) WithRecords

func (o *GetAllAccountsParams) WithRecords(records *int32) *GetAllAccountsParams

WithRecords adds the records to the get all accounts params

func (*GetAllAccountsParams) WithTimeout

func (o *GetAllAccountsParams) WithTimeout(timeout time.Duration) *GetAllAccountsParams

WithTimeout adds the timeout to the get all accounts params

func (*GetAllAccountsParams) WithUsersOnly

func (o *GetAllAccountsParams) WithUsersOnly(usersOnly *bool) *GetAllAccountsParams

WithUsersOnly adds the usersOnly to the get all accounts params

func (*GetAllAccountsParams) WriteToRequest

func (o *GetAllAccountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetAllAccountsReader

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

GetAllAccountsReader is a Reader for the GetAllAccounts structure.

func (*GetAllAccountsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetMetadataForAccountDefault

type GetMetadataForAccountDefault struct {
	Payload *models.BFError
	// contains filtered or unexported fields
}

GetMetadataForAccountDefault handles this case with default header values.

error

func NewGetMetadataForAccountDefault

func NewGetMetadataForAccountDefault(code int) *GetMetadataForAccountDefault

NewGetMetadataForAccountDefault creates a GetMetadataForAccountDefault with default headers values

func (*GetMetadataForAccountDefault) Code

Code gets the status code for the get metadata for account default response

func (*GetMetadataForAccountDefault) Error

type GetMetadataForAccountOK

type GetMetadataForAccountOK struct {
	Payload models.DynamicMetadata
}

GetMetadataForAccountOK handles this case with default header values.

success

func NewGetMetadataForAccountOK

func NewGetMetadataForAccountOK() *GetMetadataForAccountOK

NewGetMetadataForAccountOK creates a GetMetadataForAccountOK with default headers values

func (*GetMetadataForAccountOK) Error

func (o *GetMetadataForAccountOK) Error() string

type GetMetadataForAccountParams

type GetMetadataForAccountParams struct {

	/*AccountID*/
	AccountID string
	/*Organizations
	  A list of organization-IDs used to restrict the scope of API calls.

	*/
	Organizations []string

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

GetMetadataForAccountParams contains all the parameters to send to the API endpoint for the get metadata for account operation typically these are written to a http.Request

func NewGetMetadataForAccountParams

func NewGetMetadataForAccountParams() *GetMetadataForAccountParams

NewGetMetadataForAccountParams creates a new GetMetadataForAccountParams object with the default values initialized.

func NewGetMetadataForAccountParamsWithContext

func NewGetMetadataForAccountParamsWithContext(ctx context.Context) *GetMetadataForAccountParams

NewGetMetadataForAccountParamsWithContext creates a new GetMetadataForAccountParams object with the default values initialized, and the ability to set a context for a request

func NewGetMetadataForAccountParamsWithHTTPClient

func NewGetMetadataForAccountParamsWithHTTPClient(client *http.Client) *GetMetadataForAccountParams

NewGetMetadataForAccountParamsWithHTTPClient creates a new GetMetadataForAccountParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetMetadataForAccountParamsWithTimeout

func NewGetMetadataForAccountParamsWithTimeout(timeout time.Duration) *GetMetadataForAccountParams

NewGetMetadataForAccountParamsWithTimeout creates a new GetMetadataForAccountParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetMetadataForAccountParams) SetAccountID

func (o *GetMetadataForAccountParams) SetAccountID(accountID string)

SetAccountID adds the accountId to the get metadata for account params

func (*GetMetadataForAccountParams) SetContext

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

SetContext adds the context to the get metadata for account params

func (*GetMetadataForAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get metadata for account params

func (*GetMetadataForAccountParams) SetOrganizations

func (o *GetMetadataForAccountParams) SetOrganizations(organizations []string)

SetOrganizations adds the organizations to the get metadata for account params

func (*GetMetadataForAccountParams) SetTimeout

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

SetTimeout adds the timeout to the get metadata for account params

func (*GetMetadataForAccountParams) WithAccountID

func (o *GetMetadataForAccountParams) WithAccountID(accountID string) *GetMetadataForAccountParams

WithAccountID adds the accountID to the get metadata for account params

func (*GetMetadataForAccountParams) WithContext

WithContext adds the context to the get metadata for account params

func (*GetMetadataForAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get metadata for account params

func (*GetMetadataForAccountParams) WithOrganizations

func (o *GetMetadataForAccountParams) WithOrganizations(organizations []string) *GetMetadataForAccountParams

WithOrganizations adds the organizations to the get metadata for account params

func (*GetMetadataForAccountParams) WithTimeout

WithTimeout adds the timeout to the get metadata for account params

func (*GetMetadataForAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetMetadataForAccountReader

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

GetMetadataForAccountReader is a Reader for the GetMetadataForAccount structure.

func (*GetMetadataForAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetMetadataForAccountDefault

type SetMetadataForAccountDefault struct {
	Payload *models.BFError
	// contains filtered or unexported fields
}

SetMetadataForAccountDefault handles this case with default header values.

error

func NewSetMetadataForAccountDefault

func NewSetMetadataForAccountDefault(code int) *SetMetadataForAccountDefault

NewSetMetadataForAccountDefault creates a SetMetadataForAccountDefault with default headers values

func (*SetMetadataForAccountDefault) Code

Code gets the status code for the set metadata for account default response

func (*SetMetadataForAccountDefault) Error

type SetMetadataForAccountOK

type SetMetadataForAccountOK struct {
	Payload models.DynamicMetadata
}

SetMetadataForAccountOK handles this case with default header values.

success

func NewSetMetadataForAccountOK

func NewSetMetadataForAccountOK() *SetMetadataForAccountOK

NewSetMetadataForAccountOK creates a SetMetadataForAccountOK with default headers values

func (*SetMetadataForAccountOK) Error

func (o *SetMetadataForAccountOK) Error() string

type SetMetadataForAccountParams

type SetMetadataForAccountParams struct {

	/*AccountID*/
	AccountID string
	/*Metadata*/
	Metadata models.DynamicMetadata
	/*Organizations
	  A list of organization-IDs used to restrict the scope of API calls.

	*/
	Organizations []string

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

SetMetadataForAccountParams contains all the parameters to send to the API endpoint for the set metadata for account operation typically these are written to a http.Request

func NewSetMetadataForAccountParams

func NewSetMetadataForAccountParams() *SetMetadataForAccountParams

NewSetMetadataForAccountParams creates a new SetMetadataForAccountParams object with the default values initialized.

func NewSetMetadataForAccountParamsWithContext

func NewSetMetadataForAccountParamsWithContext(ctx context.Context) *SetMetadataForAccountParams

NewSetMetadataForAccountParamsWithContext creates a new SetMetadataForAccountParams object with the default values initialized, and the ability to set a context for a request

func NewSetMetadataForAccountParamsWithHTTPClient

func NewSetMetadataForAccountParamsWithHTTPClient(client *http.Client) *SetMetadataForAccountParams

NewSetMetadataForAccountParamsWithHTTPClient creates a new SetMetadataForAccountParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSetMetadataForAccountParamsWithTimeout

func NewSetMetadataForAccountParamsWithTimeout(timeout time.Duration) *SetMetadataForAccountParams

NewSetMetadataForAccountParamsWithTimeout creates a new SetMetadataForAccountParams object with the default values initialized, and the ability to set a timeout on a request

func (*SetMetadataForAccountParams) SetAccountID

func (o *SetMetadataForAccountParams) SetAccountID(accountID string)

SetAccountID adds the accountId to the set metadata for account params

func (*SetMetadataForAccountParams) SetContext

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

SetContext adds the context to the set metadata for account params

func (*SetMetadataForAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set metadata for account params

func (*SetMetadataForAccountParams) SetMetadata

func (o *SetMetadataForAccountParams) SetMetadata(metadata models.DynamicMetadata)

SetMetadata adds the metadata to the set metadata for account params

func (*SetMetadataForAccountParams) SetOrganizations

func (o *SetMetadataForAccountParams) SetOrganizations(organizations []string)

SetOrganizations adds the organizations to the set metadata for account params

func (*SetMetadataForAccountParams) SetTimeout

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

SetTimeout adds the timeout to the set metadata for account params

func (*SetMetadataForAccountParams) WithAccountID

func (o *SetMetadataForAccountParams) WithAccountID(accountID string) *SetMetadataForAccountParams

WithAccountID adds the accountID to the set metadata for account params

func (*SetMetadataForAccountParams) WithContext

WithContext adds the context to the set metadata for account params

func (*SetMetadataForAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the set metadata for account params

func (*SetMetadataForAccountParams) WithMetadata

WithMetadata adds the metadata to the set metadata for account params

func (*SetMetadataForAccountParams) WithOrganizations

func (o *SetMetadataForAccountParams) WithOrganizations(organizations []string) *SetMetadataForAccountParams

WithOrganizations adds the organizations to the set metadata for account params

func (*SetMetadataForAccountParams) WithTimeout

WithTimeout adds the timeout to the set metadata for account params

func (*SetMetadataForAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetMetadataForAccountReader

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

SetMetadataForAccountReader is a Reader for the SetMetadataForAccount structure.

func (*SetMetadataForAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpsertMetadataForAccountDefault

type UpsertMetadataForAccountDefault struct {
	Payload *models.BFError
	// contains filtered or unexported fields
}

UpsertMetadataForAccountDefault handles this case with default header values.

error

func NewUpsertMetadataForAccountDefault

func NewUpsertMetadataForAccountDefault(code int) *UpsertMetadataForAccountDefault

NewUpsertMetadataForAccountDefault creates a UpsertMetadataForAccountDefault with default headers values

func (*UpsertMetadataForAccountDefault) Code

Code gets the status code for the upsert metadata for account default response

func (*UpsertMetadataForAccountDefault) Error

type UpsertMetadataForAccountOK

type UpsertMetadataForAccountOK struct {
	Payload models.DynamicMetadata
}

UpsertMetadataForAccountOK handles this case with default header values.

success

func NewUpsertMetadataForAccountOK

func NewUpsertMetadataForAccountOK() *UpsertMetadataForAccountOK

NewUpsertMetadataForAccountOK creates a UpsertMetadataForAccountOK with default headers values

func (*UpsertMetadataForAccountOK) Error

type UpsertMetadataForAccountParams

type UpsertMetadataForAccountParams struct {

	/*AccountID*/
	AccountID string
	/*Metadata*/
	Metadata models.DynamicMetadata
	/*Organizations
	  A list of organization-IDs used to restrict the scope of API calls.

	*/
	Organizations []string

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

UpsertMetadataForAccountParams contains all the parameters to send to the API endpoint for the upsert metadata for account operation typically these are written to a http.Request

func NewUpsertMetadataForAccountParams

func NewUpsertMetadataForAccountParams() *UpsertMetadataForAccountParams

NewUpsertMetadataForAccountParams creates a new UpsertMetadataForAccountParams object with the default values initialized.

func NewUpsertMetadataForAccountParamsWithContext

func NewUpsertMetadataForAccountParamsWithContext(ctx context.Context) *UpsertMetadataForAccountParams

NewUpsertMetadataForAccountParamsWithContext creates a new UpsertMetadataForAccountParams object with the default values initialized, and the ability to set a context for a request

func NewUpsertMetadataForAccountParamsWithHTTPClient

func NewUpsertMetadataForAccountParamsWithHTTPClient(client *http.Client) *UpsertMetadataForAccountParams

NewUpsertMetadataForAccountParamsWithHTTPClient creates a new UpsertMetadataForAccountParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpsertMetadataForAccountParamsWithTimeout

func NewUpsertMetadataForAccountParamsWithTimeout(timeout time.Duration) *UpsertMetadataForAccountParams

NewUpsertMetadataForAccountParamsWithTimeout creates a new UpsertMetadataForAccountParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpsertMetadataForAccountParams) SetAccountID

func (o *UpsertMetadataForAccountParams) SetAccountID(accountID string)

SetAccountID adds the accountId to the upsert metadata for account params

func (*UpsertMetadataForAccountParams) SetContext

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

SetContext adds the context to the upsert metadata for account params

func (*UpsertMetadataForAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the upsert metadata for account params

func (*UpsertMetadataForAccountParams) SetMetadata

func (o *UpsertMetadataForAccountParams) SetMetadata(metadata models.DynamicMetadata)

SetMetadata adds the metadata to the upsert metadata for account params

func (*UpsertMetadataForAccountParams) SetOrganizations

func (o *UpsertMetadataForAccountParams) SetOrganizations(organizations []string)

SetOrganizations adds the organizations to the upsert metadata for account params

func (*UpsertMetadataForAccountParams) SetTimeout

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

SetTimeout adds the timeout to the upsert metadata for account params

func (*UpsertMetadataForAccountParams) WithAccountID

WithAccountID adds the accountID to the upsert metadata for account params

func (*UpsertMetadataForAccountParams) WithContext

WithContext adds the context to the upsert metadata for account params

func (*UpsertMetadataForAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the upsert metadata for account params

func (*UpsertMetadataForAccountParams) WithMetadata

WithMetadata adds the metadata to the upsert metadata for account params

func (*UpsertMetadataForAccountParams) WithOrganizations

func (o *UpsertMetadataForAccountParams) WithOrganizations(organizations []string) *UpsertMetadataForAccountParams

WithOrganizations adds the organizations to the upsert metadata for account params

func (*UpsertMetadataForAccountParams) WithTimeout

WithTimeout adds the timeout to the upsert metadata for account params

func (*UpsertMetadataForAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpsertMetadataForAccountReader

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

UpsertMetadataForAccountReader is a Reader for the UpsertMetadataForAccount structure.

func (*UpsertMetadataForAccountReader) ReadResponse

func (o *UpsertMetadataForAccountReader) 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