Documentation ¶
Index ¶
- type Client
- func (a *Client) GetCurrentAccount(params *GetCurrentAccountParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetCurrentAccountOK, error)
- func (a *Client) PatchCurrentAccount(params *PatchCurrentAccountParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PatchCurrentAccountOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateCurrentAccount(params *UpdateCurrentAccountParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateCurrentAccountOK, error)
- type ClientOption
- type ClientService
- type GetCurrentAccountNotFound
- func (o *GetCurrentAccountNotFound) Code() int
- func (o *GetCurrentAccountNotFound) Error() string
- func (o *GetCurrentAccountNotFound) GetPayload() *models.BasicFailedReply
- func (o *GetCurrentAccountNotFound) IsClientError() bool
- func (o *GetCurrentAccountNotFound) IsCode(code int) bool
- func (o *GetCurrentAccountNotFound) IsRedirect() bool
- func (o *GetCurrentAccountNotFound) IsServerError() bool
- func (o *GetCurrentAccountNotFound) IsSuccess() bool
- func (o *GetCurrentAccountNotFound) String() string
- type GetCurrentAccountOK
- func (o *GetCurrentAccountOK) Code() int
- func (o *GetCurrentAccountOK) Error() string
- func (o *GetCurrentAccountOK) GetPayload() *models.AccountResponse
- func (o *GetCurrentAccountOK) IsClientError() bool
- func (o *GetCurrentAccountOK) IsCode(code int) bool
- func (o *GetCurrentAccountOK) IsRedirect() bool
- func (o *GetCurrentAccountOK) IsServerError() bool
- func (o *GetCurrentAccountOK) IsSuccess() bool
- func (o *GetCurrentAccountOK) String() string
- type GetCurrentAccountParams
- func NewGetCurrentAccountParams() *GetCurrentAccountParams
- func NewGetCurrentAccountParamsWithContext(ctx context.Context) *GetCurrentAccountParams
- func NewGetCurrentAccountParamsWithHTTPClient(client *http.Client) *GetCurrentAccountParams
- func NewGetCurrentAccountParamsWithTimeout(timeout time.Duration) *GetCurrentAccountParams
- func (o *GetCurrentAccountParams) SetContext(ctx context.Context)
- func (o *GetCurrentAccountParams) SetDefaults()
- func (o *GetCurrentAccountParams) SetHTTPClient(client *http.Client)
- func (o *GetCurrentAccountParams) SetTimeout(timeout time.Duration)
- func (o *GetCurrentAccountParams) WithContext(ctx context.Context) *GetCurrentAccountParams
- func (o *GetCurrentAccountParams) WithDefaults() *GetCurrentAccountParams
- func (o *GetCurrentAccountParams) WithHTTPClient(client *http.Client) *GetCurrentAccountParams
- func (o *GetCurrentAccountParams) WithTimeout(timeout time.Duration) *GetCurrentAccountParams
- func (o *GetCurrentAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCurrentAccountReader
- type PatchCurrentAccountNotFound
- func (o *PatchCurrentAccountNotFound) Code() int
- func (o *PatchCurrentAccountNotFound) Error() string
- func (o *PatchCurrentAccountNotFound) GetPayload() *models.BasicFailedReply
- func (o *PatchCurrentAccountNotFound) IsClientError() bool
- func (o *PatchCurrentAccountNotFound) IsCode(code int) bool
- func (o *PatchCurrentAccountNotFound) IsRedirect() bool
- func (o *PatchCurrentAccountNotFound) IsServerError() bool
- func (o *PatchCurrentAccountNotFound) IsSuccess() bool
- func (o *PatchCurrentAccountNotFound) String() string
- type PatchCurrentAccountOK
- func (o *PatchCurrentAccountOK) Code() int
- func (o *PatchCurrentAccountOK) Error() string
- func (o *PatchCurrentAccountOK) GetPayload() *models.AccountResponse
- func (o *PatchCurrentAccountOK) IsClientError() bool
- func (o *PatchCurrentAccountOK) IsCode(code int) bool
- func (o *PatchCurrentAccountOK) IsRedirect() bool
- func (o *PatchCurrentAccountOK) IsServerError() bool
- func (o *PatchCurrentAccountOK) IsSuccess() bool
- func (o *PatchCurrentAccountOK) String() string
- type PatchCurrentAccountParams
- func NewPatchCurrentAccountParams() *PatchCurrentAccountParams
- func NewPatchCurrentAccountParamsWithContext(ctx context.Context) *PatchCurrentAccountParams
- func NewPatchCurrentAccountParamsWithHTTPClient(client *http.Client) *PatchCurrentAccountParams
- func NewPatchCurrentAccountParamsWithTimeout(timeout time.Duration) *PatchCurrentAccountParams
- func (o *PatchCurrentAccountParams) SetBody(body string)
- func (o *PatchCurrentAccountParams) SetContext(ctx context.Context)
- func (o *PatchCurrentAccountParams) SetDefaults()
- func (o *PatchCurrentAccountParams) SetHTTPClient(client *http.Client)
- func (o *PatchCurrentAccountParams) SetTimeout(timeout time.Duration)
- func (o *PatchCurrentAccountParams) WithBody(body string) *PatchCurrentAccountParams
- func (o *PatchCurrentAccountParams) WithContext(ctx context.Context) *PatchCurrentAccountParams
- func (o *PatchCurrentAccountParams) WithDefaults() *PatchCurrentAccountParams
- func (o *PatchCurrentAccountParams) WithHTTPClient(client *http.Client) *PatchCurrentAccountParams
- func (o *PatchCurrentAccountParams) WithTimeout(timeout time.Duration) *PatchCurrentAccountParams
- func (o *PatchCurrentAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchCurrentAccountReader
- type UpdateCurrentAccountNotFound
- func (o *UpdateCurrentAccountNotFound) Code() int
- func (o *UpdateCurrentAccountNotFound) Error() string
- func (o *UpdateCurrentAccountNotFound) GetPayload() *models.BasicFailedReply
- func (o *UpdateCurrentAccountNotFound) IsClientError() bool
- func (o *UpdateCurrentAccountNotFound) IsCode(code int) bool
- func (o *UpdateCurrentAccountNotFound) IsRedirect() bool
- func (o *UpdateCurrentAccountNotFound) IsServerError() bool
- func (o *UpdateCurrentAccountNotFound) IsSuccess() bool
- func (o *UpdateCurrentAccountNotFound) String() string
- type UpdateCurrentAccountOK
- func (o *UpdateCurrentAccountOK) Code() int
- func (o *UpdateCurrentAccountOK) Error() string
- func (o *UpdateCurrentAccountOK) GetPayload() *models.AccountResponse
- func (o *UpdateCurrentAccountOK) IsClientError() bool
- func (o *UpdateCurrentAccountOK) IsCode(code int) bool
- func (o *UpdateCurrentAccountOK) IsRedirect() bool
- func (o *UpdateCurrentAccountOK) IsServerError() bool
- func (o *UpdateCurrentAccountOK) IsSuccess() bool
- func (o *UpdateCurrentAccountOK) String() string
- type UpdateCurrentAccountParams
- func NewUpdateCurrentAccountParams() *UpdateCurrentAccountParams
- func NewUpdateCurrentAccountParamsWithContext(ctx context.Context) *UpdateCurrentAccountParams
- func NewUpdateCurrentAccountParamsWithHTTPClient(client *http.Client) *UpdateCurrentAccountParams
- func NewUpdateCurrentAccountParamsWithTimeout(timeout time.Duration) *UpdateCurrentAccountParams
- func (o *UpdateCurrentAccountParams) SetBody(body *models.AccountUpdateRequest)
- func (o *UpdateCurrentAccountParams) SetContext(ctx context.Context)
- func (o *UpdateCurrentAccountParams) SetDefaults()
- func (o *UpdateCurrentAccountParams) SetHTTPClient(client *http.Client)
- func (o *UpdateCurrentAccountParams) SetTimeout(timeout time.Duration)
- func (o *UpdateCurrentAccountParams) WithBody(body *models.AccountUpdateRequest) *UpdateCurrentAccountParams
- func (o *UpdateCurrentAccountParams) WithContext(ctx context.Context) *UpdateCurrentAccountParams
- func (o *UpdateCurrentAccountParams) WithDefaults() *UpdateCurrentAccountParams
- func (o *UpdateCurrentAccountParams) WithHTTPClient(client *http.Client) *UpdateCurrentAccountParams
- func (o *UpdateCurrentAccountParams) WithTimeout(timeout time.Duration) *UpdateCurrentAccountParams
- func (o *UpdateCurrentAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateCurrentAccountReader
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 ¶ added in v1.13.0
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 (o *GetCurrentAccountNotFound) GetPayload() *models.BasicFailedReply
func (*GetCurrentAccountNotFound) IsClientError ¶ added in v1.13.0
func (o *GetCurrentAccountNotFound) IsClientError() bool
IsClientError returns true when this get current account not found response has a 4xx status code
func (*GetCurrentAccountNotFound) IsCode ¶ added in v1.13.0
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 ¶ added in v1.13.0
func (o *GetCurrentAccountNotFound) IsRedirect() bool
IsRedirect returns true when this get current account not found response has a 3xx status code
func (*GetCurrentAccountNotFound) IsServerError ¶ added in v1.13.0
func (o *GetCurrentAccountNotFound) IsServerError() bool
IsServerError returns true when this get current account not found response has a 5xx status code
func (*GetCurrentAccountNotFound) IsSuccess ¶ added in v1.13.0
func (o *GetCurrentAccountNotFound) IsSuccess() bool
IsSuccess returns true when this get current account not found response has a 2xx status code
func (*GetCurrentAccountNotFound) String ¶ added in v1.13.0
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 ¶ added in v1.13.0
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 ¶ added in v1.13.0
func (o *GetCurrentAccountOK) IsClientError() bool
IsClientError returns true when this get current account o k response has a 4xx status code
func (*GetCurrentAccountOK) IsCode ¶ added in v1.13.0
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 ¶ added in v1.13.0
func (o *GetCurrentAccountOK) IsRedirect() bool
IsRedirect returns true when this get current account o k response has a 3xx status code
func (*GetCurrentAccountOK) IsServerError ¶ added in v1.13.0
func (o *GetCurrentAccountOK) IsServerError() bool
IsServerError returns true when this get current account o k response has a 5xx status code
func (*GetCurrentAccountOK) IsSuccess ¶ added in v1.13.0
func (o *GetCurrentAccountOK) IsSuccess() bool
IsSuccess returns true when this get current account o k response has a 2xx status code
func (*GetCurrentAccountOK) String ¶ added in v1.13.0
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 ¶
func (o *GetCurrentAccountParams) WithContext(ctx context.Context) *GetCurrentAccountParams
WithContext adds the context to the get current account params
func (*GetCurrentAccountParams) WithDefaults ¶
func (o *GetCurrentAccountParams) WithDefaults() *GetCurrentAccountParams
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 ¶
func (o *GetCurrentAccountParams) WithTimeout(timeout time.Duration) *GetCurrentAccountParams
WithTimeout adds the timeout to the get current account params
func (*GetCurrentAccountParams) WriteToRequest ¶
func (o *GetCurrentAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶ added in v1.13.0
func (o *PatchCurrentAccountNotFound) Code() int
Code gets the status code for the patch current account not found response
func (*PatchCurrentAccountNotFound) Error ¶
func (o *PatchCurrentAccountNotFound) Error() string
func (*PatchCurrentAccountNotFound) GetPayload ¶
func (o *PatchCurrentAccountNotFound) GetPayload() *models.BasicFailedReply
func (*PatchCurrentAccountNotFound) IsClientError ¶ added in v1.13.0
func (o *PatchCurrentAccountNotFound) IsClientError() bool
IsClientError returns true when this patch current account not found response has a 4xx status code
func (*PatchCurrentAccountNotFound) IsCode ¶ added in v1.13.0
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 ¶ added in v1.13.0
func (o *PatchCurrentAccountNotFound) IsRedirect() bool
IsRedirect returns true when this patch current account not found response has a 3xx status code
func (*PatchCurrentAccountNotFound) IsServerError ¶ added in v1.13.0
func (o *PatchCurrentAccountNotFound) IsServerError() bool
IsServerError returns true when this patch current account not found response has a 5xx status code
func (*PatchCurrentAccountNotFound) IsSuccess ¶ added in v1.13.0
func (o *PatchCurrentAccountNotFound) IsSuccess() bool
IsSuccess returns true when this patch current account not found response has a 2xx status code
func (*PatchCurrentAccountNotFound) String ¶ added in v1.13.0
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 ¶ added in v1.13.0
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 ¶ added in v1.13.0
func (o *PatchCurrentAccountOK) IsClientError() bool
IsClientError returns true when this patch current account o k response has a 4xx status code
func (*PatchCurrentAccountOK) IsCode ¶ added in v1.13.0
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 ¶ added in v1.13.0
func (o *PatchCurrentAccountOK) IsRedirect() bool
IsRedirect returns true when this patch current account o k response has a 3xx status code
func (*PatchCurrentAccountOK) IsServerError ¶ added in v1.13.0
func (o *PatchCurrentAccountOK) IsServerError() bool
IsServerError returns true when this patch current account o k response has a 5xx status code
func (*PatchCurrentAccountOK) IsSuccess ¶ added in v1.13.0
func (o *PatchCurrentAccountOK) IsSuccess() bool
IsSuccess returns true when this patch current account o k response has a 2xx status code
func (*PatchCurrentAccountOK) String ¶ added in v1.13.0
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 ¶
func (o *PatchCurrentAccountParams) WithBody(body string) *PatchCurrentAccountParams
WithBody adds the body to the patch current account params
func (*PatchCurrentAccountParams) WithContext ¶
func (o *PatchCurrentAccountParams) WithContext(ctx context.Context) *PatchCurrentAccountParams
WithContext adds the context to the patch current account params
func (*PatchCurrentAccountParams) WithDefaults ¶
func (o *PatchCurrentAccountParams) WithDefaults() *PatchCurrentAccountParams
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 ¶
func (o *PatchCurrentAccountParams) WithTimeout(timeout time.Duration) *PatchCurrentAccountParams
WithTimeout adds the timeout to the patch current account params
func (*PatchCurrentAccountParams) WriteToRequest ¶
func (o *PatchCurrentAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶ added in v1.13.0
func (o *UpdateCurrentAccountNotFound) Code() int
Code gets the status code for the update current account not found response
func (*UpdateCurrentAccountNotFound) Error ¶
func (o *UpdateCurrentAccountNotFound) Error() string
func (*UpdateCurrentAccountNotFound) GetPayload ¶
func (o *UpdateCurrentAccountNotFound) GetPayload() *models.BasicFailedReply
func (*UpdateCurrentAccountNotFound) IsClientError ¶ added in v1.13.0
func (o *UpdateCurrentAccountNotFound) IsClientError() bool
IsClientError returns true when this update current account not found response has a 4xx status code
func (*UpdateCurrentAccountNotFound) IsCode ¶ added in v1.13.0
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 ¶ added in v1.13.0
func (o *UpdateCurrentAccountNotFound) IsRedirect() bool
IsRedirect returns true when this update current account not found response has a 3xx status code
func (*UpdateCurrentAccountNotFound) IsServerError ¶ added in v1.13.0
func (o *UpdateCurrentAccountNotFound) IsServerError() bool
IsServerError returns true when this update current account not found response has a 5xx status code
func (*UpdateCurrentAccountNotFound) IsSuccess ¶ added in v1.13.0
func (o *UpdateCurrentAccountNotFound) IsSuccess() bool
IsSuccess returns true when this update current account not found response has a 2xx status code
func (*UpdateCurrentAccountNotFound) String ¶ added in v1.13.0
func (o *UpdateCurrentAccountNotFound) String() 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 ¶ added in v1.13.0
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 (o *UpdateCurrentAccountOK) GetPayload() *models.AccountResponse
func (*UpdateCurrentAccountOK) IsClientError ¶ added in v1.13.0
func (o *UpdateCurrentAccountOK) IsClientError() bool
IsClientError returns true when this update current account o k response has a 4xx status code
func (*UpdateCurrentAccountOK) IsCode ¶ added in v1.13.0
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 ¶ added in v1.13.0
func (o *UpdateCurrentAccountOK) IsRedirect() bool
IsRedirect returns true when this update current account o k response has a 3xx status code
func (*UpdateCurrentAccountOK) IsServerError ¶ added in v1.13.0
func (o *UpdateCurrentAccountOK) IsServerError() bool
IsServerError returns true when this update current account o k response has a 5xx status code
func (*UpdateCurrentAccountOK) IsSuccess ¶ added in v1.13.0
func (o *UpdateCurrentAccountOK) IsSuccess() bool
IsSuccess returns true when this update current account o k response has a 2xx status code
func (*UpdateCurrentAccountOK) String ¶ added in v1.13.0
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 ¶
func (o *UpdateCurrentAccountParams) SetBody(body *models.AccountUpdateRequest)
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 ¶
func (o *UpdateCurrentAccountParams) WithBody(body *models.AccountUpdateRequest) *UpdateCurrentAccountParams
WithBody adds the body to the update current account params
func (*UpdateCurrentAccountParams) WithContext ¶
func (o *UpdateCurrentAccountParams) WithContext(ctx context.Context) *UpdateCurrentAccountParams
WithContext adds the context to the update current account params
func (*UpdateCurrentAccountParams) WithDefaults ¶
func (o *UpdateCurrentAccountParams) WithDefaults() *UpdateCurrentAccountParams
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 ¶
func (o *UpdateCurrentAccountParams) WithHTTPClient(client *http.Client) *UpdateCurrentAccountParams
WithHTTPClient adds the HTTPClient to the update current account params
func (*UpdateCurrentAccountParams) WithTimeout ¶
func (o *UpdateCurrentAccountParams) WithTimeout(timeout time.Duration) *UpdateCurrentAccountParams
WithTimeout adds the timeout to the update current account params
func (*UpdateCurrentAccountParams) WriteToRequest ¶
func (o *UpdateCurrentAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.