pools

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

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 pools API

func (*Client) DeletePoolsPoolID

func (a *Client) DeletePoolsPoolID(params *DeletePoolsPoolIDParams, opts ...ClientOption) (*DeletePoolsPoolIDNoContent, error)

DeletePoolsPoolID deletes a pool

func (*Client) GetPools

func (a *Client) GetPools(params *GetPoolsParams, opts ...ClientOption) (*GetPoolsOK, error)

GetPools lists pools

func (*Client) GetPoolsPoolID

func (a *Client) GetPoolsPoolID(params *GetPoolsPoolIDParams, opts ...ClientOption) (*GetPoolsPoolIDOK, error)

GetPoolsPoolID shows pool detail

func (*Client) PostPools

func (a *Client) PostPools(params *PostPoolsParams, opts ...ClientOption) (*PostPoolsCreated, error)

PostPools creates new pool

func (*Client) PutPoolsPoolID

func (a *Client) PutPoolsPoolID(params *PutPoolsPoolIDParams, opts ...ClientOption) (*PutPoolsPoolIDAccepted, error)

PutPoolsPoolID updates a pool

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeletePoolsPoolID(params *DeletePoolsPoolIDParams, opts ...ClientOption) (*DeletePoolsPoolIDNoContent, error)

	GetPools(params *GetPoolsParams, opts ...ClientOption) (*GetPoolsOK, error)

	GetPoolsPoolID(params *GetPoolsPoolIDParams, opts ...ClientOption) (*GetPoolsPoolIDOK, error)

	PostPools(params *PostPoolsParams, opts ...ClientOption) (*PostPoolsCreated, error)

	PutPoolsPoolID(params *PutPoolsPoolIDParams, opts ...ClientOption) (*PutPoolsPoolIDAccepted, 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 pools API client.

type DeletePoolsPoolIDDefault

type DeletePoolsPoolIDDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

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

Unexpected Error

func NewDeletePoolsPoolIDDefault

func NewDeletePoolsPoolIDDefault(code int) *DeletePoolsPoolIDDefault

NewDeletePoolsPoolIDDefault creates a DeletePoolsPoolIDDefault with default headers values

func (*DeletePoolsPoolIDDefault) Code

func (o *DeletePoolsPoolIDDefault) Code() int

Code gets the status code for the delete pools pool ID default response

func (*DeletePoolsPoolIDDefault) Error

func (o *DeletePoolsPoolIDDefault) Error() string

func (*DeletePoolsPoolIDDefault) GetPayload

func (o *DeletePoolsPoolIDDefault) GetPayload() *models.Error

func (*DeletePoolsPoolIDDefault) IsClientError

func (o *DeletePoolsPoolIDDefault) IsClientError() bool

IsClientError returns true when this delete pools pool ID default response has a 4xx status code

func (*DeletePoolsPoolIDDefault) IsCode

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

IsCode returns true when this delete pools pool ID default response a status code equal to that given

func (*DeletePoolsPoolIDDefault) IsRedirect

func (o *DeletePoolsPoolIDDefault) IsRedirect() bool

IsRedirect returns true when this delete pools pool ID default response has a 3xx status code

func (*DeletePoolsPoolIDDefault) IsServerError

func (o *DeletePoolsPoolIDDefault) IsServerError() bool

IsServerError returns true when this delete pools pool ID default response has a 5xx status code

func (*DeletePoolsPoolIDDefault) IsSuccess

func (o *DeletePoolsPoolIDDefault) IsSuccess() bool

IsSuccess returns true when this delete pools pool ID default response has a 2xx status code

func (*DeletePoolsPoolIDDefault) String

func (o *DeletePoolsPoolIDDefault) String() string

type DeletePoolsPoolIDNoContent

type DeletePoolsPoolIDNoContent struct {
}

DeletePoolsPoolIDNoContent describes a response with status code 204, with default header values.

Resource successfully deleted.

func NewDeletePoolsPoolIDNoContent

func NewDeletePoolsPoolIDNoContent() *DeletePoolsPoolIDNoContent

NewDeletePoolsPoolIDNoContent creates a DeletePoolsPoolIDNoContent with default headers values

func (*DeletePoolsPoolIDNoContent) Code

func (o *DeletePoolsPoolIDNoContent) Code() int

Code gets the status code for the delete pools pool Id no content response

func (*DeletePoolsPoolIDNoContent) Error

func (*DeletePoolsPoolIDNoContent) IsClientError

func (o *DeletePoolsPoolIDNoContent) IsClientError() bool

IsClientError returns true when this delete pools pool Id no content response has a 4xx status code

func (*DeletePoolsPoolIDNoContent) IsCode

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

IsCode returns true when this delete pools pool Id no content response a status code equal to that given

func (*DeletePoolsPoolIDNoContent) IsRedirect

func (o *DeletePoolsPoolIDNoContent) IsRedirect() bool

IsRedirect returns true when this delete pools pool Id no content response has a 3xx status code

func (*DeletePoolsPoolIDNoContent) IsServerError

func (o *DeletePoolsPoolIDNoContent) IsServerError() bool

IsServerError returns true when this delete pools pool Id no content response has a 5xx status code

func (*DeletePoolsPoolIDNoContent) IsSuccess

func (o *DeletePoolsPoolIDNoContent) IsSuccess() bool

IsSuccess returns true when this delete pools pool Id no content response has a 2xx status code

func (*DeletePoolsPoolIDNoContent) String

func (o *DeletePoolsPoolIDNoContent) String() string

type DeletePoolsPoolIDNotFound

type DeletePoolsPoolIDNotFound struct {
	Payload *models.Error
}

DeletePoolsPoolIDNotFound describes a response with status code 404, with default header values.

Not Found

func NewDeletePoolsPoolIDNotFound

func NewDeletePoolsPoolIDNotFound() *DeletePoolsPoolIDNotFound

NewDeletePoolsPoolIDNotFound creates a DeletePoolsPoolIDNotFound with default headers values

func (*DeletePoolsPoolIDNotFound) Code

func (o *DeletePoolsPoolIDNotFound) Code() int

Code gets the status code for the delete pools pool Id not found response

func (*DeletePoolsPoolIDNotFound) Error

func (o *DeletePoolsPoolIDNotFound) Error() string

func (*DeletePoolsPoolIDNotFound) GetPayload

func (o *DeletePoolsPoolIDNotFound) GetPayload() *models.Error

func (*DeletePoolsPoolIDNotFound) IsClientError

func (o *DeletePoolsPoolIDNotFound) IsClientError() bool

IsClientError returns true when this delete pools pool Id not found response has a 4xx status code

func (*DeletePoolsPoolIDNotFound) IsCode

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

IsCode returns true when this delete pools pool Id not found response a status code equal to that given

func (*DeletePoolsPoolIDNotFound) IsRedirect

func (o *DeletePoolsPoolIDNotFound) IsRedirect() bool

IsRedirect returns true when this delete pools pool Id not found response has a 3xx status code

func (*DeletePoolsPoolIDNotFound) IsServerError

func (o *DeletePoolsPoolIDNotFound) IsServerError() bool

IsServerError returns true when this delete pools pool Id not found response has a 5xx status code

func (*DeletePoolsPoolIDNotFound) IsSuccess

func (o *DeletePoolsPoolIDNotFound) IsSuccess() bool

IsSuccess returns true when this delete pools pool Id not found response has a 2xx status code

func (*DeletePoolsPoolIDNotFound) String

func (o *DeletePoolsPoolIDNotFound) String() string

type DeletePoolsPoolIDParams

type DeletePoolsPoolIDParams struct {

	/* PoolID.

	   The UUID of the pool

	   Format: uuid
	*/
	PoolID strfmt.UUID

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

DeletePoolsPoolIDParams contains all the parameters to send to the API endpoint

for the delete pools pool ID operation.

Typically these are written to a http.Request.

func NewDeletePoolsPoolIDParams

func NewDeletePoolsPoolIDParams() *DeletePoolsPoolIDParams

NewDeletePoolsPoolIDParams creates a new DeletePoolsPoolIDParams 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 NewDeletePoolsPoolIDParamsWithContext

func NewDeletePoolsPoolIDParamsWithContext(ctx context.Context) *DeletePoolsPoolIDParams

NewDeletePoolsPoolIDParamsWithContext creates a new DeletePoolsPoolIDParams object with the ability to set a context for a request.

func NewDeletePoolsPoolIDParamsWithHTTPClient

func NewDeletePoolsPoolIDParamsWithHTTPClient(client *http.Client) *DeletePoolsPoolIDParams

NewDeletePoolsPoolIDParamsWithHTTPClient creates a new DeletePoolsPoolIDParams object with the ability to set a custom HTTPClient for a request.

func NewDeletePoolsPoolIDParamsWithTimeout

func NewDeletePoolsPoolIDParamsWithTimeout(timeout time.Duration) *DeletePoolsPoolIDParams

NewDeletePoolsPoolIDParamsWithTimeout creates a new DeletePoolsPoolIDParams object with the ability to set a timeout on a request.

func (*DeletePoolsPoolIDParams) SetContext

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

SetContext adds the context to the delete pools pool ID params

func (*DeletePoolsPoolIDParams) SetDefaults

func (o *DeletePoolsPoolIDParams) SetDefaults()

SetDefaults hydrates default values in the delete pools pool ID params (not the query body).

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

func (*DeletePoolsPoolIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete pools pool ID params

func (*DeletePoolsPoolIDParams) SetPoolID

func (o *DeletePoolsPoolIDParams) SetPoolID(poolID strfmt.UUID)

SetPoolID adds the poolId to the delete pools pool ID params

func (*DeletePoolsPoolIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete pools pool ID params

func (*DeletePoolsPoolIDParams) WithContext

WithContext adds the context to the delete pools pool ID params

func (*DeletePoolsPoolIDParams) WithDefaults

WithDefaults hydrates default values in the delete pools pool ID params (not the query body).

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

func (*DeletePoolsPoolIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete pools pool ID params

func (*DeletePoolsPoolIDParams) WithPoolID

WithPoolID adds the poolID to the delete pools pool ID params

func (*DeletePoolsPoolIDParams) WithTimeout

WithTimeout adds the timeout to the delete pools pool ID params

func (*DeletePoolsPoolIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeletePoolsPoolIDReader

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

DeletePoolsPoolIDReader is a Reader for the DeletePoolsPoolID structure.

func (*DeletePoolsPoolIDReader) ReadResponse

func (o *DeletePoolsPoolIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPoolsBadRequest

type GetPoolsBadRequest struct {
	Payload *models.Error
}

GetPoolsBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetPoolsBadRequest

func NewGetPoolsBadRequest() *GetPoolsBadRequest

NewGetPoolsBadRequest creates a GetPoolsBadRequest with default headers values

func (*GetPoolsBadRequest) Code

func (o *GetPoolsBadRequest) Code() int

Code gets the status code for the get pools bad request response

func (*GetPoolsBadRequest) Error

func (o *GetPoolsBadRequest) Error() string

func (*GetPoolsBadRequest) GetPayload

func (o *GetPoolsBadRequest) GetPayload() *models.Error

func (*GetPoolsBadRequest) IsClientError

func (o *GetPoolsBadRequest) IsClientError() bool

IsClientError returns true when this get pools bad request response has a 4xx status code

func (*GetPoolsBadRequest) IsCode

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

IsCode returns true when this get pools bad request response a status code equal to that given

func (*GetPoolsBadRequest) IsRedirect

func (o *GetPoolsBadRequest) IsRedirect() bool

IsRedirect returns true when this get pools bad request response has a 3xx status code

func (*GetPoolsBadRequest) IsServerError

func (o *GetPoolsBadRequest) IsServerError() bool

IsServerError returns true when this get pools bad request response has a 5xx status code

func (*GetPoolsBadRequest) IsSuccess

func (o *GetPoolsBadRequest) IsSuccess() bool

IsSuccess returns true when this get pools bad request response has a 2xx status code

func (*GetPoolsBadRequest) String

func (o *GetPoolsBadRequest) String() string

type GetPoolsDefault

type GetPoolsDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

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

Unexpected Error

func NewGetPoolsDefault

func NewGetPoolsDefault(code int) *GetPoolsDefault

NewGetPoolsDefault creates a GetPoolsDefault with default headers values

func (*GetPoolsDefault) Code

func (o *GetPoolsDefault) Code() int

Code gets the status code for the get pools default response

func (*GetPoolsDefault) Error

func (o *GetPoolsDefault) Error() string

func (*GetPoolsDefault) GetPayload

func (o *GetPoolsDefault) GetPayload() *models.Error

func (*GetPoolsDefault) IsClientError

func (o *GetPoolsDefault) IsClientError() bool

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

func (*GetPoolsDefault) IsCode

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

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

func (*GetPoolsDefault) IsRedirect

func (o *GetPoolsDefault) IsRedirect() bool

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

func (*GetPoolsDefault) IsServerError

func (o *GetPoolsDefault) IsServerError() bool

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

func (*GetPoolsDefault) IsSuccess

func (o *GetPoolsDefault) IsSuccess() bool

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

func (*GetPoolsDefault) String

func (o *GetPoolsDefault) String() string

type GetPoolsOK

type GetPoolsOK struct {
	Payload *GetPoolsOKBody
}

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

A JSON array of pools

func NewGetPoolsOK

func NewGetPoolsOK() *GetPoolsOK

NewGetPoolsOK creates a GetPoolsOK with default headers values

func (*GetPoolsOK) Code

func (o *GetPoolsOK) Code() int

Code gets the status code for the get pools o k response

func (*GetPoolsOK) Error

func (o *GetPoolsOK) Error() string

func (*GetPoolsOK) GetPayload

func (o *GetPoolsOK) GetPayload() *GetPoolsOKBody

func (*GetPoolsOK) IsClientError

func (o *GetPoolsOK) IsClientError() bool

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

func (*GetPoolsOK) IsCode

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

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

func (*GetPoolsOK) IsRedirect

func (o *GetPoolsOK) IsRedirect() bool

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

func (*GetPoolsOK) IsServerError

func (o *GetPoolsOK) IsServerError() bool

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

func (*GetPoolsOK) IsSuccess

func (o *GetPoolsOK) IsSuccess() bool

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

func (*GetPoolsOK) String

func (o *GetPoolsOK) String() string

type GetPoolsOKBody

type GetPoolsOKBody struct {

	// links
	Links []*models.Link `json:"links,omitempty"`

	// pools
	Pools []*models.Pool `json:"pools"`
}

GetPoolsOKBody get pools o k body swagger:model GetPoolsOKBody

func (*GetPoolsOKBody) ContextValidate

func (o *GetPoolsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get pools o k body based on the context it is used

func (*GetPoolsOKBody) MarshalBinary

func (o *GetPoolsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetPoolsOKBody) UnmarshalBinary

func (o *GetPoolsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetPoolsOKBody) Validate

func (o *GetPoolsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get pools o k body

type GetPoolsParams

type GetPoolsParams struct {

	/* Limit.

	   Sets the page size.
	*/
	Limit *int64

	/* Marker.

	   Pagination ID of the last item in the previous list.

	   Format: uuid
	*/
	Marker *strfmt.UUID

	/* NotTags.

	     Filter for resources not having tags, multiple not-tags are considered as logical AND.
	Should be provided in a comma separated list.

	*/
	NotTags []string

	/* NotTagsAny.

	     Filter for resources not having tags, multiple tags are considered as logical OR.
	Should be provided in a comma separated list.

	*/
	NotTagsAny []string

	/* PageReverse.

	   Sets the page direction.
	*/
	PageReverse *bool

	/* Sort.

	   Comma-separated list of sort keys, optinally prefix with - to reverse sort order.
	*/
	Sort *string

	/* Tags.

	     Filter for tags, multiple tags are considered as logical AND.
	Should be provided in a comma separated list.

	*/
	Tags []string

	/* TagsAny.

	     Filter for tags, multiple tags are considered as logical OR.
	Should be provided in a comma separated list.

	*/
	TagsAny []string

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

GetPoolsParams contains all the parameters to send to the API endpoint

for the get pools operation.

Typically these are written to a http.Request.

func NewGetPoolsParams

func NewGetPoolsParams() *GetPoolsParams

NewGetPoolsParams creates a new GetPoolsParams 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 NewGetPoolsParamsWithContext

func NewGetPoolsParamsWithContext(ctx context.Context) *GetPoolsParams

NewGetPoolsParamsWithContext creates a new GetPoolsParams object with the ability to set a context for a request.

func NewGetPoolsParamsWithHTTPClient

func NewGetPoolsParamsWithHTTPClient(client *http.Client) *GetPoolsParams

NewGetPoolsParamsWithHTTPClient creates a new GetPoolsParams object with the ability to set a custom HTTPClient for a request.

func NewGetPoolsParamsWithTimeout

func NewGetPoolsParamsWithTimeout(timeout time.Duration) *GetPoolsParams

NewGetPoolsParamsWithTimeout creates a new GetPoolsParams object with the ability to set a timeout on a request.

func (*GetPoolsParams) SetContext

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

SetContext adds the context to the get pools params

func (*GetPoolsParams) SetDefaults

func (o *GetPoolsParams) SetDefaults()

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

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

func (*GetPoolsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get pools params

func (*GetPoolsParams) SetLimit

func (o *GetPoolsParams) SetLimit(limit *int64)

SetLimit adds the limit to the get pools params

func (*GetPoolsParams) SetMarker

func (o *GetPoolsParams) SetMarker(marker *strfmt.UUID)

SetMarker adds the marker to the get pools params

func (*GetPoolsParams) SetNotTags

func (o *GetPoolsParams) SetNotTags(notTags []string)

SetNotTags adds the notTags to the get pools params

func (*GetPoolsParams) SetNotTagsAny

func (o *GetPoolsParams) SetNotTagsAny(notTagsAny []string)

SetNotTagsAny adds the notTagsAny to the get pools params

func (*GetPoolsParams) SetPageReverse

func (o *GetPoolsParams) SetPageReverse(pageReverse *bool)

SetPageReverse adds the pageReverse to the get pools params

func (*GetPoolsParams) SetSort

func (o *GetPoolsParams) SetSort(sort *string)

SetSort adds the sort to the get pools params

func (*GetPoolsParams) SetTags

func (o *GetPoolsParams) SetTags(tags []string)

SetTags adds the tags to the get pools params

func (*GetPoolsParams) SetTagsAny

func (o *GetPoolsParams) SetTagsAny(tagsAny []string)

SetTagsAny adds the tagsAny to the get pools params

func (*GetPoolsParams) SetTimeout

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

SetTimeout adds the timeout to the get pools params

func (*GetPoolsParams) WithContext

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

WithContext adds the context to the get pools params

func (*GetPoolsParams) WithDefaults

func (o *GetPoolsParams) WithDefaults() *GetPoolsParams

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

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

func (*GetPoolsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get pools params

func (*GetPoolsParams) WithLimit

func (o *GetPoolsParams) WithLimit(limit *int64) *GetPoolsParams

WithLimit adds the limit to the get pools params

func (*GetPoolsParams) WithMarker

func (o *GetPoolsParams) WithMarker(marker *strfmt.UUID) *GetPoolsParams

WithMarker adds the marker to the get pools params

func (*GetPoolsParams) WithNotTags

func (o *GetPoolsParams) WithNotTags(notTags []string) *GetPoolsParams

WithNotTags adds the notTags to the get pools params

func (*GetPoolsParams) WithNotTagsAny

func (o *GetPoolsParams) WithNotTagsAny(notTagsAny []string) *GetPoolsParams

WithNotTagsAny adds the notTagsAny to the get pools params

func (*GetPoolsParams) WithPageReverse

func (o *GetPoolsParams) WithPageReverse(pageReverse *bool) *GetPoolsParams

WithPageReverse adds the pageReverse to the get pools params

func (*GetPoolsParams) WithSort

func (o *GetPoolsParams) WithSort(sort *string) *GetPoolsParams

WithSort adds the sort to the get pools params

func (*GetPoolsParams) WithTags

func (o *GetPoolsParams) WithTags(tags []string) *GetPoolsParams

WithTags adds the tags to the get pools params

func (*GetPoolsParams) WithTagsAny

func (o *GetPoolsParams) WithTagsAny(tagsAny []string) *GetPoolsParams

WithTagsAny adds the tagsAny to the get pools params

func (*GetPoolsParams) WithTimeout

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

WithTimeout adds the timeout to the get pools params

func (*GetPoolsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPoolsPoolIDDefault

type GetPoolsPoolIDDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

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

Unexpected Error

func NewGetPoolsPoolIDDefault

func NewGetPoolsPoolIDDefault(code int) *GetPoolsPoolIDDefault

NewGetPoolsPoolIDDefault creates a GetPoolsPoolIDDefault with default headers values

func (*GetPoolsPoolIDDefault) Code

func (o *GetPoolsPoolIDDefault) Code() int

Code gets the status code for the get pools pool ID default response

func (*GetPoolsPoolIDDefault) Error

func (o *GetPoolsPoolIDDefault) Error() string

func (*GetPoolsPoolIDDefault) GetPayload

func (o *GetPoolsPoolIDDefault) GetPayload() *models.Error

func (*GetPoolsPoolIDDefault) IsClientError

func (o *GetPoolsPoolIDDefault) IsClientError() bool

IsClientError returns true when this get pools pool ID default response has a 4xx status code

func (*GetPoolsPoolIDDefault) IsCode

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

IsCode returns true when this get pools pool ID default response a status code equal to that given

func (*GetPoolsPoolIDDefault) IsRedirect

func (o *GetPoolsPoolIDDefault) IsRedirect() bool

IsRedirect returns true when this get pools pool ID default response has a 3xx status code

func (*GetPoolsPoolIDDefault) IsServerError

func (o *GetPoolsPoolIDDefault) IsServerError() bool

IsServerError returns true when this get pools pool ID default response has a 5xx status code

func (*GetPoolsPoolIDDefault) IsSuccess

func (o *GetPoolsPoolIDDefault) IsSuccess() bool

IsSuccess returns true when this get pools pool ID default response has a 2xx status code

func (*GetPoolsPoolIDDefault) String

func (o *GetPoolsPoolIDDefault) String() string

type GetPoolsPoolIDNotFound

type GetPoolsPoolIDNotFound struct {
	Payload *models.Error
}

GetPoolsPoolIDNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetPoolsPoolIDNotFound

func NewGetPoolsPoolIDNotFound() *GetPoolsPoolIDNotFound

NewGetPoolsPoolIDNotFound creates a GetPoolsPoolIDNotFound with default headers values

func (*GetPoolsPoolIDNotFound) Code

func (o *GetPoolsPoolIDNotFound) Code() int

Code gets the status code for the get pools pool Id not found response

func (*GetPoolsPoolIDNotFound) Error

func (o *GetPoolsPoolIDNotFound) Error() string

func (*GetPoolsPoolIDNotFound) GetPayload

func (o *GetPoolsPoolIDNotFound) GetPayload() *models.Error

func (*GetPoolsPoolIDNotFound) IsClientError

func (o *GetPoolsPoolIDNotFound) IsClientError() bool

IsClientError returns true when this get pools pool Id not found response has a 4xx status code

func (*GetPoolsPoolIDNotFound) IsCode

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

IsCode returns true when this get pools pool Id not found response a status code equal to that given

func (*GetPoolsPoolIDNotFound) IsRedirect

func (o *GetPoolsPoolIDNotFound) IsRedirect() bool

IsRedirect returns true when this get pools pool Id not found response has a 3xx status code

func (*GetPoolsPoolIDNotFound) IsServerError

func (o *GetPoolsPoolIDNotFound) IsServerError() bool

IsServerError returns true when this get pools pool Id not found response has a 5xx status code

func (*GetPoolsPoolIDNotFound) IsSuccess

func (o *GetPoolsPoolIDNotFound) IsSuccess() bool

IsSuccess returns true when this get pools pool Id not found response has a 2xx status code

func (*GetPoolsPoolIDNotFound) String

func (o *GetPoolsPoolIDNotFound) String() string

type GetPoolsPoolIDOK

type GetPoolsPoolIDOK struct {
	Payload *GetPoolsPoolIDOKBody
}

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

Shows the details of a specific pool.

func NewGetPoolsPoolIDOK

func NewGetPoolsPoolIDOK() *GetPoolsPoolIDOK

NewGetPoolsPoolIDOK creates a GetPoolsPoolIDOK with default headers values

func (*GetPoolsPoolIDOK) Code

func (o *GetPoolsPoolIDOK) Code() int

Code gets the status code for the get pools pool Id o k response

func (*GetPoolsPoolIDOK) Error

func (o *GetPoolsPoolIDOK) Error() string

func (*GetPoolsPoolIDOK) GetPayload

func (o *GetPoolsPoolIDOK) GetPayload() *GetPoolsPoolIDOKBody

func (*GetPoolsPoolIDOK) IsClientError

func (o *GetPoolsPoolIDOK) IsClientError() bool

IsClientError returns true when this get pools pool Id o k response has a 4xx status code

func (*GetPoolsPoolIDOK) IsCode

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

IsCode returns true when this get pools pool Id o k response a status code equal to that given

func (*GetPoolsPoolIDOK) IsRedirect

func (o *GetPoolsPoolIDOK) IsRedirect() bool

IsRedirect returns true when this get pools pool Id o k response has a 3xx status code

func (*GetPoolsPoolIDOK) IsServerError

func (o *GetPoolsPoolIDOK) IsServerError() bool

IsServerError returns true when this get pools pool Id o k response has a 5xx status code

func (*GetPoolsPoolIDOK) IsSuccess

func (o *GetPoolsPoolIDOK) IsSuccess() bool

IsSuccess returns true when this get pools pool Id o k response has a 2xx status code

func (*GetPoolsPoolIDOK) String

func (o *GetPoolsPoolIDOK) String() string

type GetPoolsPoolIDOKBody

type GetPoolsPoolIDOKBody struct {

	// pool
	Pool *models.Pool `json:"pool,omitempty"`
}

GetPoolsPoolIDOKBody get pools pool ID o k body swagger:model GetPoolsPoolIDOKBody

func (*GetPoolsPoolIDOKBody) ContextValidate

func (o *GetPoolsPoolIDOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get pools pool ID o k body based on the context it is used

func (*GetPoolsPoolIDOKBody) MarshalBinary

func (o *GetPoolsPoolIDOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetPoolsPoolIDOKBody) UnmarshalBinary

func (o *GetPoolsPoolIDOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetPoolsPoolIDOKBody) Validate

func (o *GetPoolsPoolIDOKBody) Validate(formats strfmt.Registry) error

Validate validates this get pools pool ID o k body

type GetPoolsPoolIDParams

type GetPoolsPoolIDParams struct {

	/* PoolID.

	   The UUID of the pool

	   Format: uuid
	*/
	PoolID strfmt.UUID

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

GetPoolsPoolIDParams contains all the parameters to send to the API endpoint

for the get pools pool ID operation.

Typically these are written to a http.Request.

func NewGetPoolsPoolIDParams

func NewGetPoolsPoolIDParams() *GetPoolsPoolIDParams

NewGetPoolsPoolIDParams creates a new GetPoolsPoolIDParams 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 NewGetPoolsPoolIDParamsWithContext

func NewGetPoolsPoolIDParamsWithContext(ctx context.Context) *GetPoolsPoolIDParams

NewGetPoolsPoolIDParamsWithContext creates a new GetPoolsPoolIDParams object with the ability to set a context for a request.

func NewGetPoolsPoolIDParamsWithHTTPClient

func NewGetPoolsPoolIDParamsWithHTTPClient(client *http.Client) *GetPoolsPoolIDParams

NewGetPoolsPoolIDParamsWithHTTPClient creates a new GetPoolsPoolIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetPoolsPoolIDParamsWithTimeout

func NewGetPoolsPoolIDParamsWithTimeout(timeout time.Duration) *GetPoolsPoolIDParams

NewGetPoolsPoolIDParamsWithTimeout creates a new GetPoolsPoolIDParams object with the ability to set a timeout on a request.

func (*GetPoolsPoolIDParams) SetContext

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

SetContext adds the context to the get pools pool ID params

func (*GetPoolsPoolIDParams) SetDefaults

func (o *GetPoolsPoolIDParams) SetDefaults()

SetDefaults hydrates default values in the get pools pool ID params (not the query body).

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

func (*GetPoolsPoolIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get pools pool ID params

func (*GetPoolsPoolIDParams) SetPoolID

func (o *GetPoolsPoolIDParams) SetPoolID(poolID strfmt.UUID)

SetPoolID adds the poolId to the get pools pool ID params

func (*GetPoolsPoolIDParams) SetTimeout

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

SetTimeout adds the timeout to the get pools pool ID params

func (*GetPoolsPoolIDParams) WithContext

WithContext adds the context to the get pools pool ID params

func (*GetPoolsPoolIDParams) WithDefaults

func (o *GetPoolsPoolIDParams) WithDefaults() *GetPoolsPoolIDParams

WithDefaults hydrates default values in the get pools pool ID params (not the query body).

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

func (*GetPoolsPoolIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get pools pool ID params

func (*GetPoolsPoolIDParams) WithPoolID

func (o *GetPoolsPoolIDParams) WithPoolID(poolID strfmt.UUID) *GetPoolsPoolIDParams

WithPoolID adds the poolID to the get pools pool ID params

func (*GetPoolsPoolIDParams) WithTimeout

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

WithTimeout adds the timeout to the get pools pool ID params

func (*GetPoolsPoolIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPoolsPoolIDReader

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

GetPoolsPoolIDReader is a Reader for the GetPoolsPoolID structure.

func (*GetPoolsPoolIDReader) ReadResponse

func (o *GetPoolsPoolIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPoolsReader

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

GetPoolsReader is a Reader for the GetPools structure.

func (*GetPoolsReader) ReadResponse

func (o *GetPoolsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostPoolsBadRequest

type PostPoolsBadRequest struct {
	Payload *models.Error
}

PostPoolsBadRequest describes a response with status code 400, with default header values.

Bad request

func NewPostPoolsBadRequest

func NewPostPoolsBadRequest() *PostPoolsBadRequest

NewPostPoolsBadRequest creates a PostPoolsBadRequest with default headers values

func (*PostPoolsBadRequest) Code

func (o *PostPoolsBadRequest) Code() int

Code gets the status code for the post pools bad request response

func (*PostPoolsBadRequest) Error

func (o *PostPoolsBadRequest) Error() string

func (*PostPoolsBadRequest) GetPayload

func (o *PostPoolsBadRequest) GetPayload() *models.Error

func (*PostPoolsBadRequest) IsClientError

func (o *PostPoolsBadRequest) IsClientError() bool

IsClientError returns true when this post pools bad request response has a 4xx status code

func (*PostPoolsBadRequest) IsCode

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

IsCode returns true when this post pools bad request response a status code equal to that given

func (*PostPoolsBadRequest) IsRedirect

func (o *PostPoolsBadRequest) IsRedirect() bool

IsRedirect returns true when this post pools bad request response has a 3xx status code

func (*PostPoolsBadRequest) IsServerError

func (o *PostPoolsBadRequest) IsServerError() bool

IsServerError returns true when this post pools bad request response has a 5xx status code

func (*PostPoolsBadRequest) IsSuccess

func (o *PostPoolsBadRequest) IsSuccess() bool

IsSuccess returns true when this post pools bad request response has a 2xx status code

func (*PostPoolsBadRequest) String

func (o *PostPoolsBadRequest) String() string

type PostPoolsBody

type PostPoolsBody struct {

	// pool
	// Required: true
	Pool *models.Pool `json:"pool"`
}

PostPoolsBody post pools body swagger:model PostPoolsBody

func (*PostPoolsBody) ContextValidate

func (o *PostPoolsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this post pools body based on the context it is used

func (*PostPoolsBody) MarshalBinary

func (o *PostPoolsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostPoolsBody) UnmarshalBinary

func (o *PostPoolsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostPoolsBody) Validate

func (o *PostPoolsBody) Validate(formats strfmt.Registry) error

Validate validates this post pools body

type PostPoolsCreated

type PostPoolsCreated struct {
	Payload *PostPoolsCreatedBody
}

PostPoolsCreated describes a response with status code 201, with default header values.

Created pool.

func NewPostPoolsCreated

func NewPostPoolsCreated() *PostPoolsCreated

NewPostPoolsCreated creates a PostPoolsCreated with default headers values

func (*PostPoolsCreated) Code

func (o *PostPoolsCreated) Code() int

Code gets the status code for the post pools created response

func (*PostPoolsCreated) Error

func (o *PostPoolsCreated) Error() string

func (*PostPoolsCreated) GetPayload

func (o *PostPoolsCreated) GetPayload() *PostPoolsCreatedBody

func (*PostPoolsCreated) IsClientError

func (o *PostPoolsCreated) IsClientError() bool

IsClientError returns true when this post pools created response has a 4xx status code

func (*PostPoolsCreated) IsCode

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

IsCode returns true when this post pools created response a status code equal to that given

func (*PostPoolsCreated) IsRedirect

func (o *PostPoolsCreated) IsRedirect() bool

IsRedirect returns true when this post pools created response has a 3xx status code

func (*PostPoolsCreated) IsServerError

func (o *PostPoolsCreated) IsServerError() bool

IsServerError returns true when this post pools created response has a 5xx status code

func (*PostPoolsCreated) IsSuccess

func (o *PostPoolsCreated) IsSuccess() bool

IsSuccess returns true when this post pools created response has a 2xx status code

func (*PostPoolsCreated) String

func (o *PostPoolsCreated) String() string

type PostPoolsCreatedBody

type PostPoolsCreatedBody struct {

	// pool
	Pool *models.Pool `json:"pool,omitempty"`
}

PostPoolsCreatedBody post pools created body swagger:model PostPoolsCreatedBody

func (*PostPoolsCreatedBody) ContextValidate

func (o *PostPoolsCreatedBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this post pools created body based on the context it is used

func (*PostPoolsCreatedBody) MarshalBinary

func (o *PostPoolsCreatedBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostPoolsCreatedBody) UnmarshalBinary

func (o *PostPoolsCreatedBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostPoolsCreatedBody) Validate

func (o *PostPoolsCreatedBody) Validate(formats strfmt.Registry) error

Validate validates this post pools created body

type PostPoolsDefault

type PostPoolsDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

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

Unexpected Error

func NewPostPoolsDefault

func NewPostPoolsDefault(code int) *PostPoolsDefault

NewPostPoolsDefault creates a PostPoolsDefault with default headers values

func (*PostPoolsDefault) Code

func (o *PostPoolsDefault) Code() int

Code gets the status code for the post pools default response

func (*PostPoolsDefault) Error

func (o *PostPoolsDefault) Error() string

func (*PostPoolsDefault) GetPayload

func (o *PostPoolsDefault) GetPayload() *models.Error

func (*PostPoolsDefault) IsClientError

func (o *PostPoolsDefault) IsClientError() bool

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

func (*PostPoolsDefault) IsCode

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

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

func (*PostPoolsDefault) IsRedirect

func (o *PostPoolsDefault) IsRedirect() bool

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

func (*PostPoolsDefault) IsServerError

func (o *PostPoolsDefault) IsServerError() bool

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

func (*PostPoolsDefault) IsSuccess

func (o *PostPoolsDefault) IsSuccess() bool

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

func (*PostPoolsDefault) String

func (o *PostPoolsDefault) String() string

type PostPoolsParams

type PostPoolsParams struct {

	// Pool.
	Pool PostPoolsBody

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

PostPoolsParams contains all the parameters to send to the API endpoint

for the post pools operation.

Typically these are written to a http.Request.

func NewPostPoolsParams

func NewPostPoolsParams() *PostPoolsParams

NewPostPoolsParams creates a new PostPoolsParams 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 NewPostPoolsParamsWithContext

func NewPostPoolsParamsWithContext(ctx context.Context) *PostPoolsParams

NewPostPoolsParamsWithContext creates a new PostPoolsParams object with the ability to set a context for a request.

func NewPostPoolsParamsWithHTTPClient

func NewPostPoolsParamsWithHTTPClient(client *http.Client) *PostPoolsParams

NewPostPoolsParamsWithHTTPClient creates a new PostPoolsParams object with the ability to set a custom HTTPClient for a request.

func NewPostPoolsParamsWithTimeout

func NewPostPoolsParamsWithTimeout(timeout time.Duration) *PostPoolsParams

NewPostPoolsParamsWithTimeout creates a new PostPoolsParams object with the ability to set a timeout on a request.

func (*PostPoolsParams) SetContext

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

SetContext adds the context to the post pools params

func (*PostPoolsParams) SetDefaults

func (o *PostPoolsParams) SetDefaults()

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

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

func (*PostPoolsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post pools params

func (*PostPoolsParams) SetPool

func (o *PostPoolsParams) SetPool(pool PostPoolsBody)

SetPool adds the pool to the post pools params

func (*PostPoolsParams) SetTimeout

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

SetTimeout adds the timeout to the post pools params

func (*PostPoolsParams) WithContext

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

WithContext adds the context to the post pools params

func (*PostPoolsParams) WithDefaults

func (o *PostPoolsParams) WithDefaults() *PostPoolsParams

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

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

func (*PostPoolsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post pools params

func (*PostPoolsParams) WithPool

func (o *PostPoolsParams) WithPool(pool PostPoolsBody) *PostPoolsParams

WithPool adds the pool to the post pools params

func (*PostPoolsParams) WithTimeout

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

WithTimeout adds the timeout to the post pools params

func (*PostPoolsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostPoolsReader

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

PostPoolsReader is a Reader for the PostPools structure.

func (*PostPoolsReader) ReadResponse

func (o *PostPoolsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PutPoolsPoolIDAccepted

type PutPoolsPoolIDAccepted struct {
	Payload *PutPoolsPoolIDAcceptedBody
}

PutPoolsPoolIDAccepted describes a response with status code 202, with default header values.

Updated pool.

func NewPutPoolsPoolIDAccepted

func NewPutPoolsPoolIDAccepted() *PutPoolsPoolIDAccepted

NewPutPoolsPoolIDAccepted creates a PutPoolsPoolIDAccepted with default headers values

func (*PutPoolsPoolIDAccepted) Code

func (o *PutPoolsPoolIDAccepted) Code() int

Code gets the status code for the put pools pool Id accepted response

func (*PutPoolsPoolIDAccepted) Error

func (o *PutPoolsPoolIDAccepted) Error() string

func (*PutPoolsPoolIDAccepted) GetPayload

func (*PutPoolsPoolIDAccepted) IsClientError

func (o *PutPoolsPoolIDAccepted) IsClientError() bool

IsClientError returns true when this put pools pool Id accepted response has a 4xx status code

func (*PutPoolsPoolIDAccepted) IsCode

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

IsCode returns true when this put pools pool Id accepted response a status code equal to that given

func (*PutPoolsPoolIDAccepted) IsRedirect

func (o *PutPoolsPoolIDAccepted) IsRedirect() bool

IsRedirect returns true when this put pools pool Id accepted response has a 3xx status code

func (*PutPoolsPoolIDAccepted) IsServerError

func (o *PutPoolsPoolIDAccepted) IsServerError() bool

IsServerError returns true when this put pools pool Id accepted response has a 5xx status code

func (*PutPoolsPoolIDAccepted) IsSuccess

func (o *PutPoolsPoolIDAccepted) IsSuccess() bool

IsSuccess returns true when this put pools pool Id accepted response has a 2xx status code

func (*PutPoolsPoolIDAccepted) String

func (o *PutPoolsPoolIDAccepted) String() string

type PutPoolsPoolIDAcceptedBody

type PutPoolsPoolIDAcceptedBody struct {

	// pool
	Pool *models.Pool `json:"pool,omitempty"`
}

PutPoolsPoolIDAcceptedBody put pools pool ID accepted body swagger:model PutPoolsPoolIDAcceptedBody

func (*PutPoolsPoolIDAcceptedBody) ContextValidate

func (o *PutPoolsPoolIDAcceptedBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this put pools pool ID accepted body based on the context it is used

func (*PutPoolsPoolIDAcceptedBody) MarshalBinary

func (o *PutPoolsPoolIDAcceptedBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PutPoolsPoolIDAcceptedBody) UnmarshalBinary

func (o *PutPoolsPoolIDAcceptedBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PutPoolsPoolIDAcceptedBody) Validate

func (o *PutPoolsPoolIDAcceptedBody) Validate(formats strfmt.Registry) error

Validate validates this put pools pool ID accepted body

type PutPoolsPoolIDBody

type PutPoolsPoolIDBody struct {

	// pool
	// Required: true
	Pool *models.Pool `json:"pool"`
}

PutPoolsPoolIDBody put pools pool ID body swagger:model PutPoolsPoolIDBody

func (*PutPoolsPoolIDBody) ContextValidate

func (o *PutPoolsPoolIDBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this put pools pool ID body based on the context it is used

func (*PutPoolsPoolIDBody) MarshalBinary

func (o *PutPoolsPoolIDBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PutPoolsPoolIDBody) UnmarshalBinary

func (o *PutPoolsPoolIDBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PutPoolsPoolIDBody) Validate

func (o *PutPoolsPoolIDBody) Validate(formats strfmt.Registry) error

Validate validates this put pools pool ID body

type PutPoolsPoolIDDefault

type PutPoolsPoolIDDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

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

Unexpected Error

func NewPutPoolsPoolIDDefault

func NewPutPoolsPoolIDDefault(code int) *PutPoolsPoolIDDefault

NewPutPoolsPoolIDDefault creates a PutPoolsPoolIDDefault with default headers values

func (*PutPoolsPoolIDDefault) Code

func (o *PutPoolsPoolIDDefault) Code() int

Code gets the status code for the put pools pool ID default response

func (*PutPoolsPoolIDDefault) Error

func (o *PutPoolsPoolIDDefault) Error() string

func (*PutPoolsPoolIDDefault) GetPayload

func (o *PutPoolsPoolIDDefault) GetPayload() *models.Error

func (*PutPoolsPoolIDDefault) IsClientError

func (o *PutPoolsPoolIDDefault) IsClientError() bool

IsClientError returns true when this put pools pool ID default response has a 4xx status code

func (*PutPoolsPoolIDDefault) IsCode

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

IsCode returns true when this put pools pool ID default response a status code equal to that given

func (*PutPoolsPoolIDDefault) IsRedirect

func (o *PutPoolsPoolIDDefault) IsRedirect() bool

IsRedirect returns true when this put pools pool ID default response has a 3xx status code

func (*PutPoolsPoolIDDefault) IsServerError

func (o *PutPoolsPoolIDDefault) IsServerError() bool

IsServerError returns true when this put pools pool ID default response has a 5xx status code

func (*PutPoolsPoolIDDefault) IsSuccess

func (o *PutPoolsPoolIDDefault) IsSuccess() bool

IsSuccess returns true when this put pools pool ID default response has a 2xx status code

func (*PutPoolsPoolIDDefault) String

func (o *PutPoolsPoolIDDefault) String() string

type PutPoolsPoolIDNotFound

type PutPoolsPoolIDNotFound struct {
	Payload *models.Error
}

PutPoolsPoolIDNotFound describes a response with status code 404, with default header values.

Not Found

func NewPutPoolsPoolIDNotFound

func NewPutPoolsPoolIDNotFound() *PutPoolsPoolIDNotFound

NewPutPoolsPoolIDNotFound creates a PutPoolsPoolIDNotFound with default headers values

func (*PutPoolsPoolIDNotFound) Code

func (o *PutPoolsPoolIDNotFound) Code() int

Code gets the status code for the put pools pool Id not found response

func (*PutPoolsPoolIDNotFound) Error

func (o *PutPoolsPoolIDNotFound) Error() string

func (*PutPoolsPoolIDNotFound) GetPayload

func (o *PutPoolsPoolIDNotFound) GetPayload() *models.Error

func (*PutPoolsPoolIDNotFound) IsClientError

func (o *PutPoolsPoolIDNotFound) IsClientError() bool

IsClientError returns true when this put pools pool Id not found response has a 4xx status code

func (*PutPoolsPoolIDNotFound) IsCode

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

IsCode returns true when this put pools pool Id not found response a status code equal to that given

func (*PutPoolsPoolIDNotFound) IsRedirect

func (o *PutPoolsPoolIDNotFound) IsRedirect() bool

IsRedirect returns true when this put pools pool Id not found response has a 3xx status code

func (*PutPoolsPoolIDNotFound) IsServerError

func (o *PutPoolsPoolIDNotFound) IsServerError() bool

IsServerError returns true when this put pools pool Id not found response has a 5xx status code

func (*PutPoolsPoolIDNotFound) IsSuccess

func (o *PutPoolsPoolIDNotFound) IsSuccess() bool

IsSuccess returns true when this put pools pool Id not found response has a 2xx status code

func (*PutPoolsPoolIDNotFound) String

func (o *PutPoolsPoolIDNotFound) String() string

type PutPoolsPoolIDParams

type PutPoolsPoolIDParams struct {

	// Pool.
	Pool PutPoolsPoolIDBody

	/* PoolID.

	   The UUID of the pool

	   Format: uuid
	*/
	PoolID strfmt.UUID

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

PutPoolsPoolIDParams contains all the parameters to send to the API endpoint

for the put pools pool ID operation.

Typically these are written to a http.Request.

func NewPutPoolsPoolIDParams

func NewPutPoolsPoolIDParams() *PutPoolsPoolIDParams

NewPutPoolsPoolIDParams creates a new PutPoolsPoolIDParams 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 NewPutPoolsPoolIDParamsWithContext

func NewPutPoolsPoolIDParamsWithContext(ctx context.Context) *PutPoolsPoolIDParams

NewPutPoolsPoolIDParamsWithContext creates a new PutPoolsPoolIDParams object with the ability to set a context for a request.

func NewPutPoolsPoolIDParamsWithHTTPClient

func NewPutPoolsPoolIDParamsWithHTTPClient(client *http.Client) *PutPoolsPoolIDParams

NewPutPoolsPoolIDParamsWithHTTPClient creates a new PutPoolsPoolIDParams object with the ability to set a custom HTTPClient for a request.

func NewPutPoolsPoolIDParamsWithTimeout

func NewPutPoolsPoolIDParamsWithTimeout(timeout time.Duration) *PutPoolsPoolIDParams

NewPutPoolsPoolIDParamsWithTimeout creates a new PutPoolsPoolIDParams object with the ability to set a timeout on a request.

func (*PutPoolsPoolIDParams) SetContext

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

SetContext adds the context to the put pools pool ID params

func (*PutPoolsPoolIDParams) SetDefaults

func (o *PutPoolsPoolIDParams) SetDefaults()

SetDefaults hydrates default values in the put pools pool ID params (not the query body).

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

func (*PutPoolsPoolIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put pools pool ID params

func (*PutPoolsPoolIDParams) SetPool

func (o *PutPoolsPoolIDParams) SetPool(pool PutPoolsPoolIDBody)

SetPool adds the pool to the put pools pool ID params

func (*PutPoolsPoolIDParams) SetPoolID

func (o *PutPoolsPoolIDParams) SetPoolID(poolID strfmt.UUID)

SetPoolID adds the poolId to the put pools pool ID params

func (*PutPoolsPoolIDParams) SetTimeout

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

SetTimeout adds the timeout to the put pools pool ID params

func (*PutPoolsPoolIDParams) WithContext

WithContext adds the context to the put pools pool ID params

func (*PutPoolsPoolIDParams) WithDefaults

func (o *PutPoolsPoolIDParams) WithDefaults() *PutPoolsPoolIDParams

WithDefaults hydrates default values in the put pools pool ID params (not the query body).

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

func (*PutPoolsPoolIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the put pools pool ID params

func (*PutPoolsPoolIDParams) WithPool

WithPool adds the pool to the put pools pool ID params

func (*PutPoolsPoolIDParams) WithPoolID

func (o *PutPoolsPoolIDParams) WithPoolID(poolID strfmt.UUID) *PutPoolsPoolIDParams

WithPoolID adds the poolID to the put pools pool ID params

func (*PutPoolsPoolIDParams) WithTimeout

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

WithTimeout adds the timeout to the put pools pool ID params

func (*PutPoolsPoolIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PutPoolsPoolIDReader

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

PutPoolsPoolIDReader is a Reader for the PutPoolsPoolID structure.

func (*PutPoolsPoolIDReader) ReadResponse

func (o *PutPoolsPoolIDReader) 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