snapshots

package
v1.8.0-beta7 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 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 snapshots API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) V1SnapshotsGet

func (a *Client) V1SnapshotsGet(params *V1SnapshotsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*V1SnapshotsGetOK, error)

V1SnapshotsGet gets the detail of a snapshot

View the usage of a snapshot. The snapshot may take time sync because the data is cached.

func (*Client) V1SnapshotsGetall

func (a *Client) V1SnapshotsGetall(params *V1SnapshotsGetallParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*V1SnapshotsGetallOK, error)

V1SnapshotsGetall gets a list of all the snapshots on a workspace

View the usage of snapshots on the workspace. The snapshots may take time sync because the data is cached.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	V1SnapshotsGet(params *V1SnapshotsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*V1SnapshotsGetOK, error)

	V1SnapshotsGetall(params *V1SnapshotsGetallParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*V1SnapshotsGetallOK, 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 snapshots API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new snapshots API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new snapshots API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type V1SnapshotsGetBadRequest

type V1SnapshotsGetBadRequest struct {
	Payload *models.Error
}

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

Bad Request

func NewV1SnapshotsGetBadRequest

func NewV1SnapshotsGetBadRequest() *V1SnapshotsGetBadRequest

NewV1SnapshotsGetBadRequest creates a V1SnapshotsGetBadRequest with default headers values

func (*V1SnapshotsGetBadRequest) Code

func (o *V1SnapshotsGetBadRequest) Code() int

Code gets the status code for the v1 snapshots get bad request response

func (*V1SnapshotsGetBadRequest) Error

func (o *V1SnapshotsGetBadRequest) Error() string

func (*V1SnapshotsGetBadRequest) GetPayload

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

func (*V1SnapshotsGetBadRequest) IsClientError

func (o *V1SnapshotsGetBadRequest) IsClientError() bool

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

func (*V1SnapshotsGetBadRequest) IsCode

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

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

func (*V1SnapshotsGetBadRequest) IsRedirect

func (o *V1SnapshotsGetBadRequest) IsRedirect() bool

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

func (*V1SnapshotsGetBadRequest) IsServerError

func (o *V1SnapshotsGetBadRequest) IsServerError() bool

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

func (*V1SnapshotsGetBadRequest) IsSuccess

func (o *V1SnapshotsGetBadRequest) IsSuccess() bool

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

func (*V1SnapshotsGetBadRequest) String

func (o *V1SnapshotsGetBadRequest) String() string

type V1SnapshotsGetForbidden

type V1SnapshotsGetForbidden struct {
	Payload *models.Error
}

V1SnapshotsGetForbidden describes a response with status code 403, with default header values.

Forbidden

func NewV1SnapshotsGetForbidden

func NewV1SnapshotsGetForbidden() *V1SnapshotsGetForbidden

NewV1SnapshotsGetForbidden creates a V1SnapshotsGetForbidden with default headers values

func (*V1SnapshotsGetForbidden) Code

func (o *V1SnapshotsGetForbidden) Code() int

Code gets the status code for the v1 snapshots get forbidden response

func (*V1SnapshotsGetForbidden) Error

func (o *V1SnapshotsGetForbidden) Error() string

func (*V1SnapshotsGetForbidden) GetPayload

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

func (*V1SnapshotsGetForbidden) IsClientError

func (o *V1SnapshotsGetForbidden) IsClientError() bool

IsClientError returns true when this v1 snapshots get forbidden response has a 4xx status code

func (*V1SnapshotsGetForbidden) IsCode

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

IsCode returns true when this v1 snapshots get forbidden response a status code equal to that given

func (*V1SnapshotsGetForbidden) IsRedirect

func (o *V1SnapshotsGetForbidden) IsRedirect() bool

IsRedirect returns true when this v1 snapshots get forbidden response has a 3xx status code

func (*V1SnapshotsGetForbidden) IsServerError

func (o *V1SnapshotsGetForbidden) IsServerError() bool

IsServerError returns true when this v1 snapshots get forbidden response has a 5xx status code

func (*V1SnapshotsGetForbidden) IsSuccess

func (o *V1SnapshotsGetForbidden) IsSuccess() bool

IsSuccess returns true when this v1 snapshots get forbidden response has a 2xx status code

func (*V1SnapshotsGetForbidden) String

func (o *V1SnapshotsGetForbidden) String() string

type V1SnapshotsGetInternalServerError

type V1SnapshotsGetInternalServerError struct {
	Payload *models.Error
}

V1SnapshotsGetInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewV1SnapshotsGetInternalServerError

func NewV1SnapshotsGetInternalServerError() *V1SnapshotsGetInternalServerError

NewV1SnapshotsGetInternalServerError creates a V1SnapshotsGetInternalServerError with default headers values

func (*V1SnapshotsGetInternalServerError) Code

Code gets the status code for the v1 snapshots get internal server error response

func (*V1SnapshotsGetInternalServerError) Error

func (*V1SnapshotsGetInternalServerError) GetPayload

func (*V1SnapshotsGetInternalServerError) IsClientError

func (o *V1SnapshotsGetInternalServerError) IsClientError() bool

IsClientError returns true when this v1 snapshots get internal server error response has a 4xx status code

func (*V1SnapshotsGetInternalServerError) IsCode

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

IsCode returns true when this v1 snapshots get internal server error response a status code equal to that given

func (*V1SnapshotsGetInternalServerError) IsRedirect

func (o *V1SnapshotsGetInternalServerError) IsRedirect() bool

IsRedirect returns true when this v1 snapshots get internal server error response has a 3xx status code

func (*V1SnapshotsGetInternalServerError) IsServerError

func (o *V1SnapshotsGetInternalServerError) IsServerError() bool

IsServerError returns true when this v1 snapshots get internal server error response has a 5xx status code

func (*V1SnapshotsGetInternalServerError) IsSuccess

func (o *V1SnapshotsGetInternalServerError) IsSuccess() bool

IsSuccess returns true when this v1 snapshots get internal server error response has a 2xx status code

func (*V1SnapshotsGetInternalServerError) String

type V1SnapshotsGetNotFound

type V1SnapshotsGetNotFound struct {
	Payload *models.Error
}

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

Not Found

func NewV1SnapshotsGetNotFound

func NewV1SnapshotsGetNotFound() *V1SnapshotsGetNotFound

NewV1SnapshotsGetNotFound creates a V1SnapshotsGetNotFound with default headers values

func (*V1SnapshotsGetNotFound) Code

func (o *V1SnapshotsGetNotFound) Code() int

Code gets the status code for the v1 snapshots get not found response

func (*V1SnapshotsGetNotFound) Error

func (o *V1SnapshotsGetNotFound) Error() string

func (*V1SnapshotsGetNotFound) GetPayload

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

func (*V1SnapshotsGetNotFound) IsClientError

func (o *V1SnapshotsGetNotFound) IsClientError() bool

IsClientError returns true when this v1 snapshots get not found response has a 4xx status code

func (*V1SnapshotsGetNotFound) IsCode

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

IsCode returns true when this v1 snapshots get not found response a status code equal to that given

func (*V1SnapshotsGetNotFound) IsRedirect

func (o *V1SnapshotsGetNotFound) IsRedirect() bool

IsRedirect returns true when this v1 snapshots get not found response has a 3xx status code

func (*V1SnapshotsGetNotFound) IsServerError

func (o *V1SnapshotsGetNotFound) IsServerError() bool

IsServerError returns true when this v1 snapshots get not found response has a 5xx status code

func (*V1SnapshotsGetNotFound) IsSuccess

func (o *V1SnapshotsGetNotFound) IsSuccess() bool

IsSuccess returns true when this v1 snapshots get not found response has a 2xx status code

func (*V1SnapshotsGetNotFound) String

func (o *V1SnapshotsGetNotFound) String() string

type V1SnapshotsGetOK

type V1SnapshotsGetOK struct {
	Payload *models.SnapshotV1
}

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

OK

func NewV1SnapshotsGetOK

func NewV1SnapshotsGetOK() *V1SnapshotsGetOK

NewV1SnapshotsGetOK creates a V1SnapshotsGetOK with default headers values

func (*V1SnapshotsGetOK) Code

func (o *V1SnapshotsGetOK) Code() int

Code gets the status code for the v1 snapshots get o k response

func (*V1SnapshotsGetOK) Error

func (o *V1SnapshotsGetOK) Error() string

func (*V1SnapshotsGetOK) GetPayload

func (o *V1SnapshotsGetOK) GetPayload() *models.SnapshotV1

func (*V1SnapshotsGetOK) IsClientError

func (o *V1SnapshotsGetOK) IsClientError() bool

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

func (*V1SnapshotsGetOK) IsCode

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

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

func (*V1SnapshotsGetOK) IsRedirect

func (o *V1SnapshotsGetOK) IsRedirect() bool

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

func (*V1SnapshotsGetOK) IsServerError

func (o *V1SnapshotsGetOK) IsServerError() bool

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

func (*V1SnapshotsGetOK) IsSuccess

func (o *V1SnapshotsGetOK) IsSuccess() bool

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

func (*V1SnapshotsGetOK) String

func (o *V1SnapshotsGetOK) String() string

type V1SnapshotsGetParams

type V1SnapshotsGetParams struct {

	/* SnapshotID.

	   PVM Instance snapshot id
	*/
	SnapshotID string

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

V1SnapshotsGetParams contains all the parameters to send to the API endpoint

for the v1 snapshots get operation.

Typically these are written to a http.Request.

func NewV1SnapshotsGetParams

func NewV1SnapshotsGetParams() *V1SnapshotsGetParams

NewV1SnapshotsGetParams creates a new V1SnapshotsGetParams 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 NewV1SnapshotsGetParamsWithContext

func NewV1SnapshotsGetParamsWithContext(ctx context.Context) *V1SnapshotsGetParams

NewV1SnapshotsGetParamsWithContext creates a new V1SnapshotsGetParams object with the ability to set a context for a request.

func NewV1SnapshotsGetParamsWithHTTPClient

func NewV1SnapshotsGetParamsWithHTTPClient(client *http.Client) *V1SnapshotsGetParams

NewV1SnapshotsGetParamsWithHTTPClient creates a new V1SnapshotsGetParams object with the ability to set a custom HTTPClient for a request.

func NewV1SnapshotsGetParamsWithTimeout

func NewV1SnapshotsGetParamsWithTimeout(timeout time.Duration) *V1SnapshotsGetParams

NewV1SnapshotsGetParamsWithTimeout creates a new V1SnapshotsGetParams object with the ability to set a timeout on a request.

func (*V1SnapshotsGetParams) SetContext

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

SetContext adds the context to the v1 snapshots get params

func (*V1SnapshotsGetParams) SetDefaults

func (o *V1SnapshotsGetParams) SetDefaults()

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

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

func (*V1SnapshotsGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the v1 snapshots get params

func (*V1SnapshotsGetParams) SetSnapshotID

func (o *V1SnapshotsGetParams) SetSnapshotID(snapshotID string)

SetSnapshotID adds the snapshotId to the v1 snapshots get params

func (*V1SnapshotsGetParams) SetTimeout

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

SetTimeout adds the timeout to the v1 snapshots get params

func (*V1SnapshotsGetParams) WithContext

WithContext adds the context to the v1 snapshots get params

func (*V1SnapshotsGetParams) WithDefaults

func (o *V1SnapshotsGetParams) WithDefaults() *V1SnapshotsGetParams

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

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

func (*V1SnapshotsGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the v1 snapshots get params

func (*V1SnapshotsGetParams) WithSnapshotID

func (o *V1SnapshotsGetParams) WithSnapshotID(snapshotID string) *V1SnapshotsGetParams

WithSnapshotID adds the snapshotID to the v1 snapshots get params

func (*V1SnapshotsGetParams) WithTimeout

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

WithTimeout adds the timeout to the v1 snapshots get params

func (*V1SnapshotsGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type V1SnapshotsGetReader

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

V1SnapshotsGetReader is a Reader for the V1SnapshotsGet structure.

func (*V1SnapshotsGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type V1SnapshotsGetServiceUnavailable

type V1SnapshotsGetServiceUnavailable struct {
	Payload *models.Error
}

V1SnapshotsGetServiceUnavailable describes a response with status code 503, with default header values.

Service Unavailable

func NewV1SnapshotsGetServiceUnavailable

func NewV1SnapshotsGetServiceUnavailable() *V1SnapshotsGetServiceUnavailable

NewV1SnapshotsGetServiceUnavailable creates a V1SnapshotsGetServiceUnavailable with default headers values

func (*V1SnapshotsGetServiceUnavailable) Code

Code gets the status code for the v1 snapshots get service unavailable response

func (*V1SnapshotsGetServiceUnavailable) Error

func (*V1SnapshotsGetServiceUnavailable) GetPayload

func (*V1SnapshotsGetServiceUnavailable) IsClientError

func (o *V1SnapshotsGetServiceUnavailable) IsClientError() bool

IsClientError returns true when this v1 snapshots get service unavailable response has a 4xx status code

func (*V1SnapshotsGetServiceUnavailable) IsCode

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

IsCode returns true when this v1 snapshots get service unavailable response a status code equal to that given

func (*V1SnapshotsGetServiceUnavailable) IsRedirect

func (o *V1SnapshotsGetServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this v1 snapshots get service unavailable response has a 3xx status code

func (*V1SnapshotsGetServiceUnavailable) IsServerError

func (o *V1SnapshotsGetServiceUnavailable) IsServerError() bool

IsServerError returns true when this v1 snapshots get service unavailable response has a 5xx status code

func (*V1SnapshotsGetServiceUnavailable) IsSuccess

func (o *V1SnapshotsGetServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this v1 snapshots get service unavailable response has a 2xx status code

func (*V1SnapshotsGetServiceUnavailable) String

type V1SnapshotsGetUnauthorized

type V1SnapshotsGetUnauthorized struct {
	Payload *models.Error
}

V1SnapshotsGetUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewV1SnapshotsGetUnauthorized

func NewV1SnapshotsGetUnauthorized() *V1SnapshotsGetUnauthorized

NewV1SnapshotsGetUnauthorized creates a V1SnapshotsGetUnauthorized with default headers values

func (*V1SnapshotsGetUnauthorized) Code

func (o *V1SnapshotsGetUnauthorized) Code() int

Code gets the status code for the v1 snapshots get unauthorized response

func (*V1SnapshotsGetUnauthorized) Error

func (*V1SnapshotsGetUnauthorized) GetPayload

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

func (*V1SnapshotsGetUnauthorized) IsClientError

func (o *V1SnapshotsGetUnauthorized) IsClientError() bool

IsClientError returns true when this v1 snapshots get unauthorized response has a 4xx status code

func (*V1SnapshotsGetUnauthorized) IsCode

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

IsCode returns true when this v1 snapshots get unauthorized response a status code equal to that given

func (*V1SnapshotsGetUnauthorized) IsRedirect

func (o *V1SnapshotsGetUnauthorized) IsRedirect() bool

IsRedirect returns true when this v1 snapshots get unauthorized response has a 3xx status code

func (*V1SnapshotsGetUnauthorized) IsServerError

func (o *V1SnapshotsGetUnauthorized) IsServerError() bool

IsServerError returns true when this v1 snapshots get unauthorized response has a 5xx status code

func (*V1SnapshotsGetUnauthorized) IsSuccess

func (o *V1SnapshotsGetUnauthorized) IsSuccess() bool

IsSuccess returns true when this v1 snapshots get unauthorized response has a 2xx status code

func (*V1SnapshotsGetUnauthorized) String

func (o *V1SnapshotsGetUnauthorized) String() string

type V1SnapshotsGetallForbidden

type V1SnapshotsGetallForbidden struct {
	Payload *models.Error
}

V1SnapshotsGetallForbidden describes a response with status code 403, with default header values.

Forbidden

func NewV1SnapshotsGetallForbidden

func NewV1SnapshotsGetallForbidden() *V1SnapshotsGetallForbidden

NewV1SnapshotsGetallForbidden creates a V1SnapshotsGetallForbidden with default headers values

func (*V1SnapshotsGetallForbidden) Code

func (o *V1SnapshotsGetallForbidden) Code() int

Code gets the status code for the v1 snapshots getall forbidden response

func (*V1SnapshotsGetallForbidden) Error

func (*V1SnapshotsGetallForbidden) GetPayload

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

func (*V1SnapshotsGetallForbidden) IsClientError

func (o *V1SnapshotsGetallForbidden) IsClientError() bool

IsClientError returns true when this v1 snapshots getall forbidden response has a 4xx status code

func (*V1SnapshotsGetallForbidden) IsCode

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

IsCode returns true when this v1 snapshots getall forbidden response a status code equal to that given

func (*V1SnapshotsGetallForbidden) IsRedirect

func (o *V1SnapshotsGetallForbidden) IsRedirect() bool

IsRedirect returns true when this v1 snapshots getall forbidden response has a 3xx status code

func (*V1SnapshotsGetallForbidden) IsServerError

func (o *V1SnapshotsGetallForbidden) IsServerError() bool

IsServerError returns true when this v1 snapshots getall forbidden response has a 5xx status code

func (*V1SnapshotsGetallForbidden) IsSuccess

func (o *V1SnapshotsGetallForbidden) IsSuccess() bool

IsSuccess returns true when this v1 snapshots getall forbidden response has a 2xx status code

func (*V1SnapshotsGetallForbidden) String

func (o *V1SnapshotsGetallForbidden) String() string

type V1SnapshotsGetallInternalServerError

type V1SnapshotsGetallInternalServerError struct {
	Payload *models.Error
}

V1SnapshotsGetallInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewV1SnapshotsGetallInternalServerError

func NewV1SnapshotsGetallInternalServerError() *V1SnapshotsGetallInternalServerError

NewV1SnapshotsGetallInternalServerError creates a V1SnapshotsGetallInternalServerError with default headers values

func (*V1SnapshotsGetallInternalServerError) Code

Code gets the status code for the v1 snapshots getall internal server error response

func (*V1SnapshotsGetallInternalServerError) Error

func (*V1SnapshotsGetallInternalServerError) GetPayload

func (*V1SnapshotsGetallInternalServerError) IsClientError

func (o *V1SnapshotsGetallInternalServerError) IsClientError() bool

IsClientError returns true when this v1 snapshots getall internal server error response has a 4xx status code

func (*V1SnapshotsGetallInternalServerError) IsCode

IsCode returns true when this v1 snapshots getall internal server error response a status code equal to that given

func (*V1SnapshotsGetallInternalServerError) IsRedirect

IsRedirect returns true when this v1 snapshots getall internal server error response has a 3xx status code

func (*V1SnapshotsGetallInternalServerError) IsServerError

func (o *V1SnapshotsGetallInternalServerError) IsServerError() bool

IsServerError returns true when this v1 snapshots getall internal server error response has a 5xx status code

func (*V1SnapshotsGetallInternalServerError) IsSuccess

IsSuccess returns true when this v1 snapshots getall internal server error response has a 2xx status code

func (*V1SnapshotsGetallInternalServerError) String

type V1SnapshotsGetallNotFound

type V1SnapshotsGetallNotFound struct {
	Payload *models.Error
}

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

Not Found

func NewV1SnapshotsGetallNotFound

func NewV1SnapshotsGetallNotFound() *V1SnapshotsGetallNotFound

NewV1SnapshotsGetallNotFound creates a V1SnapshotsGetallNotFound with default headers values

func (*V1SnapshotsGetallNotFound) Code

func (o *V1SnapshotsGetallNotFound) Code() int

Code gets the status code for the v1 snapshots getall not found response

func (*V1SnapshotsGetallNotFound) Error

func (o *V1SnapshotsGetallNotFound) Error() string

func (*V1SnapshotsGetallNotFound) GetPayload

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

func (*V1SnapshotsGetallNotFound) IsClientError

func (o *V1SnapshotsGetallNotFound) IsClientError() bool

IsClientError returns true when this v1 snapshots getall not found response has a 4xx status code

func (*V1SnapshotsGetallNotFound) IsCode

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

IsCode returns true when this v1 snapshots getall not found response a status code equal to that given

func (*V1SnapshotsGetallNotFound) IsRedirect

func (o *V1SnapshotsGetallNotFound) IsRedirect() bool

IsRedirect returns true when this v1 snapshots getall not found response has a 3xx status code

func (*V1SnapshotsGetallNotFound) IsServerError

func (o *V1SnapshotsGetallNotFound) IsServerError() bool

IsServerError returns true when this v1 snapshots getall not found response has a 5xx status code

func (*V1SnapshotsGetallNotFound) IsSuccess

func (o *V1SnapshotsGetallNotFound) IsSuccess() bool

IsSuccess returns true when this v1 snapshots getall not found response has a 2xx status code

func (*V1SnapshotsGetallNotFound) String

func (o *V1SnapshotsGetallNotFound) String() string

type V1SnapshotsGetallOK

type V1SnapshotsGetallOK struct {
	Payload *models.SnapshotList
}

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

OK

func NewV1SnapshotsGetallOK

func NewV1SnapshotsGetallOK() *V1SnapshotsGetallOK

NewV1SnapshotsGetallOK creates a V1SnapshotsGetallOK with default headers values

func (*V1SnapshotsGetallOK) Code

func (o *V1SnapshotsGetallOK) Code() int

Code gets the status code for the v1 snapshots getall o k response

func (*V1SnapshotsGetallOK) Error

func (o *V1SnapshotsGetallOK) Error() string

func (*V1SnapshotsGetallOK) GetPayload

func (o *V1SnapshotsGetallOK) GetPayload() *models.SnapshotList

func (*V1SnapshotsGetallOK) IsClientError

func (o *V1SnapshotsGetallOK) IsClientError() bool

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

func (*V1SnapshotsGetallOK) IsCode

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

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

func (*V1SnapshotsGetallOK) IsRedirect

func (o *V1SnapshotsGetallOK) IsRedirect() bool

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

func (*V1SnapshotsGetallOK) IsServerError

func (o *V1SnapshotsGetallOK) IsServerError() bool

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

func (*V1SnapshotsGetallOK) IsSuccess

func (o *V1SnapshotsGetallOK) IsSuccess() bool

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

func (*V1SnapshotsGetallOK) String

func (o *V1SnapshotsGetallOK) String() string

type V1SnapshotsGetallParams

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

V1SnapshotsGetallParams contains all the parameters to send to the API endpoint

for the v1 snapshots getall operation.

Typically these are written to a http.Request.

func NewV1SnapshotsGetallParams

func NewV1SnapshotsGetallParams() *V1SnapshotsGetallParams

NewV1SnapshotsGetallParams creates a new V1SnapshotsGetallParams 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 NewV1SnapshotsGetallParamsWithContext

func NewV1SnapshotsGetallParamsWithContext(ctx context.Context) *V1SnapshotsGetallParams

NewV1SnapshotsGetallParamsWithContext creates a new V1SnapshotsGetallParams object with the ability to set a context for a request.

func NewV1SnapshotsGetallParamsWithHTTPClient

func NewV1SnapshotsGetallParamsWithHTTPClient(client *http.Client) *V1SnapshotsGetallParams

NewV1SnapshotsGetallParamsWithHTTPClient creates a new V1SnapshotsGetallParams object with the ability to set a custom HTTPClient for a request.

func NewV1SnapshotsGetallParamsWithTimeout

func NewV1SnapshotsGetallParamsWithTimeout(timeout time.Duration) *V1SnapshotsGetallParams

NewV1SnapshotsGetallParamsWithTimeout creates a new V1SnapshotsGetallParams object with the ability to set a timeout on a request.

func (*V1SnapshotsGetallParams) SetContext

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

SetContext adds the context to the v1 snapshots getall params

func (*V1SnapshotsGetallParams) SetDefaults

func (o *V1SnapshotsGetallParams) SetDefaults()

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

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

func (*V1SnapshotsGetallParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the v1 snapshots getall params

func (*V1SnapshotsGetallParams) SetTimeout

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

SetTimeout adds the timeout to the v1 snapshots getall params

func (*V1SnapshotsGetallParams) WithContext

WithContext adds the context to the v1 snapshots getall params

func (*V1SnapshotsGetallParams) WithDefaults

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

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

func (*V1SnapshotsGetallParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the v1 snapshots getall params

func (*V1SnapshotsGetallParams) WithTimeout

WithTimeout adds the timeout to the v1 snapshots getall params

func (*V1SnapshotsGetallParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type V1SnapshotsGetallReader

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

V1SnapshotsGetallReader is a Reader for the V1SnapshotsGetall structure.

func (*V1SnapshotsGetallReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type V1SnapshotsGetallServiceUnavailable

type V1SnapshotsGetallServiceUnavailable struct {
	Payload *models.Error
}

V1SnapshotsGetallServiceUnavailable describes a response with status code 503, with default header values.

Service Unavailable

func NewV1SnapshotsGetallServiceUnavailable

func NewV1SnapshotsGetallServiceUnavailable() *V1SnapshotsGetallServiceUnavailable

NewV1SnapshotsGetallServiceUnavailable creates a V1SnapshotsGetallServiceUnavailable with default headers values

func (*V1SnapshotsGetallServiceUnavailable) Code

Code gets the status code for the v1 snapshots getall service unavailable response

func (*V1SnapshotsGetallServiceUnavailable) Error

func (*V1SnapshotsGetallServiceUnavailable) GetPayload

func (*V1SnapshotsGetallServiceUnavailable) IsClientError

func (o *V1SnapshotsGetallServiceUnavailable) IsClientError() bool

IsClientError returns true when this v1 snapshots getall service unavailable response has a 4xx status code

func (*V1SnapshotsGetallServiceUnavailable) IsCode

IsCode returns true when this v1 snapshots getall service unavailable response a status code equal to that given

func (*V1SnapshotsGetallServiceUnavailable) IsRedirect

func (o *V1SnapshotsGetallServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this v1 snapshots getall service unavailable response has a 3xx status code

func (*V1SnapshotsGetallServiceUnavailable) IsServerError

func (o *V1SnapshotsGetallServiceUnavailable) IsServerError() bool

IsServerError returns true when this v1 snapshots getall service unavailable response has a 5xx status code

func (*V1SnapshotsGetallServiceUnavailable) IsSuccess

IsSuccess returns true when this v1 snapshots getall service unavailable response has a 2xx status code

func (*V1SnapshotsGetallServiceUnavailable) String

type V1SnapshotsGetallUnauthorized

type V1SnapshotsGetallUnauthorized struct {
	Payload *models.Error
}

V1SnapshotsGetallUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewV1SnapshotsGetallUnauthorized

func NewV1SnapshotsGetallUnauthorized() *V1SnapshotsGetallUnauthorized

NewV1SnapshotsGetallUnauthorized creates a V1SnapshotsGetallUnauthorized with default headers values

func (*V1SnapshotsGetallUnauthorized) Code

Code gets the status code for the v1 snapshots getall unauthorized response

func (*V1SnapshotsGetallUnauthorized) Error

func (*V1SnapshotsGetallUnauthorized) GetPayload

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

func (*V1SnapshotsGetallUnauthorized) IsClientError

func (o *V1SnapshotsGetallUnauthorized) IsClientError() bool

IsClientError returns true when this v1 snapshots getall unauthorized response has a 4xx status code

func (*V1SnapshotsGetallUnauthorized) IsCode

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

IsCode returns true when this v1 snapshots getall unauthorized response a status code equal to that given

func (*V1SnapshotsGetallUnauthorized) IsRedirect

func (o *V1SnapshotsGetallUnauthorized) IsRedirect() bool

IsRedirect returns true when this v1 snapshots getall unauthorized response has a 3xx status code

func (*V1SnapshotsGetallUnauthorized) IsServerError

func (o *V1SnapshotsGetallUnauthorized) IsServerError() bool

IsServerError returns true when this v1 snapshots getall unauthorized response has a 5xx status code

func (*V1SnapshotsGetallUnauthorized) IsSuccess

func (o *V1SnapshotsGetallUnauthorized) IsSuccess() bool

IsSuccess returns true when this v1 snapshots getall unauthorized response has a 2xx status code

func (*V1SnapshotsGetallUnauthorized) String

Jump to

Keyboard shortcuts

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