volume

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for volume API

func (*Client) ClusterInfo added in v0.17.3

func (a *Client) ClusterInfo(params *ClusterInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterInfoOK, error)

ClusterInfo returns info and status to connected storage clusters

func (*Client) DeleteSnapshot added in v0.20.0

func (a *Client) DeleteSnapshot(params *DeleteSnapshotParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSnapshotOK, error)

DeleteSnapshot deletes a snapshot including all data

func (*Client) DeleteVolume

func (a *Client) DeleteVolume(params *DeleteVolumeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteVolumeOK, error)

DeleteVolume deletes a volume including all data

func (*Client) FindSnapshots added in v0.20.0

func (a *Client) FindSnapshots(params *FindSnapshotsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindSnapshotsOK, error)

FindSnapshots finds snapshots by multiple criteria

func (*Client) FindVolumes

func (a *Client) FindVolumes(params *FindVolumesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindVolumesOK, error)

FindVolumes finds volumes by multiple criteria

func (*Client) GetSnapshot added in v0.20.0

func (a *Client) GetSnapshot(params *GetSnapshotParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSnapshotOK, error)

GetSnapshot gets a snapshot

func (*Client) GetVolume added in v0.17.15

func (a *Client) GetVolume(params *GetVolumeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetVolumeOK, error)

GetVolume gets a volume

func (*Client) ListVolumes

func (a *Client) ListVolumes(params *ListVolumesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListVolumesOK, error)

