size

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 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, 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) ListSizeReservations added in v0.26.0

func (a *Client) ListSizeReservations(params *ListSizeReservationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSizeReservationsOK, error)

ListSizeReservations gets all size reservations

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) Suggest added in v0.24.3

func (a *Client) Suggest(params *SuggestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SuggestOK, error)

Suggest froms a given machine id returns the appropriate size

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)

	ListSizeReservations(params *ListSizeReservationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSizeReservationsOK, error)

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

	Suggest(params *SuggestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SuggestOK, 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) Code added in v0.22.1

func (o *CreateSizeConflict) Code() int

Code gets the status code for the create size conflict response

func (*CreateSizeConflict) Error

func (o *CreateSizeConflict) Error() string

func (*CreateSizeConflict) GetPayload added in v0.11.0

func (*CreateSizeConflict) IsClientError added in v0.19.3

func (o *CreateSizeConflict) IsClientError() bool

IsClientError returns true when this create size conflict response has a 4xx status code

func (*CreateSizeConflict) IsCode added in v0.19.3

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

IsCode returns true when this create size conflict response a status code equal to that given

func (*CreateSizeConflict) IsRedirect added in v0.19.3

func (o *CreateSizeConflict) IsRedirect() bool

IsRedirect returns true when this create size conflict response has a 3xx status code

func (*CreateSizeConflict) IsServerError added in v0.19.3

func (o *CreateSizeConflict) IsServerError() bool

IsServerError returns true when this create size conflict response has a 5xx status code

func (*CreateSizeConflict) IsSuccess added in v0.19.3

func (o *CreateSizeConflict) IsSuccess() bool

IsSuccess returns true when this create size conflict response has a 2xx status code

func (*CreateSizeConflict) String added in v0.19.3

func (o *CreateSizeConflict) String() string

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) Code added in v0.22.1

func (o *CreateSizeCreated) Code() int

Code gets the status code for the create size created response

func (*CreateSizeCreated) Error

func (o *CreateSizeCreated) Error() string

func (*CreateSizeCreated) GetPayload added in v0.11.0

func (o *CreateSizeCreated) GetPayload() *models.V1SizeResponse

func (*CreateSizeCreated) IsClientError added in v0.19.3

func (o *CreateSizeCreated) IsClientError() bool

IsClientError returns true when this create size created response has a 4xx status code

func (*CreateSizeCreated) IsCode added in v0.19.3

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

IsCode returns true when this create size created response a status code equal to that given

func (*CreateSizeCreated) IsRedirect added in v0.19.3

func (o *CreateSizeCreated) IsRedirect() bool

IsRedirect returns true when this create size created response has a 3xx status code

func (*CreateSizeCreated) IsServerError added in v0.19.3

func (o *CreateSizeCreated) IsServerError() bool

IsServerError returns true when this create size created response has a 5xx status code

func (*CreateSizeCreated) IsSuccess added in v0.19.3

func (o *CreateSizeCreated) IsSuccess() bool

IsSuccess returns true when this create size created response has a 2xx status code

func (*CreateSizeCreated) String added in v0.19.3

func (o *CreateSizeCreated) String() string

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 (*CreateSizeDefault) IsClientError added in v0.19.3

func (o *CreateSizeDefault) IsClientError() bool

IsClientError returns true when this create size default response has a 4xx status code

func (*CreateSizeDefault) IsCode added in v0.19.3

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

IsCode returns true when this create size default response a status code equal to that given

func (*CreateSizeDefault) IsRedirect added in v0.19.3

func (o *CreateSizeDefault) IsRedirect() bool

IsRedirect returns true when this create size default response has a 3xx status code

func (*CreateSizeDefault) IsServerError added in v0.19.3

func (o *CreateSizeDefault) IsServerError() bool

IsServerError returns true when this create size default response has a 5xx status code

func (*CreateSizeDefault) IsSuccess added in v0.19.3

func (o *CreateSizeDefault) IsSuccess() bool

IsSuccess returns true when this create size default response has a 2xx status code

func (*CreateSizeDefault) String added in v0.19.3

func (o *CreateSizeDefault) String() string

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

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 (*DeleteSizeDefault) IsClientError added in v0.19.3

func (o *DeleteSizeDefault) IsClientError() bool

