size

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for size API

func (*Client) CreateSize

func (a *Client) CreateSize(params *CreateSizeParams, authInfo runtime.ClientAuthInfoWriter) (*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) (*DeleteSizeOK, error)

DeleteSize deletes an size and returns the deleted entity

func (*Client) FindSize

func (a *Client) FindSize(params *FindSizeParams, authInfo runtime.ClientAuthInfoWriter) (*FindSizeOK, error)

FindSize gets size by id

func (*Client) FromHardware

func (a *Client) FromHardware(params *FromHardwareParams, authInfo runtime.ClientAuthInfoWriter) (*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) (*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) (*UpdateSizeOK, error)

UpdateSize updates a size if the size was changed since this one was read a conflict is returned

type ClientService added in v0.11.0

type ClientService interface {
	CreateSize(params *CreateSizeParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSizeCreated, error)

	DeleteSize(params *DeleteSizeParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSizeOK, error)

	FindSize(params *FindSizeParams, authInfo runtime.ClientAuthInfoWriter) (*FindSizeOK, error)

	FromHardware(params *FromHardwareParams, authInfo runtime.ClientAuthInfoWriter) (*FromHardwareOK, error)

	ListSizes(params *ListSizesParams, authInfo runtime.ClientAuthInfoWriter) (*ListSizesOK, error)

	UpdateSize(params *UpdateSizeParams, authInfo runtime.ClientAuthInfoWriter) (*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 handles this case 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

type CreateSizeCreated

type CreateSizeCreated struct {
	Payload *models.V1SizeResponse
}

CreateSizeCreated handles this case 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 handles this case 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

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 values initialized.

func NewCreateSizeParamsWithContext

func NewCreateSizeParamsWithContext(ctx context.Context) *CreateSizeParams

NewCreateSizeParamsWithContext creates a new CreateSizeParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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

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) 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 handles this case 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

type DeleteSizeOK

type DeleteSizeOK struct {
	Payload *models.V1SizeResponse
}

DeleteSizeOK handles this case 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 values initialized.

func NewDeleteSizeParamsWithContext

func NewDeleteSizeParamsWithContext(ctx context.Context) *DeleteSizeParams

NewDeleteSizeParamsWithContext creates a new DeleteSizeParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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 handles this case 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 values initialized.

func NewFindSizeParamsWithContext

func NewFindSizeParamsWithContext(ctx context.Context) *FindSizeParams

NewFindSizeParamsWithContext creates a new FindSizeParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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

type FromHardwareOK

type FromHardwareOK struct {
	Payload *models.V1SizeMatchingLog
}

FromHardwareOK handles this case 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.V1MachineHardwareExtended

	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 values initialized.

func NewFromHardwareParamsWithContext

func NewFromHardwareParamsWithContext(ctx context.Context) *FromHardwareParams

NewFromHardwareParamsWithContext creates a new FromHardwareParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*FromHardwareParams) SetBody

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) 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

WithBody adds the body to the from hardware params

func (*FromHardwareParams) WithContext

WithContext adds the context to the from hardware params

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 handles this case 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

type ListSizesOK

type ListSizesOK struct {
	Payload []*models.V1SizeResponse
}

ListSizesOK handles this case 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 values initialized.

func NewListSizesParamsWithContext

func NewListSizesParamsWithContext(ctx context.Context) *ListSizesParams

NewListSizesParamsWithContext creates a new ListSizesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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

type UpdateSizeDefault

type UpdateSizeDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}

UpdateSizeDefault handles this case 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

type UpdateSizeOK

type UpdateSizeOK struct {
	Payload *models.V1SizeResponse
}

UpdateSizeOK handles this case 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 values initialized.

func NewUpdateSizeParamsWithContext

func NewUpdateSizeParamsWithContext(ctx context.Context) *UpdateSizeParams

NewUpdateSizeParamsWithContext creates a new UpdateSizeParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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

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) 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL