snapshots

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 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 snapshots API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) SnapshotGetUsingGET

func (a *Client) SnapshotGetUsingGET(params *SnapshotGetUsingGETParams, opts ...ClientOption) (*SnapshotGetUsingGETOK, error)

SnapshotGetUsingGET gets

Get vSphere vCenter virtual machine snapshot

func (*Client) SnapshotListUsingGET

func (a *Client) SnapshotListUsingGET(params *SnapshotListUsingGETParams, opts ...ClientOption) (*SnapshotListUsingGETOK, error)

SnapshotListUsingGET lists

List vSphere vCenter virtual machines snapshots

type ClientOption added in v1.2.4

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	SnapshotGetUsingGET(params *SnapshotGetUsingGETParams, opts ...ClientOption) (*SnapshotGetUsingGETOK, error)

	SnapshotListUsingGET(params *SnapshotListUsingGETParams, opts ...ClientOption) (*SnapshotListUsingGETOK, 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.

type SnapshotGetUsingGETBadRequest

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

Bad request, error occurred. For more details see log messages.

func NewSnapshotGetUsingGETBadRequest

func NewSnapshotGetUsingGETBadRequest() *SnapshotGetUsingGETBadRequest

NewSnapshotGetUsingGETBadRequest creates a SnapshotGetUsingGETBadRequest with default headers values

func (*SnapshotGetUsingGETBadRequest) Error

func (*SnapshotGetUsingGETBadRequest) GetPayload

type SnapshotGetUsingGETNotFound

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

Entity not found.

func NewSnapshotGetUsingGETNotFound

func NewSnapshotGetUsingGETNotFound() *SnapshotGetUsingGETNotFound

NewSnapshotGetUsingGETNotFound creates a SnapshotGetUsingGETNotFound with default headers values

func (*SnapshotGetUsingGETNotFound) Error

type SnapshotGetUsingGETOK

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

OK

func NewSnapshotGetUsingGETOK

func NewSnapshotGetUsingGETOK() *SnapshotGetUsingGETOK

NewSnapshotGetUsingGETOK creates a SnapshotGetUsingGETOK with default headers values

func (*SnapshotGetUsingGETOK) Error

func (o *SnapshotGetUsingGETOK) Error() string

func (*SnapshotGetUsingGETOK) GetPayload

type SnapshotGetUsingGETParams

type SnapshotGetUsingGETParams struct {

	/* SnapshotID.

	   snapshotId
	*/
	SnapshotID string

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

SnapshotGetUsingGETParams contains all the parameters to send to the API endpoint

for the snapshot get using g e t operation.

Typically these are written to a http.Request.

func NewSnapshotGetUsingGETParams

func NewSnapshotGetUsingGETParams() *SnapshotGetUsingGETParams

NewSnapshotGetUsingGETParams creates a new SnapshotGetUsingGETParams 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 NewSnapshotGetUsingGETParamsWithContext

func NewSnapshotGetUsingGETParamsWithContext(ctx context.Context) *SnapshotGetUsingGETParams

NewSnapshotGetUsingGETParamsWithContext creates a new SnapshotGetUsingGETParams object with the ability to set a context for a request.

func NewSnapshotGetUsingGETParamsWithHTTPClient

func NewSnapshotGetUsingGETParamsWithHTTPClient(client *http.Client) *SnapshotGetUsingGETParams

NewSnapshotGetUsingGETParamsWithHTTPClient creates a new SnapshotGetUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewSnapshotGetUsingGETParamsWithTimeout

func NewSnapshotGetUsingGETParamsWithTimeout(timeout time.Duration) *SnapshotGetUsingGETParams

NewSnapshotGetUsingGETParamsWithTimeout creates a new SnapshotGetUsingGETParams object with the ability to set a timeout on a request.

func (*SnapshotGetUsingGETParams) SetContext

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

SetContext adds the context to the snapshot get using g e t params

func (*SnapshotGetUsingGETParams) SetDefaults added in v1.2.4

func (o *SnapshotGetUsingGETParams) SetDefaults()

SetDefaults hydrates default values in the snapshot get using g e t params (not the query body).

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

func (*SnapshotGetUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the snapshot get using g e t params

func (*SnapshotGetUsingGETParams) SetSnapshotID

func (o *SnapshotGetUsingGETParams) SetSnapshotID(snapshotID string)

SetSnapshotID adds the snapshotId to the snapshot get using g e t params

func (*SnapshotGetUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the snapshot get using g e t params

func (*SnapshotGetUsingGETParams) WithContext

WithContext adds the context to the snapshot get using g e t params

func (*SnapshotGetUsingGETParams) WithDefaults added in v1.2.4

WithDefaults hydrates default values in the snapshot get using g e t params (not the query body).

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

func (*SnapshotGetUsingGETParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the snapshot get using g e t params

func (*SnapshotGetUsingGETParams) WithSnapshotID

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

WithSnapshotID adds the snapshotID to the snapshot get using g e t params

func (*SnapshotGetUsingGETParams) WithTimeout

WithTimeout adds the timeout to the snapshot get using g e t params

func (*SnapshotGetUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SnapshotGetUsingGETReader

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

SnapshotGetUsingGETReader is a Reader for the SnapshotGetUsingGET structure.

func (*SnapshotGetUsingGETReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SnapshotListUsingGETBadRequest

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

Bad request, error occurred. For more details see log messages.

func NewSnapshotListUsingGETBadRequest

func NewSnapshotListUsingGETBadRequest() *SnapshotListUsingGETBadRequest

NewSnapshotListUsingGETBadRequest creates a SnapshotListUsingGETBadRequest with default headers values

func (*SnapshotListUsingGETBadRequest) Error

func (*SnapshotListUsingGETBadRequest) GetPayload

type SnapshotListUsingGETOK

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

OK

func NewSnapshotListUsingGETOK

func NewSnapshotListUsingGETOK() *SnapshotListUsingGETOK

NewSnapshotListUsingGETOK creates a SnapshotListUsingGETOK with default headers values

func (*SnapshotListUsingGETOK) Error

func (o *SnapshotListUsingGETOK) Error() string

func (*SnapshotListUsingGETOK) GetPayload

type SnapshotListUsingGETParams

type SnapshotListUsingGETParams struct {

	/* DisplayName.

	   displayName
	*/
	DisplayName *string

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

SnapshotListUsingGETParams contains all the parameters to send to the API endpoint

for the snapshot list using g e t operation.

Typically these are written to a http.Request.

func NewSnapshotListUsingGETParams

func NewSnapshotListUsingGETParams() *SnapshotListUsingGETParams

NewSnapshotListUsingGETParams creates a new SnapshotListUsingGETParams 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 NewSnapshotListUsingGETParamsWithContext

func NewSnapshotListUsingGETParamsWithContext(ctx context.Context) *SnapshotListUsingGETParams

NewSnapshotListUsingGETParamsWithContext creates a new SnapshotListUsingGETParams object with the ability to set a context for a request.

func NewSnapshotListUsingGETParamsWithHTTPClient

func NewSnapshotListUsingGETParamsWithHTTPClient(client *http.Client) *SnapshotListUsingGETParams

NewSnapshotListUsingGETParamsWithHTTPClient creates a new SnapshotListUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewSnapshotListUsingGETParamsWithTimeout

func NewSnapshotListUsingGETParamsWithTimeout(timeout time.Duration) *SnapshotListUsingGETParams

NewSnapshotListUsingGETParamsWithTimeout creates a new SnapshotListUsingGETParams object with the ability to set a timeout on a request.

func (*SnapshotListUsingGETParams) SetContext

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

SetContext adds the context to the snapshot list using g e t params

func (*SnapshotListUsingGETParams) SetDefaults added in v1.2.4

func (o *SnapshotListUsingGETParams) SetDefaults()

SetDefaults hydrates default values in the snapshot list using g e t params (not the query body).

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

func (*SnapshotListUsingGETParams) SetDisplayName

func (o *SnapshotListUsingGETParams) SetDisplayName(displayName *string)

SetDisplayName adds the displayName to the snapshot list using g e t params

func (*SnapshotListUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the snapshot list using g e t params

func (*SnapshotListUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the snapshot list using g e t params

func (*SnapshotListUsingGETParams) WithContext

WithContext adds the context to the snapshot list using g e t params

func (*SnapshotListUsingGETParams) WithDefaults added in v1.2.4

WithDefaults hydrates default values in the snapshot list using g e t params (not the query body).

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

func (*SnapshotListUsingGETParams) WithDisplayName

func (o *SnapshotListUsingGETParams) WithDisplayName(displayName *string) *SnapshotListUsingGETParams

WithDisplayName adds the displayName to the snapshot list using g e t params

func (*SnapshotListUsingGETParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the snapshot list using g e t params

func (*SnapshotListUsingGETParams) WithTimeout

WithTimeout adds the timeout to the snapshot list using g e t params

func (*SnapshotListUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SnapshotListUsingGETReader

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

SnapshotListUsingGETReader is a Reader for the SnapshotListUsingGET structure.

func (*SnapshotListUsingGETReader) ReadResponse

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