IsClientError returns true when this delete size default response has a 4xx status code

func (*DeleteSizeDefault) IsCode added in v0.19.3

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

IsCode returns true when this delete size default response a status code equal to that given

func (*DeleteSizeDefault) IsRedirect added in v0.19.3

func (o *DeleteSizeDefault) IsRedirect() bool

IsRedirect returns true when this delete size default response has a 3xx status code

func (*DeleteSizeDefault) IsServerError added in v0.19.3

func (o *DeleteSizeDefault) IsServerError() bool

IsServerError returns true when this delete size default response has a 5xx status code

func (*DeleteSizeDefault) IsSuccess added in v0.19.3

func (o *DeleteSizeDefault) IsSuccess() bool

IsSuccess returns true when this delete size default response has a 2xx status code

func (*DeleteSizeDefault) String added in v0.19.3

func (o *DeleteSizeDefault) String() string

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) Code added in v0.22.1

func (o *DeleteSizeOK) Code() int

Code gets the status code for the delete size o k response

func (*DeleteSizeOK) Error

func (o *DeleteSizeOK) Error() string

func (*DeleteSizeOK) GetPayload added in v0.11.0

func (o *DeleteSizeOK) GetPayload() *models.V1SizeResponse

func (*DeleteSizeOK) IsClientError added in v0.19.3

func (o *DeleteSizeOK) IsClientError() bool

IsClientError returns true when this delete size o k response has a 4xx status code

func (*DeleteSizeOK) IsCode added in v0.19.3

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

IsCode returns true when this delete size o k response a status code equal to that given

func (*DeleteSizeOK) IsRedirect added in v0.19.3

func (o *DeleteSizeOK) IsRedirect() bool

IsRedirect returns true when this delete size o k response has a 3xx status code

func (*DeleteSizeOK) IsServerError added in v0.19.3

func (o *DeleteSizeOK) IsServerError() bool

IsServerError returns true when this delete size o k response has a 5xx status code

func (*DeleteSizeOK) IsSuccess added in v0.19.3

func (o *DeleteSizeOK) IsSuccess() bool

IsSuccess returns true when this delete size o k response has a 2xx status code

func (*DeleteSizeOK) String added in v0.19.3

func (o *DeleteSizeOK) String() string

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

func (*FindSizeDefault) IsClientError added in v0.19.3

func (o *FindSizeDefault) IsClientError() bool

IsClientError returns true when this find size default response has a 4xx status code

func (*FindSizeDefault) IsCode added in v0.19.3

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

IsCode returns true when this find size default response a status code equal to that given

func (*FindSizeDefault) IsRedirect added in v0.19.3

func (o *FindSizeDefault) IsRedirect() bool

IsRedirect returns true when this find size default response has a 3xx status code

func (*FindSizeDefault) IsServerError added in v0.19.3

func (o *FindSizeDefault) IsServerError() bool

IsServerError returns true when this find size default response has a 5xx status code

func (*FindSizeDefault) IsSuccess added in v0.19.3

func (o *FindSizeDefault) IsSuccess() bool

IsSuccess returns true when this find size default response has a 2xx status code

func (*FindSizeDefault) String added in v0.19.3

func (o *FindSizeDefault) String() string

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) Code added in v0.22.1

func (o *FindSizeOK) Code() int

Code gets the status code for the find size o k response

func (*FindSizeOK) Error

func (o *FindSizeOK) Error() string

func (*FindSizeOK) GetPayload added in v0.11.0

func (o *FindSizeOK) GetPayload() *models.V1SizeResponse

func (*FindSizeOK) IsClientError added in v0.19.3

func (o *FindSizeOK) IsClientError() bool

IsClientError returns true when this find size o k response has a 4xx status code

func (*FindSizeOK) IsCode added in v0.19.3

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

IsCode returns true when this find size o k response a status code equal to that given

func (*FindSizeOK) IsRedirect added in v0.19.3

func (o *FindSizeOK) IsRedirect() bool

IsRedirect returns true when this find size o k response has a 3xx status code

func (*FindSizeOK) IsServerError added in v0.19.3

func (o *FindSizeOK) IsServerError() bool

IsServerError returns true when this find size o k response has a 5xx status code

func (*FindSizeOK) IsSuccess added in v0.19.3

