presets_v1

package
v0.0.0-...-13a6dad Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: Apache-2.0 Imports: 11 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 presets v1 API

func (*Client) CreatePreset

CreatePreset creates scheduling presets

func (*Client) DeletePreset

DeletePreset deletes scheduling preset

func (*Client) GetPreset

func (a *Client) GetPreset(params *GetPresetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPresetOK, *GetPresetNoContent, error)

GetPreset gets scheduling preset

func (*Client) ListPresetNames

ListPresetNames lists scheduling presets names

func (*Client) ListPresets

ListPresets lists scheduling presets

func (*Client) PatchPreset

PatchPreset patches scheduling preset

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdatePreset

UpdatePreset updates scheduling preset

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new presets v1 API client.

type CreatePresetDefault

type CreatePresetDefault struct {
	Payload *service_model.RuntimeError
	// contains filtered or unexported fields
}
CreatePresetDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewCreatePresetDefault

func NewCreatePresetDefault(code int) *CreatePresetDefault

NewCreatePresetDefault creates a CreatePresetDefault with default headers values

func (*CreatePresetDefault) Code

func (o *CreatePresetDefault) Code() int

Code gets the status code for the create preset default response

func (*CreatePresetDefault) Error

func (o *CreatePresetDefault) Error() string

func (*CreatePresetDefault) GetPayload

type CreatePresetForbidden

type CreatePresetForbidden struct {
	Payload interface{}
}
CreatePresetForbidden describes a response with status code 403, with default header values.

You don't have permission to access the resource.

func NewCreatePresetForbidden

func NewCreatePresetForbidden() *CreatePresetForbidden

NewCreatePresetForbidden creates a CreatePresetForbidden with default headers values

func (*CreatePresetForbidden) Error

func (o *CreatePresetForbidden) Error() string

func (*CreatePresetForbidden) GetPayload

func (o *CreatePresetForbidden) GetPayload() interface{}

type CreatePresetNoContent

type CreatePresetNoContent struct {
	Payload interface{}
}
CreatePresetNoContent describes a response with status code 204, with default header values.

No content.

func NewCreatePresetNoContent

func NewCreatePresetNoContent() *CreatePresetNoContent

NewCreatePresetNoContent creates a CreatePresetNoContent with default headers values

func (*CreatePresetNoContent) Error

func (o *CreatePresetNoContent) Error() string

func (*CreatePresetNoContent) GetPayload

func (o *CreatePresetNoContent) GetPayload() interface{}

type CreatePresetNotFound

type CreatePresetNotFound struct {
	Payload interface{}
}
CreatePresetNotFound describes a response with status code 404, with default header values.

Resource does not exist.

func NewCreatePresetNotFound

func NewCreatePresetNotFound() *CreatePresetNotFound

NewCreatePresetNotFound creates a CreatePresetNotFound with default headers values

func (*CreatePresetNotFound) Error

func (o *CreatePresetNotFound) Error() string

func (*CreatePresetNotFound) GetPayload

func (o *CreatePresetNotFound) GetPayload() interface{}

type CreatePresetOK

type CreatePresetOK struct {
	Payload *service_model.V1Preset
}
CreatePresetOK describes a response with status code 200, with default header values.

A successful response.

func NewCreatePresetOK

func NewCreatePresetOK() *CreatePresetOK

NewCreatePresetOK creates a CreatePresetOK with default headers values

func (*CreatePresetOK) Error

func (o *CreatePresetOK) Error() string

func (*CreatePresetOK) GetPayload

func (o *CreatePresetOK) GetPayload() *service_model.V1Preset

type CreatePresetParams

