Documentation ¶
Index ¶
- type Client
- func (a *Client) GetV1Accounts(params *GetV1AccountsParams, opts ...ClientOption) (*GetV1AccountsOK, error)
- func (a *Client) GetV1AccountsID(params *GetV1AccountsIDParams, opts ...ClientOption) (*GetV1AccountsIDOK, error)
- func (a *Client) PutV1AccountsID(params *PutV1AccountsIDParams, opts ...ClientOption) (*PutV1AccountsIDOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetV1AccountsIDNotFound
- func (o *GetV1AccountsIDNotFound) Code() int
- func (o *GetV1AccountsIDNotFound) Error() string
- func (o *GetV1AccountsIDNotFound) GetPayload() string
- func (o *GetV1AccountsIDNotFound) IsClientError() bool
- func (o *GetV1AccountsIDNotFound) IsCode(code int) bool
- func (o *GetV1AccountsIDNotFound) IsRedirect() bool
- func (o *GetV1AccountsIDNotFound) IsServerError() bool
- func (o *GetV1AccountsIDNotFound) IsSuccess() bool
- func (o *GetV1AccountsIDNotFound) String() string
- type GetV1AccountsIDOK
- func (o *GetV1AccountsIDOK) Code() int
- func (o *GetV1AccountsIDOK) Error() string
- func (o *GetV1AccountsIDOK) GetPayload() *models.Account
- func (o *GetV1AccountsIDOK) IsClientError() bool
- func (o *GetV1AccountsIDOK) IsCode(code int) bool
- func (o *GetV1AccountsIDOK) IsRedirect() bool
- func (o *GetV1AccountsIDOK) IsServerError() bool
- func (o *GetV1AccountsIDOK) IsSuccess() bool
- func (o *GetV1AccountsIDOK) String() string
- type GetV1AccountsIDParams
- func NewGetV1AccountsIDParams() *GetV1AccountsIDParams
- func NewGetV1AccountsIDParamsWithContext(ctx context.Context) *GetV1AccountsIDParams
- func NewGetV1AccountsIDParamsWithHTTPClient(client *http.Client) *GetV1AccountsIDParams
- func NewGetV1AccountsIDParamsWithTimeout(timeout time.Duration) *GetV1AccountsIDParams
- func (o *GetV1AccountsIDParams) SetContext(ctx context.Context)
- func (o *GetV1AccountsIDParams) SetDefaults()
- func (o *GetV1AccountsIDParams) SetHTTPClient(client *http.Client)
- func (o *GetV1AccountsIDParams) SetID(id string)
- func (o *GetV1AccountsIDParams) SetTimeout(timeout time.Duration)
- func (o *GetV1AccountsIDParams) WithContext(ctx context.Context) *GetV1AccountsIDParams
- func (o *GetV1AccountsIDParams) WithDefaults() *GetV1AccountsIDParams
- func (o *GetV1AccountsIDParams) WithHTTPClient(client *http.Client) *GetV1AccountsIDParams
- func (o *GetV1AccountsIDParams) WithID(id string) *GetV1AccountsIDParams
- func (o *GetV1AccountsIDParams) WithTimeout(timeout time.Duration) *GetV1AccountsIDParams
- func (o *GetV1AccountsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1AccountsIDReader
- type GetV1AccountsOK
- func (o *GetV1AccountsOK) Code() int
- func (o *GetV1AccountsOK) Error() string
- func (o *GetV1AccountsOK) GetPayload() *GetV1AccountsOKBody
- func (o *GetV1AccountsOK) IsClientError() bool
- func (o *GetV1AccountsOK) IsCode(code int) bool
- func (o *GetV1AccountsOK) IsRedirect() bool
- func (o *GetV1AccountsOK) IsServerError() bool
- func (o *GetV1AccountsOK) IsSuccess() bool
- func (o *GetV1AccountsOK) String() string
- type GetV1AccountsOKBody
- func (o *GetV1AccountsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetV1AccountsOKBody) MarshalBinary() ([]byte, error)
- func (o GetV1AccountsOKBody) MarshalJSON() ([]byte, error)
- func (o *GetV1AccountsOKBody) UnmarshalBinary(b []byte) error
- func (o *GetV1AccountsOKBody) UnmarshalJSON(raw []byte) error
- func (o *GetV1AccountsOKBody) Validate(formats strfmt.Registry) error
- type GetV1AccountsParams
- func (o *GetV1AccountsParams) SetContext(ctx context.Context)
- func (o *GetV1AccountsParams) SetDefaults()
- func (o *GetV1AccountsParams) SetHTTPClient(client *http.Client)
- func (o *GetV1AccountsParams) SetLimit(limit *int64)
- func (o *GetV1AccountsParams) SetTimeout(timeout time.Duration)
- func (o *GetV1AccountsParams) SetToken(token *string)
- func (o *GetV1AccountsParams) WithContext(ctx context.Context) *GetV1AccountsParams
- func (o *GetV1AccountsParams) WithDefaults() *GetV1AccountsParams
- func (o *GetV1AccountsParams) WithHTTPClient(client *http.Client) *GetV1AccountsParams
- func (o *GetV1AccountsParams) WithLimit(limit *int64) *GetV1AccountsParams
- func (o *GetV1AccountsParams) WithTimeout(timeout time.Duration) *GetV1AccountsParams
- func (o *GetV1AccountsParams) WithToken(token *string) *GetV1AccountsParams
- func (o *GetV1AccountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1AccountsReader
- type PutV1AccountsIDBadRequest
- func (o *PutV1AccountsIDBadRequest) Code() int
- func (o *PutV1AccountsIDBadRequest) Error() string
- func (o *PutV1AccountsIDBadRequest) GetPayload() *models.ErrorResponse
- func (o *PutV1AccountsIDBadRequest) IsClientError() bool
- func (o *PutV1AccountsIDBadRequest) IsCode(code int) bool
- func (o *PutV1AccountsIDBadRequest) IsRedirect() bool
- func (o *PutV1AccountsIDBadRequest) IsServerError() bool
- func (o *PutV1AccountsIDBadRequest) IsSuccess() bool
- func (o *PutV1AccountsIDBadRequest) String() string
- type PutV1AccountsIDNotFound
- func (o *PutV1AccountsIDNotFound) Code() int
- func (o *PutV1AccountsIDNotFound) Error() string
- func (o *PutV1AccountsIDNotFound) GetPayload() string
- func (o *PutV1AccountsIDNotFound) IsClientError() bool
- func (o *PutV1AccountsIDNotFound) IsCode(code int) bool
- func (o *PutV1AccountsIDNotFound) IsRedirect() bool
- func (o *PutV1AccountsIDNotFound) IsServerError() bool
- func (o *PutV1AccountsIDNotFound) IsSuccess() bool
- func (o *PutV1AccountsIDNotFound) String() string
- type PutV1AccountsIDOK
- func (o *PutV1AccountsIDOK) Code() int
- func (o *PutV1AccountsIDOK) Error() string
- func (o *PutV1AccountsIDOK) GetPayload() *models.Account
- func (o *PutV1AccountsIDOK) IsClientError() bool
- func (o *PutV1AccountsIDOK) IsCode(code int) bool
- func (o *PutV1AccountsIDOK) IsRedirect() bool
- func (o *PutV1AccountsIDOK) IsServerError() bool
- func (o *PutV1AccountsIDOK) IsSuccess() bool
- func (o *PutV1AccountsIDOK) String() string
- type PutV1AccountsIDParams
- func NewPutV1AccountsIDParams() *PutV1AccountsIDParams
- func NewPutV1AccountsIDParamsWithContext(ctx context.Context) *PutV1AccountsIDParams
- func NewPutV1AccountsIDParamsWithHTTPClient(client *http.Client) *PutV1AccountsIDParams
- func NewPutV1AccountsIDParamsWithTimeout(timeout time.Duration) *PutV1AccountsIDParams
- func (o *PutV1AccountsIDParams) SetAccount(account *models.UpdateAccountRequest)
- func (o *PutV1AccountsIDParams) SetContext(ctx context.Context)
- func (o *PutV1AccountsIDParams) SetDefaults()
- func (o *PutV1AccountsIDParams) SetHTTPClient(client *http.Client)
- func (o *PutV1AccountsIDParams) SetID(id string)
- func (o *PutV1AccountsIDParams) SetTimeout(timeout time.Duration)
- func (o *PutV1AccountsIDParams) WithAccount(account *models.UpdateAccountRequest) *PutV1AccountsIDParams
- func (o *PutV1AccountsIDParams) WithContext(ctx context.Context) *PutV1AccountsIDParams
- func (o *PutV1AccountsIDParams) WithDefaults() *PutV1AccountsIDParams
- func (o *PutV1AccountsIDParams) WithHTTPClient(client *http.Client) *PutV1AccountsIDParams
- func (o *PutV1AccountsIDParams) WithID(id string) *PutV1AccountsIDParams
- func (o *PutV1AccountsIDParams) WithTimeout(timeout time.Duration) *PutV1AccountsIDParams
- func (o *PutV1AccountsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutV1AccountsIDReader
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) GetV1Accounts ¶
func (a *Client) GetV1Accounts(params *GetV1AccountsParams, opts ...ClientOption) (*GetV1AccountsOK, error)
GetV1Accounts queries accounts
Returns a list of accounts. For further details on Pagination, see section above.
func (*Client) GetV1AccountsID ¶
func (a *Client) GetV1AccountsID(params *GetV1AccountsIDParams, opts ...ClientOption) (*GetV1AccountsIDOK, error)
GetV1AccountsID reads account
Returns the identified account
func (*Client) PutV1AccountsID ¶
func (a *Client) PutV1AccountsID(params *PutV1AccountsIDParams, opts ...ClientOption) (*PutV1AccountsIDOK, error)
PutV1AccountsID modifies account
Returns the identified account
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetV1Accounts(params *GetV1AccountsParams, opts ...ClientOption) (*GetV1AccountsOK, error) GetV1AccountsID(params *GetV1AccountsIDParams, opts ...ClientOption) (*GetV1AccountsIDOK, error) PutV1AccountsID(params *PutV1AccountsIDParams, opts ...ClientOption) (*PutV1AccountsIDOK, 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 GetV1AccountsIDNotFound ¶
type GetV1AccountsIDNotFound struct {
Payload string
}
GetV1AccountsIDNotFound describes a response with status code 404, with default header values.
identified account doesn't exist
func NewGetV1AccountsIDNotFound ¶
func NewGetV1AccountsIDNotFound() *GetV1AccountsIDNotFound
NewGetV1AccountsIDNotFound creates a GetV1AccountsIDNotFound with default headers values
func (*GetV1AccountsIDNotFound) Code ¶
func (o *GetV1AccountsIDNotFound) Code() int
Code gets the status code for the get v1 accounts Id not found response
func (*GetV1AccountsIDNotFound) Error ¶
func (o *GetV1AccountsIDNotFound) Error() string
func (*GetV1AccountsIDNotFound) GetPayload ¶
func (o *GetV1AccountsIDNotFound) GetPayload() string
func (*GetV1AccountsIDNotFound) IsClientError ¶
func (o *GetV1AccountsIDNotFound) IsClientError() bool
IsClientError returns true when this get v1 accounts Id not found response has a 4xx status code
func (*GetV1AccountsIDNotFound) IsCode ¶
func (o *GetV1AccountsIDNotFound) IsCode(code int) bool
IsCode returns true when this get v1 accounts Id not found response a status code equal to that given
func (*GetV1AccountsIDNotFound) IsRedirect ¶
func (o *GetV1AccountsIDNotFound) IsRedirect() bool
IsRedirect returns true when this get v1 accounts Id not found response has a 3xx status code
func (*GetV1AccountsIDNotFound) IsServerError ¶
func (o *GetV1AccountsIDNotFound) IsServerError() bool
IsServerError returns true when this get v1 accounts Id not found response has a 5xx status code
func (*GetV1AccountsIDNotFound) IsSuccess ¶
func (o *GetV1AccountsIDNotFound) IsSuccess() bool
IsSuccess returns true when this get v1 accounts Id not found response has a 2xx status code
func (*GetV1AccountsIDNotFound) String ¶
func (o *GetV1AccountsIDNotFound) String() string
type GetV1AccountsIDOK ¶
GetV1AccountsIDOK describes a response with status code 200, with default header values.
desc
func NewGetV1AccountsIDOK ¶
func NewGetV1AccountsIDOK() *GetV1AccountsIDOK
NewGetV1AccountsIDOK creates a GetV1AccountsIDOK with default headers values
func (*GetV1AccountsIDOK) Code ¶
func (o *GetV1AccountsIDOK) Code() int
Code gets the status code for the get v1 accounts Id o k response
func (*GetV1AccountsIDOK) Error ¶
func (o *GetV1AccountsIDOK) Error() string
func (*GetV1AccountsIDOK) GetPayload ¶
func (o *GetV1AccountsIDOK) GetPayload() *models.Account
func (*GetV1AccountsIDOK) IsClientError ¶
func (o *GetV1AccountsIDOK) IsClientError() bool
IsClientError returns true when this get v1 accounts Id o k response has a 4xx status code
func (*GetV1AccountsIDOK) IsCode ¶
func (o *GetV1AccountsIDOK) IsCode(code int) bool
IsCode returns true when this get v1 accounts Id o k response a status code equal to that given
func (*GetV1AccountsIDOK) IsRedirect ¶
func (o *GetV1AccountsIDOK) IsRedirect() bool
IsRedirect returns true when this get v1 accounts Id o k response has a 3xx status code
func (*GetV1AccountsIDOK) IsServerError ¶
func (o *GetV1AccountsIDOK) IsServerError() bool
IsServerError returns true when this get v1 accounts Id o k response has a 5xx status code
func (*GetV1AccountsIDOK) IsSuccess ¶
func (o *GetV1AccountsIDOK) IsSuccess() bool
IsSuccess returns true when this get v1 accounts Id o k response has a 2xx status code
func (*GetV1AccountsIDOK) String ¶
func (o *GetV1AccountsIDOK) String() string
type GetV1AccountsIDParams ¶
type GetV1AccountsIDParams struct { /* ID. Account ID */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetV1AccountsIDParams contains all the parameters to send to the API endpoint
for the get v1 accounts ID operation. Typically these are written to a http.Request.
func NewGetV1AccountsIDParams ¶
func NewGetV1AccountsIDParams() *GetV1AccountsIDParams
NewGetV1AccountsIDParams creates a new GetV1AccountsIDParams 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 NewGetV1AccountsIDParamsWithContext ¶
func NewGetV1AccountsIDParamsWithContext(ctx context.Context) *GetV1AccountsIDParams
NewGetV1AccountsIDParamsWithContext creates a new GetV1AccountsIDParams object with the ability to set a context for a request.
func NewGetV1AccountsIDParamsWithHTTPClient ¶
func NewGetV1AccountsIDParamsWithHTTPClient(client *http.Client) *GetV1AccountsIDParams
NewGetV1AccountsIDParamsWithHTTPClient creates a new GetV1AccountsIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetV1AccountsIDParamsWithTimeout ¶
func NewGetV1AccountsIDParamsWithTimeout(timeout time.Duration) *GetV1AccountsIDParams
NewGetV1AccountsIDParamsWithTimeout creates a new GetV1AccountsIDParams object with the ability to set a timeout on a request.
func (*GetV1AccountsIDParams) SetContext ¶
func (o *GetV1AccountsIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 accounts ID params
func (*GetV1AccountsIDParams) SetDefaults ¶
func (o *GetV1AccountsIDParams) SetDefaults()
SetDefaults hydrates default values in the get v1 accounts ID params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1AccountsIDParams) SetHTTPClient ¶
func (o *GetV1AccountsIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 accounts ID params
func (*GetV1AccountsIDParams) SetID ¶
func (o *GetV1AccountsIDParams) SetID(id string)
SetID adds the id to the get v1 accounts ID params
func (*GetV1AccountsIDParams) SetTimeout ¶
func (o *GetV1AccountsIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 accounts ID params
func (*GetV1AccountsIDParams) WithContext ¶
func (o *GetV1AccountsIDParams) WithContext(ctx context.Context) *GetV1AccountsIDParams
WithContext adds the context to the get v1 accounts ID params
func (*GetV1AccountsIDParams) WithDefaults ¶
func (o *GetV1AccountsIDParams) WithDefaults() *GetV1AccountsIDParams
WithDefaults hydrates default values in the get v1 accounts ID params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1AccountsIDParams) WithHTTPClient ¶
func (o *GetV1AccountsIDParams) WithHTTPClient(client *http.Client) *GetV1AccountsIDParams
WithHTTPClient adds the HTTPClient to the get v1 accounts ID params
func (*GetV1AccountsIDParams) WithID ¶
func (o *GetV1AccountsIDParams) WithID(id string) *GetV1AccountsIDParams
WithID adds the id to the get v1 accounts ID params
func (*GetV1AccountsIDParams) WithTimeout ¶
func (o *GetV1AccountsIDParams) WithTimeout(timeout time.Duration) *GetV1AccountsIDParams
WithTimeout adds the timeout to the get v1 accounts ID params
func (*GetV1AccountsIDParams) WriteToRequest ¶
func (o *GetV1AccountsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1AccountsIDReader ¶
type GetV1AccountsIDReader struct {
// contains filtered or unexported fields
}
GetV1AccountsIDReader is a Reader for the GetV1AccountsID structure.
func (*GetV1AccountsIDReader) ReadResponse ¶
func (o *GetV1AccountsIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetV1AccountsOK ¶
type GetV1AccountsOK struct {
Payload *GetV1AccountsOKBody
}
GetV1AccountsOK describes a response with status code 200, with default header values.
QueryResponse with list of Accounts
func NewGetV1AccountsOK ¶
func NewGetV1AccountsOK() *GetV1AccountsOK
NewGetV1AccountsOK creates a GetV1AccountsOK with default headers values
func (*GetV1AccountsOK) Code ¶
func (o *GetV1AccountsOK) Code() int
Code gets the status code for the get v1 accounts o k response
func (*GetV1AccountsOK) Error ¶
func (o *GetV1AccountsOK) Error() string
func (*GetV1AccountsOK) GetPayload ¶
func (o *GetV1AccountsOK) GetPayload() *GetV1AccountsOKBody
func (*GetV1AccountsOK) IsClientError ¶
func (o *GetV1AccountsOK) IsClientError() bool
IsClientError returns true when this get v1 accounts o k response has a 4xx status code
func (*GetV1AccountsOK) IsCode ¶
func (o *GetV1AccountsOK) IsCode(code int) bool
IsCode returns true when this get v1 accounts o k response a status code equal to that given
func (*GetV1AccountsOK) IsRedirect ¶
func (o *GetV1AccountsOK) IsRedirect() bool
IsRedirect returns true when this get v1 accounts o k response has a 3xx status code
func (*GetV1AccountsOK) IsServerError ¶
func (o *GetV1AccountsOK) IsServerError() bool
IsServerError returns true when this get v1 accounts o k response has a 5xx status code
func (*GetV1AccountsOK) IsSuccess ¶
func (o *GetV1AccountsOK) IsSuccess() bool
IsSuccess returns true when this get v1 accounts o k response has a 2xx status code
func (*GetV1AccountsOK) String ¶
func (o *GetV1AccountsOK) String() string
type GetV1AccountsOKBody ¶
type GetV1AccountsOKBody struct { models.QueryResponse // items Items []*models.Account `json:"items"` }
GetV1AccountsOKBody get v1 accounts o k body swagger:model GetV1AccountsOKBody
func (*GetV1AccountsOKBody) ContextValidate ¶
ContextValidate validate this get v1 accounts o k body based on the context it is used
func (*GetV1AccountsOKBody) MarshalBinary ¶
func (o *GetV1AccountsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (GetV1AccountsOKBody) MarshalJSON ¶
func (o GetV1AccountsOKBody) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*GetV1AccountsOKBody) UnmarshalBinary ¶
func (o *GetV1AccountsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*GetV1AccountsOKBody) UnmarshalJSON ¶
func (o *GetV1AccountsOKBody) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type GetV1AccountsParams ¶
type GetV1AccountsParams struct { /* Limit. Limit resulting response list. Value must be between 1 and 500 (higher values will be coerced down to 500). Defaults to 100. */ Limit *int64 /* Token. If response comes back and `nextToken` is populated, use that value in this `token` query to continue pagination. */ Token *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetV1AccountsParams contains all the parameters to send to the API endpoint
for the get v1 accounts operation. Typically these are written to a http.Request.
func NewGetV1AccountsParams ¶
func NewGetV1AccountsParams() *GetV1AccountsParams
NewGetV1AccountsParams creates a new GetV1AccountsParams 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 NewGetV1AccountsParamsWithContext ¶
func NewGetV1AccountsParamsWithContext(ctx context.Context) *GetV1AccountsParams
NewGetV1AccountsParamsWithContext creates a new GetV1AccountsParams object with the ability to set a context for a request.
func NewGetV1AccountsParamsWithHTTPClient ¶
func NewGetV1AccountsParamsWithHTTPClient(client *http.Client) *GetV1AccountsParams
NewGetV1AccountsParamsWithHTTPClient creates a new GetV1AccountsParams object with the ability to set a custom HTTPClient for a request.
func NewGetV1AccountsParamsWithTimeout ¶
func NewGetV1AccountsParamsWithTimeout(timeout time.Duration) *GetV1AccountsParams
NewGetV1AccountsParamsWithTimeout creates a new GetV1AccountsParams object with the ability to set a timeout on a request.
func (*GetV1AccountsParams) SetContext ¶
func (o *GetV1AccountsParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 accounts params
func (*GetV1AccountsParams) SetDefaults ¶
func (o *GetV1AccountsParams) SetDefaults()
SetDefaults hydrates default values in the get v1 accounts params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1AccountsParams) SetHTTPClient ¶
func (o *GetV1AccountsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 accounts params
func (*GetV1AccountsParams) SetLimit ¶
func (o *GetV1AccountsParams) SetLimit(limit *int64)
SetLimit adds the limit to the get v1 accounts params
func (*GetV1AccountsParams) SetTimeout ¶
func (o *GetV1AccountsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 accounts params
func (*GetV1AccountsParams) SetToken ¶
func (o *GetV1AccountsParams) SetToken(token *string)
SetToken adds the token to the get v1 accounts params
func (*GetV1AccountsParams) WithContext ¶
func (o *GetV1AccountsParams) WithContext(ctx context.Context) *GetV1AccountsParams
WithContext adds the context to the get v1 accounts params
func (*GetV1AccountsParams) WithDefaults ¶
func (o *GetV1AccountsParams) WithDefaults() *GetV1AccountsParams
WithDefaults hydrates default values in the get v1 accounts params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1AccountsParams) WithHTTPClient ¶
func (o *GetV1AccountsParams) WithHTTPClient(client *http.Client) *GetV1AccountsParams
WithHTTPClient adds the HTTPClient to the get v1 accounts params
func (*GetV1AccountsParams) WithLimit ¶
func (o *GetV1AccountsParams) WithLimit(limit *int64) *GetV1AccountsParams
WithLimit adds the limit to the get v1 accounts params
func (*GetV1AccountsParams) WithTimeout ¶
func (o *GetV1AccountsParams) WithTimeout(timeout time.Duration) *GetV1AccountsParams
WithTimeout adds the timeout to the get v1 accounts params
func (*GetV1AccountsParams) WithToken ¶
func (o *GetV1AccountsParams) WithToken(token *string) *GetV1AccountsParams
WithToken adds the token to the get v1 accounts params
func (*GetV1AccountsParams) WriteToRequest ¶
func (o *GetV1AccountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1AccountsReader ¶
type GetV1AccountsReader struct {
// contains filtered or unexported fields
}
GetV1AccountsReader is a Reader for the GetV1Accounts structure.
func (*GetV1AccountsReader) ReadResponse ¶
func (o *GetV1AccountsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PutV1AccountsIDBadRequest ¶ added in v1.3.0
type PutV1AccountsIDBadRequest struct {
Payload *models.ErrorResponse
}
PutV1AccountsIDBadRequest describes a response with status code 400, with default header values.
Bad request
func NewPutV1AccountsIDBadRequest ¶ added in v1.3.0
func NewPutV1AccountsIDBadRequest() *PutV1AccountsIDBadRequest
NewPutV1AccountsIDBadRequest creates a PutV1AccountsIDBadRequest with default headers values
func (*PutV1AccountsIDBadRequest) Code ¶ added in v1.3.0
func (o *PutV1AccountsIDBadRequest) Code() int
Code gets the status code for the put v1 accounts Id bad request response
func (*PutV1AccountsIDBadRequest) Error ¶ added in v1.3.0
func (o *PutV1AccountsIDBadRequest) Error() string
func (*PutV1AccountsIDBadRequest) GetPayload ¶ added in v1.3.0
func (o *PutV1AccountsIDBadRequest) GetPayload() *models.ErrorResponse
func (*PutV1AccountsIDBadRequest) IsClientError ¶ added in v1.3.0
func (o *PutV1AccountsIDBadRequest) IsClientError() bool
IsClientError returns true when this put v1 accounts Id bad request response has a 4xx status code
func (*PutV1AccountsIDBadRequest) IsCode ¶ added in v1.3.0
func (o *PutV1AccountsIDBadRequest) IsCode(code int) bool
IsCode returns true when this put v1 accounts Id bad request response a status code equal to that given
func (*PutV1AccountsIDBadRequest) IsRedirect ¶ added in v1.3.0
func (o *PutV1AccountsIDBadRequest) IsRedirect() bool
IsRedirect returns true when this put v1 accounts Id bad request response has a 3xx status code
func (*PutV1AccountsIDBadRequest) IsServerError ¶ added in v1.3.0
func (o *PutV1AccountsIDBadRequest) IsServerError() bool
IsServerError returns true when this put v1 accounts Id bad request response has a 5xx status code
func (*PutV1AccountsIDBadRequest) IsSuccess ¶ added in v1.3.0
func (o *PutV1AccountsIDBadRequest) IsSuccess() bool
IsSuccess returns true when this put v1 accounts Id bad request response has a 2xx status code
func (*PutV1AccountsIDBadRequest) String ¶ added in v1.3.0
func (o *PutV1AccountsIDBadRequest) String() string
type PutV1AccountsIDNotFound ¶
type PutV1AccountsIDNotFound struct {
Payload string
}
PutV1AccountsIDNotFound describes a response with status code 404, with default header values.
The identified Account doesn't exist.
func NewPutV1AccountsIDNotFound ¶
func NewPutV1AccountsIDNotFound() *PutV1AccountsIDNotFound
NewPutV1AccountsIDNotFound creates a PutV1AccountsIDNotFound with default headers values
func (*PutV1AccountsIDNotFound) Code ¶
func (o *PutV1AccountsIDNotFound) Code() int
Code gets the status code for the put v1 accounts Id not found response
func (*PutV1AccountsIDNotFound) Error ¶
func (o *PutV1AccountsIDNotFound) Error() string
func (*PutV1AccountsIDNotFound) GetPayload ¶
func (o *PutV1AccountsIDNotFound) GetPayload() string
func (*PutV1AccountsIDNotFound) IsClientError ¶
func (o *PutV1AccountsIDNotFound) IsClientError() bool
IsClientError returns true when this put v1 accounts Id not found response has a 4xx status code
func (*PutV1AccountsIDNotFound) IsCode ¶
func (o *PutV1AccountsIDNotFound) IsCode(code int) bool
IsCode returns true when this put v1 accounts Id not found response a status code equal to that given
func (*PutV1AccountsIDNotFound) IsRedirect ¶
func (o *PutV1AccountsIDNotFound) IsRedirect() bool
IsRedirect returns true when this put v1 accounts Id not found response has a 3xx status code
func (*PutV1AccountsIDNotFound) IsServerError ¶
func (o *PutV1AccountsIDNotFound) IsServerError() bool
IsServerError returns true when this put v1 accounts Id not found response has a 5xx status code
func (*PutV1AccountsIDNotFound) IsSuccess ¶
func (o *PutV1AccountsIDNotFound) IsSuccess() bool
IsSuccess returns true when this put v1 accounts Id not found response has a 2xx status code
func (*PutV1AccountsIDNotFound) String ¶
func (o *PutV1AccountsIDNotFound) String() string
type PutV1AccountsIDOK ¶
PutV1AccountsIDOK describes a response with status code 200, with default header values.
The identified Account.
func NewPutV1AccountsIDOK ¶
func NewPutV1AccountsIDOK() *PutV1AccountsIDOK
NewPutV1AccountsIDOK creates a PutV1AccountsIDOK with default headers values
func (*PutV1AccountsIDOK) Code ¶
func (o *PutV1AccountsIDOK) Code() int
Code gets the status code for the put v1 accounts Id o k response
func (*PutV1AccountsIDOK) Error ¶
func (o *PutV1AccountsIDOK) Error() string
func (*PutV1AccountsIDOK) GetPayload ¶
func (o *PutV1AccountsIDOK) GetPayload() *models.Account
func (*PutV1AccountsIDOK) IsClientError ¶
func (o *PutV1AccountsIDOK) IsClientError() bool
IsClientError returns true when this put v1 accounts Id o k response has a 4xx status code
func (*PutV1AccountsIDOK) IsCode ¶
func (o *PutV1AccountsIDOK) IsCode(code int) bool
IsCode returns true when this put v1 accounts Id o k response a status code equal to that given
func (*PutV1AccountsIDOK) IsRedirect ¶
func (o *PutV1AccountsIDOK) IsRedirect() bool
IsRedirect returns true when this put v1 accounts Id o k response has a 3xx status code
func (*PutV1AccountsIDOK) IsServerError ¶
func (o *PutV1AccountsIDOK) IsServerError() bool
IsServerError returns true when this put v1 accounts Id o k response has a 5xx status code
func (*PutV1AccountsIDOK) IsSuccess ¶
func (o *PutV1AccountsIDOK) IsSuccess() bool
IsSuccess returns true when this put v1 accounts Id o k response has a 2xx status code
func (*PutV1AccountsIDOK) String ¶
func (o *PutV1AccountsIDOK) String() string
type PutV1AccountsIDParams ¶
type PutV1AccountsIDParams struct { /* Account. Account */ Account *models.UpdateAccountRequest /* ID. Account ID */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PutV1AccountsIDParams contains all the parameters to send to the API endpoint
for the put v1 accounts ID operation. Typically these are written to a http.Request.
func NewPutV1AccountsIDParams ¶
func NewPutV1AccountsIDParams() *PutV1AccountsIDParams
NewPutV1AccountsIDParams creates a new PutV1AccountsIDParams 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 NewPutV1AccountsIDParamsWithContext ¶
func NewPutV1AccountsIDParamsWithContext(ctx context.Context) *PutV1AccountsIDParams
NewPutV1AccountsIDParamsWithContext creates a new PutV1AccountsIDParams object with the ability to set a context for a request.
func NewPutV1AccountsIDParamsWithHTTPClient ¶
func NewPutV1AccountsIDParamsWithHTTPClient(client *http.Client) *PutV1AccountsIDParams
NewPutV1AccountsIDParamsWithHTTPClient creates a new PutV1AccountsIDParams object with the ability to set a custom HTTPClient for a request.
func NewPutV1AccountsIDParamsWithTimeout ¶
func NewPutV1AccountsIDParamsWithTimeout(timeout time.Duration) *PutV1AccountsIDParams
NewPutV1AccountsIDParamsWithTimeout creates a new PutV1AccountsIDParams object with the ability to set a timeout on a request.
func (*PutV1AccountsIDParams) SetAccount ¶
func (o *PutV1AccountsIDParams) SetAccount(account *models.UpdateAccountRequest)
SetAccount adds the account to the put v1 accounts ID params
func (*PutV1AccountsIDParams) SetContext ¶
func (o *PutV1AccountsIDParams) SetContext(ctx context.Context)
SetContext adds the context to the put v1 accounts ID params
func (*PutV1AccountsIDParams) SetDefaults ¶
func (o *PutV1AccountsIDParams) SetDefaults()
SetDefaults hydrates default values in the put v1 accounts ID params (not the query body).
All values with no default are reset to their zero value.
func (*PutV1AccountsIDParams) SetHTTPClient ¶
func (o *PutV1AccountsIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the put v1 accounts ID params
func (*PutV1AccountsIDParams) SetID ¶
func (o *PutV1AccountsIDParams) SetID(id string)
SetID adds the id to the put v1 accounts ID params
func (*PutV1AccountsIDParams) SetTimeout ¶
func (o *PutV1AccountsIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the put v1 accounts ID params
func (*PutV1AccountsIDParams) WithAccount ¶
func (o *PutV1AccountsIDParams) WithAccount(account *models.UpdateAccountRequest) *PutV1AccountsIDParams
WithAccount adds the account to the put v1 accounts ID params
func (*PutV1AccountsIDParams) WithContext ¶
func (o *PutV1AccountsIDParams) WithContext(ctx context.Context) *PutV1AccountsIDParams
WithContext adds the context to the put v1 accounts ID params
func (*PutV1AccountsIDParams) WithDefaults ¶
func (o *PutV1AccountsIDParams) WithDefaults() *PutV1AccountsIDParams
WithDefaults hydrates default values in the put v1 accounts ID params (not the query body).
All values with no default are reset to their zero value.
func (*PutV1AccountsIDParams) WithHTTPClient ¶
func (o *PutV1AccountsIDParams) WithHTTPClient(client *http.Client) *PutV1AccountsIDParams
WithHTTPClient adds the HTTPClient to the put v1 accounts ID params
func (*PutV1AccountsIDParams) WithID ¶
func (o *PutV1AccountsIDParams) WithID(id string) *PutV1AccountsIDParams
WithID adds the id to the put v1 accounts ID params
func (*PutV1AccountsIDParams) WithTimeout ¶
func (o *PutV1AccountsIDParams) WithTimeout(timeout time.Duration) *PutV1AccountsIDParams
WithTimeout adds the timeout to the put v1 accounts ID params
func (*PutV1AccountsIDParams) WriteToRequest ¶
func (o *PutV1AccountsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PutV1AccountsIDReader ¶
type PutV1AccountsIDReader struct {
// contains filtered or unexported fields
}
PutV1AccountsIDReader is a Reader for the PutV1AccountsID structure.
func (*PutV1AccountsIDReader) ReadResponse ¶
func (o *PutV1AccountsIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.