func (o *FindSizeOK) IsSuccess() bool

IsSuccess returns true when this find size o k response has a 2xx status code

func (*FindSizeOK) String added in v0.19.3

func (o *FindSizeOK) String() string

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 (*FromHardwareDefault) IsClientError added in v0.19.3

func (o *FromHardwareDefault) IsClientError() bool

IsClientError returns true when this from hardware default response has a 4xx status code

func (*FromHardwareDefault) IsCode added in v0.19.3

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

IsCode returns true when this from hardware default response a status code equal to that given

func (*FromHardwareDefault) IsRedirect added in v0.19.3

func (o *FromHardwareDefault) IsRedirect() bool

IsRedirect returns true when this from hardware default response has a 3xx status code

func (*FromHardwareDefault) IsServerError added in v0.19.3

func (o *FromHardwareDefault) IsServerError() bool

IsServerError returns true when this from hardware default response has a 5xx status code

func (*FromHardwareDefault) IsSuccess added in v0.19.3

func (o *FromHardwareDefault) IsSuccess() bool

IsSuccess returns true when this from hardware default response has a 2xx status code

func (*FromHardwareDefault) String added in v0.19.3

func (o *FromHardwareDefault) String() string

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) Code added in v0.22.1

func (o *FromHardwareOK) Code() int

Code gets the status code for the from hardware o k response

func (*FromHardwareOK) Error

func (o *FromHardwareOK) Error() string

func (*FromHardwareOK) GetPayload added in v0.11.0

func (o *FromHardwareOK) GetPayload() *models.V1SizeMatchingLog

func (*FromHardwareOK) IsClientError added in v0.19.3

func (o *FromHardwareOK) IsClientError() bool

IsClientError returns true when this from hardware o k response has a 4xx status code

func (*FromHardwareOK) IsCode added in v0.19.3

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

IsCode returns true when this from hardware o k response a status code equal to that given

func (*FromHardwareOK) IsRedirect added in v0.19.3

func (o *FromHardwareOK) IsRedirect() bool

IsRedirect returns true when this from hardware o k response has a 3xx status code

func (*FromHardwareOK) IsServerError added in v0.19.3

func (o *FromHardwareOK) IsServerError() bool

IsServerError returns true when this from hardware o k response has a 5xx status code

func (*FromHardwareOK) IsSuccess added in v0.19.3

func (o *FromHardwareOK) IsSuccess() bool

IsSuccess returns true when this from hardware o k response has a 2xx status code

func (*FromHardwareOK) String added in v0.19.3

func (o *FromHardwareOK) String() string

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

WithBody adds the body to the from hardware params

func (*FromHardwareParams) WithContext

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 ListSizeReservationsDefault added in v0.26.0

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

ListSizeReservationsDefault describes a response with status code -1, with default header values.

Error

func NewListSizeReservationsDefault added in v0.26.0

func NewListSizeReservationsDefault(code int) *ListSizeReservationsDefault

NewListSizeReservationsDefault creates a ListSizeReservationsDefault with default headers values

func (*ListSizeReservationsDefault) Code added in v0.26.0

func (o *ListSizeReservationsDefault) Code() int

Code gets the status code for the list size reservations default response

func (*ListSizeReservationsDefault) Error added in v0.26.0

func (*ListSizeReservationsDefault) GetPayload added in v0.26.0

func (*ListSizeReservationsDefault) IsClientError added in v0.26.0

func (o *ListSizeReservationsDefault) IsClientError() bool

IsClientError returns true when this list size reservations default response has a 4xx status code

func (*ListSizeReservationsDefault) IsCode added in v0.26.0

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

IsCode returns true when this list size reservations default response a status code equal to that given

func (*ListSizeReservationsDefault) IsRedirect added in v0.26.0

func (o *ListSizeReservationsDefault) IsRedirect() bool

IsRedirect returns true when this list size reservations default response has a 3xx status code

func (*ListSizeReservationsDefault) IsServerError added in v0.26.0

func (o *ListSizeReservationsDefault) IsServerError() bool

IsServerError returns true when this list size reservations default response has a 5xx status code

func (*ListSizeReservationsDefault) IsSuccess added in v0.26.0

func (o *ListSizeReservationsDefault) IsSuccess() bool