type CreatePresetParams struct {

	/* Body.

	   Preset body
	*/
	Body *service_model.V1Preset

	/* Owner.

	   Owner of the namespace
	*/
	Owner string

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

CreatePresetParams contains all the parameters to send to the API endpoint

for the create preset operation.

Typically these are written to a http.Request.

func NewCreatePresetParams

func NewCreatePresetParams() *CreatePresetParams

NewCreatePresetParams creates a new CreatePresetParams 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 NewCreatePresetParamsWithContext

func NewCreatePresetParamsWithContext(ctx context.Context) *CreatePresetParams

NewCreatePresetParamsWithContext creates a new CreatePresetParams object with the ability to set a context for a request.

func NewCreatePresetParamsWithHTTPClient

func NewCreatePresetParamsWithHTTPClient(client *http.Client) *CreatePresetParams

NewCreatePresetParamsWithHTTPClient creates a new CreatePresetParams object with the ability to set a custom HTTPClient for a request.

func NewCreatePresetParamsWithTimeout

func NewCreatePresetParamsWithTimeout(timeout time.Duration) *CreatePresetParams

NewCreatePresetParamsWithTimeout creates a new CreatePresetParams object with the ability to set a timeout on a request.

func (*CreatePresetParams) SetBody

func (o *CreatePresetParams) SetBody(body *service_model.V1Preset)

SetBody adds the body to the create preset params

func (*CreatePresetParams) SetContext

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

SetContext adds the context to the create preset params

func (*CreatePresetParams) SetDefaults

func (o *CreatePresetParams) SetDefaults()

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

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

func (*CreatePresetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create preset params

func (*CreatePresetParams) SetOwner

func (o *CreatePresetParams) SetOwner(owner string)

SetOwner adds the owner to the create preset params

func (*CreatePresetParams) SetTimeout

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

SetTimeout adds the timeout to the create preset params

func (*CreatePresetParams) WithBody

WithBody adds the body to the create preset params

func (*CreatePresetParams) WithContext

WithContext adds the context to the create preset params

func (*CreatePresetParams) WithDefaults

func (o *CreatePresetParams) WithDefaults() *CreatePresetParams

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

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

func (*CreatePresetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create preset params

func (*CreatePresetParams) WithOwner

func (o *CreatePresetParams) WithOwner(owner string) *CreatePresetParams

WithOwner adds the owner to the create preset params

func (*CreatePresetParams) WithTimeout

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

WithTimeout adds the timeout to the create preset params

func (*CreatePresetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreatePresetReader

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

CreatePresetReader is a Reader for the CreatePreset structure.

func (*CreatePresetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeletePresetDefault

type DeletePresetDefault struct {
	Payload *service_model.RuntimeError
	// contains filtered or unexported fields
}
DeletePresetDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewDeletePresetDefault

func NewDeletePresetDefault(code int) *DeletePresetDefault

NewDeletePresetDefault creates a DeletePresetDefault with default headers values

func (*DeletePresetDefault) Code

func (o *DeletePresetDefault) Code() int

Code gets the status code for the delete preset default response

func (*DeletePresetDefault) Error

func (o *DeletePresetDefault) Error() string

func (*DeletePresetDefault) GetPayload

type DeletePresetForbidden

type DeletePresetForbidden struct {
	Payload interface{}
}
DeletePresetForbidden describes a response with status code 403, with default header values.

You don't have permission to access the resource.

func NewDeletePresetForbidden

func NewDeletePresetForbidden() *DeletePresetForbidden

NewDeletePresetForbidden creates a DeletePresetForbidden with default headers values

func (*DeletePresetForbidden) Error

func (o *DeletePresetForbidden) Error() string

func (*DeletePresetForbidden) GetPayload

func (o *DeletePresetForbidden) GetPayload() interface{}

type DeletePresetNoContent

type DeletePresetNoContent struct {
	Payload interface{}
}
DeletePresetNoContent describes a response with status code 204, with default header values.

No content.

func NewDeletePresetNoContent

func NewDeletePresetNoContent() *DeletePresetNoContent

NewDeletePresetNoContent creates a DeletePresetNoContent with default headers values

func (*DeletePresetNoContent) Error

func (o *DeletePresetNoContent) Error() string

func (*DeletePresetNoContent) GetPayload

func (o *DeletePresetNoContent) GetPayload() interface{}

type DeletePresetNotFound

type DeletePresetNotFound struct {
	Payload interface{}
}
DeletePresetNotFound describes a response with status code 404, with default header values.

Resource does not exist.

func NewDeletePresetNotFound

func NewDeletePresetNotFound() *DeletePresetNotFound

NewDeletePresetNotFound creates a DeletePresetNotFound with default headers values

func (*DeletePresetNotFound) Error

func (o *DeletePresetNotFound) Error() string

func (*DeletePresetNotFound) GetPayload

func (o *DeletePresetNotFound) GetPayload() interface{}

type DeletePresetOK

type DeletePresetOK struct {
}
DeletePresetOK describes a response with status code 200, with default header values.

A successful response.

func NewDeletePresetOK

func NewDeletePresetOK() *DeletePresetOK

NewDeletePresetOK creates a DeletePresetOK with default headers values

func (*DeletePresetOK) Error

func (o *DeletePresetOK) Error() string

type DeletePresetParams

type DeletePresetParams struct {

	/* Entity.

	   Entity: project name, hub name, registry name, ...
	*/
	Entity *string

	/* Owner.

	   Owner of the namespace
	*/
	Owner string

	/* UUID.

	   Uuid identifier of the sub-entity
	*/
	UUID string

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

DeletePresetParams contains all the parameters to send to the API endpoint

for the delete preset operation.

Typically these are written to a http.Request.

func NewDeletePresetParams

func NewDeletePresetParams() *DeletePresetParams

NewDeletePresetParams creates a new DeletePresetParams 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 NewDeletePresetParamsWithContext

func NewDeletePresetParamsWithContext(ctx context.Context) *DeletePresetParams

NewDeletePresetParamsWithContext creates a new DeletePresetParams object with the ability to set a context for a request.

func NewDeletePresetParamsWithHTTPClient

func NewDeletePresetParamsWithHTTPClient(client *http.Client) *DeletePresetParams

NewDeletePresetParamsWithHTTPClient creates a new DeletePresetParams object with the ability to set a custom HTTPClient for a request.

func NewDeletePresetParamsWithTimeout

func NewDeletePresetParamsWithTimeout(timeout time.Duration) *DeletePresetParams

NewDeletePresetParamsWithTimeout creates a new DeletePresetParams object with the ability to set a timeout on a request.

func (*DeletePresetParams) SetContext

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

SetContext adds the context to the delete preset params

func (*DeletePresetParams) SetDefaults

func (o *DeletePresetParams) SetDefaults()

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

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

func (*DeletePresetParams) SetEntity

func (o *DeletePresetParams) SetEntity(entity *string)

SetEntity adds the entity to the delete preset params

func (*DeletePresetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete preset params

func (*DeletePresetParams) SetOwner

func (o *DeletePresetParams) SetOwner(owner string)

SetOwner adds the owner to the delete preset params

func (*DeletePresetParams) SetTimeout

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

SetTimeout adds the timeout to the delete preset params

func (*DeletePresetParams) SetUUID

func (o *DeletePresetParams) SetUUID(uuid string)

SetUUID adds the uuid to the delete preset params

func (*DeletePresetParams) WithContext

WithContext adds the context to the delete preset params

func (*DeletePresetParams) WithDefaults

func (o *DeletePresetParams) WithDefaults() *DeletePresetParams

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

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

func (*DeletePresetParams) WithEntity

func (o *DeletePresetParams) WithEntity(entity *string) *DeletePresetParams

WithEntity adds the entity to the delete preset params

func (*DeletePresetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete preset params

func (*DeletePresetParams) WithOwner

func (o *DeletePresetParams) WithOwner(owner string) *DeletePresetParams

WithOwner adds the owner to the delete preset params

func (*DeletePresetParams) WithTimeout

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

WithTimeout adds the timeout to the delete preset params

func (*DeletePresetParams) WithUUID

func (o *DeletePresetParams) WithUUID(uuid string) *DeletePresetParams

WithUUID adds the uuid to the delete preset params

func (*DeletePresetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeletePresetReader

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

DeletePresetReader is a Reader for the DeletePreset structure.

func (*DeletePresetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPresetDefault

type GetPresetDefault struct {
	Payload *service_model.RuntimeError
	// contains filtered or unexported fields
}
GetPresetDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewGetPresetDefault

func NewGetPresetDefault(code int) *GetPresetDefault

NewGetPresetDefault creates a GetPresetDefault with default headers values

func (*GetPresetDefault) Code

func (o *GetPresetDefault) Code() int

Code gets the status code for the get preset default response

func (*GetPresetDefault) Error

func (o *GetPresetDefault) Error() string

func (*GetPresetDefault) GetPayload

func (o *GetPresetDefault) GetPayload() *service_model.RuntimeError

type GetPresetForbidden

type GetPresetForbidden struct {
	Payload interface{}
}
GetPresetForbidden describes a response with status code 403, with default header values.

You don't have permission to access the resource.

func NewGetPresetForbidden

func NewGetPresetForbidden() *GetPresetForbidden

NewGetPresetForbidden creates a GetPresetForbidden with default headers values

func (*GetPresetForbidden) Error

func (o *GetPresetForbidden) Error() string

func (*GetPresetForbidden) GetPayload

func (o *GetPresetForbidden) GetPayload() interface{}

type GetPresetNoContent

type GetPresetNoContent struct {
	Payload interface{}
}
GetPresetNoContent describes a response with status code 204, with default header values.

No content.

func NewGetPresetNoContent

func NewGetPresetNoContent() *GetPresetNoContent

NewGetPresetNoContent creates a GetPresetNoContent with default headers values

func (*GetPresetNoContent) Error

func (o *GetPresetNoContent) Error() string

func (*GetPresetNoContent) GetPayload

func (o *GetPresetNoContent) GetPayload() interface{}

type GetPresetNotFound

type GetPresetNotFound struct {
	Payload interface{}
}
GetPresetNotFound describes a response with status code 404, with default header values.

Resource does not exist.

func NewGetPresetNotFound

func NewGetPresetNotFound() *GetPresetNotFound

NewGetPresetNotFound creates a GetPresetNotFound with default headers values

func (*GetPresetNotFound) Error

func (o *GetPresetNotFound) Error() string

func (*GetPresetNotFound) GetPayload

func (o *GetPresetNotFound) GetPayload() interface{}

type GetPresetOK

type GetPresetOK struct {
	Payload *service_model.V1Preset
}
GetPresetOK describes a response with status code 200, with default header values.

A successful response.

func NewGetPresetOK

func NewGetPresetOK() *GetPresetOK

NewGetPresetOK creates a GetPresetOK with default headers values

func (*GetPresetOK) Error

func (o *GetPresetOK) Error() string

func (*GetPresetOK) GetPayload

func (o *GetPresetOK) GetPayload() *service_model.V1Preset

type GetPresetParams

type GetPresetParams struct {

	/* Entity.

	   Entity: project name, hub name, registry name, ...
	*/
	Entity *string

	/* Owner.

	   Owner of the namespace
	*/
	Owner string

	/* UUID.

	   Uuid identifier of the sub-entity
	*/
	UUID string

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

GetPresetParams contains all the parameters to send to the API endpoint

for the get preset operation.

Typically these are written to a http.Request.

func NewGetPresetParams

func NewGetPresetParams() *GetPresetParams

NewGetPresetParams creates a new GetPresetParams 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 NewGetPresetParamsWithContext

func NewGetPresetParamsWithContext(ctx context.Context) *GetPresetParams

NewGetPresetParamsWithContext creates a new GetPresetParams object with the ability to set a context for a request.

func NewGetPresetParamsWithHTTPClient

func NewGetPresetParamsWithHTTPClient(client *http.Client) *GetPresetParams

NewGetPresetParamsWithHTTPClient creates a new GetPresetParams object with the ability to set a custom HTTPClient for a request.

func NewGetPresetParamsWithTimeout

func NewGetPresetParamsWithTimeout(timeout time.Duration) *GetPresetParams

NewGetPresetParamsWithTimeout creates a new GetPresetParams object with the ability to set a timeout on a request.

func (*GetPresetParams) SetContext

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

SetContext adds the context to the get preset params

func (*GetPresetParams) SetDefaults

func (o *GetPresetParams) SetDefaults()

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

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

func (*GetPresetParams) SetEntity

func (o *GetPresetParams) SetEntity(entity *string)

SetEntity adds the entity to the get preset params

func (*GetPresetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get preset params

func (*GetPresetParams) SetOwner

func (o *GetPresetParams) SetOwner(owner string)

SetOwner adds the owner to the get preset params

func (*GetPresetParams) SetTimeout

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

SetTimeout adds the timeout to the get preset params

func (*GetPresetParams) SetUUID

func (o *GetPresetParams) SetUUID(uuid string)

SetUUID adds the uuid to the get preset params

func (*GetPresetParams) WithContext

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

WithContext adds the context to the get preset params

func (*GetPresetParams) WithDefaults

func (o *GetPresetParams) WithDefaults() *GetPresetParams

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

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

func (*GetPresetParams) WithEntity

func (o *GetPresetParams) WithEntity(entity *string) *GetPresetParams

WithEntity adds the entity to the get preset params

func (*GetPresetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get preset params

func (*GetPresetParams) WithOwner

func (o *GetPresetParams) WithOwner(owner string) *GetPresetParams

WithOwner adds the owner to the get preset params

func (*GetPresetParams) WithTimeout

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

WithTimeout adds the timeout to the get preset params

func (*GetPresetParams) WithUUID

func (o *GetPresetParams) WithUUID(uuid string) *GetPresetParams

WithUUID adds the uuid to the get preset params

func (*GetPresetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPresetReader

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

GetPresetReader is a Reader for the GetPreset structure.

func (*GetPresetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListPresetNamesDefault

type ListPresetNamesDefault struct {
	Payload *service_model.RuntimeError
	// contains filtered or unexported fields
}
ListPresetNamesDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewListPresetNamesDefault

func NewListPresetNamesDefault(code int) *ListPresetNamesDefault

NewListPresetNamesDefault creates a ListPresetNamesDefault with default headers values

func (*ListPresetNamesDefault) Code

func (o *ListPresetNamesDefault) Code() int

Code gets the status code for the list preset names default response

func (*ListPresetNamesDefault) Error

func (o *ListPresetNamesDefault) Error() string

func (*ListPresetNamesDefault) GetPayload

type ListPresetNamesForbidden

type ListPresetNamesForbidden struct {
	Payload interface{}
}
ListPresetNamesForbidden describes a response with status code 403, with default header values.

You don't have permission to access the resource.

func NewListPresetNamesForbidden

func NewListPresetNamesForbidden() *ListPresetNamesForbidden

NewListPresetNamesForbidden creates a ListPresetNamesForbidden with default headers values

func (*ListPresetNamesForbidden) Error

func (o *ListPresetNamesForbidden) Error() string

func (*ListPresetNamesForbidden) GetPayload

func (o *ListPresetNamesForbidden) GetPayload() interface{}

type ListPresetNamesNoContent

type ListPresetNamesNoContent struct {
	Payload interface{}
}
ListPresetNamesNoContent describes a response with status code 204, with default header values.

No content.

func NewListPresetNamesNoContent

func NewListPresetNamesNoContent() *ListPresetNamesNoContent

NewListPresetNamesNoContent creates a ListPresetNamesNoContent with default headers values

func (*ListPresetNamesNoContent) Error

func (o *ListPresetNamesNoContent) Error() string

func (*ListPresetNamesNoContent) GetPayload

func (o *ListPresetNamesNoContent) GetPayload() interface{}

type ListPresetNamesNotFound

type ListPresetNamesNotFound struct {
	Payload interface{}
}
ListPresetNamesNotFound describes a response with status code 404, with default header values.

Resource does not exist.

func NewListPresetNamesNotFound

func NewListPresetNamesNotFound() *ListPresetNamesNotFound

NewListPresetNamesNotFound creates a ListPresetNamesNotFound with default headers values

func (*ListPresetNamesNotFound) Error

func (o *ListPresetNamesNotFound) Error() string

func (*ListPresetNamesNotFound) GetPayload

func (o *ListPresetNamesNotFound) GetPayload() interface{}

type ListPresetNamesOK

type ListPresetNamesOK struct {
	Payload *service_model.V1ListPresetsResponse
}
ListPresetNamesOK describes a response with status code 200, with default header values.

A successful response.

func NewListPresetNamesOK

func NewListPresetNamesOK() *ListPresetNamesOK

NewListPresetNamesOK creates a ListPresetNamesOK with default headers values

func (*ListPresetNamesOK) Error

func (o *ListPresetNamesOK) Error() string

func (*ListPresetNamesOK) GetPayload

type ListPresetNamesParams

type ListPresetNamesParams struct {

	/* Limit.

	   Limit size.

	   Format: int32
	*/
	Limit *int32

	/* NoPage.

	   No pagination.
	*/
	NoPage *bool

	/* Offset.

	   Pagination offset.

	   Format: int32
	*/
	Offset *int32

	/* Owner.

	   Owner of the namespace
	*/
	Owner string

	/* Query.

	   Query filter the search.
	*/
	Query *string

	/* Sort.

	   Sort to order the search.
	*/
	Sort *string

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

ListPresetNamesParams contains all the parameters to send to the API endpoint

for the list preset names operation.

Typically these are written to a http.Request.

func NewListPresetNamesParams

func NewListPresetNamesParams() *ListPresetNamesParams

NewListPresetNamesParams creates a new ListPresetNamesParams 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 NewListPresetNamesParamsWithContext

func NewListPresetNamesParamsWithContext(ctx context.Context) *ListPresetNamesParams

NewListPresetNamesParamsWithContext creates a new ListPresetNamesParams object with the ability to set a context for a request.

func NewListPresetNamesParamsWithHTTPClient

func NewListPresetNamesParamsWithHTTPClient(client *http.Client) *ListPresetNamesParams

NewListPresetNamesParamsWithHTTPClient creates a new ListPresetNamesParams object with the ability to set a custom HTTPClient for a request.

func NewListPresetNamesParamsWithTimeout

func NewListPresetNamesParamsWithTimeout(timeout time.Duration) *ListPresetNamesParams

NewListPresetNamesParamsWithTimeout creates a new ListPresetNamesParams object with the ability to set a timeout on a request.

func (*ListPresetNamesParams) SetContext

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

SetContext adds the context to the list preset names params

func (*ListPresetNamesParams) SetDefaults

func (o *ListPresetNamesParams) SetDefaults()

SetDefaults hydrates default values in the list preset names params (not the query body).

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

func (*ListPresetNamesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list preset names params

func (*ListPresetNamesParams) SetLimit

func (o *ListPresetNamesParams) SetLimit(limit *int32)

SetLimit adds the limit to the list preset names params

func (*ListPresetNamesParams) SetNoPage

func (o *ListPresetNamesParams) SetNoPage(noPage *bool)

SetNoPage adds the noPage to the list preset names params

func (*ListPresetNamesParams) SetOffset

func (o *ListPresetNamesParams) SetOffset(offset *int32)

SetOffset adds the offset to the list preset names params

func (*ListPresetNamesParams) SetOwner

func (o *ListPresetNamesParams) SetOwner(owner string)

SetOwner adds the owner to the list preset names params

func (*ListPresetNamesParams) SetQuery

func (o *ListPresetNamesParams) SetQuery(query *string)

SetQuery adds the query to the list preset names params

func (*ListPresetNamesParams) SetSort

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

SetSort adds the sort to the list preset names params

func (*ListPresetNamesParams) SetTimeout

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

SetTimeout adds the timeout to the list preset names params

func (*ListPresetNamesParams) WithContext

WithContext adds the context to the list preset names params

func (*ListPresetNamesParams) WithDefaults

func (o *ListPresetNamesParams) WithDefaults() *ListPresetNamesParams

WithDefaults hydrates default values in the list preset names params (not the query body).

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

func (*ListPresetNamesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list preset names params

func (*ListPresetNamesParams) WithLimit

func (o *ListPresetNamesParams) WithLimit(limit *int32) *ListPresetNamesParams

WithLimit adds the limit to the list preset names params

func (*ListPresetNamesParams) WithNoPage

func (o *ListPresetNamesParams) WithNoPage(noPage *bool) *ListPresetNamesParams

WithNoPage adds the noPage to the list preset names params

func (*ListPresetNamesParams) WithOffset

func (o *ListPresetNamesParams) WithOffset(offset *int32) *ListPresetNamesParams

WithOffset adds the offset to the list preset names params

func (*ListPresetNamesParams) WithOwner

func (o *ListPresetNamesParams) WithOwner(owner string) *ListPresetNamesParams

WithOwner adds the owner to the list preset names params

func (*ListPresetNamesParams) WithQuery

func (o *ListPresetNamesParams) WithQuery(query *string) *ListPresetNamesParams

WithQuery adds the query to the list preset names params

func (*ListPresetNamesParams) WithSort

WithSort adds the sort to the list preset names params

func (*ListPresetNamesParams) WithTimeout

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

WithTimeout adds the timeout to the list preset names params

func (*ListPresetNamesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListPresetNamesReader

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

ListPresetNamesReader is a Reader for the ListPresetNames structure.

func (*ListPresetNamesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListPresetsDefault

type ListPresetsDefault struct {
	Payload *service_model.RuntimeError
	// contains filtered or unexported fields
}
ListPresetsDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewListPresetsDefault

func NewListPresetsDefault(code int) *ListPresetsDefault

NewListPresetsDefault creates a ListPresetsDefault with default headers values

func (*ListPresetsDefault) Code

func (o *ListPresetsDefault) Code() int

Code gets the status code for the list presets default response

func (*ListPresetsDefault) Error

func (o *ListPresetsDefault) Error() string

func (*ListPresetsDefault) GetPayload

type ListPresetsForbidden

type ListPresetsForbidden struct {
	Payload interface{}
}
ListPresetsForbidden describes a response with status code 403, with default header values.

You don't have permission to access the resource.

func NewListPresetsForbidden

func NewListPresetsForbidden() *ListPresetsForbidden

NewListPresetsForbidden creates a ListPresetsForbidden with default headers values

func (*ListPresetsForbidden) Error

func (o *ListPresetsForbidden) Error() string

func (*ListPresetsForbidden) GetPayload

func (o *ListPresetsForbidden) GetPayload() interface{}

type ListPresetsNoContent

type ListPresetsNoContent struct {
	Payload interface{}
}
ListPresetsNoContent describes a response with status code 204, with default header values.

No content.

func NewListPresetsNoContent

func NewListPresetsNoContent() *ListPresetsNoContent

NewListPresetsNoContent creates a ListPresetsNoContent with default headers values

func (*ListPresetsNoContent) Error

func (o *ListPresetsNoContent) Error() string

func (*ListPresetsNoContent) GetPayload

func (o *ListPresetsNoContent) GetPayload() interface{}

type ListPresetsNotFound

type ListPresetsNotFound struct {
	Payload interface{}
}
ListPresetsNotFound describes a response with status code 404, with default header values.

Resource does not exist.

func NewListPresetsNotFound

func NewListPresetsNotFound() *ListPresetsNotFound

NewListPresetsNotFound creates a ListPresetsNotFound with default headers values

func (*ListPresetsNotFound) Error

func (o *ListPresetsNotFound) Error() string

func (*ListPresetsNotFound) GetPayload

func (o *ListPresetsNotFound) GetPayload() interface{}

type ListPresetsOK

type ListPresetsOK struct {
	Payload *service_model.V1ListPresetsResponse
}
ListPresetsOK describes a response with status code 200, with default header values.

A successful response.

func NewListPresetsOK

func NewListPresetsOK() *ListPresetsOK

NewListPresetsOK creates a ListPresetsOK with default headers values

func (*ListPresetsOK) Error

func (o *ListPresetsOK) Error() string

func (*ListPresetsOK) GetPayload

type ListPresetsParams

type ListPresetsParams struct {

	/* Limit.

	   Limit size.

	   Format: int32
	*/
	Limit *int32

	/* NoPage.

	   No pagination.
	*/
	NoPage *bool

	/* Offset.

	   Pagination offset.

	   Format: int32
	*/
	Offset *int32

	/* Owner.

	   Owner of the namespace
	*/
	Owner string

	/* Query.

	   Query filter the search.
	*/
	Query *string

	/* Sort.

	   Sort to order the search.
	*/
	Sort *string

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

ListPresetsParams contains all the parameters to send to the API endpoint

for the list presets operation.

Typically these are written to a http.Request.

func NewListPresetsParams

func NewListPresetsParams() *ListPresetsParams

NewListPresetsParams creates a new ListPresetsParams 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 NewListPresetsParamsWithContext

func NewListPresetsParamsWithContext(ctx context.Context) *ListPresetsParams

NewListPresetsParamsWithContext creates a new ListPresetsParams object with the ability to set a context for a request.

func NewListPresetsParamsWithHTTPClient

func NewListPresetsParamsWithHTTPClient(client *http.Client) *ListPresetsParams

NewListPresetsParamsWithHTTPClient creates a new ListPresetsParams object with the ability to set a custom HTTPClient for a request.

func NewListPresetsParamsWithTimeout

func NewListPresetsParamsWithTimeout(timeout time.Duration) *ListPresetsParams

NewListPresetsParamsWithTimeout creates a new ListPresetsParams object with the ability to set a timeout on a request.

func (*ListPresetsParams) SetContext

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

SetContext adds the context to the list presets params

func (*ListPresetsParams) SetDefaults

func (o *ListPresetsParams) SetDefaults()

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

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

func (*ListPresetsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list presets params

func (*ListPresetsParams) SetLimit

func (o *ListPresetsParams) SetLimit(limit *int32)

SetLimit adds the limit to the list presets params

func (*ListPresetsParams) SetNoPage

func (o *ListPresetsParams) SetNoPage(noPage *bool)

SetNoPage adds the noPage to the list presets params

func (*ListPresetsParams) SetOffset

func (o *ListPresetsParams) SetOffset(offset *int32)

SetOffset adds the offset to the list presets params

func (*ListPresetsParams) SetOwner

func (o *ListPresetsParams) SetOwner(owner string)

SetOwner adds the owner to the list presets params

func (*ListPresetsParams) SetQuery

func (o *ListPresetsParams) SetQuery(query *string)

SetQuery adds the query to the list presets params

func (*ListPresetsParams) SetSort

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

SetSort adds the sort to the list presets params

func (*ListPresetsParams) SetTimeout

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

SetTimeout adds the timeout to the list presets params

func (*ListPresetsParams) WithContext

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

WithContext adds the context to the list presets params

func (*ListPresetsParams) WithDefaults

func (o *ListPresetsParams) WithDefaults() *ListPresetsParams

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

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

func (*ListPresetsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list presets params

func (*ListPresetsParams) WithLimit

func (o *ListPresetsParams) WithLimit(limit *int32) *ListPresetsParams

WithLimit adds the limit to the list presets params

func (*ListPresetsParams) WithNoPage

func (o *ListPresetsParams) WithNoPage(noPage *bool) *ListPresetsParams

WithNoPage adds the noPage to the list presets params

func (*ListPresetsParams) WithOffset

func (o *ListPresetsParams) WithOffset(offset *int32) *ListPresetsParams

WithOffset adds the offset to the list presets params

func (*ListPresetsParams) WithOwner

func (o *ListPresetsParams) WithOwner(owner string) *ListPresetsParams

WithOwner adds the owner to the list presets params

func (*ListPresetsParams) WithQuery

func (o *ListPresetsParams) WithQuery(query *string) *ListPresetsParams

WithQuery adds the query to the list presets params

func (*ListPresetsParams) WithSort

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

WithSort adds the sort to the list presets params

func (*ListPresetsParams) WithTimeout

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

WithTimeout adds the timeout to the list presets params

func (*ListPresetsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListPresetsReader

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

ListPresetsReader is a Reader for the ListPresets structure.

func (*ListPresetsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchPresetDefault

type PatchPresetDefault struct {
	Payload *service_model.RuntimeError
	// contains filtered or unexported fields
}
PatchPresetDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewPatchPresetDefault

func NewPatchPresetDefault(code int) *PatchPresetDefault

NewPatchPresetDefault creates a PatchPresetDefault with default headers values

func (*PatchPresetDefault) Code

func (o *PatchPresetDefault) Code() int

Code gets the status code for the patch preset default response

func (*PatchPresetDefault) Error

func (o *PatchPresetDefault) Error() string

func (*PatchPresetDefault) GetPayload

type PatchPresetForbidden

type PatchPresetForbidden struct {
	Payload interface{}
}
PatchPresetForbidden describes a response with status code 403, with default header values.

You don't have permission to access the resource.

func NewPatchPresetForbidden

func NewPatchPresetForbidden() *PatchPresetForbidden

NewPatchPresetForbidden creates a PatchPresetForbidden with default headers values

func (*PatchPresetForbidden) Error

func (o *PatchPresetForbidden) Error() string

func (*PatchPresetForbidden) GetPayload

func (o *PatchPresetForbidden) GetPayload() interface{}

type PatchPresetNoContent

type PatchPresetNoContent struct {
	Payload interface{}
}
PatchPresetNoContent describes a response with status code 204, with default header values.

No content.

func NewPatchPresetNoContent

func NewPatchPresetNoContent() *PatchPresetNoContent

NewPatchPresetNoContent creates a PatchPresetNoContent with default headers values

func (*PatchPresetNoContent) Error

func (o *PatchPresetNoContent) Error() string

func (*PatchPresetNoContent) GetPayload

func (o *PatchPresetNoContent) GetPayload() interface{}

type PatchPresetNotFound

type PatchPresetNotFound struct {
	Payload interface{}
}
PatchPresetNotFound describes a response with status code 404, with default header values.

Resource does not exist.

func NewPatchPresetNotFound

func NewPatchPresetNotFound() *PatchPresetNotFound

NewPatchPresetNotFound creates a PatchPresetNotFound with default headers values

func (*PatchPresetNotFound) Error

func (o *PatchPresetNotFound) Error() string

func (*PatchPresetNotFound) GetPayload

func (o *PatchPresetNotFound) GetPayload() interface{}

type PatchPresetOK

type PatchPresetOK struct {
	Payload *service_model.V1Preset
}
PatchPresetOK describes a response with status code 200, with default header values.

A successful response.

func NewPatchPresetOK

func NewPatchPresetOK() *PatchPresetOK

NewPatchPresetOK creates a PatchPresetOK with default headers values

func (*PatchPresetOK) Error

func (o *PatchPresetOK) Error() string

func (*PatchPresetOK) GetPayload

func (o *PatchPresetOK) GetPayload() *service_model.V1Preset

type PatchPresetParams

type PatchPresetParams struct {

	/* Body.

	   Preset body
	*/
	Body *service_model.V1Preset

	/* Owner.

	   Owner of the namespace
	*/
	Owner string

	/* PresetUUID.

	   UUID
	*/
	PresetUUID string

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

PatchPresetParams contains all the parameters to send to the API endpoint

for the patch preset operation.

Typically these are written to a http.Request.

func NewPatchPresetParams

func NewPatchPresetParams() *PatchPresetParams

NewPatchPresetParams creates a new PatchPresetParams 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 NewPatchPresetParamsWithContext

func NewPatchPresetParamsWithContext(ctx context.Context) *PatchPresetParams

NewPatchPresetParamsWithContext creates a new PatchPresetParams object with the ability to set a context for a request.

func NewPatchPresetParamsWithHTTPClient

func NewPatchPresetParamsWithHTTPClient(client *http.Client) *PatchPresetParams

NewPatchPresetParamsWithHTTPClient creates a new PatchPresetParams object with the ability to set a custom HTTPClient for a request.

func NewPatchPresetParamsWithTimeout

func NewPatchPresetParamsWithTimeout(timeout time.Duration) *PatchPresetParams

NewPatchPresetParamsWithTimeout creates a new PatchPresetParams object with the ability to set a timeout on a request.

func (*PatchPresetParams) SetBody

func (o *PatchPresetParams) SetBody(body *service_model.V1Preset)

SetBody adds the body to the patch preset params

func (*PatchPresetParams) SetContext

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

SetContext adds the context to the patch preset params

func (*PatchPresetParams) SetDefaults

func (o *PatchPresetParams) SetDefaults()

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

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

func (*PatchPresetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch preset params

func (*PatchPresetParams) SetOwner

func (o *PatchPresetParams) SetOwner(owner string)

SetOwner adds the owner to the patch preset params

func (*PatchPresetParams) SetPresetUUID

func (o *PatchPresetParams) SetPresetUUID(presetUUID string)

SetPresetUUID adds the presetUuid to the patch preset params

func (*PatchPresetParams) SetTimeout

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

SetTimeout adds the timeout to the patch preset params

func (*PatchPresetParams) WithBody

WithBody adds the body to the patch preset params

func (*PatchPresetParams) WithContext

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

WithContext adds the context to the patch preset params

func (*PatchPresetParams) WithDefaults

func (o *PatchPresetParams) WithDefaults() *PatchPresetParams

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

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

func (*PatchPresetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the patch preset params

func (*PatchPresetParams) WithOwner

func (o *PatchPresetParams) WithOwner(owner string) *PatchPresetParams

WithOwner adds the owner to the patch preset params

func (*PatchPresetParams) WithPresetUUID

func (o *PatchPresetParams) WithPresetUUID(presetUUID string) *PatchPresetParams

WithPresetUUID adds the presetUUID to the patch preset params

func (*PatchPresetParams) WithTimeout

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

WithTimeout adds the timeout to the patch preset params

func (*PatchPresetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PatchPresetReader

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

PatchPresetReader is a Reader for the PatchPreset structure.

func (*PatchPresetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdatePresetDefault

type UpdatePresetDefault struct {
	Payload *service_model.RuntimeError
	// contains filtered or unexported fields
}
UpdatePresetDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewUpdatePresetDefault

func NewUpdatePresetDefault(code int) *UpdatePresetDefault

NewUpdatePresetDefault creates a UpdatePresetDefault with default headers values

func (*UpdatePresetDefault) Code

func (o *UpdatePresetDefault) Code() int

Code gets the status code for the update preset default response

func (*UpdatePresetDefault) Error

func (o *UpdatePresetDefault) Error() string

func (*UpdatePresetDefault) GetPayload

type UpdatePresetForbidden

type UpdatePresetForbidden struct {
	Payload interface{}
}
UpdatePresetForbidden describes a response with status code 403, with default header values.

You don't have permission to access the resource.

func NewUpdatePresetForbidden

func NewUpdatePresetForbidden() *UpdatePresetForbidden

NewUpdatePresetForbidden creates a UpdatePresetForbidden with default headers values

func (*UpdatePresetForbidden) Error

func (o *UpdatePresetForbidden) Error() string

func (*UpdatePresetForbidden) GetPayload

func (o *UpdatePresetForbidden) GetPayload() interface{}

type UpdatePresetNoContent

type UpdatePresetNoContent struct {
	Payload interface{}
}
UpdatePresetNoContent describes a response with status code 204, with default header values.

No content.

func NewUpdatePresetNoContent

func NewUpdatePresetNoContent() *UpdatePresetNoContent

NewUpdatePresetNoContent creates a UpdatePresetNoContent with default headers values

func (*UpdatePresetNoContent) Error

func (o *UpdatePresetNoContent) Error() string

func (*UpdatePresetNoContent) GetPayload

func (o *UpdatePresetNoContent) GetPayload() interface{}

type UpdatePresetNotFound

type UpdatePresetNotFound struct {
	Payload interface{}
}
UpdatePresetNotFound describes a response with status code 404, with default header values.

Resource does not exist.

func NewUpdatePresetNotFound

func NewUpdatePresetNotFound() *UpdatePresetNotFound

NewUpdatePresetNotFound creates a UpdatePresetNotFound with default headers values

func (*UpdatePresetNotFound) Error

func (o *UpdatePresetNotFound) Error() string

func (*UpdatePresetNotFound) GetPayload

func (o *UpdatePresetNotFound) GetPayload() interface{}

type UpdatePresetOK

type UpdatePresetOK struct {
	Payload *service_model.V1Preset
}
UpdatePresetOK describes a response with status code 200, with default header values.

A successful response.

func NewUpdatePresetOK

func NewUpdatePresetOK() *UpdatePresetOK

NewUpdatePresetOK creates a UpdatePresetOK with default headers values

func (*UpdatePresetOK) Error

func (o *UpdatePresetOK) Error() string

func (*UpdatePresetOK) GetPayload

func (o *UpdatePresetOK) GetPayload() *service_model.V1Preset

type UpdatePresetParams

type UpdatePresetParams struct {

	/* Body.

	   Preset body
	*/
	Body *service_model.V1Preset

	/* Owner.

	   Owner of the namespace
	*/
	Owner string

	/* PresetUUID.

	   UUID
	*/
	PresetUUID string

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

UpdatePresetParams contains all the parameters to send to the API endpoint

for the update preset operation.

Typically these are written to a http.Request.

func NewUpdatePresetParams

func NewUpdatePresetParams() *UpdatePresetParams

NewUpdatePresetParams creates a new UpdatePresetParams 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 NewUpdatePresetParamsWithContext

func NewUpdatePresetParamsWithContext(ctx context.Context) *UpdatePresetParams

NewUpdatePresetParamsWithContext creates a new UpdatePresetParams object with the ability to set a context for a request.

func NewUpdatePresetParamsWithHTTPClient

func NewUpdatePresetParamsWithHTTPClient(client *http.Client) *UpdatePresetParams

NewUpdatePresetParamsWithHTTPClient creates a new UpdatePresetParams object with the ability to set a custom HTTPClient for a request.

func NewUpdatePresetParamsWithTimeout

func NewUpdatePresetParamsWithTimeout(timeout time.Duration) *UpdatePresetParams

NewUpdatePresetParamsWithTimeout creates a new UpdatePresetParams object with the ability to set a timeout on a request.

func (*UpdatePresetParams) SetBody

func (o *UpdatePresetParams) SetBody(body *service_model.V1Preset)

SetBody adds the body to the update preset params

func (*UpdatePresetParams) SetContext

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

SetContext adds the context to the update preset params

func (*UpdatePresetParams) SetDefaults

func (o *UpdatePresetParams) SetDefaults()

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

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

func (*UpdatePresetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update preset params

func (*UpdatePresetParams) SetOwner

func (o *UpdatePresetParams) SetOwner(owner string)

SetOwner adds the owner to the update preset params

func (*UpdatePresetParams) SetPresetUUID

func (o *UpdatePresetParams) SetPresetUUID(presetUUID string)

SetPresetUUID adds the presetUuid to the update preset params

func (*UpdatePresetParams) SetTimeout

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

SetTimeout adds the timeout to the update preset params

func (*UpdatePresetParams) WithBody

WithBody adds the body to the update preset params

func (*UpdatePresetParams) WithContext

WithContext adds the context to the update preset params

func (*UpdatePresetParams) WithDefaults

func (o *UpdatePresetParams) WithDefaults() *UpdatePresetParams

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

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

func (*UpdatePresetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update preset params

func (*UpdatePresetParams) WithOwner

func (o *UpdatePresetParams) WithOwner(owner string) *UpdatePresetParams

WithOwner adds the owner to the update preset params

func (*UpdatePresetParams) WithPresetUUID

func (o *UpdatePresetParams) WithPresetUUID(presetUUID string) *UpdatePresetParams

WithPresetUUID adds the presetUUID to the update preset params

func (*UpdatePresetParams) WithTimeout

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

WithTimeout adds the timeout to the update preset params

func (*UpdatePresetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdatePresetReader

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

UpdatePresetReader is a Reader for the UpdatePreset structure.

func (*UpdatePresetReader) ReadResponse

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