p_cloud_snapshots

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 10 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 p cloud snapshots API

func (*Client) PcloudCloudinstancesSnapshotsDelete

PcloudCloudinstancesSnapshotsDelete deletes a p VM instance snapshot of a cloud instance

func (*Client) PcloudCloudinstancesSnapshotsGet

func (a *Client) PcloudCloudinstancesSnapshotsGet(params *PcloudCloudinstancesSnapshotsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudCloudinstancesSnapshotsGetOK, error)

PcloudCloudinstancesSnapshotsGet gets the detail of a snapshot

func (*Client) PcloudCloudinstancesSnapshotsGetall

func (a *Client) PcloudCloudinstancesSnapshotsGetall(params *PcloudCloudinstancesSnapshotsGetallParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudCloudinstancesSnapshotsGetallOK, error)

PcloudCloudinstancesSnapshotsGetall lists all p VM instance snapshots for this cloud instance

func (*Client) PcloudCloudinstancesSnapshotsPut

func (a *Client) PcloudCloudinstancesSnapshotsPut(params *PcloudCloudinstancesSnapshotsPutParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudCloudinstancesSnapshotsPutOK, error)

PcloudCloudinstancesSnapshotsPut updates a p VM instance snapshot

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v1.1.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v1.1.0

type ClientService interface {
	PcloudCloudinstancesSnapshotsDelete(params *PcloudCloudinstancesSnapshotsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudCloudinstancesSnapshotsDeleteAccepted, error)

	PcloudCloudinstancesSnapshotsGet(params *PcloudCloudinstancesSnapshotsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudCloudinstancesSnapshotsGetOK, error)

	PcloudCloudinstancesSnapshotsGetall(params *PcloudCloudinstancesSnapshotsGetallParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudCloudinstancesSnapshotsGetallOK, error)

	PcloudCloudinstancesSnapshotsPut(params *PcloudCloudinstancesSnapshotsPutParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudCloudinstancesSnapshotsPutOK, 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 p cloud snapshots API client.

type PcloudCloudinstancesSnapshotsDeleteAccepted

type PcloudCloudinstancesSnapshotsDeleteAccepted struct {
	Payload models.Object
}
PcloudCloudinstancesSnapshotsDeleteAccepted describes a response with status code 202, with default header values.

Accepted

func NewPcloudCloudinstancesSnapshotsDeleteAccepted

func NewPcloudCloudinstancesSnapshotsDeleteAccepted() *PcloudCloudinstancesSnapshotsDeleteAccepted

NewPcloudCloudinstancesSnapshotsDeleteAccepted creates a PcloudCloudinstancesSnapshotsDeleteAccepted with default headers values

func (*PcloudCloudinstancesSnapshotsDeleteAccepted) Error

func (*PcloudCloudinstancesSnapshotsDeleteAccepted) GetPayload added in v1.1.0

type PcloudCloudinstancesSnapshotsDeleteBadRequest

type PcloudCloudinstancesSnapshotsDeleteBadRequest struct {
	Payload *models.Error
}
PcloudCloudinstancesSnapshotsDeleteBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPcloudCloudinstancesSnapshotsDeleteBadRequest

func NewPcloudCloudinstancesSnapshotsDeleteBadRequest() *PcloudCloudinstancesSnapshotsDeleteBadRequest

NewPcloudCloudinstancesSnapshotsDeleteBadRequest creates a PcloudCloudinstancesSnapshotsDeleteBadRequest with default headers values

func (*PcloudCloudinstancesSnapshotsDeleteBadRequest) Error

func (*PcloudCloudinstancesSnapshotsDeleteBadRequest) GetPayload added in v1.1.0

type PcloudCloudinstancesSnapshotsDeleteGone

type PcloudCloudinstancesSnapshotsDeleteGone struct {
	Payload *models.Error
}
PcloudCloudinstancesSnapshotsDeleteGone describes a response with status code 410, with default header values.

Gone

func NewPcloudCloudinstancesSnapshotsDeleteGone

func NewPcloudCloudinstancesSnapshotsDeleteGone() *PcloudCloudinstancesSnapshotsDeleteGone

NewPcloudCloudinstancesSnapshotsDeleteGone creates a PcloudCloudinstancesSnapshotsDeleteGone with default headers values

func (*PcloudCloudinstancesSnapshotsDeleteGone) Error

func (*PcloudCloudinstancesSnapshotsDeleteGone) GetPayload added in v1.1.0

type PcloudCloudinstancesSnapshotsDeleteInternalServerError

type PcloudCloudinstancesSnapshotsDeleteInternalServerError struct {
	Payload *models.Error
}
PcloudCloudinstancesSnapshotsDeleteInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPcloudCloudinstancesSnapshotsDeleteInternalServerError

func NewPcloudCloudinstancesSnapshotsDeleteInternalServerError() *PcloudCloudinstancesSnapshotsDeleteInternalServerError

NewPcloudCloudinstancesSnapshotsDeleteInternalServerError creates a PcloudCloudinstancesSnapshotsDeleteInternalServerError with default headers values

func (*PcloudCloudinstancesSnapshotsDeleteInternalServerError) Error

func (*PcloudCloudinstancesSnapshotsDeleteInternalServerError) GetPayload added in v1.1.0

type PcloudCloudinstancesSnapshotsDeleteNotFound added in v1.0.56

type PcloudCloudinstancesSnapshotsDeleteNotFound struct {
	Payload *models.Error
}
PcloudCloudinstancesSnapshotsDeleteNotFound describes a response with status code 404, with default header values.

Not Found

func NewPcloudCloudinstancesSnapshotsDeleteNotFound added in v1.0.56

func NewPcloudCloudinstancesSnapshotsDeleteNotFound() *PcloudCloudinstancesSnapshotsDeleteNotFound

NewPcloudCloudinstancesSnapshotsDeleteNotFound creates a PcloudCloudinstancesSnapshotsDeleteNotFound with default headers values

func (*PcloudCloudinstancesSnapshotsDeleteNotFound) Error added in v1.0.56

func (*PcloudCloudinstancesSnapshotsDeleteNotFound) GetPayload added in v1.1.0

type PcloudCloudinstancesSnapshotsDeleteParams

type PcloudCloudinstancesSnapshotsDeleteParams struct {

	/* CloudInstanceID.

	   Cloud Instance ID of a PCloud Instance
	*/
	CloudInstanceID string

	/* SnapshotID.

	   PVM Instance snapshot id
	*/
	SnapshotID string

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

PcloudCloudinstancesSnapshotsDeleteParams contains all the parameters to send to the API endpoint

for the pcloud cloudinstances snapshots delete operation.

Typically these are written to a http.Request.

func NewPcloudCloudinstancesSnapshotsDeleteParams

func NewPcloudCloudinstancesSnapshotsDeleteParams() *PcloudCloudinstancesSnapshotsDeleteParams

NewPcloudCloudinstancesSnapshotsDeleteParams creates a new PcloudCloudinstancesSnapshotsDeleteParams 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 NewPcloudCloudinstancesSnapshotsDeleteParamsWithContext

func NewPcloudCloudinstancesSnapshotsDeleteParamsWithContext(ctx context.Context) *PcloudCloudinstancesSnapshotsDeleteParams

NewPcloudCloudinstancesSnapshotsDeleteParamsWithContext creates a new PcloudCloudinstancesSnapshotsDeleteParams object with the ability to set a context for a request.

func NewPcloudCloudinstancesSnapshotsDeleteParamsWithHTTPClient

func NewPcloudCloudinstancesSnapshotsDeleteParamsWithHTTPClient(client *http.Client) *PcloudCloudinstancesSnapshotsDeleteParams

NewPcloudCloudinstancesSnapshotsDeleteParamsWithHTTPClient creates a new PcloudCloudinstancesSnapshotsDeleteParams object with the ability to set a custom HTTPClient for a request.

func NewPcloudCloudinstancesSnapshotsDeleteParamsWithTimeout

func NewPcloudCloudinstancesSnapshotsDeleteParamsWithTimeout(timeout time.Duration) *PcloudCloudinstancesSnapshotsDeleteParams

NewPcloudCloudinstancesSnapshotsDeleteParamsWithTimeout creates a new PcloudCloudinstancesSnapshotsDeleteParams object with the ability to set a timeout on a request.

func (*PcloudCloudinstancesSnapshotsDeleteParams) SetCloudInstanceID

func (o *PcloudCloudinstancesSnapshotsDeleteParams) SetCloudInstanceID(cloudInstanceID string)

SetCloudInstanceID adds the cloudInstanceId to the pcloud cloudinstances snapshots delete params

func (*PcloudCloudinstancesSnapshotsDeleteParams) SetContext

SetContext adds the context to the pcloud cloudinstances snapshots delete params

func (*PcloudCloudinstancesSnapshotsDeleteParams) SetDefaults added in v1.1.0

SetDefaults hydrates default values in the pcloud cloudinstances snapshots delete params (not the query body).

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

func (*PcloudCloudinstancesSnapshotsDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pcloud cloudinstances snapshots delete params

func (*PcloudCloudinstancesSnapshotsDeleteParams) SetSnapshotID

func (o *PcloudCloudinstancesSnapshotsDeleteParams) SetSnapshotID(snapshotID string)

SetSnapshotID adds the snapshotId to the pcloud cloudinstances snapshots delete params

func (*PcloudCloudinstancesSnapshotsDeleteParams) SetTimeout

SetTimeout adds the timeout to the pcloud cloudinstances snapshots delete params

func (*PcloudCloudinstancesSnapshotsDeleteParams) WithCloudInstanceID

WithCloudInstanceID adds the cloudInstanceID to the pcloud cloudinstances snapshots delete params

func (*PcloudCloudinstancesSnapshotsDeleteParams) WithContext

WithContext adds the context to the pcloud cloudinstances snapshots delete params

func (*PcloudCloudinstancesSnapshotsDeleteParams) WithDefaults added in v1.1.0

WithDefaults hydrates default values in the pcloud cloudinstances snapshots delete params (not the query body).

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

func (*PcloudCloudinstancesSnapshotsDeleteParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the pcloud cloudinstances snapshots delete params

func (*PcloudCloudinstancesSnapshotsDeleteParams) WithSnapshotID

WithSnapshotID adds the snapshotID to the pcloud cloudinstances snapshots delete params

func (*PcloudCloudinstancesSnapshotsDeleteParams) WithTimeout

WithTimeout adds the timeout to the pcloud cloudinstances snapshots delete params

func (*PcloudCloudinstancesSnapshotsDeleteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PcloudCloudinstancesSnapshotsDeleteReader

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

PcloudCloudinstancesSnapshotsDeleteReader is a Reader for the PcloudCloudinstancesSnapshotsDelete structure.

func (*PcloudCloudinstancesSnapshotsDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PcloudCloudinstancesSnapshotsDeleteUnauthorized added in v1.0.59

type PcloudCloudinstancesSnapshotsDeleteUnauthorized struct {
	Payload *models.Error
}
PcloudCloudinstancesSnapshotsDeleteUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPcloudCloudinstancesSnapshotsDeleteUnauthorized added in v1.0.59

func NewPcloudCloudinstancesSnapshotsDeleteUnauthorized() *PcloudCloudinstancesSnapshotsDeleteUnauthorized

NewPcloudCloudinstancesSnapshotsDeleteUnauthorized creates a PcloudCloudinstancesSnapshotsDeleteUnauthorized with default headers values

func (*PcloudCloudinstancesSnapshotsDeleteUnauthorized) Error added in v1.0.59

func (*PcloudCloudinstancesSnapshotsDeleteUnauthorized) GetPayload added in v1.1.0

type PcloudCloudinstancesSnapshotsGetBadRequest

type PcloudCloudinstancesSnapshotsGetBadRequest struct {
	Payload *models.Error
}
PcloudCloudinstancesSnapshotsGetBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPcloudCloudinstancesSnapshotsGetBadRequest

func NewPcloudCloudinstancesSnapshotsGetBadRequest() *PcloudCloudinstancesSnapshotsGetBadRequest

NewPcloudCloudinstancesSnapshotsGetBadRequest creates a PcloudCloudinstancesSnapshotsGetBadRequest with default headers values

func (*PcloudCloudinstancesSnapshotsGetBadRequest) Error

func (*PcloudCloudinstancesSnapshotsGetBadRequest) GetPayload added in v1.1.0

type PcloudCloudinstancesSnapshotsGetInternalServerError

type PcloudCloudinstancesSnapshotsGetInternalServerError struct {
	Payload *models.Error
}
PcloudCloudinstancesSnapshotsGetInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPcloudCloudinstancesSnapshotsGetInternalServerError

func NewPcloudCloudinstancesSnapshotsGetInternalServerError() *PcloudCloudinstancesSnapshotsGetInternalServerError

NewPcloudCloudinstancesSnapshotsGetInternalServerError creates a PcloudCloudinstancesSnapshotsGetInternalServerError with default headers values

func (*PcloudCloudinstancesSnapshotsGetInternalServerError) Error

func (*PcloudCloudinstancesSnapshotsGetInternalServerError) GetPayload added in v1.1.0

type PcloudCloudinstancesSnapshotsGetNotFound added in v1.0.38

type PcloudCloudinstancesSnapshotsGetNotFound struct {
	Payload *models.Error
}
PcloudCloudinstancesSnapshotsGetNotFound describes a response with status code 404, with default header values.

Not Found

func NewPcloudCloudinstancesSnapshotsGetNotFound added in v1.0.38

func NewPcloudCloudinstancesSnapshotsGetNotFound() *PcloudCloudinstancesSnapshotsGetNotFound

NewPcloudCloudinstancesSnapshotsGetNotFound creates a PcloudCloudinstancesSnapshotsGetNotFound with default headers values

func (*PcloudCloudinstancesSnapshotsGetNotFound) Error added in v1.0.38

func (*PcloudCloudinstancesSnapshotsGetNotFound) GetPayload added in v1.1.0

type PcloudCloudinstancesSnapshotsGetOK

type PcloudCloudinstancesSnapshotsGetOK struct {
	Payload *models.Snapshot
}
PcloudCloudinstancesSnapshotsGetOK describes a response with status code 200, with default header values.

OK

func NewPcloudCloudinstancesSnapshotsGetOK

func NewPcloudCloudinstancesSnapshotsGetOK() *PcloudCloudinstancesSnapshotsGetOK

NewPcloudCloudinstancesSnapshotsGetOK creates a PcloudCloudinstancesSnapshotsGetOK with default headers values

func (*PcloudCloudinstancesSnapshotsGetOK) Error

func (*PcloudCloudinstancesSnapshotsGetOK) GetPayload added in v1.1.0

type PcloudCloudinstancesSnapshotsGetParams

type PcloudCloudinstancesSnapshotsGetParams struct {

	/* CloudInstanceID.

	   Cloud Instance ID of a PCloud Instance
	*/
	CloudInstanceID string

	/* SnapshotID.

	   PVM Instance snapshot id
	*/
	SnapshotID string

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

PcloudCloudinstancesSnapshotsGetParams contains all the parameters to send to the API endpoint

for the pcloud cloudinstances snapshots get operation.

Typically these are written to a http.Request.

func NewPcloudCloudinstancesSnapshotsGetParams

func NewPcloudCloudinstancesSnapshotsGetParams() *PcloudCloudinstancesSnapshotsGetParams

NewPcloudCloudinstancesSnapshotsGetParams creates a new PcloudCloudinstancesSnapshotsGetParams 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 NewPcloudCloudinstancesSnapshotsGetParamsWithContext

func NewPcloudCloudinstancesSnapshotsGetParamsWithContext(ctx context.Context) *PcloudCloudinstancesSnapshotsGetParams

NewPcloudCloudinstancesSnapshotsGetParamsWithContext creates a new PcloudCloudinstancesSnapshotsGetParams object with the ability to set a context for a request.

func NewPcloudCloudinstancesSnapshotsGetParamsWithHTTPClient

func NewPcloudCloudinstancesSnapshotsGetParamsWithHTTPClient(client *http.Client) *PcloudCloudinstancesSnapshotsGetParams

NewPcloudCloudinstancesSnapshotsGetParamsWithHTTPClient creates a new PcloudCloudinstancesSnapshotsGetParams object with the ability to set a custom HTTPClient for a request.

func NewPcloudCloudinstancesSnapshotsGetParamsWithTimeout

func NewPcloudCloudinstancesSnapshotsGetParamsWithTimeout(timeout time.Duration) *PcloudCloudinstancesSnapshotsGetParams

NewPcloudCloudinstancesSnapshotsGetParamsWithTimeout creates a new PcloudCloudinstancesSnapshotsGetParams object with the ability to set a timeout on a request.

func (*PcloudCloudinstancesSnapshotsGetParams) SetCloudInstanceID

func (o *PcloudCloudinstancesSnapshotsGetParams) SetCloudInstanceID(cloudInstanceID string)

SetCloudInstanceID adds the cloudInstanceId to the pcloud cloudinstances snapshots get params

func (*PcloudCloudinstancesSnapshotsGetParams) SetContext

SetContext adds the context to the pcloud cloudinstances snapshots get params

func (*PcloudCloudinstancesSnapshotsGetParams) SetDefaults added in v1.1.0

func (o *PcloudCloudinstancesSnapshotsGetParams) SetDefaults()

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

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

func (*PcloudCloudinstancesSnapshotsGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pcloud cloudinstances snapshots get params

func (*PcloudCloudinstancesSnapshotsGetParams) SetSnapshotID

func (o *PcloudCloudinstancesSnapshotsGetParams) SetSnapshotID(snapshotID string)

SetSnapshotID adds the snapshotId to the pcloud cloudinstances snapshots get params

func (*PcloudCloudinstancesSnapshotsGetParams) SetTimeout

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

SetTimeout adds the timeout to the pcloud cloudinstances snapshots get params

func (*PcloudCloudinstancesSnapshotsGetParams) WithCloudInstanceID

WithCloudInstanceID adds the cloudInstanceID to the pcloud cloudinstances snapshots get params

func (*PcloudCloudinstancesSnapshotsGetParams) WithContext

WithContext adds the context to the pcloud cloudinstances snapshots get params

func (*PcloudCloudinstancesSnapshotsGetParams) WithDefaults added in v1.1.0

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

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

func (*PcloudCloudinstancesSnapshotsGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the pcloud cloudinstances snapshots get params

func (*PcloudCloudinstancesSnapshotsGetParams) WithSnapshotID

WithSnapshotID adds the snapshotID to the pcloud cloudinstances snapshots get params

func (*PcloudCloudinstancesSnapshotsGetParams) WithTimeout

WithTimeout adds the timeout to the pcloud cloudinstances snapshots get params

func (*PcloudCloudinstancesSnapshotsGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PcloudCloudinstancesSnapshotsGetReader

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

PcloudCloudinstancesSnapshotsGetReader is a Reader for the PcloudCloudinstancesSnapshotsGet structure.

func (*PcloudCloudinstancesSnapshotsGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PcloudCloudinstancesSnapshotsGetUnauthorized added in v1.0.59

type PcloudCloudinstancesSnapshotsGetUnauthorized struct {
	Payload *models.Error
}
PcloudCloudinstancesSnapshotsGetUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPcloudCloudinstancesSnapshotsGetUnauthorized added in v1.0.59

func NewPcloudCloudinstancesSnapshotsGetUnauthorized() *PcloudCloudinstancesSnapshotsGetUnauthorized

NewPcloudCloudinstancesSnapshotsGetUnauthorized creates a PcloudCloudinstancesSnapshotsGetUnauthorized with default headers values

func (*PcloudCloudinstancesSnapshotsGetUnauthorized) Error added in v1.0.59

func (*PcloudCloudinstancesSnapshotsGetUnauthorized) GetPayload added in v1.1.0

type PcloudCloudinstancesSnapshotsGetallBadRequest

type PcloudCloudinstancesSnapshotsGetallBadRequest struct {
	Payload *models.Error
}
PcloudCloudinstancesSnapshotsGetallBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPcloudCloudinstancesSnapshotsGetallBadRequest

func NewPcloudCloudinstancesSnapshotsGetallBadRequest() *PcloudCloudinstancesSnapshotsGetallBadRequest

NewPcloudCloudinstancesSnapshotsGetallBadRequest creates a PcloudCloudinstancesSnapshotsGetallBadRequest with default headers values

func (*PcloudCloudinstancesSnapshotsGetallBadRequest) Error

func (*PcloudCloudinstancesSnapshotsGetallBadRequest) GetPayload added in v1.1.0

type PcloudCloudinstancesSnapshotsGetallInternalServerError

type PcloudCloudinstancesSnapshotsGetallInternalServerError struct {
	Payload *models.Error
}
PcloudCloudinstancesSnapshotsGetallInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPcloudCloudinstancesSnapshotsGetallInternalServerError

func NewPcloudCloudinstancesSnapshotsGetallInternalServerError() *PcloudCloudinstancesSnapshotsGetallInternalServerError

NewPcloudCloudinstancesSnapshotsGetallInternalServerError creates a PcloudCloudinstancesSnapshotsGetallInternalServerError with default headers values

func (*PcloudCloudinstancesSnapshotsGetallInternalServerError) Error

func (*PcloudCloudinstancesSnapshotsGetallInternalServerError) GetPayload added in v1.1.0

type PcloudCloudinstancesSnapshotsGetallOK

type PcloudCloudinstancesSnapshotsGetallOK struct {
	Payload *models.Snapshots
}
PcloudCloudinstancesSnapshotsGetallOK describes a response with status code 200, with default header values.

OK

func NewPcloudCloudinstancesSnapshotsGetallOK

func NewPcloudCloudinstancesSnapshotsGetallOK() *PcloudCloudinstancesSnapshotsGetallOK

NewPcloudCloudinstancesSnapshotsGetallOK creates a PcloudCloudinstancesSnapshotsGetallOK with default headers values

func (*PcloudCloudinstancesSnapshotsGetallOK) Error

func (*PcloudCloudinstancesSnapshotsGetallOK) GetPayload added in v1.1.0

type PcloudCloudinstancesSnapshotsGetallParams

type PcloudCloudinstancesSnapshotsGetallParams struct {

	/* CloudInstanceID.

	   Cloud Instance ID of a PCloud Instance
	*/
	CloudInstanceID string

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

PcloudCloudinstancesSnapshotsGetallParams contains all the parameters to send to the API endpoint

for the pcloud cloudinstances snapshots getall operation.

Typically these are written to a http.Request.

func NewPcloudCloudinstancesSnapshotsGetallParams

func NewPcloudCloudinstancesSnapshotsGetallParams() *PcloudCloudinstancesSnapshotsGetallParams

NewPcloudCloudinstancesSnapshotsGetallParams creates a new PcloudCloudinstancesSnapshotsGetallParams 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 NewPcloudCloudinstancesSnapshotsGetallParamsWithContext

func NewPcloudCloudinstancesSnapshotsGetallParamsWithContext(ctx context.Context) *PcloudCloudinstancesSnapshotsGetallParams

NewPcloudCloudinstancesSnapshotsGetallParamsWithContext creates a new PcloudCloudinstancesSnapshotsGetallParams object with the ability to set a context for a request.

func NewPcloudCloudinstancesSnapshotsGetallParamsWithHTTPClient

func NewPcloudCloudinstancesSnapshotsGetallParamsWithHTTPClient(client *http.Client) *PcloudCloudinstancesSnapshotsGetallParams

NewPcloudCloudinstancesSnapshotsGetallParamsWithHTTPClient creates a new PcloudCloudinstancesSnapshotsGetallParams object with the ability to set a custom HTTPClient for a request.

func NewPcloudCloudinstancesSnapshotsGetallParamsWithTimeout

func NewPcloudCloudinstancesSnapshotsGetallParamsWithTimeout(timeout time.Duration) *PcloudCloudinstancesSnapshotsGetallParams

NewPcloudCloudinstancesSnapshotsGetallParamsWithTimeout creates a new PcloudCloudinstancesSnapshotsGetallParams object with the ability to set a timeout on a request.

func (*PcloudCloudinstancesSnapshotsGetallParams) SetCloudInstanceID

func (o *PcloudCloudinstancesSnapshotsGetallParams) SetCloudInstanceID(cloudInstanceID string)

SetCloudInstanceID adds the cloudInstanceId to the pcloud cloudinstances snapshots getall params

func (*PcloudCloudinstancesSnapshotsGetallParams) SetContext

SetContext adds the context to the pcloud cloudinstances snapshots getall params

func (*PcloudCloudinstancesSnapshotsGetallParams) SetDefaults added in v1.1.0

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

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

func (*PcloudCloudinstancesSnapshotsGetallParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pcloud cloudinstances snapshots getall params

func (*PcloudCloudinstancesSnapshotsGetallParams) SetTimeout

SetTimeout adds the timeout to the pcloud cloudinstances snapshots getall params

func (*PcloudCloudinstancesSnapshotsGetallParams) WithCloudInstanceID

WithCloudInstanceID adds the cloudInstanceID to the pcloud cloudinstances snapshots getall params

func (*PcloudCloudinstancesSnapshotsGetallParams) WithContext

WithContext adds the context to the pcloud cloudinstances snapshots getall params

func (*PcloudCloudinstancesSnapshotsGetallParams) WithDefaults added in v1.1.0

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

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

func (*PcloudCloudinstancesSnapshotsGetallParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the pcloud cloudinstances snapshots getall params

func (*PcloudCloudinstancesSnapshotsGetallParams) WithTimeout

WithTimeout adds the timeout to the pcloud cloudinstances snapshots getall params

func (*PcloudCloudinstancesSnapshotsGetallParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PcloudCloudinstancesSnapshotsGetallReader

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

PcloudCloudinstancesSnapshotsGetallReader is a Reader for the PcloudCloudinstancesSnapshotsGetall structure.

func (*PcloudCloudinstancesSnapshotsGetallReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PcloudCloudinstancesSnapshotsGetallUnauthorized added in v1.0.59

type PcloudCloudinstancesSnapshotsGetallUnauthorized struct {
	Payload *models.Error
}
PcloudCloudinstancesSnapshotsGetallUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPcloudCloudinstancesSnapshotsGetallUnauthorized added in v1.0.59

func NewPcloudCloudinstancesSnapshotsGetallUnauthorized() *PcloudCloudinstancesSnapshotsGetallUnauthorized

NewPcloudCloudinstancesSnapshotsGetallUnauthorized creates a PcloudCloudinstancesSnapshotsGetallUnauthorized with default headers values

func (*PcloudCloudinstancesSnapshotsGetallUnauthorized) Error added in v1.0.59

func (*PcloudCloudinstancesSnapshotsGetallUnauthorized) GetPayload added in v1.1.0

type PcloudCloudinstancesSnapshotsPutBadRequest

type PcloudCloudinstancesSnapshotsPutBadRequest struct {
	Payload *models.Error
}
PcloudCloudinstancesSnapshotsPutBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPcloudCloudinstancesSnapshotsPutBadRequest

func NewPcloudCloudinstancesSnapshotsPutBadRequest() *PcloudCloudinstancesSnapshotsPutBadRequest

NewPcloudCloudinstancesSnapshotsPutBadRequest creates a PcloudCloudinstancesSnapshotsPutBadRequest with default headers values

func (*PcloudCloudinstancesSnapshotsPutBadRequest) Error

func (*PcloudCloudinstancesSnapshotsPutBadRequest) GetPayload added in v1.1.0

type PcloudCloudinstancesSnapshotsPutInternalServerError

type PcloudCloudinstancesSnapshotsPutInternalServerError struct {
	Payload *models.Error
}
PcloudCloudinstancesSnapshotsPutInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPcloudCloudinstancesSnapshotsPutInternalServerError

func NewPcloudCloudinstancesSnapshotsPutInternalServerError() *PcloudCloudinstancesSnapshotsPutInternalServerError

NewPcloudCloudinstancesSnapshotsPutInternalServerError creates a PcloudCloudinstancesSnapshotsPutInternalServerError with default headers values

func (*PcloudCloudinstancesSnapshotsPutInternalServerError) Error

func (*PcloudCloudinstancesSnapshotsPutInternalServerError) GetPayload added in v1.1.0

type PcloudCloudinstancesSnapshotsPutNotFound added in v1.0.38

type PcloudCloudinstancesSnapshotsPutNotFound struct {
	Payload *models.Error
}
PcloudCloudinstancesSnapshotsPutNotFound describes a response with status code 404, with default header values.

Not Found

func NewPcloudCloudinstancesSnapshotsPutNotFound added in v1.0.38

func NewPcloudCloudinstancesSnapshotsPutNotFound() *PcloudCloudinstancesSnapshotsPutNotFound

NewPcloudCloudinstancesSnapshotsPutNotFound creates a PcloudCloudinstancesSnapshotsPutNotFound with default headers values

func (*PcloudCloudinstancesSnapshotsPutNotFound) Error added in v1.0.38

func (*PcloudCloudinstancesSnapshotsPutNotFound) GetPayload added in v1.1.0

type PcloudCloudinstancesSnapshotsPutOK

type PcloudCloudinstancesSnapshotsPutOK struct {
	Payload models.Object
}
PcloudCloudinstancesSnapshotsPutOK describes a response with status code 200, with default header values.

OK

func NewPcloudCloudinstancesSnapshotsPutOK

func NewPcloudCloudinstancesSnapshotsPutOK() *PcloudCloudinstancesSnapshotsPutOK

NewPcloudCloudinstancesSnapshotsPutOK creates a PcloudCloudinstancesSnapshotsPutOK with default headers values

func (*PcloudCloudinstancesSnapshotsPutOK) Error

func (*PcloudCloudinstancesSnapshotsPutOK) GetPayload added in v1.1.0

type PcloudCloudinstancesSnapshotsPutParams

type PcloudCloudinstancesSnapshotsPutParams struct {

	/* Body.

	   Parameters for the update of a  PVM instance snapshot
	*/
	Body *models.SnapshotUpdate

	/* CloudInstanceID.

	   Cloud Instance ID of a PCloud Instance
	*/
	CloudInstanceID string

	/* SnapshotID.

	   PVM Instance snapshot id
	*/
	SnapshotID string

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

PcloudCloudinstancesSnapshotsPutParams contains all the parameters to send to the API endpoint

for the pcloud cloudinstances snapshots put operation.

Typically these are written to a http.Request.

func NewPcloudCloudinstancesSnapshotsPutParams

func NewPcloudCloudinstancesSnapshotsPutParams() *PcloudCloudinstancesSnapshotsPutParams

NewPcloudCloudinstancesSnapshotsPutParams creates a new PcloudCloudinstancesSnapshotsPutParams 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 NewPcloudCloudinstancesSnapshotsPutParamsWithContext

func NewPcloudCloudinstancesSnapshotsPutParamsWithContext(ctx context.Context) *PcloudCloudinstancesSnapshotsPutParams

NewPcloudCloudinstancesSnapshotsPutParamsWithContext creates a new PcloudCloudinstancesSnapshotsPutParams object with the ability to set a context for a request.

func NewPcloudCloudinstancesSnapshotsPutParamsWithHTTPClient

func NewPcloudCloudinstancesSnapshotsPutParamsWithHTTPClient(client *http.Client) *PcloudCloudinstancesSnapshotsPutParams

NewPcloudCloudinstancesSnapshotsPutParamsWithHTTPClient creates a new PcloudCloudinstancesSnapshotsPutParams object with the ability to set a custom HTTPClient for a request.

func NewPcloudCloudinstancesSnapshotsPutParamsWithTimeout

func NewPcloudCloudinstancesSnapshotsPutParamsWithTimeout(timeout time.Duration) *PcloudCloudinstancesSnapshotsPutParams

NewPcloudCloudinstancesSnapshotsPutParamsWithTimeout creates a new PcloudCloudinstancesSnapshotsPutParams object with the ability to set a timeout on a request.

func (*PcloudCloudinstancesSnapshotsPutParams) SetBody

SetBody adds the body to the pcloud cloudinstances snapshots put params

func (*PcloudCloudinstancesSnapshotsPutParams) SetCloudInstanceID

func (o *PcloudCloudinstancesSnapshotsPutParams) SetCloudInstanceID(cloudInstanceID string)

SetCloudInstanceID adds the cloudInstanceId to the pcloud cloudinstances snapshots put params

func (*PcloudCloudinstancesSnapshotsPutParams) SetContext

SetContext adds the context to the pcloud cloudinstances snapshots put params

func (*PcloudCloudinstancesSnapshotsPutParams) SetDefaults added in v1.1.0

func (o *PcloudCloudinstancesSnapshotsPutParams) SetDefaults()

SetDefaults hydrates default values in the pcloud cloudinstances snapshots put params (not the query body).

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

func (*PcloudCloudinstancesSnapshotsPutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pcloud cloudinstances snapshots put params

func (*PcloudCloudinstancesSnapshotsPutParams) SetSnapshotID

func (o *PcloudCloudinstancesSnapshotsPutParams) SetSnapshotID(snapshotID string)

SetSnapshotID adds the snapshotId to the pcloud cloudinstances snapshots put params

func (*PcloudCloudinstancesSnapshotsPutParams) SetTimeout

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

SetTimeout adds the timeout to the pcloud cloudinstances snapshots put params

func (*PcloudCloudinstancesSnapshotsPutParams) WithBody

WithBody adds the body to the pcloud cloudinstances snapshots put params

func (*PcloudCloudinstancesSnapshotsPutParams) WithCloudInstanceID

WithCloudInstanceID adds the cloudInstanceID to the pcloud cloudinstances snapshots put params

func (*PcloudCloudinstancesSnapshotsPutParams) WithContext

WithContext adds the context to the pcloud cloudinstances snapshots put params

func (*PcloudCloudinstancesSnapshotsPutParams) WithDefaults added in v1.1.0

WithDefaults hydrates default values in the pcloud cloudinstances snapshots put params (not the query body).

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

func (*PcloudCloudinstancesSnapshotsPutParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the pcloud cloudinstances snapshots put params

func (*PcloudCloudinstancesSnapshotsPutParams) WithSnapshotID

WithSnapshotID adds the snapshotID to the pcloud cloudinstances snapshots put params

func (*PcloudCloudinstancesSnapshotsPutParams) WithTimeout

WithTimeout adds the timeout to the pcloud cloudinstances snapshots put params

func (*PcloudCloudinstancesSnapshotsPutParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PcloudCloudinstancesSnapshotsPutReader

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

PcloudCloudinstancesSnapshotsPutReader is a Reader for the PcloudCloudinstancesSnapshotsPut structure.

func (*PcloudCloudinstancesSnapshotsPutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PcloudCloudinstancesSnapshotsPutUnauthorized added in v1.0.59

type PcloudCloudinstancesSnapshotsPutUnauthorized struct {
	Payload *models.Error
}
PcloudCloudinstancesSnapshotsPutUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPcloudCloudinstancesSnapshotsPutUnauthorized added in v1.0.59

func NewPcloudCloudinstancesSnapshotsPutUnauthorized() *PcloudCloudinstancesSnapshotsPutUnauthorized

NewPcloudCloudinstancesSnapshotsPutUnauthorized creates a PcloudCloudinstancesSnapshotsPutUnauthorized with default headers values

func (*PcloudCloudinstancesSnapshotsPutUnauthorized) Error added in v1.0.59

func (*PcloudCloudinstancesSnapshotsPutUnauthorized) GetPayload added in v1.1.0

Jump to

Keyboard shortcuts

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