IsSuccess returns true when this list size reservations default response has a 2xx status code

func (*ListSizeReservationsDefault) String added in v0.26.0

func (o *ListSizeReservationsDefault) String() string

type ListSizeReservationsOK added in v0.26.0

type ListSizeReservationsOK struct {
	Payload []*models.V1SizeReservationResponse
}

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

OK

func NewListSizeReservationsOK added in v0.26.0

func NewListSizeReservationsOK() *ListSizeReservationsOK

NewListSizeReservationsOK creates a ListSizeReservationsOK with default headers values

func (*ListSizeReservationsOK) Code added in v0.26.0

func (o *ListSizeReservationsOK) Code() int

Code gets the status code for the list size reservations o k response

func (*ListSizeReservationsOK) Error added in v0.26.0

func (o *ListSizeReservationsOK) Error() string

func (*ListSizeReservationsOK) GetPayload added in v0.26.0

func (*ListSizeReservationsOK) IsClientError added in v0.26.0

func (o *ListSizeReservationsOK) IsClientError() bool

IsClientError returns true when this list size reservations o k response has a 4xx status code

func (*ListSizeReservationsOK) IsCode added in v0.26.0

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

IsCode returns true when this list size reservations o k response a status code equal to that given

func (*ListSizeReservationsOK) IsRedirect added in v0.26.0

func (o *ListSizeReservationsOK) IsRedirect() bool

IsRedirect returns true when this list size reservations o k response has a 3xx status code

func (*ListSizeReservationsOK) IsServerError added in v0.26.0

func (o *ListSizeReservationsOK) IsServerError() bool

IsServerError returns true when this list size reservations o k response has a 5xx status code

func (*ListSizeReservationsOK) IsSuccess added in v0.26.0

func (o *ListSizeReservationsOK) IsSuccess() bool

IsSuccess returns true when this list size reservations o k response has a 2xx status code

func (*ListSizeReservationsOK) String added in v0.26.0

func (o *ListSizeReservationsOK) String() string

type ListSizeReservationsParams added in v0.26.0

type ListSizeReservationsParams struct {

	// Body.
	Body models.V1EmptyBody

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

ListSizeReservationsParams contains all the parameters to send to the API endpoint

for the list size reservations operation.

Typically these are written to a http.Request.

func NewListSizeReservationsParams added in v0.26.0

func NewListSizeReservationsParams() *ListSizeReservationsParams

NewListSizeReservationsParams creates a new ListSizeReservationsParams 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 NewListSizeReservationsParamsWithContext added in v0.26.0

func NewListSizeReservationsParamsWithContext(ctx context.Context) *ListSizeReservationsParams

NewListSizeReservationsParamsWithContext creates a new ListSizeReservationsParams object with the ability to set a context for a request.

func NewListSizeReservationsParamsWithHTTPClient added in v0.26.0

func NewListSizeReservationsParamsWithHTTPClient(client *http.Client) *ListSizeReservationsParams

NewListSizeReservationsParamsWithHTTPClient creates a new ListSizeReservationsParams object with the ability to set a custom HTTPClient for a request.

func NewListSizeReservationsParamsWithTimeout added in v0.26.0

func NewListSizeReservationsParamsWithTimeout(timeout time.Duration) *ListSizeReservationsParams

NewListSizeReservationsParamsWithTimeout creates a new ListSizeReservationsParams object with the ability to set a timeout on a request.

func (*ListSizeReservationsParams) SetBody added in v0.26.1

SetBody adds the body to the list size reservations params

func (*ListSizeReservationsParams) SetContext added in v0.26.0

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

SetContext adds the context to the list size reservations params

func (*ListSizeReservationsParams) SetDefaults added in v0.26.0

func (o *ListSizeReservationsParams) SetDefaults()

SetDefaults hydrates default values in the list size reservations params (not the query body).

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

func (*ListSizeReservationsParams) SetHTTPClient added in v0.26.0

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

SetHTTPClient adds the HTTPClient to the list size reservations params

func (*ListSizeReservationsParams) SetTimeout added in v0.26.0

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

SetTimeout adds the timeout to the list size reservations params

func (*ListSizeReservationsParams) WithBody added in v0.26.1

WithBody adds the body to the list size reservations params

func (*ListSizeReservationsParams) WithContext added in v0.26.0

WithContext adds the context to the list size reservations params

func (*ListSizeReservationsParams) WithDefaults added in v0.26.0

WithDefaults hydrates default values in the list size reservations params (not the query body).

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

func (*ListSizeReservationsParams) WithHTTPClient added in v0.26.0

WithHTTPClient adds the HTTPClient to the list size reservations params

func (*ListSizeReservationsParams) WithTimeout added in v0.26.0

WithTimeout adds the timeout to the list size reservations params

func (*ListSizeReservationsParams) WriteToRequest added in v0.26.0

WriteToRequest writes these params to a swagger request

type ListSizeReservationsReader added in v0.26.0

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

ListSizeReservationsReader is a Reader for the ListSizeReservations structure.

func (*ListSizeReservationsReader) ReadResponse added in v0.26.0

func (o *ListSizeReservationsReader) 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 (*ListSizesDefault) IsClientError added in v0.19.3

func (o *ListSizesDefault) IsClientError() bool

IsClientError returns true when this list sizes default response has a 4xx status code

func (*ListSizesDefault) IsCode added in v0.19.3

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

IsCode returns true when this list sizes default response a status code equal to that given

func (*ListSizesDefault) IsRedirect added in v0.19.3

func (o *ListSizesDefault) IsRedirect() bool

IsRedirect returns true when this list sizes default response has a 3xx status code

func (*ListSizesDefault) IsServerError added in v0.19.3

func (o *ListSizesDefault) IsServerError() bool

IsServerError returns true when this list sizes default response has a 5xx status code

func (*ListSizesDefault) IsSuccess added in v0.19.3

func (o *ListSizesDefault) IsSuccess() bool

IsSuccess returns true when this list sizes default response has a 2xx status code

func (*ListSizesDefault) String added in v0.19.3

func (o *ListSizesDefault) String() string

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) Code added in v0.22.1

