Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateSize(params *CreateSizeParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateSizeCreated, error)
- func (a *Client) DeleteSize(params *DeleteSizeParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteSizeOK, error)
- func (a *Client) FindSize(params *FindSizeParams, authInfo runtime.ClientAuthInfoWriter, ...) (*FindSizeOK, error)
- func (a *Client) FromHardware(params *FromHardwareParams, authInfo runtime.ClientAuthInfoWriter, ...) (*FromHardwareOK, error)
- func (a *Client) ListSizes(params *ListSizesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListSizesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateSize(params *UpdateSizeParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateSizeOK, error)
- type ClientOption
- type ClientService
- type CreateSizeConflict
- type CreateSizeCreated
- type CreateSizeDefault
- type CreateSizeParams
- func (o *CreateSizeParams) SetBody(body *models.V1SizeCreateRequest)
- func (o *CreateSizeParams) SetContext(ctx context.Context)
- func (o *CreateSizeParams) SetDefaults()
- func (o *CreateSizeParams) SetHTTPClient(client *http.Client)
- func (o *CreateSizeParams) SetTimeout(timeout time.Duration)
- func (o *CreateSizeParams) WithBody(body *models.V1SizeCreateRequest) *CreateSizeParams
- func (o *CreateSizeParams) WithContext(ctx context.Context) *CreateSizeParams
- func (o *CreateSizeParams) WithDefaults() *CreateSizeParams
- func (o *CreateSizeParams) WithHTTPClient(client *http.Client) *CreateSizeParams
- func (o *CreateSizeParams) WithTimeout(timeout time.Duration) *CreateSizeParams
- func (o *CreateSizeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSizeReader
- type DeleteSizeDefault
- type DeleteSizeOK
- type DeleteSizeParams
- func (o *DeleteSizeParams) SetContext(ctx context.Context)
- func (o *DeleteSizeParams) SetDefaults()
- func (o *DeleteSizeParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSizeParams) SetID(id string)
- func (o *DeleteSizeParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSizeParams) WithContext(ctx context.Context) *DeleteSizeParams
- func (o *DeleteSizeParams) WithDefaults() *DeleteSizeParams
- func (o *DeleteSizeParams) WithHTTPClient(client *http.Client) *DeleteSizeParams
- func (o *DeleteSizeParams) WithID(id string) *DeleteSizeParams
- func (o *DeleteSizeParams) WithTimeout(timeout time.Duration) *DeleteSizeParams
- func (o *DeleteSizeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSizeReader
- type FindSizeDefault
- type FindSizeOK
- type FindSizeParams
- func (o *FindSizeParams) SetContext(ctx context.Context)
- func (o *FindSizeParams) SetDefaults()
- func (o *FindSizeParams) SetHTTPClient(client *http.Client)
- func (o *FindSizeParams) SetID(id string)
- func (o *FindSizeParams) SetTimeout(timeout time.Duration)
- func (o *FindSizeParams) WithContext(ctx context.Context) *FindSizeParams
- func (o *FindSizeParams) WithDefaults() *FindSizeParams
- func (o *FindSizeParams) WithHTTPClient(client *http.Client) *FindSizeParams
- func (o *FindSizeParams) WithID(id string) *FindSizeParams
- func (o *FindSizeParams) WithTimeout(timeout time.Duration) *FindSizeParams
- func (o *FindSizeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FindSizeReader
- type FromHardwareDefault
- type FromHardwareOK
- type FromHardwareParams
- func (o *FromHardwareParams) SetBody(body *models.V1MachineHardware)
- func (o *FromHardwareParams) SetContext(ctx context.Context)
- func (o *FromHardwareParams) SetDefaults()
- func (o *FromHardwareParams) SetHTTPClient(client *http.Client)
- func (o *FromHardwareParams) SetTimeout(timeout time.Duration)
- func (o *FromHardwareParams) WithBody(body *models.V1MachineHardware) *FromHardwareParams
- func (o *FromHardwareParams) WithContext(ctx context.Context) *FromHardwareParams
- func (o *FromHardwareParams) WithDefaults() *FromHardwareParams
- func (o *FromHardwareParams) WithHTTPClient(client *http.Client) *FromHardwareParams
- func (o *FromHardwareParams) WithTimeout(timeout time.Duration) *FromHardwareParams
- func (o *FromHardwareParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FromHardwareReader
- type ListSizesDefault
- type ListSizesOK
- type ListSizesParams
- func (o *ListSizesParams) SetContext(ctx context.Context)
- func (o *ListSizesParams) SetDefaults()
- func (o *ListSizesParams) SetHTTPClient(client *http.Client)
- func (o *ListSizesParams) SetTimeout(timeout time.Duration)
- func (o *ListSizesParams) WithContext(ctx context.Context) *ListSizesParams
- func (o *ListSizesParams) WithDefaults() *ListSizesParams
- func (o *ListSizesParams) WithHTTPClient(client *http.Client) *ListSizesParams
- func (o *ListSizesParams) WithTimeout(timeout time.Duration) *ListSizesParams
- func (o *ListSizesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListSizesReader
- type UpdateSizeConflict
- type UpdateSizeDefault
- type UpdateSizeOK
- type UpdateSizeParams
- func (o *UpdateSizeParams) SetBody(body *models.V1SizeUpdateRequest)
- func (o *UpdateSizeParams) SetContext(ctx context.Context)
- func (o *UpdateSizeParams) SetDefaults()
- func (o *UpdateSizeParams) SetHTTPClient(client *http.Client)
- func (o *UpdateSizeParams) SetTimeout(timeout time.Duration)
- func (o *UpdateSizeParams) WithBody(body *models.V1SizeUpdateRequest) *UpdateSizeParams
- func (o *UpdateSizeParams) WithContext(ctx context.Context) *UpdateSizeParams
- func (o *UpdateSizeParams) WithDefaults() *UpdateSizeParams
- func (o *UpdateSizeParams) WithHTTPClient(client *http.Client) *UpdateSizeParams
- func (o *UpdateSizeParams) WithTimeout(timeout time.Duration) *UpdateSizeParams
- func (o *UpdateSizeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateSizeReader
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 size API
func (*Client) CreateSize ¶
func (a *Client) CreateSize(params *CreateSizeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSizeCreated, error)
CreateSize creates a size if the given ID already exists a conflict is returned
func (*Client) DeleteSize ¶
func (a *Client) DeleteSize(params *DeleteSizeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSizeOK, error)
DeleteSize deletes an size and returns the deleted entity
func (*Client) FindSize ¶
func (a *Client) FindSize(params *FindSizeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindSizeOK, error)
FindSize gets size by id
func (*Client) FromHardware ¶
func (a *Client) FromHardware(params *FromHardwareParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FromHardwareOK, error)
FromHardware searches all sizes for one to match the given hardwarespecs if nothing is found a list of entries is returned which describe the constraint which did not match
func (*Client) ListSizes ¶
func (a *Client) ListSizes(params *ListSizesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSizesOK, error)
ListSizes gets all sizes
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateSize ¶
func (a *Client) UpdateSize(params *UpdateSizeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateSizeOK, error)
UpdateSize updates a size if the size was changed since this one was read a conflict is returned
type ClientOption ¶ added in v0.13.1
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶ added in v0.11.0
type ClientService interface { CreateSize(params *CreateSizeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSizeCreated, error) DeleteSize(params *DeleteSizeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSizeOK, error) FindSize(params *FindSizeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindSizeOK, error) FromHardware(params *FromHardwareParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FromHardwareOK, error) ListSizes(params *ListSizesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSizesOK, error) UpdateSize(params *UpdateSizeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateSizeOK, 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 size API client.
type CreateSizeConflict ¶
type CreateSizeConflict struct {
Payload *httperrors.HTTPErrorResponse
}
CreateSizeConflict describes a response with status code 409, with default header values.
Conflict
func NewCreateSizeConflict ¶
func NewCreateSizeConflict() *CreateSizeConflict
NewCreateSizeConflict creates a CreateSizeConflict with default headers values
func (*CreateSizeConflict) Error ¶
func (o *CreateSizeConflict) Error() string
func (*CreateSizeConflict) GetPayload ¶ added in v0.11.0
func (o *CreateSizeConflict) GetPayload() *httperrors.HTTPErrorResponse
type CreateSizeCreated ¶
type CreateSizeCreated struct {
Payload *models.V1SizeResponse
}
CreateSizeCreated describes a response with status code 201, with default header values.
Created
func NewCreateSizeCreated ¶
func NewCreateSizeCreated() *CreateSizeCreated
NewCreateSizeCreated creates a CreateSizeCreated with default headers values
func (*CreateSizeCreated) Error ¶
func (o *CreateSizeCreated) Error() string
func (*CreateSizeCreated) GetPayload ¶ added in v0.11.0
func (o *CreateSizeCreated) GetPayload() *models.V1SizeResponse
type CreateSizeDefault ¶
type CreateSizeDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
CreateSizeDefault describes a response with status code -1, with default header values.
Error
func NewCreateSizeDefault ¶
func NewCreateSizeDefault(code int) *CreateSizeDefault
NewCreateSizeDefault creates a CreateSizeDefault with default headers values
func (*CreateSizeDefault) Code ¶
func (o *CreateSizeDefault) Code() int
Code gets the status code for the create size default response
func (*CreateSizeDefault) Error ¶
func (o *CreateSizeDefault) Error() string
func (*CreateSizeDefault) GetPayload ¶ added in v0.11.0
func (o *CreateSizeDefault) GetPayload() *httperrors.HTTPErrorResponse
type CreateSizeParams ¶
type CreateSizeParams struct { // Body. Body *models.V1SizeCreateRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateSizeParams contains all the parameters to send to the API endpoint
for the create size operation. Typically these are written to a http.Request.
func NewCreateSizeParams ¶
func NewCreateSizeParams() *CreateSizeParams
NewCreateSizeParams creates a new CreateSizeParams 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 NewCreateSizeParamsWithContext ¶
func NewCreateSizeParamsWithContext(ctx context.Context) *CreateSizeParams
NewCreateSizeParamsWithContext creates a new CreateSizeParams object with the ability to set a context for a request.
func NewCreateSizeParamsWithHTTPClient ¶
func NewCreateSizeParamsWithHTTPClient(client *http.Client) *CreateSizeParams
NewCreateSizeParamsWithHTTPClient creates a new CreateSizeParams object with the ability to set a custom HTTPClient for a request.
func NewCreateSizeParamsWithTimeout ¶
func NewCreateSizeParamsWithTimeout(timeout time.Duration) *CreateSizeParams
NewCreateSizeParamsWithTimeout creates a new CreateSizeParams object with the ability to set a timeout on a request.
func (*CreateSizeParams) SetBody ¶
func (o *CreateSizeParams) SetBody(body *models.V1SizeCreateRequest)
SetBody adds the body to the create size params
func (*CreateSizeParams) SetContext ¶
func (o *CreateSizeParams) SetContext(ctx context.Context)
SetContext adds the context to the create size params
func (*CreateSizeParams) SetDefaults ¶ added in v0.12.1
func (o *CreateSizeParams) SetDefaults()
SetDefaults hydrates default values in the create size params (not the query body).
All values with no default are reset to their zero value.
func (*CreateSizeParams) SetHTTPClient ¶
func (o *CreateSizeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create size params
func (*CreateSizeParams) SetTimeout ¶
func (o *CreateSizeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create size params
func (*CreateSizeParams) WithBody ¶
func (o *CreateSizeParams) WithBody(body *models.V1SizeCreateRequest) *CreateSizeParams
WithBody adds the body to the create size params
func (*CreateSizeParams) WithContext ¶
func (o *CreateSizeParams) WithContext(ctx context.Context) *CreateSizeParams
WithContext adds the context to the create size params
func (*CreateSizeParams) WithDefaults ¶ added in v0.12.1
func (o *CreateSizeParams) WithDefaults() *CreateSizeParams
WithDefaults hydrates default values in the create size params (not the query body).
All values with no default are reset to their zero value.
func (*CreateSizeParams) WithHTTPClient ¶
func (o *CreateSizeParams) WithHTTPClient(client *http.Client) *CreateSizeParams
WithHTTPClient adds the HTTPClient to the create size params
func (*CreateSizeParams) WithTimeout ¶
func (o *CreateSizeParams) WithTimeout(timeout time.Duration) *CreateSizeParams
WithTimeout adds the timeout to the create size params
func (*CreateSizeParams) WriteToRequest ¶
func (o *CreateSizeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateSizeReader ¶
type CreateSizeReader struct {
// contains filtered or unexported fields
}
CreateSizeReader is a Reader for the CreateSize structure.
func (*CreateSizeReader) ReadResponse ¶
func (o *CreateSizeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteSizeDefault ¶
type DeleteSizeDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
DeleteSizeDefault describes a response with status code -1, with default header values.
Error
func NewDeleteSizeDefault ¶
func NewDeleteSizeDefault(code int) *DeleteSizeDefault
NewDeleteSizeDefault creates a DeleteSizeDefault with default headers values
func (*DeleteSizeDefault) Code ¶
func (o *DeleteSizeDefault) Code() int
Code gets the status code for the delete size default response
func (*DeleteSizeDefault) Error ¶
func (o *DeleteSizeDefault) Error() string
func (*DeleteSizeDefault) GetPayload ¶ added in v0.11.0
func (o *DeleteSizeDefault) GetPayload() *httperrors.HTTPErrorResponse
type DeleteSizeOK ¶
type DeleteSizeOK struct {
Payload *models.V1SizeResponse
}
DeleteSizeOK describes a response with status code 200, with default header values.
OK
func NewDeleteSizeOK ¶
func NewDeleteSizeOK() *DeleteSizeOK
NewDeleteSizeOK creates a DeleteSizeOK with default headers values
func (*DeleteSizeOK) Error ¶
func (o *DeleteSizeOK) Error() string
func (*DeleteSizeOK) GetPayload ¶ added in v0.11.0
func (o *DeleteSizeOK) GetPayload() *models.V1SizeResponse
type DeleteSizeParams ¶
type DeleteSizeParams struct { /* ID. identifier of the size */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteSizeParams contains all the parameters to send to the API endpoint
for the delete size operation. Typically these are written to a http.Request.
func NewDeleteSizeParams ¶
func NewDeleteSizeParams() *DeleteSizeParams
NewDeleteSizeParams creates a new DeleteSizeParams 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 NewDeleteSizeParamsWithContext ¶
func NewDeleteSizeParamsWithContext(ctx context.Context) *DeleteSizeParams
NewDeleteSizeParamsWithContext creates a new DeleteSizeParams object with the ability to set a context for a request.
func NewDeleteSizeParamsWithHTTPClient ¶
func NewDeleteSizeParamsWithHTTPClient(client *http.Client) *DeleteSizeParams
NewDeleteSizeParamsWithHTTPClient creates a new DeleteSizeParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteSizeParamsWithTimeout ¶
func NewDeleteSizeParamsWithTimeout(timeout time.Duration) *DeleteSizeParams
NewDeleteSizeParamsWithTimeout creates a new DeleteSizeParams object with the ability to set a timeout on a request.
func (*DeleteSizeParams) SetContext ¶
func (o *DeleteSizeParams) SetContext(ctx context.Context)
SetContext adds the context to the delete size params
func (*DeleteSizeParams) SetDefaults ¶ added in v0.12.1
func (o *DeleteSizeParams) SetDefaults()
SetDefaults hydrates default values in the delete size params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteSizeParams) SetHTTPClient ¶
func (o *DeleteSizeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete size params
func (*DeleteSizeParams) SetID ¶
func (o *DeleteSizeParams) SetID(id string)
SetID adds the id to the delete size params
func (*DeleteSizeParams) SetTimeout ¶
func (o *DeleteSizeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete size params
func (*DeleteSizeParams) WithContext ¶
func (o *DeleteSizeParams) WithContext(ctx context.Context) *DeleteSizeParams
WithContext adds the context to the delete size params
func (*DeleteSizeParams) WithDefaults ¶ added in v0.12.1
func (o *DeleteSizeParams) WithDefaults() *DeleteSizeParams
WithDefaults hydrates default values in the delete size params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteSizeParams) WithHTTPClient ¶
func (o *DeleteSizeParams) WithHTTPClient(client *http.Client) *DeleteSizeParams
WithHTTPClient adds the HTTPClient to the delete size params
func (*DeleteSizeParams) WithID ¶
func (o *DeleteSizeParams) WithID(id string) *DeleteSizeParams
WithID adds the id to the delete size params
func (*DeleteSizeParams) WithTimeout ¶
func (o *DeleteSizeParams) WithTimeout(timeout time.Duration) *DeleteSizeParams
WithTimeout adds the timeout to the delete size params
func (*DeleteSizeParams) WriteToRequest ¶
func (o *DeleteSizeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteSizeReader ¶
type DeleteSizeReader struct {
// contains filtered or unexported fields
}
DeleteSizeReader is a Reader for the DeleteSize structure.
func (*DeleteSizeReader) ReadResponse ¶
func (o *DeleteSizeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type FindSizeDefault ¶
type FindSizeDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
FindSizeDefault describes a response with status code -1, with default header values.
Error
func NewFindSizeDefault ¶
func NewFindSizeDefault(code int) *FindSizeDefault
NewFindSizeDefault creates a FindSizeDefault with default headers values
func (*FindSizeDefault) Code ¶
func (o *FindSizeDefault) Code() int
Code gets the status code for the find size default response
func (*FindSizeDefault) Error ¶
func (o *FindSizeDefault) Error() string
func (*FindSizeDefault) GetPayload ¶ added in v0.11.0
func (o *FindSizeDefault) GetPayload() *httperrors.HTTPErrorResponse
type FindSizeOK ¶
type FindSizeOK struct {
Payload *models.V1SizeResponse
}
FindSizeOK describes a response with status code 200, with default header values.
OK
func NewFindSizeOK ¶
func NewFindSizeOK() *FindSizeOK
NewFindSizeOK creates a FindSizeOK with default headers values
func (*FindSizeOK) Error ¶
func (o *FindSizeOK) Error() string
func (*FindSizeOK) GetPayload ¶ added in v0.11.0
func (o *FindSizeOK) GetPayload() *models.V1SizeResponse
type FindSizeParams ¶
type FindSizeParams struct { /* ID. identifier of the size */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
FindSizeParams contains all the parameters to send to the API endpoint
for the find size operation. Typically these are written to a http.Request.
func NewFindSizeParams ¶
func NewFindSizeParams() *FindSizeParams
NewFindSizeParams creates a new FindSizeParams 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 NewFindSizeParamsWithContext ¶
func NewFindSizeParamsWithContext(ctx context.Context) *FindSizeParams
NewFindSizeParamsWithContext creates a new FindSizeParams object with the ability to set a context for a request.
func NewFindSizeParamsWithHTTPClient ¶
func NewFindSizeParamsWithHTTPClient(client *http.Client) *FindSizeParams
NewFindSizeParamsWithHTTPClient creates a new FindSizeParams object with the ability to set a custom HTTPClient for a request.
func NewFindSizeParamsWithTimeout ¶
func NewFindSizeParamsWithTimeout(timeout time.Duration) *FindSizeParams
NewFindSizeParamsWithTimeout creates a new FindSizeParams object with the ability to set a timeout on a request.
func (*FindSizeParams) SetContext ¶
func (o *FindSizeParams) SetContext(ctx context.Context)
SetContext adds the context to the find size params
func (*FindSizeParams) SetDefaults ¶ added in v0.12.1
func (o *FindSizeParams) SetDefaults()
SetDefaults hydrates default values in the find size params (not the query body).
All values with no default are reset to their zero value.
func (*FindSizeParams) SetHTTPClient ¶
func (o *FindSizeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the find size params
func (*FindSizeParams) SetID ¶
func (o *FindSizeParams) SetID(id string)
SetID adds the id to the find size params
func (*FindSizeParams) SetTimeout ¶
func (o *FindSizeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the find size params
func (*FindSizeParams) WithContext ¶
func (o *FindSizeParams) WithContext(ctx context.Context) *FindSizeParams
WithContext adds the context to the find size params
func (*FindSizeParams) WithDefaults ¶ added in v0.12.1
func (o *FindSizeParams) WithDefaults() *FindSizeParams
WithDefaults hydrates default values in the find size params (not the query body).
All values with no default are reset to their zero value.
func (*FindSizeParams) WithHTTPClient ¶
func (o *FindSizeParams) WithHTTPClient(client *http.Client) *FindSizeParams
WithHTTPClient adds the HTTPClient to the find size params
func (*FindSizeParams) WithID ¶
func (o *FindSizeParams) WithID(id string) *FindSizeParams
WithID adds the id to the find size params
func (*FindSizeParams) WithTimeout ¶
func (o *FindSizeParams) WithTimeout(timeout time.Duration) *FindSizeParams
WithTimeout adds the timeout to the find size params
func (*FindSizeParams) WriteToRequest ¶
func (o *FindSizeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FindSizeReader ¶
type FindSizeReader struct {
// contains filtered or unexported fields
}
FindSizeReader is a Reader for the FindSize structure.
func (*FindSizeReader) ReadResponse ¶
func (o *FindSizeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type FromHardwareDefault ¶
type FromHardwareDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
FromHardwareDefault describes a response with status code -1, with default header values.
Error
func NewFromHardwareDefault ¶
func NewFromHardwareDefault(code int) *FromHardwareDefault
NewFromHardwareDefault creates a FromHardwareDefault with default headers values
func (*FromHardwareDefault) Code ¶
func (o *FromHardwareDefault) Code() int
Code gets the status code for the from hardware default response
func (*FromHardwareDefault) Error ¶
func (o *FromHardwareDefault) Error() string
func (*FromHardwareDefault) GetPayload ¶ added in v0.11.0
func (o *FromHardwareDefault) GetPayload() *httperrors.HTTPErrorResponse
type FromHardwareOK ¶
type FromHardwareOK struct {
Payload *models.V1SizeMatchingLog
}
FromHardwareOK describes a response with status code 200, with default header values.
OK
func NewFromHardwareOK ¶
func NewFromHardwareOK() *FromHardwareOK
NewFromHardwareOK creates a FromHardwareOK with default headers values
func (*FromHardwareOK) Error ¶
func (o *FromHardwareOK) Error() string
func (*FromHardwareOK) GetPayload ¶ added in v0.11.0
func (o *FromHardwareOK) GetPayload() *models.V1SizeMatchingLog
type FromHardwareParams ¶
type FromHardwareParams struct { // Body. Body *models.V1MachineHardware Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
FromHardwareParams contains all the parameters to send to the API endpoint
for the from hardware operation. Typically these are written to a http.Request.
func NewFromHardwareParams ¶
func NewFromHardwareParams() *FromHardwareParams
NewFromHardwareParams creates a new FromHardwareParams 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 NewFromHardwareParamsWithContext ¶
func NewFromHardwareParamsWithContext(ctx context.Context) *FromHardwareParams
NewFromHardwareParamsWithContext creates a new FromHardwareParams object with the ability to set a context for a request.
func NewFromHardwareParamsWithHTTPClient ¶
func NewFromHardwareParamsWithHTTPClient(client *http.Client) *FromHardwareParams
NewFromHardwareParamsWithHTTPClient creates a new FromHardwareParams object with the ability to set a custom HTTPClient for a request.
func NewFromHardwareParamsWithTimeout ¶
func NewFromHardwareParamsWithTimeout(timeout time.Duration) *FromHardwareParams
NewFromHardwareParamsWithTimeout creates a new FromHardwareParams object with the ability to set a timeout on a request.
func (*FromHardwareParams) SetBody ¶
func (o *FromHardwareParams) SetBody(body *models.V1MachineHardware)
SetBody adds the body to the from hardware params
func (*FromHardwareParams) SetContext ¶
func (o *FromHardwareParams) SetContext(ctx context.Context)
SetContext adds the context to the from hardware params
func (*FromHardwareParams) SetDefaults ¶ added in v0.12.1
func (o *FromHardwareParams) SetDefaults()
SetDefaults hydrates default values in the from hardware params (not the query body).
All values with no default are reset to their zero value.
func (*FromHardwareParams) SetHTTPClient ¶
func (o *FromHardwareParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the from hardware params
func (*FromHardwareParams) SetTimeout ¶
func (o *FromHardwareParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the from hardware params
func (*FromHardwareParams) WithBody ¶
func (o *FromHardwareParams) WithBody(body *models.V1MachineHardware) *FromHardwareParams
WithBody adds the body to the from hardware params
func (*FromHardwareParams) WithContext ¶
func (o *FromHardwareParams) WithContext(ctx context.Context) *FromHardwareParams
WithContext adds the context to the from hardware params
func (*FromHardwareParams) WithDefaults ¶ added in v0.12.1
func (o *FromHardwareParams) WithDefaults() *FromHardwareParams
WithDefaults hydrates default values in the from hardware params (not the query body).
All values with no default are reset to their zero value.
func (*FromHardwareParams) WithHTTPClient ¶
func (o *FromHardwareParams) WithHTTPClient(client *http.Client) *FromHardwareParams
WithHTTPClient adds the HTTPClient to the from hardware params
func (*FromHardwareParams) WithTimeout ¶
func (o *FromHardwareParams) WithTimeout(timeout time.Duration) *FromHardwareParams
WithTimeout adds the timeout to the from hardware params
func (*FromHardwareParams) WriteToRequest ¶
func (o *FromHardwareParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FromHardwareReader ¶
type FromHardwareReader struct {
// contains filtered or unexported fields
}
FromHardwareReader is a Reader for the FromHardware structure.
func (*FromHardwareReader) ReadResponse ¶
func (o *FromHardwareReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListSizesDefault ¶
type ListSizesDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
ListSizesDefault describes a response with status code -1, with default header values.
Error
func NewListSizesDefault ¶
func NewListSizesDefault(code int) *ListSizesDefault
NewListSizesDefault creates a ListSizesDefault with default headers values
func (*ListSizesDefault) Code ¶
func (o *ListSizesDefault) Code() int
Code gets the status code for the list sizes default response
func (*ListSizesDefault) Error ¶
func (o *ListSizesDefault) Error() string
func (*ListSizesDefault) GetPayload ¶ added in v0.11.0
func (o *ListSizesDefault) GetPayload() *httperrors.HTTPErrorResponse
type ListSizesOK ¶
type ListSizesOK struct {
Payload []*models.V1SizeResponse
}
ListSizesOK describes a response with status code 200, with default header values.
OK
func NewListSizesOK ¶
func NewListSizesOK() *ListSizesOK
NewListSizesOK creates a ListSizesOK with default headers values
func (*ListSizesOK) Error ¶
func (o *ListSizesOK) Error() string
func (*ListSizesOK) GetPayload ¶ added in v0.11.0
func (o *ListSizesOK) GetPayload() []*models.V1SizeResponse
type ListSizesParams ¶
type ListSizesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListSizesParams contains all the parameters to send to the API endpoint
for the list sizes operation. Typically these are written to a http.Request.
func NewListSizesParams ¶
func NewListSizesParams() *ListSizesParams
NewListSizesParams creates a new ListSizesParams 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 NewListSizesParamsWithContext ¶
func NewListSizesParamsWithContext(ctx context.Context) *ListSizesParams
NewListSizesParamsWithContext creates a new ListSizesParams object with the ability to set a context for a request.
func NewListSizesParamsWithHTTPClient ¶
func NewListSizesParamsWithHTTPClient(client *http.Client) *ListSizesParams
NewListSizesParamsWithHTTPClient creates a new ListSizesParams object with the ability to set a custom HTTPClient for a request.
func NewListSizesParamsWithTimeout ¶
func NewListSizesParamsWithTimeout(timeout time.Duration) *ListSizesParams
NewListSizesParamsWithTimeout creates a new ListSizesParams object with the ability to set a timeout on a request.
func (*ListSizesParams) SetContext ¶
func (o *ListSizesParams) SetContext(ctx context.Context)
SetContext adds the context to the list sizes params
func (*ListSizesParams) SetDefaults ¶ added in v0.12.1
func (o *ListSizesParams) SetDefaults()
SetDefaults hydrates default values in the list sizes params (not the query body).
All values with no default are reset to their zero value.
func (*ListSizesParams) SetHTTPClient ¶
func (o *ListSizesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list sizes params
func (*ListSizesParams) SetTimeout ¶
func (o *ListSizesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list sizes params
func (*ListSizesParams) WithContext ¶
func (o *ListSizesParams) WithContext(ctx context.Context) *ListSizesParams
WithContext adds the context to the list sizes params
func (*ListSizesParams) WithDefaults ¶ added in v0.12.1
func (o *ListSizesParams) WithDefaults() *ListSizesParams
WithDefaults hydrates default values in the list sizes params (not the query body).
All values with no default are reset to their zero value.
func (*ListSizesParams) WithHTTPClient ¶
func (o *ListSizesParams) WithHTTPClient(client *http.Client) *ListSizesParams
WithHTTPClient adds the HTTPClient to the list sizes params
func (*ListSizesParams) WithTimeout ¶
func (o *ListSizesParams) WithTimeout(timeout time.Duration) *ListSizesParams
WithTimeout adds the timeout to the list sizes params
func (*ListSizesParams) WriteToRequest ¶
func (o *ListSizesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListSizesReader ¶
type ListSizesReader struct {
// contains filtered or unexported fields
}
ListSizesReader is a Reader for the ListSizes structure.
func (*ListSizesReader) ReadResponse ¶
func (o *ListSizesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateSizeConflict ¶
type UpdateSizeConflict struct {
Payload *httperrors.HTTPErrorResponse
}
UpdateSizeConflict describes a response with status code 409, with default header values.
Conflict
func NewUpdateSizeConflict ¶
func NewUpdateSizeConflict() *UpdateSizeConflict
NewUpdateSizeConflict creates a UpdateSizeConflict with default headers values
func (*UpdateSizeConflict) Error ¶
func (o *UpdateSizeConflict) Error() string
func (*UpdateSizeConflict) GetPayload ¶ added in v0.11.0
func (o *UpdateSizeConflict) GetPayload() *httperrors.HTTPErrorResponse
type UpdateSizeDefault ¶
type UpdateSizeDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
UpdateSizeDefault describes a response with status code -1, with default header values.
Error
func NewUpdateSizeDefault ¶
func NewUpdateSizeDefault(code int) *UpdateSizeDefault
NewUpdateSizeDefault creates a UpdateSizeDefault with default headers values
func (*UpdateSizeDefault) Code ¶
func (o *UpdateSizeDefault) Code() int
Code gets the status code for the update size default response
func (*UpdateSizeDefault) Error ¶
func (o *UpdateSizeDefault) Error() string
func (*UpdateSizeDefault) GetPayload ¶ added in v0.11.0
func (o *UpdateSizeDefault) GetPayload() *httperrors.HTTPErrorResponse
type UpdateSizeOK ¶
type UpdateSizeOK struct {
Payload *models.V1SizeResponse
}
UpdateSizeOK describes a response with status code 200, with default header values.
OK
func NewUpdateSizeOK ¶
func NewUpdateSizeOK() *UpdateSizeOK
NewUpdateSizeOK creates a UpdateSizeOK with default headers values
func (*UpdateSizeOK) Error ¶
func (o *UpdateSizeOK) Error() string
func (*UpdateSizeOK) GetPayload ¶ added in v0.11.0
func (o *UpdateSizeOK) GetPayload() *models.V1SizeResponse
type UpdateSizeParams ¶
type UpdateSizeParams struct { // Body. Body *models.V1SizeUpdateRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateSizeParams contains all the parameters to send to the API endpoint
for the update size operation. Typically these are written to a http.Request.
func NewUpdateSizeParams ¶
func NewUpdateSizeParams() *UpdateSizeParams
NewUpdateSizeParams creates a new UpdateSizeParams 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 NewUpdateSizeParamsWithContext ¶
func NewUpdateSizeParamsWithContext(ctx context.Context) *UpdateSizeParams
NewUpdateSizeParamsWithContext creates a new UpdateSizeParams object with the ability to set a context for a request.
func NewUpdateSizeParamsWithHTTPClient ¶
func NewUpdateSizeParamsWithHTTPClient(client *http.Client) *UpdateSizeParams
NewUpdateSizeParamsWithHTTPClient creates a new UpdateSizeParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateSizeParamsWithTimeout ¶
func NewUpdateSizeParamsWithTimeout(timeout time.Duration) *UpdateSizeParams
NewUpdateSizeParamsWithTimeout creates a new UpdateSizeParams object with the ability to set a timeout on a request.
func (*UpdateSizeParams) SetBody ¶
func (o *UpdateSizeParams) SetBody(body *models.V1SizeUpdateRequest)
SetBody adds the body to the update size params
func (*UpdateSizeParams) SetContext ¶
func (o *UpdateSizeParams) SetContext(ctx context.Context)
SetContext adds the context to the update size params
func (*UpdateSizeParams) SetDefaults ¶ added in v0.12.1
func (o *UpdateSizeParams) SetDefaults()
SetDefaults hydrates default values in the update size params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateSizeParams) SetHTTPClient ¶
func (o *UpdateSizeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update size params
func (*UpdateSizeParams) SetTimeout ¶
func (o *UpdateSizeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update size params
func (*UpdateSizeParams) WithBody ¶
func (o *UpdateSizeParams) WithBody(body *models.V1SizeUpdateRequest) *UpdateSizeParams
WithBody adds the body to the update size params
func (*UpdateSizeParams) WithContext ¶
func (o *UpdateSizeParams) WithContext(ctx context.Context) *UpdateSizeParams
WithContext adds the context to the update size params
func (*UpdateSizeParams) WithDefaults ¶ added in v0.12.1
func (o *UpdateSizeParams) WithDefaults() *UpdateSizeParams
WithDefaults hydrates default values in the update size params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateSizeParams) WithHTTPClient ¶
func (o *UpdateSizeParams) WithHTTPClient(client *http.Client) *UpdateSizeParams
WithHTTPClient adds the HTTPClient to the update size params
func (*UpdateSizeParams) WithTimeout ¶
func (o *UpdateSizeParams) WithTimeout(timeout time.Duration) *UpdateSizeParams
WithTimeout adds the timeout to the update size params
func (*UpdateSizeParams) WriteToRequest ¶
func (o *UpdateSizeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateSizeReader ¶
type UpdateSizeReader struct {
// contains filtered or unexported fields
}
UpdateSizeReader is a Reader for the UpdateSize structure.
func (*UpdateSizeReader) ReadResponse ¶
func (o *UpdateSizeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- create_size_parameters.go
- create_size_responses.go
- delete_size_parameters.go
- delete_size_responses.go
- find_size_parameters.go
- find_size_responses.go
- from_hardware_parameters.go
- from_hardware_responses.go
- list_sizes_parameters.go
- list_sizes_responses.go
- size_client.go
- update_size_parameters.go
- update_size_responses.go