ListVolumes gets all volumes

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v0.15.4

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ClusterInfo(params *ClusterInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterInfoOK, error)

	DeleteSnapshot(params *DeleteSnapshotParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSnapshotOK, error)

	DeleteVolume(params *DeleteVolumeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteVolumeOK, error)

	FindSnapshots(params *FindSnapshotsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindSnapshotsOK, error)

	FindVolumes(params *FindVolumesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindVolumesOK, error)

	GetSnapshot(params *GetSnapshotParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSnapshotOK, error)

	GetVolume(params *GetVolumeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetVolumeOK, error)

	ListVolumes(params *ListVolumesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListVolumesOK, 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 volume API client.

type ClusterInfoDefault added in v0.17.3

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

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

Error

func NewClusterInfoDefault added in v0.17.3

func NewClusterInfoDefault(code int) *ClusterInfoDefault

NewClusterInfoDefault creates a ClusterInfoDefault with default headers values

func (*ClusterInfoDefault) Code added in v0.17.3

func (o *ClusterInfoDefault) Code() int

Code gets the status code for the cluster info default response

func (*ClusterInfoDefault) Error added in v0.17.3

func (o *ClusterInfoDefault) Error() string

func (*ClusterInfoDefault) GetPayload added in v0.17.3

func (*ClusterInfoDefault) IsClientError added in v0.19.0

func (o *ClusterInfoDefault) IsClientError() bool

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

func (*ClusterInfoDefault) IsCode added in v0.19.0

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

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

func (*ClusterInfoDefault) IsRedirect added in v0.19.0

func (o *ClusterInfoDefault) IsRedirect() bool

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

func (*ClusterInfoDefault) IsServerError added in v0.19.0

func (o *ClusterInfoDefault) IsServerError() bool

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

func (*ClusterInfoDefault) IsSuccess added in v0.19.0

func (o *ClusterInfoDefault) IsSuccess() bool

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

func (*ClusterInfoDefault) String added in v0.19.0

func (o *ClusterInfoDefault) String() string

type ClusterInfoOK added in v0.17.3

type ClusterInfoOK struct {
	Payload []*models.V1StorageClusterInfo
}

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

OK

func NewClusterInfoOK added in v0.17.3

func NewClusterInfoOK() *ClusterInfoOK

NewClusterInfoOK creates a ClusterInfoOK with default headers values

func (*ClusterInfoOK) Code added in v0.20.11

func (o *ClusterInfoOK) Code() int

Code gets the status code for the cluster info o k response

func (*ClusterInfoOK) Error added in v0.17.3

func (o *ClusterInfoOK) Error() string

func (*ClusterInfoOK) GetPayload added in v0.17.3

func (o *ClusterInfoOK) GetPayload() []*models.V1StorageClusterInfo

func (*ClusterInfoOK) IsClientError added in v0.19.0

func (o *ClusterInfoOK) IsClientError() bool

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

func (*ClusterInfoOK) IsCode added in v0.19.0

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

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

func (*ClusterInfoOK) IsRedirect added in v0.19.0

func (o *ClusterInfoOK) IsRedirect() bool

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

func (*ClusterInfoOK) IsServerError added in v0.19.0

func (o *ClusterInfoOK) IsServerError() bool

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

func (*ClusterInfoOK) IsSuccess added in v0.19.0

func (o *ClusterInfoOK) IsSuccess() bool

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

func (*ClusterInfoOK) String added in v0.19.0

func (o *ClusterInfoOK) String() string

type ClusterInfoParams added in v0.17.3

type ClusterInfoParams struct {

	/* Partitionid.

	   identifier of the partition
	*/
	Partitionid *string

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

ClusterInfoParams contains all the parameters to send to the API endpoint

for the cluster info operation.

Typically these are written to a http.Request.

func NewClusterInfoParams added in v0.17.3

func NewClusterInfoParams() *ClusterInfoParams

NewClusterInfoParams creates a new ClusterInfoParams 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 NewClusterInfoParamsWithContext added in v0.17.3

func NewClusterInfoParamsWithContext(ctx context.Context) *ClusterInfoParams

NewClusterInfoParamsWithContext creates a new ClusterInfoParams object with the ability to set a context for a request.

func NewClusterInfoParamsWithHTTPClient added in v0.17.3

func NewClusterInfoParamsWithHTTPClient(client *http.Client) *ClusterInfoParams

NewClusterInfoParamsWithHTTPClient creates a new ClusterInfoParams object with the ability to set a custom HTTPClient for a request.

func NewClusterInfoParamsWithTimeout added in v0.17.3

func NewClusterInfoParamsWithTimeout(timeout time.Duration) *ClusterInfoParams

NewClusterInfoParamsWithTimeout creates a new ClusterInfoParams object with the ability to set a timeout on a request.

func (*ClusterInfoParams) SetContext added in v0.17.3

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

SetContext adds the context to the cluster info params

func (*ClusterInfoParams) SetDefaults added in v0.17.3

func (o *ClusterInfoParams) SetDefaults()

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

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

func (*ClusterInfoParams) SetHTTPClient added in v0.17.3

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

SetHTTPClient adds the HTTPClient to the cluster info params

func (*ClusterInfoParams) SetPartitionid added in v0.17.15

func (o *ClusterInfoParams) SetPartitionid(partitionid *string)

SetPartitionid adds the partitionid to the cluster info params

func (*ClusterInfoParams) SetTimeout added in v0.17.3

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

SetTimeout adds the timeout to the cluster info params

func (*ClusterInfoParams) WithContext added in v0.17.3

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

WithContext adds the context to the cluster info params

func (*ClusterInfoParams) WithDefaults added in v0.17.3

func (o *ClusterInfoParams) WithDefaults() *ClusterInfoParams

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

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

func (*ClusterInfoParams) WithHTTPClient added in v0.17.3

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

WithHTTPClient adds the HTTPClient to the cluster info params

func (*ClusterInfoParams) WithPartitionid added in v0.17.15

func (o *ClusterInfoParams) WithPartitionid(partitionid *string) *ClusterInfoParams

WithPartitionid adds the partitionid to the cluster info params

func (*ClusterInfoParams) WithTimeout added in v0.17.3

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

WithTimeout adds the timeout to the cluster info params

func (*ClusterInfoParams) WriteToRequest added in v0.17.3

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

WriteToRequest writes these params to a swagger request

type ClusterInfoReader added in v0.17.3

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

ClusterInfoReader is a Reader for the ClusterInfo structure.

func (*ClusterInfoReader) ReadResponse added in v0.17.3

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

ReadResponse reads a server response into the received o.

type DeleteSnapshotDefault added in v0.20.0

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

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

Error

func NewDeleteSnapshotDefault added in v0.20.0

func NewDeleteSnapshotDefault(code int) *DeleteSnapshotDefault

NewDeleteSnapshotDefault creates a DeleteSnapshotDefault with default headers values

func (*DeleteSnapshotDefault) Code added in v0.20.0

func (o *DeleteSnapshotDefault) Code() int

Code gets the status code for the delete snapshot default response

func (*DeleteSnapshotDefault) Error added in v0.20.0

func (o *DeleteSnapshotDefault) Error() string

func (*DeleteSnapshotDefault) GetPayload added in v0.20.0

func (*DeleteSnapshotDefault) IsClientError added in v0.20.0

func (o *DeleteSnapshotDefault) IsClientError() bool

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

func (*DeleteSnapshotDefault) IsCode added in v0.20.0

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

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

func (*DeleteSnapshotDefault) IsRedirect added in v0.20.0

func (o *DeleteSnapshotDefault) IsRedirect() bool

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

func (*DeleteSnapshotDefault) IsServerError added in v0.20.0

func (o *DeleteSnapshotDefault) IsServerError() bool

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

func (*DeleteSnapshotDefault) IsSuccess added in v0.20.0

func (o *DeleteSnapshotDefault) IsSuccess() bool

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

func (*DeleteSnapshotDefault) String added in v0.20.0

func (o *DeleteSnapshotDefault) String() string

type DeleteSnapshotOK added in v0.20.0

type DeleteSnapshotOK struct {
	Payload *models.V1SnapshotResponse
}

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

OK

func NewDeleteSnapshotOK added in v0.20.0

func NewDeleteSnapshotOK() *DeleteSnapshotOK

NewDeleteSnapshotOK creates a DeleteSnapshotOK with default headers values

func (*DeleteSnapshotOK) Code added in v0.20.11

func (o *DeleteSnapshotOK) Code() int

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

func (*DeleteSnapshotOK) Error added in v0.20.0

func (o *DeleteSnapshotOK) Error() string

func (*DeleteSnapshotOK) GetPayload added in v0.20.0

func (o *DeleteSnapshotOK) GetPayload() *models.V1SnapshotResponse

func (*DeleteSnapshotOK) IsClientError added in v0.20.0

func (o *DeleteSnapshotOK) IsClientError() bool

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

func (*DeleteSnapshotOK) IsCode added in v0.20.0

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

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

func (*DeleteSnapshotOK) IsRedirect added in v0.20.0

func (o *DeleteSnapshotOK) IsRedirect() bool

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

func (*DeleteSnapshotOK) IsServerError added in v0.20.0

func (o *DeleteSnapshotOK) IsServerError() bool

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

func (*DeleteSnapshotOK) IsSuccess added in v0.20.0

func (o *DeleteSnapshotOK) IsSuccess() bool

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

func (*DeleteSnapshotOK) String added in v0.20.0

func (o *DeleteSnapshotOK) String() string

type DeleteSnapshotParams added in v0.20.0

type DeleteSnapshotParams struct {

	/* ID.

	   id of the snapshot
	*/
	ID string

	/* ProjectID.

	   project id snapshot
	*/
	ProjectID *string

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

DeleteSnapshotParams contains all the parameters to send to the API endpoint

for the delete snapshot operation.

Typically these are written to a http.Request.

func NewDeleteSnapshotParams added in v0.20.0

func NewDeleteSnapshotParams() *DeleteSnapshotParams

NewDeleteSnapshotParams creates a new DeleteSnapshotParams 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 NewDeleteSnapshotParamsWithContext added in v0.20.0

func NewDeleteSnapshotParamsWithContext(ctx context.Context) *DeleteSnapshotParams

NewDeleteSnapshotParamsWithContext creates a new DeleteSnapshotParams object with the ability to set a context for a request.

func NewDeleteSnapshotParamsWithHTTPClient added in v0.20.0

func NewDeleteSnapshotParamsWithHTTPClient(client *http.Client) *DeleteSnapshotParams

NewDeleteSnapshotParamsWithHTTPClient creates a new DeleteSnapshotParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteSnapshotParamsWithTimeout added in v0.20.0

func NewDeleteSnapshotParamsWithTimeout(timeout time.Duration) *DeleteSnapshotParams

NewDeleteSnapshotParamsWithTimeout creates a new DeleteSnapshotParams object with the ability to set a timeout on a request.

func (*DeleteSnapshotParams) SetContext added in v0.20.0

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

SetContext adds the context to the delete snapshot params

func (*DeleteSnapshotParams) SetDefaults added in v0.20.0

func (o *DeleteSnapshotParams) SetDefaults()

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

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

func (*DeleteSnapshotParams) SetHTTPClient added in v0.20.0

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

SetHTTPClient adds the HTTPClient to the delete snapshot params

func (*DeleteSnapshotParams) SetID added in v0.20.0

func (o *DeleteSnapshotParams) SetID(id string)

SetID adds the id to the delete snapshot params

func (*DeleteSnapshotParams) SetProjectID added in v0.20.0

func (o *DeleteSnapshotParams) SetProjectID(projectID *string)

SetProjectID adds the projectId to the delete snapshot params

func (*DeleteSnapshotParams) SetTimeout added in v0.20.0

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

SetTimeout adds the timeout to the delete snapshot params

func (*DeleteSnapshotParams) WithContext added in v0.20.0

WithContext adds the context to the delete snapshot params

func (*DeleteSnapshotParams) WithDefaults added in v0.20.0

func (o *DeleteSnapshotParams) WithDefaults() *DeleteSnapshotParams

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

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

func (*DeleteSnapshotParams) WithHTTPClient added in v0.20.0

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

WithHTTPClient adds the HTTPClient to the delete snapshot params

func (*DeleteSnapshotParams) WithID added in v0.20.0

WithID adds the id to the delete snapshot params

func (*DeleteSnapshotParams) WithProjectID added in v0.20.0

func (o *DeleteSnapshotParams) WithProjectID(projectID *string) *DeleteSnapshotParams

WithProjectID adds the projectID to the delete snapshot params

func (*DeleteSnapshotParams) WithTimeout added in v0.20.0

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

WithTimeout adds the timeout to the delete snapshot params

func (*DeleteSnapshotParams) WriteToRequest added in v0.20.0

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

WriteToRequest writes these params to a swagger request

type DeleteSnapshotReader added in v0.20.0

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

DeleteSnapshotReader is a Reader for the DeleteSnapshot structure.

func (*DeleteSnapshotReader) ReadResponse added in v0.20.0

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

ReadResponse reads a server response into the received o.

type DeleteVolumeDefault

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

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

Error

func NewDeleteVolumeDefault

func NewDeleteVolumeDefault(code int) *DeleteVolumeDefault

NewDeleteVolumeDefault creates a DeleteVolumeDefault with default headers values

func (*DeleteVolumeDefault) Code

func (o *DeleteVolumeDefault) Code() int

Code gets the status code for the delete volume default response

func (*DeleteVolumeDefault) Error

func (o *DeleteVolumeDefault) Error() string

func (*DeleteVolumeDefault) GetPayload

func (*DeleteVolumeDefault) IsClientError added in v0.19.0

func (o *DeleteVolumeDefault) IsClientError() bool

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

func (*DeleteVolumeDefault) IsCode added in v0.19.0

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

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

func (*DeleteVolumeDefault) IsRedirect added in v0.19.0

func (o *DeleteVolumeDefault) IsRedirect() bool

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

func (*DeleteVolumeDefault) IsServerError added in v0.19.0

func (o *DeleteVolumeDefault) IsServerError() bool

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

func (*DeleteVolumeDefault) IsSuccess added in v0.19.0

func (o *DeleteVolumeDefault) IsSuccess() bool

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

func (*DeleteVolumeDefault) String added in v0.19.0

func (o *DeleteVolumeDefault) String() string

type DeleteVolumeOK

type DeleteVolumeOK struct {
	Payload *models.V1VolumeResponse
}

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

OK

func NewDeleteVolumeOK

func NewDeleteVolumeOK() *DeleteVolumeOK

NewDeleteVolumeOK creates a DeleteVolumeOK with default headers values

func (*DeleteVolumeOK) Code added in v0.20.11

func (o *DeleteVolumeOK) Code() int

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

func (*DeleteVolumeOK) Error

func (o *DeleteVolumeOK) Error() string

func (*DeleteVolumeOK) GetPayload

func (o *DeleteVolumeOK) GetPayload() *models.V1VolumeResponse

func (*DeleteVolumeOK) IsClientError added in v0.19.0

func (o *DeleteVolumeOK) IsClientError() bool

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

func (*DeleteVolumeOK) IsCode added in v0.19.0

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

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

func (*DeleteVolumeOK) IsRedirect added in v0.19.0

func (o *DeleteVolumeOK) IsRedirect() bool

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

func (*DeleteVolumeOK) IsServerError added in v0.19.0

func (o *DeleteVolumeOK) IsServerError() bool

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

func (*DeleteVolumeOK) IsSuccess added in v0.19.0

func (o *DeleteVolumeOK) IsSuccess() bool

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

func (*DeleteVolumeOK) String added in v0.19.0

func (o *DeleteVolumeOK) String() string

type DeleteVolumeParams

type DeleteVolumeParams struct {

	/* ID.

	   id of the volume
	*/
	ID string

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

DeleteVolumeParams contains all the parameters to send to the API endpoint

for the delete volume operation.

Typically these are written to a http.Request.

func NewDeleteVolumeParams

func NewDeleteVolumeParams() *DeleteVolumeParams

NewDeleteVolumeParams creates a new DeleteVolumeParams 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 NewDeleteVolumeParamsWithContext

func NewDeleteVolumeParamsWithContext(ctx context.Context) *DeleteVolumeParams

NewDeleteVolumeParamsWithContext creates a new DeleteVolumeParams object with the ability to set a context for a request.

func NewDeleteVolumeParamsWithHTTPClient

func NewDeleteVolumeParamsWithHTTPClient(client *http.Client) *DeleteVolumeParams

NewDeleteVolumeParamsWithHTTPClient creates a new DeleteVolumeParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteVolumeParamsWithTimeout

func NewDeleteVolumeParamsWithTimeout(timeout time.Duration) *DeleteVolumeParams

NewDeleteVolumeParamsWithTimeout creates a new DeleteVolumeParams object with the ability to set a timeout on a request.

func (*DeleteVolumeParams) SetContext

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

SetContext adds the context to the delete volume params

func (*DeleteVolumeParams) SetDefaults

func (o *DeleteVolumeParams) SetDefaults()

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

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

func (*DeleteVolumeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete volume params

func (*DeleteVolumeParams) SetID

func (o *DeleteVolumeParams) SetID(id string)

SetID adds the id to the delete volume params

func (*DeleteVolumeParams) SetTimeout

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

SetTimeout adds the timeout to the delete volume params

func (*DeleteVolumeParams) WithContext

WithContext adds the context to the delete volume params

func (*DeleteVolumeParams) WithDefaults

func (o *DeleteVolumeParams) WithDefaults() *DeleteVolumeParams

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

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

func (*DeleteVolumeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete volume params

func (*DeleteVolumeParams) WithID

WithID adds the id to the delete volume params

func (*DeleteVolumeParams) WithTimeout

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

WithTimeout adds the timeout to the delete volume params

func (*DeleteVolumeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteVolumeReader

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

DeleteVolumeReader is a Reader for the DeleteVolume structure.

func (*DeleteVolumeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type FindSnapshotsDefault added in v0.20.0

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

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

Error

func NewFindSnapshotsDefault added in v0.20.0

func NewFindSnapshotsDefault(code int) *FindSnapshotsDefault

NewFindSnapshotsDefault creates a FindSnapshotsDefault with default headers values

func (*FindSnapshotsDefault) Code added in v0.20.0

func (o *FindSnapshotsDefault) Code() int

Code gets the status code for the find snapshots default response

func (*FindSnapshotsDefault) Error added in v0.20.0

func (o *FindSnapshotsDefault) Error() string

func (*FindSnapshotsDefault) GetPayload added in v0.20.0

func (*FindSnapshotsDefault) IsClientError added in v0.20.0

func (o *FindSnapshotsDefault) IsClientError() bool

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

func (*FindSnapshotsDefault) IsCode added in v0.20.0

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

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

func (*FindSnapshotsDefault) IsRedirect added in v0.20.0

func (o *FindSnapshotsDefault) IsRedirect() bool

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

func (*FindSnapshotsDefault) IsServerError added in v0.20.0

func (o *FindSnapshotsDefault) IsServerError() bool

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

func (*FindSnapshotsDefault) IsSuccess added in v0.20.0

func (o *FindSnapshotsDefault) IsSuccess() bool

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

func (*FindSnapshotsDefault) String added in v0.20.0

func (o *FindSnapshotsDefault) String() string

type FindSnapshotsOK added in v0.20.0

type FindSnapshotsOK struct {
	Payload []*models.V1SnapshotResponse
}

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

OK

func NewFindSnapshotsOK added in v0.20.0

func NewFindSnapshotsOK() *FindSnapshotsOK

NewFindSnapshotsOK creates a FindSnapshotsOK with default headers values

func (*FindSnapshotsOK) Code added in v0.20.11

func (o *FindSnapshotsOK) Code() int

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

func (*FindSnapshotsOK) Error added in v0.20.0

func (o *FindSnapshotsOK) Error() string

func (*FindSnapshotsOK) GetPayload added in v0.20.0

func (o *FindSnapshotsOK) GetPayload() []*models.V1SnapshotResponse

func (*FindSnapshotsOK) IsClientError added in v0.20.0

func (o *FindSnapshotsOK) IsClientError() bool

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

func (*FindSnapshotsOK) IsCode added in v0.20.0

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

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

func (*FindSnapshotsOK) IsRedirect added in v0.20.0

func (o *FindSnapshotsOK) IsRedirect() bool

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

func (*FindSnapshotsOK) IsServerError added in v0.20.0

func (o *FindSnapshotsOK) IsServerError() bool

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

func (*FindSnapshotsOK) IsSuccess added in v0.20.0

func (o *FindSnapshotsOK) IsSuccess() bool

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

func (*FindSnapshotsOK) String added in v0.20.0

func (o *FindSnapshotsOK) String() string

type FindSnapshotsParams added in v0.20.0

type FindSnapshotsParams struct {

	// Body.
	Body *models.V1SnapshotFindRequest

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

FindSnapshotsParams contains all the parameters to send to the API endpoint

for the find snapshots operation.

Typically these are written to a http.Request.

func NewFindSnapshotsParams added in v0.20.0

func NewFindSnapshotsParams() *FindSnapshotsParams

NewFindSnapshotsParams creates a new FindSnapshotsParams 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 NewFindSnapshotsParamsWithContext added in v0.20.0

func NewFindSnapshotsParamsWithContext(ctx context.Context) *FindSnapshotsParams

NewFindSnapshotsParamsWithContext creates a new FindSnapshotsParams object with the ability to set a context for a request.

func NewFindSnapshotsParamsWithHTTPClient added in v0.20.0

func NewFindSnapshotsParamsWithHTTPClient(client *http.Client) *FindSnapshotsParams

NewFindSnapshotsParamsWithHTTPClient creates a new FindSnapshotsParams object with the ability to set a custom HTTPClient for a request.

func NewFindSnapshotsParamsWithTimeout added in v0.20.0

func NewFindSnapshotsParamsWithTimeout(timeout time.Duration) *FindSnapshotsParams

NewFindSnapshotsParamsWithTimeout creates a new FindSnapshotsParams object with the ability to set a timeout on a request.

func (*FindSnapshotsParams) SetBody added in v0.20.0

SetBody adds the body to the find snapshots params

func (*FindSnapshotsParams) SetContext added in v0.20.0

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

SetContext adds the context to the find snapshots params

func (*FindSnapshotsParams) SetDefaults added in v0.20.0

func (o *FindSnapshotsParams) SetDefaults()

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

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

func (*FindSnapshotsParams) SetHTTPClient added in v0.20.0

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

SetHTTPClient adds the HTTPClient to the find snapshots params

func (*FindSnapshotsParams) SetTimeout added in v0.20.0

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

SetTimeout adds the timeout to the find snapshots params

func (*FindSnapshotsParams) WithBody added in v0.20.0

WithBody adds the body to the find snapshots params

func (*FindSnapshotsParams) WithContext added in v0.20.0

WithContext adds the context to the find snapshots params

func (*FindSnapshotsParams) WithDefaults added in v0.20.0

func (o *FindSnapshotsParams) WithDefaults() *FindSnapshotsParams

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

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

func (*FindSnapshotsParams) WithHTTPClient added in v0.20.0

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

WithHTTPClient adds the HTTPClient to the find snapshots params

func (*FindSnapshotsParams) WithTimeout added in v0.20.0

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

WithTimeout adds the timeout to the find snapshots params

func (*FindSnapshotsParams) WriteToRequest added in v0.20.0

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

WriteToRequest writes these params to a swagger request

type FindSnapshotsReader added in v0.20.0

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

FindSnapshotsReader is a Reader for the FindSnapshots structure.

func (*FindSnapshotsReader) ReadResponse added in v0.20.0

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

ReadResponse reads a server response into the received o.

type FindVolumesDefault

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

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

Error

func NewFindVolumesDefault

func NewFindVolumesDefault(code int) *FindVolumesDefault

NewFindVolumesDefault creates a FindVolumesDefault with default headers values

func (*FindVolumesDefault) Code

func (o *FindVolumesDefault) Code() int

Code gets the status code for the find volumes default response

func (*FindVolumesDefault) Error

func (o *FindVolumesDefault) Error() string

func (*FindVolumesDefault) GetPayload

func (*FindVolumesDefault) IsClientError added in v0.19.0

func (o *FindVolumesDefault) IsClientError() bool

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

func (*FindVolumesDefault) IsCode added in v0.19.0

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

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

func (*FindVolumesDefault) IsRedirect added in v0.19.0

func (o *FindVolumesDefault) IsRedirect() bool

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

func (*FindVolumesDefault) IsServerError added in v0.19.0

func (o *FindVolumesDefault) IsServerError() bool

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

func (*FindVolumesDefault) IsSuccess added in v0.19.0

func (o *FindVolumesDefault) IsSuccess() bool

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

func (*FindVolumesDefault) String added in v0.19.0

func (o *FindVolumesDefault) String() string

type FindVolumesOK

type FindVolumesOK struct {
	Payload []*models.V1VolumeResponse
}

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

OK

func NewFindVolumesOK

func NewFindVolumesOK() *FindVolumesOK

NewFindVolumesOK creates a FindVolumesOK with default headers values

func (*FindVolumesOK) Code added in v0.20.11

func (o *FindVolumesOK) Code() int

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

func (*FindVolumesOK) Error

func (o *FindVolumesOK) Error() string

func (*FindVolumesOK) GetPayload

func (o *FindVolumesOK) GetPayload() []*models.V1VolumeResponse

func (*FindVolumesOK) IsClientError added in v0.19.0

func (o *FindVolumesOK) IsClientError() bool

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

func (*FindVolumesOK) IsCode added in v0.19.0

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

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

func (*FindVolumesOK) IsRedirect added in v0.19.0

func (o *FindVolumesOK) IsRedirect() bool

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

func (*FindVolumesOK) IsServerError added in v0.19.0

func (o *FindVolumesOK) IsServerError() bool

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

func (*FindVolumesOK) IsSuccess added in v0.19.0

func (o *FindVolumesOK) IsSuccess() bool

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

func (*FindVolumesOK) String added in v0.19.0

func (o *FindVolumesOK) String() string

type FindVolumesParams

type FindVolumesParams struct {

	// Body.
	Body *models.V1VolumeFindRequest

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

FindVolumesParams contains all the parameters to send to the API endpoint

for the find volumes operation.

Typically these are written to a http.Request.

func NewFindVolumesParams

func NewFindVolumesParams() *FindVolumesParams

NewFindVolumesParams creates a new FindVolumesParams 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 NewFindVolumesParamsWithContext

func NewFindVolumesParamsWithContext(ctx context.Context) *FindVolumesParams

NewFindVolumesParamsWithContext creates a new FindVolumesParams object with the ability to set a context for a request.

func NewFindVolumesParamsWithHTTPClient

func NewFindVolumesParamsWithHTTPClient(client *http.Client) *FindVolumesParams

NewFindVolumesParamsWithHTTPClient creates a new FindVolumesParams object with the ability to set a custom HTTPClient for a request.

func NewFindVolumesParamsWithTimeout

func NewFindVolumesParamsWithTimeout(timeout time.Duration) *FindVolumesParams

NewFindVolumesParamsWithTimeout creates a new FindVolumesParams object with the ability to set a timeout on a request.

func (*FindVolumesParams) SetBody

func (o *FindVolumesParams) SetBody(body *models.V1VolumeFindRequest)

SetBody adds the body to the find volumes params

func (*FindVolumesParams) SetContext

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

SetContext adds the context to the find volumes params

func (*FindVolumesParams) SetDefaults

func (o *FindVolumesParams) SetDefaults()

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

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

func (*FindVolumesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the find volumes params

func (*FindVolumesParams) SetTimeout

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

SetTimeout adds the timeout to the find volumes params

func (*FindVolumesParams) WithBody

WithBody adds the body to the find volumes params

func (*FindVolumesParams) WithContext

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

WithContext adds the context to the find volumes params

func (*FindVolumesParams) WithDefaults

func (o *FindVolumesParams) WithDefaults() *FindVolumesParams

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

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

func (*FindVolumesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the find volumes params

func (*FindVolumesParams) WithTimeout

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

WithTimeout adds the timeout to the find volumes params

func (*FindVolumesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type FindVolumesReader

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

FindVolumesReader is a Reader for the FindVolumes structure.

func (*FindVolumesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSnapshotDefault added in v0.20.0

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

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

Error

func NewGetSnapshotDefault added in v0.20.0

func NewGetSnapshotDefault(code int) *GetSnapshotDefault

NewGetSnapshotDefault creates a GetSnapshotDefault with default headers values

func (*GetSnapshotDefault) Code added in v0.20.0

func (o *GetSnapshotDefault) Code() int

Code gets the status code for the get snapshot default response

func (*GetSnapshotDefault) Error added in v0.20.0

func (o *GetSnapshotDefault) Error() string

func (*GetSnapshotDefault) GetPayload added in v0.20.0

func (*GetSnapshotDefault) IsClientError added in v0.20.0

func (o *GetSnapshotDefault) IsClientError() bool

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

func (*GetSnapshotDefault) IsCode added in v0.20.0

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

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

func (*GetSnapshotDefault) IsRedirect added in v0.20.0

func (o *GetSnapshotDefault) IsRedirect() bool

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

func (*GetSnapshotDefault) IsServerError added in v0.20.0

func (o *GetSnapshotDefault) IsServerError() bool

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

func (*GetSnapshotDefault) IsSuccess added in v0.20.0

func (o *GetSnapshotDefault) IsSuccess() bool

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

func (*GetSnapshotDefault) String added in v0.20.0

func (o *GetSnapshotDefault) String() string

type GetSnapshotOK added in v0.20.0

type GetSnapshotOK struct {
	Payload *models.V1SnapshotResponse
}

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

OK

func NewGetSnapshotOK added in v0.20.0

func NewGetSnapshotOK() *GetSnapshotOK

NewGetSnapshotOK creates a GetSnapshotOK with default headers values

func (*GetSnapshotOK) Code added in v0.20.11

func (o *GetSnapshotOK) Code() int

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

func (*GetSnapshotOK) Error added in v0.20.0

func (o *GetSnapshotOK) Error() string

func (*GetSnapshotOK) GetPayload added in v0.20.0

func (o *GetSnapshotOK) GetPayload() *models.V1SnapshotResponse

func (*GetSnapshotOK) IsClientError added in v0.20.0

func (o *GetSnapshotOK) IsClientError() bool

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

func (*GetSnapshotOK) IsCode added in v0.20.0

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

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

func (*GetSnapshotOK) IsRedirect added in v0.20.0

func (o *GetSnapshotOK) IsRedirect() bool

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

func (*GetSnapshotOK) IsServerError added in v0.20.0

func (o *GetSnapshotOK) IsServerError() bool

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

func (*GetSnapshotOK) IsSuccess added in v0.20.0

func (o *GetSnapshotOK) IsSuccess() bool

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

func (*GetSnapshotOK) String added in v0.20.0

func (o *GetSnapshotOK) String() string

type GetSnapshotParams added in v0.20.0

type GetSnapshotParams struct {

	/* ID.

	   identifier of the snapshot
	*/
	ID string

	/* ProjectID.

	   project id snapshot
	*/
	ProjectID *string

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

GetSnapshotParams contains all the parameters to send to the API endpoint

for the get snapshot operation.

Typically these are written to a http.Request.

func NewGetSnapshotParams added in v0.20.0

func NewGetSnapshotParams() *GetSnapshotParams

NewGetSnapshotParams creates a new GetSnapshotParams 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 NewGetSnapshotParamsWithContext added in v0.20.0

func NewGetSnapshotParamsWithContext(ctx context.Context) *GetSnapshotParams

NewGetSnapshotParamsWithContext creates a new GetSnapshotParams object with the ability to set a context for a request.

func NewGetSnapshotParamsWithHTTPClient added in v0.20.0

func NewGetSnapshotParamsWithHTTPClient(client *http.Client) *GetSnapshotParams

NewGetSnapshotParamsWithHTTPClient creates a new GetSnapshotParams object with the ability to set a custom HTTPClient for a request.

func NewGetSnapshotParamsWithTimeout added in v0.20.0

func NewGetSnapshotParamsWithTimeout(timeout time.Duration) *GetSnapshotParams

NewGetSnapshotParamsWithTimeout creates a new GetSnapshotParams object with the ability to set a timeout on a request.

func (*GetSnapshotParams) SetContext added in v0.20.0

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

SetContext adds the context to the get snapshot params

func (*GetSnapshotParams) SetDefaults added in v0.20.0

func (o *GetSnapshotParams) SetDefaults()

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

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

func (*GetSnapshotParams) SetHTTPClient added in v0.20.0

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

SetHTTPClient adds the HTTPClient to the get snapshot params

func (*GetSnapshotParams) SetID added in v0.20.0

func (o *GetSnapshotParams) SetID(id string)

SetID adds the id to the get snapshot params

func (*GetSnapshotParams) SetProjectID added in v0.20.0

func (o *GetSnapshotParams) SetProjectID(projectID *string)

SetProjectID adds the projectId to the get snapshot params

func (*GetSnapshotParams) SetTimeout added in v0.20.0

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

SetTimeout adds the timeout to the get snapshot params

func (*GetSnapshotParams) WithContext added in v0.20.0

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

WithContext adds the context to the get snapshot params

func (*GetSnapshotParams) WithDefaults added in v0.20.0

func (o *GetSnapshotParams) WithDefaults() *GetSnapshotParams

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

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

func (*GetSnapshotParams) WithHTTPClient added in v0.20.0

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

WithHTTPClient adds the HTTPClient to the get snapshot params

func (*GetSnapshotParams) WithID added in v0.20.0

WithID adds the id to the get snapshot params

func (*GetSnapshotParams) WithProjectID added in v0.20.0

func (o *GetSnapshotParams) WithProjectID(projectID *string) *GetSnapshotParams

WithProjectID adds the projectID to the get snapshot params

func (*GetSnapshotParams) WithTimeout added in v0.20.0

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

WithTimeout adds the timeout to the get snapshot params

func (*GetSnapshotParams) WriteToRequest added in v0.20.0

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

WriteToRequest writes these params to a swagger request

type GetSnapshotReader added in v0.20.0

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

GetSnapshotReader is a Reader for the GetSnapshot structure.

func (*GetSnapshotReader) ReadResponse added in v0.20.0

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

ReadResponse reads a server response into the received o.

type GetVolumeDefault added in v0.17.15

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

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

Error

func NewGetVolumeDefault added in v0.17.15

func NewGetVolumeDefault(code int) *GetVolumeDefault

NewGetVolumeDefault creates a GetVolumeDefault with default headers values

func (*GetVolumeDefault) Code added in v0.17.15

func (o *GetVolumeDefault) Code() int

Code gets the status code for the get volume default response

func (*GetVolumeDefault) Error added in v0.17.15

func (o *GetVolumeDefault) Error() string

func (*GetVolumeDefault) GetPayload added in v0.17.15

func (*GetVolumeDefault) IsClientError added in v0.19.0

func (o *GetVolumeDefault) IsClientError() bool

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

func (*GetVolumeDefault) IsCode added in v0.19.0

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

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

func (*GetVolumeDefault) IsRedirect added in v0.19.0

func (o *GetVolumeDefault) IsRedirect() bool

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

func (*GetVolumeDefault) IsServerError added in v0.19.0

func (o *GetVolumeDefault) IsServerError() bool

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

func (*GetVolumeDefault) IsSuccess added in v0.19.0

func (o *GetVolumeDefault) IsSuccess() bool

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

func (*GetVolumeDefault) String added in v0.19.0

func (o *GetVolumeDefault) String() string

type GetVolumeOK added in v0.17.15

type GetVolumeOK struct {
	Payload *models.V1VolumeResponse
}

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

OK

func NewGetVolumeOK added in v0.17.15

func NewGetVolumeOK() *GetVolumeOK

NewGetVolumeOK creates a GetVolumeOK with default headers values

func (*GetVolumeOK) Code added in v0.20.11

func (o *GetVolumeOK) Code() int

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

func (*GetVolumeOK) Error added in v0.17.15

func (o *GetVolumeOK) Error() string

func (*GetVolumeOK) GetPayload added in v0.17.15

func (o *GetVolumeOK) GetPayload() *models.V1VolumeResponse

func (*GetVolumeOK) IsClientError added in v0.19.0

func (o *GetVolumeOK) IsClientError() bool

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

func (*GetVolumeOK) IsCode added in v0.19.0

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

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

func (*GetVolumeOK) IsRedirect added in v0.19.0

func (o *GetVolumeOK) IsRedirect() bool

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

func (*GetVolumeOK) IsServerError added in v0.19.0

func (o *GetVolumeOK) IsServerError() bool

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

func (*GetVolumeOK) IsSuccess added in v0.19.0

func (o *GetVolumeOK) IsSuccess() bool

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

func (*GetVolumeOK) String added in v0.19.0

func (o *GetVolumeOK) String() string

type GetVolumeParams added in v0.17.15

type GetVolumeParams struct {

	/* ID.

	   identifier of the volume
	*/
	ID string

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

GetVolumeParams contains all the parameters to send to the API endpoint

for the get volume operation.

Typically these are written to a http.Request.

func NewGetVolumeParams added in v0.17.15

func NewGetVolumeParams() *GetVolumeParams

NewGetVolumeParams creates a new GetVolumeParams 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 NewGetVolumeParamsWithContext added in v0.17.15

func NewGetVolumeParamsWithContext(ctx context.Context) *GetVolumeParams

NewGetVolumeParamsWithContext creates a new GetVolumeParams object with the ability to set a context for a request.

func NewGetVolumeParamsWithHTTPClient added in v0.17.15

func NewGetVolumeParamsWithHTTPClient(client *http.Client) *GetVolumeParams

NewGetVolumeParamsWithHTTPClient creates a new GetVolumeParams object with the ability to set a custom HTTPClient for a request.

func NewGetVolumeParamsWithTimeout added in v0.17.15

func NewGetVolumeParamsWithTimeout(timeout time.Duration) *GetVolumeParams

NewGetVolumeParamsWithTimeout creates a new GetVolumeParams object with the ability to set a timeout on a request.

func (*GetVolumeParams) SetContext added in v0.17.15

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

SetContext adds the context to the get volume params

func (*GetVolumeParams) SetDefaults added in v0.17.15

func (o *GetVolumeParams) SetDefaults()

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

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

func (*GetVolumeParams) SetHTTPClient added in v0.17.15

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

SetHTTPClient adds the HTTPClient to the get volume params

func (*GetVolumeParams) SetID added in v0.17.15

func (o *GetVolumeParams) SetID(id string)

SetID adds the id to the get volume params

func (*GetVolumeParams) SetTimeout added in v0.17.15

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

SetTimeout adds the timeout to the get volume params

func (*GetVolumeParams) WithContext added in v0.17.15

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

WithContext adds the context to the get volume params

func (*GetVolumeParams) WithDefaults added in v0.17.15

func (o *GetVolumeParams) WithDefaults() *GetVolumeParams

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

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

func (*GetVolumeParams) WithHTTPClient added in v0.17.15

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

WithHTTPClient adds the HTTPClient to the get volume params

func (*GetVolumeParams) WithID added in v0.17.15

func (o *GetVolumeParams) WithID(id string) *GetVolumeParams

WithID adds the id to the get volume params

func (*GetVolumeParams) WithTimeout added in v0.17.15

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

WithTimeout adds the timeout to the get volume params

func (*GetVolumeParams) WriteToRequest added in v0.17.15

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

WriteToRequest writes these params to a swagger request

type GetVolumeReader added in v0.17.15

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

GetVolumeReader is a Reader for the GetVolume structure.

func (*GetVolumeReader) ReadResponse added in v0.17.15

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

ReadResponse reads a server response into the received o.

type ListVolumesDefault

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

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

Error

func NewListVolumesDefault

func NewListVolumesDefault(code int) *ListVolumesDefault

NewListVolumesDefault creates a ListVolumesDefault with default headers values

func (*ListVolumesDefault) Code

func (o *ListVolumesDefault) Code() int

Code gets the status code for the list volumes default response

func (*ListVolumesDefault) Error

func (o *ListVolumesDefault) Error() string

func (*ListVolumesDefault) GetPayload

func (*ListVolumesDefault) IsClientError added in v0.19.0

func (o *ListVolumesDefault) IsClientError() bool

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

func (*ListVolumesDefault) IsCode added in v0.19.0

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

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

func (*ListVolumesDefault) IsRedirect added in v0.19.0

func (o *ListVolumesDefault) IsRedirect() bool

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

func (*ListVolumesDefault) IsServerError added in v0.19.0

func (o *ListVolumesDefault) IsServerError() bool

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

func (*ListVolumesDefault) IsSuccess added in v0.19.0

func (o *ListVolumesDefault) IsSuccess() bool

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

func (*ListVolumesDefault) String added in v0.19.0

func (o *ListVolumesDefault) String() string

type ListVolumesOK

type ListVolumesOK struct {
	Payload []*models.V1VolumeResponse
}

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

OK

func NewListVolumesOK

func NewListVolumesOK() *ListVolumesOK

NewListVolumesOK creates a ListVolumesOK with default headers values

func (*ListVolumesOK) Code added in v0.20.11

func (o *ListVolumesOK) Code() int

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

func (*ListVolumesOK) Error

func (o *ListVolumesOK) Error() string

func (*ListVolumesOK) GetPayload

func (o *ListVolumesOK) GetPayload() []*models.V1VolumeResponse

func (*ListVolumesOK) IsClientError added in v0.19.0

func (o *ListVolumesOK) IsClientError() bool

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

func (*ListVolumesOK) IsCode added in v0.19.0

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

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

func (*ListVolumesOK) IsRedirect added in v0.19.0

func (o *ListVolumesOK) IsRedirect() bool

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

func (*ListVolumesOK) IsServerError added in v0.19.0

func (o *ListVolumesOK) IsServerError() bool

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

func (*ListVolumesOK) IsSuccess added in v0.19.0

func (o *ListVolumesOK) IsSuccess() bool

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

func (*ListVolumesOK) String added in v0.19.0

func (o *ListVolumesOK) String() string

type ListVolumesParams

type ListVolumesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListVolumesParams contains all the parameters to send to the API endpoint

for the list volumes operation.

Typically these are written to a http.Request.

func NewListVolumesParams

func NewListVolumesParams() *ListVolumesParams

NewListVolumesParams creates a new ListVolumesParams 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 NewListVolumesParamsWithContext

func NewListVolumesParamsWithContext(ctx context.Context) *ListVolumesParams

NewListVolumesParamsWithContext creates a new ListVolumesParams object with the ability to set a context for a request.

func NewListVolumesParamsWithHTTPClient

func NewListVolumesParamsWithHTTPClient(client *http.Client) *ListVolumesParams

NewListVolumesParamsWithHTTPClient creates a new ListVolumesParams object with the ability to set a custom HTTPClient for a request.

func NewListVolumesParamsWithTimeout

func NewListVolumesParamsWithTimeout(timeout time.Duration) *ListVolumesParams

NewListVolumesParamsWithTimeout creates a new ListVolumesParams object with the ability to set a timeout on a request.

func (*ListVolumesParams) SetContext

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

SetContext adds the context to the list volumes params

func (*ListVolumesParams) SetDefaults

func (o *ListVolumesParams) SetDefaults()

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

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

func (*ListVolumesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list volumes params

func (*ListVolumesParams) SetTimeout

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

SetTimeout adds the timeout to the list volumes params

func (*ListVolumesParams) WithContext

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

WithContext adds the context to the list volumes params

func (*ListVolumesParams) WithDefaults

func (o *ListVolumesParams) WithDefaults() *ListVolumesParams

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

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

func (*ListVolumesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list volumes params

func (*ListVolumesParams) WithTimeout

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

WithTimeout adds the timeout to the list volumes params

func (*ListVolumesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListVolumesReader

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

ListVolumesReader is a Reader for the ListVolumes structure.

func (*ListVolumesReader) ReadResponse

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