func (o *ListSizesOK) Code() int

Code gets the status code for the list sizes o k response

func (*ListSizesOK) Error

func (o *ListSizesOK) Error() string

func (*ListSizesOK) GetPayload added in v0.11.0

func (o *ListSizesOK) GetPayload() []*models.V1SizeResponse

func (*ListSizesOK) IsClientError added in v0.19.3

func (o *ListSizesOK) IsClientError() bool

IsClientError returns true when this list sizes o k response has a 4xx status code

func (*ListSizesOK) IsCode added in v0.19.3

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

IsCode returns true when this list sizes o k response a status code equal to that given

func (*ListSizesOK) IsRedirect added in v0.19.3

func (o *ListSizesOK) IsRedirect() bool

IsRedirect returns true when this list sizes o k response has a 3xx status code

func (*ListSizesOK) IsServerError added in v0.19.3

func (o *ListSizesOK) IsServerError() bool

IsServerError returns true when this list sizes o k response has a 5xx status code

func (*ListSizesOK) IsSuccess added in v0.19.3

func (o *ListSizesOK) IsSuccess() bool

IsSuccess returns true when this list sizes o k response has a 2xx status code

func (*ListSizesOK) String added in v0.19.3

func (o *ListSizesOK) String() string

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 SuggestDefault added in v0.24.3

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

SuggestDefault describes a response with status code -1, with default header values.

Error

func NewSuggestDefault added in v0.24.3

func NewSuggestDefault(code int) *SuggestDefault

NewSuggestDefault creates a SuggestDefault with default headers values

func (*SuggestDefault) Code added in v0.24.3

func (o *SuggestDefault) Code() int

Code gets the status code for the suggest default response

func (*SuggestDefault) Error added in v0.24.3

func (o *SuggestDefault) Error() string

func (*SuggestDefault) GetPayload added in v0.24.3

func (o *SuggestDefault) GetPayload() *httperrors.HTTPErrorResponse

func (*SuggestDefault) IsClientError added in v0.24.3

func (o *SuggestDefault) IsClientError() bool

IsClientError returns true when this suggest default response has a 4xx status code

func (*SuggestDefault) IsCode added in v0.24.3

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

IsCode returns true when this suggest default response a status code equal to that given

func (*SuggestDefault) IsRedirect added in v0.24.3

func (o *SuggestDefault) IsRedirect() bool

