accounts

package
v1.2.30 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 10 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 (*Client) GetCurrentAccount

func (a *Client) GetCurrentAccount(params *GetCurrentAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCurrentAccountOK, error)

GetCurrentAccount fetches current account information

Fetch current account information.

func (*Client) PatchCurrentAccount

func (a *Client) PatchCurrentAccount(params *PatchCurrentAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchCurrentAccountOK, error)

PatchCurrentAccount updates the current account

Updates the current account.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateCurrentAccount

func (a *Client) UpdateCurrentAccount(params *UpdateCurrentAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCurrentAccountOK, error)

UpdateCurrentAccount updates the current account

Updates the current account.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetCurrentAccount(params *GetCurrentAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCurrentAccountOK, error)

	PatchCurrentAccount(params *PatchCurrentAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchCurrentAccountOK, error)

	UpdateCurrentAccount(params *UpdateCurrentAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCurrentAccountOK, 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 accounts API client.

type GetCurrentAccountNotFound

type GetCurrentAccountNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCurrentAccountNotFound describes a response with status code 404, with default header values.

Account not found. (code: `accounts.not_found`)

func NewGetCurrentAccountNotFound

func NewGetCurrentAccountNotFound() *GetCurrentAccountNotFound

NewGetCurrentAccountNotFound creates a GetCurrentAccountNotFound with default headers values

func (*GetCurrentAccountNotFound) Code

func (o *GetCurrentAccountNotFound) Code() int

Code gets the status code for the get current account not found response

func (*GetCurrentAccountNotFound) Error

func (o *GetCurrentAccountNotFound) Error() string

func (*GetCurrentAccountNotFound) GetPayload

func (*GetCurrentAccountNotFound) IsClientError

func (o *GetCurrentAccountNotFound) IsClientError() bool

IsClientError returns true when this get current account not found response has a 4xx status code

func (*GetCurrentAccountNotFound) IsCode

func (o *GetCurrentAccountNotFound) IsCode(code int) bool

IsCode returns true when this get current account not found response a status code equal to that given

func (*GetCurrentAccountNotFound) IsRedirect

func (o *GetCurrentAccountNotFound) IsRedirect() bool

IsRedirect returns true when this get current account not found response has a 3xx status code

func (*GetCurrentAccountNotFound) IsServerError

func (o *GetCurrentAccountNotFound) IsServerError() bool

IsServerError returns true when this get current account not found response has a 5xx status code

func (*GetCurrentAccountNotFound) IsSuccess

func (o *GetCurrentAccountNotFound) IsSuccess() bool

IsSuccess returns true when this get current account not found response has a 2xx status code

func (*GetCurrentAccountNotFound) String

func (o *GetCurrentAccountNotFound) String() string

type GetCurrentAccountOK

type GetCurrentAccountOK struct {
	Payload *models.AccountResponse
}

GetCurrentAccountOK describes a response with status code 200, with default header values.

Account fetched successfully

func NewGetCurrentAccountOK

func NewGetCurrentAccountOK() *GetCurrentAccountOK

NewGetCurrentAccountOK creates a GetCurrentAccountOK with default headers values

func (*GetCurrentAccountOK) Code

func (o *GetCurrentAccountOK) Code() int

Code gets the status code for the get current account o k response

func (*GetCurrentAccountOK) Error

func (o *GetCurrentAccountOK) Error() string

func (*GetCurrentAccountOK) GetPayload

func (o *GetCurrentAccountOK) GetPayload() *models.AccountResponse

func (*GetCurrentAccountOK) IsClientError

func (o *GetCurrentAccountOK) IsClientError() bool

IsClientError returns true when this get current account o k response has a 4xx status code

func (*GetCurrentAccountOK) IsCode

func (o *GetCurrentAccountOK) IsCode(code int) bool

IsCode returns true when this get current account o k response a status code equal to that given

func (*GetCurrentAccountOK) IsRedirect

func (o *GetCurrentAccountOK) IsRedirect() bool

IsRedirect returns true when this get current account o k response has a 3xx status code

func (*GetCurrentAccountOK) IsServerError

func (o *GetCurrentAccountOK) IsServerError() bool

IsServerError returns true when this get current account o k response has a 5xx status code

func (*GetCurrentAccountOK) IsSuccess

func (o *GetCurrentAccountOK) IsSuccess() bool

IsSuccess returns true when this get current account o k response has a 2xx status code

func (*GetCurrentAccountOK) String

func (o *GetCurrentAccountOK) String() string

type GetCurrentAccountParams

type GetCurrentAccountParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetCurrentAccountParams contains all the parameters to send to the API endpoint

for the get current account operation.

Typically these are written to a http.Request.

func NewGetCurrentAccountParams

func NewGetCurrentAccountParams() *GetCurrentAccountParams

NewGetCurrentAccountParams creates a new GetCurrentAccountParams 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 NewGetCurrentAccountParamsWithContext

func NewGetCurrentAccountParamsWithContext(ctx context.Context) *GetCurrentAccountParams

NewGetCurrentAccountParamsWithContext creates a new GetCurrentAccountParams object with the ability to set a context for a request.

func NewGetCurrentAccountParamsWithHTTPClient

func NewGetCurrentAccountParamsWithHTTPClient(client *http.Client) *GetCurrentAccountParams

NewGetCurrentAccountParamsWithHTTPClient creates a new GetCurrentAccountParams object with the ability to set a custom HTTPClient for a request.

func NewGetCurrentAccountParamsWithTimeout

func NewGetCurrentAccountParamsWithTimeout(timeout time.Duration) *GetCurrentAccountParams

NewGetCurrentAccountParamsWithTimeout creates a new GetCurrentAccountParams object with the ability to set a timeout on a request.

func (*GetCurrentAccountParams) SetContext

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

SetContext adds the context to the get current account params

func (*GetCurrentAccountParams) SetDefaults

func (o *GetCurrentAccountParams) SetDefaults()

SetDefaults hydrates default values in the get current account params (not the query body).

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

func (*GetCurrentAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get current account params

func (*GetCurrentAccountParams) SetTimeout

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

SetTimeout adds the timeout to the get current account params

func (*GetCurrentAccountParams) WithContext

WithContext adds the context to the get current account params

func (*GetCurrentAccountParams) WithDefaults

WithDefaults hydrates default values in the get current account params (not the query body).

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

func (*GetCurrentAccountParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get current account params

func (*GetCurrentAccountParams) WithTimeout

WithTimeout adds the timeout to the get current account params

func (*GetCurrentAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCurrentAccountReader

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

GetCurrentAccountReader is a Reader for the GetCurrentAccount structure.

func (*GetCurrentAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchCurrentAccountNotFound

type PatchCurrentAccountNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

PatchCurrentAccountNotFound describes a response with status code 404, with default header values.

Account not found. (code: `accounts.not_found`)

func NewPatchCurrentAccountNotFound

func NewPatchCurrentAccountNotFound() *PatchCurrentAccountNotFound

NewPatchCurrentAccountNotFound creates a PatchCurrentAccountNotFound with default headers values

func (*PatchCurrentAccountNotFound) Code

func (o *PatchCurrentAccountNotFound) Code() int

Code gets the status code for the patch current account not found response

func (*PatchCurrentAccountNotFound) Error

func (*PatchCurrentAccountNotFound) GetPayload

func (*PatchCurrentAccountNotFound) IsClientError

func (o *PatchCurrentAccountNotFound) IsClientError() bool

IsClientError returns true when this patch current account not found response has a 4xx status code

func (*PatchCurrentAccountNotFound) IsCode

func (o *PatchCurrentAccountNotFound) IsCode(code int) bool

IsCode returns true when this patch current account not found response a status code equal to that given

func (*PatchCurrentAccountNotFound) IsRedirect

func (o *PatchCurrentAccountNotFound) IsRedirect() bool

IsRedirect returns true when this patch current account not found response has a 3xx status code

func (*PatchCurrentAccountNotFound) IsServerError

func (o *PatchCurrentAccountNotFound) IsServerError() bool

IsServerError returns true when this patch current account not found response has a 5xx status code

func (*PatchCurrentAccountNotFound) IsSuccess

func (o *PatchCurrentAccountNotFound) IsSuccess() bool

IsSuccess returns true when this patch current account not found response has a 2xx status code

func (*PatchCurrentAccountNotFound) String

func (o *PatchCurrentAccountNotFound) String() string

type PatchCurrentAccountOK

type PatchCurrentAccountOK struct {
	Payload *models.AccountResponse
}

PatchCurrentAccountOK describes a response with status code 200, with default header values.

Account updated successfully

func NewPatchCurrentAccountOK

func NewPatchCurrentAccountOK() *PatchCurrentAccountOK

NewPatchCurrentAccountOK creates a PatchCurrentAccountOK with default headers values

func (*PatchCurrentAccountOK) Code

func (o *PatchCurrentAccountOK) Code() int

Code gets the status code for the patch current account o k response

func (*PatchCurrentAccountOK) Error

func (o *PatchCurrentAccountOK) Error() string

func (*PatchCurrentAccountOK) GetPayload

func (o *PatchCurrentAccountOK) GetPayload() *models.AccountResponse

func (*PatchCurrentAccountOK) IsClientError

func (o *PatchCurrentAccountOK) IsClientError() bool

IsClientError returns true when this patch current account o k response has a 4xx status code

func (*PatchCurrentAccountOK) IsCode

func (o *PatchCurrentAccountOK) IsCode(code int) bool

IsCode returns true when this patch current account o k response a status code equal to that given

func (*PatchCurrentAccountOK) IsRedirect

func (o *PatchCurrentAccountOK) IsRedirect() bool

IsRedirect returns true when this patch current account o k response has a 3xx status code

func (*PatchCurrentAccountOK) IsServerError

func (o *PatchCurrentAccountOK) IsServerError() bool

IsServerError returns true when this patch current account o k response has a 5xx status code

func (*PatchCurrentAccountOK) IsSuccess

func (o *PatchCurrentAccountOK) IsSuccess() bool

IsSuccess returns true when this patch current account o k response has a 2xx status code

func (*PatchCurrentAccountOK) String

func (o *PatchCurrentAccountOK) String() string

type PatchCurrentAccountParams

type PatchCurrentAccountParams struct {

	/* Body.

	   All changes in the specified object are applied to the current account according to the JSON Merge Patch processing rules. Omitting existing fields causes the same values to be reapplied. Specifying a `null` value reverts the field to the default value, or removes the field when no default value exists.
	*/
	Body string

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

PatchCurrentAccountParams contains all the parameters to send to the API endpoint

for the patch current account operation.

Typically these are written to a http.Request.

func NewPatchCurrentAccountParams

func NewPatchCurrentAccountParams() *PatchCurrentAccountParams

NewPatchCurrentAccountParams creates a new PatchCurrentAccountParams 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 NewPatchCurrentAccountParamsWithContext

func NewPatchCurrentAccountParamsWithContext(ctx context.Context) *PatchCurrentAccountParams

NewPatchCurrentAccountParamsWithContext creates a new PatchCurrentAccountParams object with the ability to set a context for a request.

func NewPatchCurrentAccountParamsWithHTTPClient

func NewPatchCurrentAccountParamsWithHTTPClient(client *http.Client) *PatchCurrentAccountParams

NewPatchCurrentAccountParamsWithHTTPClient creates a new PatchCurrentAccountParams object with the ability to set a custom HTTPClient for a request.

func NewPatchCurrentAccountParamsWithTimeout

func NewPatchCurrentAccountParamsWithTimeout(timeout time.Duration) *PatchCurrentAccountParams

NewPatchCurrentAccountParamsWithTimeout creates a new PatchCurrentAccountParams object with the ability to set a timeout on a request.

func (*PatchCurrentAccountParams) SetBody

func (o *PatchCurrentAccountParams) SetBody(body string)

SetBody adds the body to the patch current account params

func (*PatchCurrentAccountParams) SetContext

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

SetContext adds the context to the patch current account params

func (*PatchCurrentAccountParams) SetDefaults

func (o *PatchCurrentAccountParams) SetDefaults()

SetDefaults hydrates default values in the patch current account params (not the query body).

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

func (*PatchCurrentAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch current account params

func (*PatchCurrentAccountParams) SetTimeout

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

SetTimeout adds the timeout to the patch current account params

func (*PatchCurrentAccountParams) WithBody

WithBody adds the body to the patch current account params

func (*PatchCurrentAccountParams) WithContext

WithContext adds the context to the patch current account params

func (*PatchCurrentAccountParams) WithDefaults

WithDefaults hydrates default values in the patch current account params (not the query body).

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

func (*PatchCurrentAccountParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the patch current account params

func (*PatchCurrentAccountParams) WithTimeout

WithTimeout adds the timeout to the patch current account params

func (*PatchCurrentAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchCurrentAccountReader

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

PatchCurrentAccountReader is a Reader for the PatchCurrentAccount structure.

func (*PatchCurrentAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateCurrentAccountNotFound

type UpdateCurrentAccountNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

UpdateCurrentAccountNotFound describes a response with status code 404, with default header values.

Account not found. (code: `accounts.not_found`)

func NewUpdateCurrentAccountNotFound

func NewUpdateCurrentAccountNotFound() *UpdateCurrentAccountNotFound

NewUpdateCurrentAccountNotFound creates a UpdateCurrentAccountNotFound with default headers values

func (*UpdateCurrentAccountNotFound) Code

Code gets the status code for the update current account not found response

func (*UpdateCurrentAccountNotFound) Error

func (*UpdateCurrentAccountNotFound) GetPayload

func (*UpdateCurrentAccountNotFound) IsClientError

func (o *UpdateCurrentAccountNotFound) IsClientError() bool

IsClientError returns true when this update current account not found response has a 4xx status code

func (*UpdateCurrentAccountNotFound) IsCode

func (o *UpdateCurrentAccountNotFound) IsCode(code int) bool

IsCode returns true when this update current account not found response a status code equal to that given

func (*UpdateCurrentAccountNotFound) IsRedirect

func (o *UpdateCurrentAccountNotFound) IsRedirect() bool

IsRedirect returns true when this update current account not found response has a 3xx status code

func (*UpdateCurrentAccountNotFound) IsServerError

func (o *UpdateCurrentAccountNotFound) IsServerError() bool

IsServerError returns true when this update current account not found response has a 5xx status code

func (*UpdateCurrentAccountNotFound) IsSuccess

func (o *UpdateCurrentAccountNotFound) IsSuccess() bool

IsSuccess returns true when this update current account not found response has a 2xx status code

func (*UpdateCurrentAccountNotFound) String

type UpdateCurrentAccountOK

type UpdateCurrentAccountOK struct {
	Payload *models.AccountResponse
}

UpdateCurrentAccountOK describes a response with status code 200, with default header values.

Account updated successfully

func NewUpdateCurrentAccountOK

func NewUpdateCurrentAccountOK() *UpdateCurrentAccountOK

NewUpdateCurrentAccountOK creates a UpdateCurrentAccountOK with default headers values

func (*UpdateCurrentAccountOK) Code

func (o *UpdateCurrentAccountOK) Code() int

Code gets the status code for the update current account o k response

func (*UpdateCurrentAccountOK) Error

func (o *UpdateCurrentAccountOK) Error() string

func (*UpdateCurrentAccountOK) GetPayload

func (*UpdateCurrentAccountOK) IsClientError

func (o *UpdateCurrentAccountOK) IsClientError() bool

IsClientError returns true when this update current account o k response has a 4xx status code

func (*UpdateCurrentAccountOK) IsCode

func (o *UpdateCurrentAccountOK) IsCode(code int) bool

IsCode returns true when this update current account o k response a status code equal to that given

func (*UpdateCurrentAccountOK) IsRedirect

func (o *UpdateCurrentAccountOK) IsRedirect() bool

IsRedirect returns true when this update current account o k response has a 3xx status code

func (*UpdateCurrentAccountOK) IsServerError

func (o *UpdateCurrentAccountOK) IsServerError() bool

IsServerError returns true when this update current account o k response has a 5xx status code

func (*UpdateCurrentAccountOK) IsSuccess

func (o *UpdateCurrentAccountOK) IsSuccess() bool

IsSuccess returns true when this update current account o k response has a 2xx status code

func (*UpdateCurrentAccountOK) String

func (o *UpdateCurrentAccountOK) String() string

type UpdateCurrentAccountParams

type UpdateCurrentAccountParams struct {

	/* Body.

	   the current account
	*/
	Body *models.AccountUpdateRequest

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

UpdateCurrentAccountParams contains all the parameters to send to the API endpoint

for the update current account operation.

Typically these are written to a http.Request.

func NewUpdateCurrentAccountParams

func NewUpdateCurrentAccountParams() *UpdateCurrentAccountParams

NewUpdateCurrentAccountParams creates a new UpdateCurrentAccountParams 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 NewUpdateCurrentAccountParamsWithContext

func NewUpdateCurrentAccountParamsWithContext(ctx context.Context) *UpdateCurrentAccountParams

NewUpdateCurrentAccountParamsWithContext creates a new UpdateCurrentAccountParams object with the ability to set a context for a request.

func NewUpdateCurrentAccountParamsWithHTTPClient

func NewUpdateCurrentAccountParamsWithHTTPClient(client *http.Client) *UpdateCurrentAccountParams

NewUpdateCurrentAccountParamsWithHTTPClient creates a new UpdateCurrentAccountParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateCurrentAccountParamsWithTimeout

func NewUpdateCurrentAccountParamsWithTimeout(timeout time.Duration) *UpdateCurrentAccountParams

NewUpdateCurrentAccountParamsWithTimeout creates a new UpdateCurrentAccountParams object with the ability to set a timeout on a request.

func (*UpdateCurrentAccountParams) SetBody

SetBody adds the body to the update current account params

func (*UpdateCurrentAccountParams) SetContext

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

SetContext adds the context to the update current account params

func (*UpdateCurrentAccountParams) SetDefaults

func (o *UpdateCurrentAccountParams) SetDefaults()

SetDefaults hydrates default values in the update current account params (not the query body).

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

func (*UpdateCurrentAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update current account params

func (*UpdateCurrentAccountParams) SetTimeout

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

SetTimeout adds the timeout to the update current account params

func (*UpdateCurrentAccountParams) WithBody

WithBody adds the body to the update current account params

func (*UpdateCurrentAccountParams) WithContext

WithContext adds the context to the update current account params

func (*UpdateCurrentAccountParams) WithDefaults

WithDefaults hydrates default values in the update current account params (not the query body).

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

func (*UpdateCurrentAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update current account params

func (*UpdateCurrentAccountParams) WithTimeout

WithTimeout adds the timeout to the update current account params

func (*UpdateCurrentAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateCurrentAccountReader

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

UpdateCurrentAccountReader is a Reader for the UpdateCurrentAccount structure.

func (*UpdateCurrentAccountReader) ReadResponse

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