Documentation ¶
Index ¶
- type Client
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) SnapshotGetUsingGET(params *SnapshotGetUsingGETParams, opts ...ClientOption) (*SnapshotGetUsingGETOK, error)
- func (a *Client) SnapshotListUsingGET(params *SnapshotListUsingGETParams, opts ...ClientOption) (*SnapshotListUsingGETOK, error)
- type ClientOption
- type ClientService
- type SnapshotGetUsingGETBadRequest
- type SnapshotGetUsingGETNotFound
- type SnapshotGetUsingGETOK
- type SnapshotGetUsingGETParams
- func NewSnapshotGetUsingGETParams() *SnapshotGetUsingGETParams
- func NewSnapshotGetUsingGETParamsWithContext(ctx context.Context) *SnapshotGetUsingGETParams
- func NewSnapshotGetUsingGETParamsWithHTTPClient(client *http.Client) *SnapshotGetUsingGETParams
- func NewSnapshotGetUsingGETParamsWithTimeout(timeout time.Duration) *SnapshotGetUsingGETParams
- func (o *SnapshotGetUsingGETParams) SetContext(ctx context.Context)
- func (o *SnapshotGetUsingGETParams) SetDefaults()
- func (o *SnapshotGetUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *SnapshotGetUsingGETParams) SetSnapshotID(snapshotID string)
- func (o *SnapshotGetUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *SnapshotGetUsingGETParams) WithContext(ctx context.Context) *SnapshotGetUsingGETParams
- func (o *SnapshotGetUsingGETParams) WithDefaults() *SnapshotGetUsingGETParams
- func (o *SnapshotGetUsingGETParams) WithHTTPClient(client *http.Client) *SnapshotGetUsingGETParams
- func (o *SnapshotGetUsingGETParams) WithSnapshotID(snapshotID string) *SnapshotGetUsingGETParams
- func (o *SnapshotGetUsingGETParams) WithTimeout(timeout time.Duration) *SnapshotGetUsingGETParams
- func (o *SnapshotGetUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SnapshotGetUsingGETReader
- type SnapshotListUsingGETBadRequest
- type SnapshotListUsingGETOK
- type SnapshotListUsingGETParams
- func NewSnapshotListUsingGETParams() *SnapshotListUsingGETParams
- func NewSnapshotListUsingGETParamsWithContext(ctx context.Context) *SnapshotListUsingGETParams
- func NewSnapshotListUsingGETParamsWithHTTPClient(client *http.Client) *SnapshotListUsingGETParams
- func NewSnapshotListUsingGETParamsWithTimeout(timeout time.Duration) *SnapshotListUsingGETParams
- func (o *SnapshotListUsingGETParams) SetContext(ctx context.Context)
- func (o *SnapshotListUsingGETParams) SetDefaults()
- func (o *SnapshotListUsingGETParams) SetDisplayName(displayName *string)
- func (o *SnapshotListUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *SnapshotListUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *SnapshotListUsingGETParams) WithContext(ctx context.Context) *SnapshotListUsingGETParams
- func (o *SnapshotListUsingGETParams) WithDefaults() *SnapshotListUsingGETParams
- func (o *SnapshotListUsingGETParams) WithDisplayName(displayName *string) *SnapshotListUsingGETParams
- func (o *SnapshotListUsingGETParams) WithHTTPClient(client *http.Client) *SnapshotListUsingGETParams
- func (o *SnapshotListUsingGETParams) WithTimeout(timeout time.Duration) *SnapshotListUsingGETParams
- func (o *SnapshotListUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SnapshotListUsingGETReader
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 (o *SnapshotGetUsingGETBadRequest) Error() string
func (*SnapshotGetUsingGETBadRequest) GetPayload ¶
func (o *SnapshotGetUsingGETBadRequest) GetPayload() *models.ProxyResponseMessage
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 ¶
func (o *SnapshotGetUsingGETNotFound) Error() string
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 ¶
func (o *SnapshotGetUsingGETOK) GetPayload() *models.SnapshotGetResponse
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 ¶
func (o *SnapshotGetUsingGETParams) WithContext(ctx context.Context) *SnapshotGetUsingGETParams
WithContext adds the context to the snapshot get using g e t params
func (*SnapshotGetUsingGETParams) WithDefaults ¶ added in v1.2.4
func (o *SnapshotGetUsingGETParams) WithDefaults() *SnapshotGetUsingGETParams
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 ¶
func (o *SnapshotGetUsingGETParams) WithTimeout(timeout time.Duration) *SnapshotGetUsingGETParams
WithTimeout adds the timeout to the snapshot get using g e t params
func (*SnapshotGetUsingGETParams) WriteToRequest ¶
func (o *SnapshotGetUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *SnapshotListUsingGETBadRequest) Error() string
func (*SnapshotListUsingGETBadRequest) GetPayload ¶
func (o *SnapshotListUsingGETBadRequest) GetPayload() *models.ProxyResponseMessage
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 ¶
func (o *SnapshotListUsingGETOK) GetPayload() *models.SnapshotListResponse
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 ¶
func (o *SnapshotListUsingGETParams) WithContext(ctx context.Context) *SnapshotListUsingGETParams
WithContext adds the context to the snapshot list using g e t params
func (*SnapshotListUsingGETParams) WithDefaults ¶ added in v1.2.4
func (o *SnapshotListUsingGETParams) WithDefaults() *SnapshotListUsingGETParams
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 ¶
func (o *SnapshotListUsingGETParams) WithHTTPClient(client *http.Client) *SnapshotListUsingGETParams
WithHTTPClient adds the HTTPClient to the snapshot list using g e t params
func (*SnapshotListUsingGETParams) WithTimeout ¶
func (o *SnapshotListUsingGETParams) WithTimeout(timeout time.Duration) *SnapshotListUsingGETParams
WithTimeout adds the timeout to the snapshot list using g e t params
func (*SnapshotListUsingGETParams) WriteToRequest ¶
func (o *SnapshotListUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.