IsRedirect returns true when this suggest default response has a 3xx status code

func (*SuggestDefault) IsServerError added in v0.24.3

func (o *SuggestDefault) IsServerError() bool

IsServerError returns true when this suggest default response has a 5xx status code

func (*SuggestDefault) IsSuccess added in v0.24.3

func (o *SuggestDefault) IsSuccess() bool

IsSuccess returns true when this suggest default response has a 2xx status code

func (*SuggestDefault) String added in v0.24.3

func (o *SuggestDefault) String() string

type SuggestOK added in v0.24.3

type SuggestOK struct {
	Payload []*models.V1SizeConstraint
}

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

OK

func NewSuggestOK added in v0.24.3

func NewSuggestOK() *SuggestOK

NewSuggestOK creates a SuggestOK with default headers values

func (*SuggestOK) Code added in v0.24.3

func (o *SuggestOK) Code() int

Code gets the status code for the suggest o k response

func (*SuggestOK) Error added in v0.24.3

func (o *SuggestOK) Error() string

func (*SuggestOK) GetPayload added in v0.24.3

func (o *SuggestOK) GetPayload() []*models.V1SizeConstraint

func (*SuggestOK) IsClientError added in v0.24.3

func (o *SuggestOK) IsClientError() bool

IsClientError returns true when this suggest o k response has a 4xx status code

func (*SuggestOK) IsCode added in v0.24.3

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

IsCode returns true when this suggest o k response a status code equal to that given

func (*SuggestOK) IsRedirect added in v0.24.3

func (o *SuggestOK) IsRedirect() bool

IsRedirect returns true when this suggest o k response has a 3xx status code

func (*SuggestOK) IsServerError added in v0.24.3

func (o *SuggestOK) IsServerError() bool

IsServerError returns true when this suggest o k response has a 5xx status code

func (*SuggestOK) IsSuccess added in v0.24.3

func (o *SuggestOK) IsSuccess() bool

IsSuccess returns true when this suggest o k response has a 2xx status code

func (*SuggestOK) String added in v0.24.3

func (o *SuggestOK) String() string

type SuggestParams added in v0.24.3

type SuggestParams struct {

	// Body.
	Body *models.V1SizeSuggestRequest

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

SuggestParams contains all the parameters to send to the API endpoint

for the suggest operation.

Typically these are written to a http.Request.

func NewSuggestParams added in v0.24.3

func NewSuggestParams() *SuggestParams

NewSuggestParams creates a new SuggestParams 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 NewSuggestParamsWithContext added in v0.24.3

func NewSuggestParamsWithContext(ctx context.Context) *SuggestParams

NewSuggestParamsWithContext creates a new SuggestParams object with the ability to set a context for a request.

func NewSuggestParamsWithHTTPClient added in v0.24.3

func NewSuggestParamsWithHTTPClient(client *http.Client) *SuggestParams

NewSuggestParamsWithHTTPClient creates a new SuggestParams object with the ability to set a custom HTTPClient for a request.

func NewSuggestParamsWithTimeout added in v0.24.3

func NewSuggestParamsWithTimeout(timeout time.Duration) *SuggestParams

NewSuggestParamsWithTimeout creates a new SuggestParams object with the ability to set a timeout on a request.

func (*SuggestParams) SetBody added in v0.24.3

func (o *SuggestParams) SetBody(body *models.V1SizeSuggestRequest)

SetBody adds the body to the suggest params

func (*SuggestParams) SetContext added in v0.24.3

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

SetContext adds the context to the suggest params

func (*SuggestParams) SetDefaults added in v0.24.3

func (o *SuggestParams) SetDefaults()

SetDefaults hydrates default values in the suggest params (not the query body).

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

func (*SuggestParams) SetHTTPClient added in v0.24.3

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

SetHTTPClient adds the HTTPClient to the suggest params

func (*SuggestParams) SetTimeout added in v0.24.3

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

SetTimeout adds the timeout to the suggest params

func (*SuggestParams) WithBody added in v0.24.3

WithBody adds the body to the suggest params

func (*SuggestParams) WithContext added in v0.24.3

func (o *SuggestParams) WithContext(ctx context.Context) *SuggestParams

WithContext adds the context to the suggest params

func (*SuggestParams) WithDefaults added in v0.24.3

func (o *SuggestParams) WithDefaults() *SuggestParams

WithDefaults hydrates default values in the suggest params (not the query body).

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

func (*SuggestParams) WithHTTPClient added in v0.24.3

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

WithHTTPClient adds the HTTPClient to the suggest params

func (*SuggestParams) WithTimeout added in v0.24.3

func (o *SuggestParams) WithTimeout(timeout time.Duration) *SuggestParams

WithTimeout adds the timeout to the suggest params

func (*SuggestParams) WriteToRequest added in v0.24.3

func (o *SuggestParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SuggestReader added in v0.24.3

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

SuggestReader is a Reader for the Suggest structure.

func (*SuggestReader) ReadResponse added in v0.24.3

func (o *SuggestReader) 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) Code added in v0.22.1

func (o *UpdateSizeConflict) Code() int

Code gets the status code for the update size conflict response

func (*UpdateSizeConflict) Error

func (o *UpdateSizeConflict) Error() string

func (*UpdateSizeConflict) GetPayload added in v0.11.0

func (*UpdateSizeConflict) IsClientError added in v0.19.3

func (o *UpdateSizeConflict) IsClientError() bool

IsClientError returns true when this update size conflict response has a 4xx status code

func (*UpdateSizeConflict) IsCode added in v0.19.3

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

IsCode returns true when this update size conflict response a status code equal to that given

func (*UpdateSizeConflict) IsRedirect added in v0.19.3

func (o *UpdateSizeConflict) IsRedirect() bool

IsRedirect returns true when this update size conflict response has a 3xx status code

func (*UpdateSizeConflict) IsServerError added in v0.19.3

func (o *UpdateSizeConflict) IsServerError() bool

IsServerError returns true when this update size conflict response has a 5xx status code

func (*UpdateSizeConflict) IsSuccess added in v0.19.3

func (o *UpdateSizeConflict) IsSuccess() bool

IsSuccess returns true when this update size conflict response has a 2xx status code

func (*UpdateSizeConflict) String added in v0.19.3

func (o *UpdateSizeConflict) String() string

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 (*UpdateSizeDefault) IsClientError added in v0.19.3

func (o *UpdateSizeDefault) IsClientError() bool

IsClientError returns true when this update size default response has a 4xx status code

func (*UpdateSizeDefault) IsCode added in v0.19.3

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

IsCode returns true when this update size default response a status code equal to that given

func (*UpdateSizeDefault) IsRedirect added in v0.19.3

func (o *UpdateSizeDefault) IsRedirect() bool

IsRedirect returns true when this update size default response has a 3xx status code

func (*UpdateSizeDefault) IsServerError added in v0.19.3

func (o *UpdateSizeDefault) IsServerError() bool

IsServerError returns true when this update size default response has a 5xx status code

func (*UpdateSizeDefault) IsSuccess added in v0.19.3

func (o *UpdateSizeDefault) IsSuccess() bool

IsSuccess returns true when this update size default response has a 2xx status code

func (*UpdateSizeDefault) String added in v0.19.3

func (o *UpdateSizeDefault) String() string

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) Code added in v0.22.1

func (o *UpdateSizeOK) Code() int

Code gets the status code for the update size o k response

func (*UpdateSizeOK) Error

func (o *UpdateSizeOK) Error() string

func (*UpdateSizeOK) GetPayload added in v0.11.0

func (o *UpdateSizeOK) GetPayload() *models.V1SizeResponse

func (*UpdateSizeOK) IsClientError added in v0.19.3

func (o *UpdateSizeOK) IsClientError() bool

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

func (*UpdateSizeOK) IsCode added in v0.19.3

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

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

func (*UpdateSizeOK) IsRedirect added in v0.19.3

func (o *UpdateSizeOK) IsRedirect() bool

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

func (*UpdateSizeOK) IsServerError added in v0.19.3

func (o *UpdateSizeOK) IsServerError() bool

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

func (*UpdateSizeOK) IsSuccess added in v0.19.3

func (o *UpdateSizeOK) IsSuccess() bool

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

func (*UpdateSizeOK) String added in v0.19.3

func (o *UpdateSizeOK) String() string

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

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.

Jump to

Keyboard shortcuts

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