Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateVMVolume(params *CreateVMVolumeParams, opts ...ClientOption) (*CreateVMVolumeOK, error)
- func (a *Client) DeleteVMVolumeFromVM(params *DeleteVMVolumeFromVMParams, opts ...ClientOption) (*DeleteVMVolumeFromVMOK, error)
- func (a *Client) GetVMVolumes(params *GetVMVolumesParams, opts ...ClientOption) (*GetVMVolumesOK, error)
- func (a *Client) GetVMVolumesConnection(params *GetVMVolumesConnectionParams, opts ...ClientOption) (*GetVMVolumesConnectionOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateVMVolumeBadRequest
- type CreateVMVolumeInternalServerError
- type CreateVMVolumeNotFound
- type CreateVMVolumeOK
- type CreateVMVolumeParams
- func NewCreateVMVolumeParams() *CreateVMVolumeParams
- func NewCreateVMVolumeParamsWithContext(ctx context.Context) *CreateVMVolumeParams
- func NewCreateVMVolumeParamsWithHTTPClient(client *http.Client) *CreateVMVolumeParams
- func NewCreateVMVolumeParamsWithTimeout(timeout time.Duration) *CreateVMVolumeParams
- func (o *CreateVMVolumeParams) SetContentLanguage(contentLanguage *string)
- func (o *CreateVMVolumeParams) SetContext(ctx context.Context)
- func (o *CreateVMVolumeParams) SetDefaults()
- func (o *CreateVMVolumeParams) SetHTTPClient(client *http.Client)
- func (o *CreateVMVolumeParams) SetRequestBody(requestBody []*models.VMVolumeCreationParams)
- func (o *CreateVMVolumeParams) SetTimeout(timeout time.Duration)
- func (o *CreateVMVolumeParams) WithContentLanguage(contentLanguage *string) *CreateVMVolumeParams
- func (o *CreateVMVolumeParams) WithContext(ctx context.Context) *CreateVMVolumeParams
- func (o *CreateVMVolumeParams) WithDefaults() *CreateVMVolumeParams
- func (o *CreateVMVolumeParams) WithHTTPClient(client *http.Client) *CreateVMVolumeParams
- func (o *CreateVMVolumeParams) WithRequestBody(requestBody []*models.VMVolumeCreationParams) *CreateVMVolumeParams
- func (o *CreateVMVolumeParams) WithTimeout(timeout time.Duration) *CreateVMVolumeParams
- func (o *CreateVMVolumeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateVMVolumeReader
- type DeleteVMVolumeFromVMBadRequest
- type DeleteVMVolumeFromVMInternalServerError
- type DeleteVMVolumeFromVMNotFound
- type DeleteVMVolumeFromVMOK
- type DeleteVMVolumeFromVMParams
- func NewDeleteVMVolumeFromVMParams() *DeleteVMVolumeFromVMParams
- func NewDeleteVMVolumeFromVMParamsWithContext(ctx context.Context) *DeleteVMVolumeFromVMParams
- func NewDeleteVMVolumeFromVMParamsWithHTTPClient(client *http.Client) *DeleteVMVolumeFromVMParams
- func NewDeleteVMVolumeFromVMParamsWithTimeout(timeout time.Duration) *DeleteVMVolumeFromVMParams
- func (o *DeleteVMVolumeFromVMParams) SetContentLanguage(contentLanguage *string)
- func (o *DeleteVMVolumeFromVMParams) SetContext(ctx context.Context)
- func (o *DeleteVMVolumeFromVMParams) SetDefaults()
- func (o *DeleteVMVolumeFromVMParams) SetHTTPClient(client *http.Client)
- func (o *DeleteVMVolumeFromVMParams) SetRequestBody(requestBody *models.VMVolumeDeletionParams)
- func (o *DeleteVMVolumeFromVMParams) SetTimeout(timeout time.Duration)
- func (o *DeleteVMVolumeFromVMParams) WithContentLanguage(contentLanguage *string) *DeleteVMVolumeFromVMParams
- func (o *DeleteVMVolumeFromVMParams) WithContext(ctx context.Context) *DeleteVMVolumeFromVMParams
- func (o *DeleteVMVolumeFromVMParams) WithDefaults() *DeleteVMVolumeFromVMParams
- func (o *DeleteVMVolumeFromVMParams) WithHTTPClient(client *http.Client) *DeleteVMVolumeFromVMParams
- func (o *DeleteVMVolumeFromVMParams) WithRequestBody(requestBody *models.VMVolumeDeletionParams) *DeleteVMVolumeFromVMParams
- func (o *DeleteVMVolumeFromVMParams) WithTimeout(timeout time.Duration) *DeleteVMVolumeFromVMParams
- func (o *DeleteVMVolumeFromVMParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteVMVolumeFromVMReader
- type GetVMVolumesBadRequest
- type GetVMVolumesConnectionBadRequest
- type GetVMVolumesConnectionInternalServerError
- type GetVMVolumesConnectionNotFound
- type GetVMVolumesConnectionOK
- type GetVMVolumesConnectionParams
- func NewGetVMVolumesConnectionParams() *GetVMVolumesConnectionParams
- func NewGetVMVolumesConnectionParamsWithContext(ctx context.Context) *GetVMVolumesConnectionParams
- func NewGetVMVolumesConnectionParamsWithHTTPClient(client *http.Client) *GetVMVolumesConnectionParams
- func NewGetVMVolumesConnectionParamsWithTimeout(timeout time.Duration) *GetVMVolumesConnectionParams
- func (o *GetVMVolumesConnectionParams) SetContentLanguage(contentLanguage *string)
- func (o *GetVMVolumesConnectionParams) SetContext(ctx context.Context)
- func (o *GetVMVolumesConnectionParams) SetDefaults()
- func (o *GetVMVolumesConnectionParams) SetHTTPClient(client *http.Client)
- func (o *GetVMVolumesConnectionParams) SetRequestBody(requestBody *models.GetVMVolumesConnectionRequestBody)
- func (o *GetVMVolumesConnectionParams) SetTimeout(timeout time.Duration)
- func (o *GetVMVolumesConnectionParams) WithContentLanguage(contentLanguage *string) *GetVMVolumesConnectionParams
- func (o *GetVMVolumesConnectionParams) WithContext(ctx context.Context) *GetVMVolumesConnectionParams
- func (o *GetVMVolumesConnectionParams) WithDefaults() *GetVMVolumesConnectionParams
- func (o *GetVMVolumesConnectionParams) WithHTTPClient(client *http.Client) *GetVMVolumesConnectionParams
- func (o *GetVMVolumesConnectionParams) WithRequestBody(requestBody *models.GetVMVolumesConnectionRequestBody) *GetVMVolumesConnectionParams
- func (o *GetVMVolumesConnectionParams) WithTimeout(timeout time.Duration) *GetVMVolumesConnectionParams
- func (o *GetVMVolumesConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetVMVolumesConnectionReader
- type GetVMVolumesInternalServerError
- type GetVMVolumesNotFound
- type GetVMVolumesOK
- type GetVMVolumesParams
- func (o *GetVMVolumesParams) SetContentLanguage(contentLanguage *string)
- func (o *GetVMVolumesParams) SetContext(ctx context.Context)
- func (o *GetVMVolumesParams) SetDefaults()
- func (o *GetVMVolumesParams) SetHTTPClient(client *http.Client)
- func (o *GetVMVolumesParams) SetRequestBody(requestBody *models.GetVMVolumesRequestBody)
- func (o *GetVMVolumesParams) SetTimeout(timeout time.Duration)
- func (o *GetVMVolumesParams) WithContentLanguage(contentLanguage *string) *GetVMVolumesParams
- func (o *GetVMVolumesParams) WithContext(ctx context.Context) *GetVMVolumesParams
- func (o *GetVMVolumesParams) WithDefaults() *GetVMVolumesParams
- func (o *GetVMVolumesParams) WithHTTPClient(client *http.Client) *GetVMVolumesParams
- func (o *GetVMVolumesParams) WithRequestBody(requestBody *models.GetVMVolumesRequestBody) *GetVMVolumesParams
- func (o *GetVMVolumesParams) WithTimeout(timeout time.Duration) *GetVMVolumesParams
- func (o *GetVMVolumesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetVMVolumesReader
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 vm volume API
func (*Client) CreateVMVolume ¶
func (a *Client) CreateVMVolume(params *CreateVMVolumeParams, opts ...ClientOption) (*CreateVMVolumeOK, error)
CreateVMVolume create Vm volume API
func (*Client) DeleteVMVolumeFromVM ¶
func (a *Client) DeleteVMVolumeFromVM(params *DeleteVMVolumeFromVMParams, opts ...ClientOption) (*DeleteVMVolumeFromVMOK, error)
DeleteVMVolumeFromVM delete Vm volume from Vm API
func (*Client) GetVMVolumes ¶
func (a *Client) GetVMVolumes(params *GetVMVolumesParams, opts ...ClientOption) (*GetVMVolumesOK, error)
GetVMVolumes get Vm volumes API
func (*Client) GetVMVolumesConnection ¶
func (a *Client) GetVMVolumesConnection(params *GetVMVolumesConnectionParams, opts ...ClientOption) (*GetVMVolumesConnectionOK, error)
GetVMVolumesConnection get Vm volumes connection API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateVMVolume(params *CreateVMVolumeParams, opts ...ClientOption) (*CreateVMVolumeOK, error) DeleteVMVolumeFromVM(params *DeleteVMVolumeFromVMParams, opts ...ClientOption) (*DeleteVMVolumeFromVMOK, error) GetVMVolumes(params *GetVMVolumesParams, opts ...ClientOption) (*GetVMVolumesOK, error) GetVMVolumesConnection(params *GetVMVolumesConnectionParams, opts ...ClientOption) (*GetVMVolumesConnectionOK, 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 vm volume API client.
type CreateVMVolumeBadRequest ¶
CreateVMVolumeBadRequest describes a response with status code 400, with default header values.
Bad request
func NewCreateVMVolumeBadRequest ¶
func NewCreateVMVolumeBadRequest() *CreateVMVolumeBadRequest
NewCreateVMVolumeBadRequest creates a CreateVMVolumeBadRequest with default headers values
func (*CreateVMVolumeBadRequest) Error ¶
func (o *CreateVMVolumeBadRequest) Error() string
func (*CreateVMVolumeBadRequest) GetPayload ¶
func (o *CreateVMVolumeBadRequest) GetPayload() *models.ErrorBody
type CreateVMVolumeInternalServerError ¶
CreateVMVolumeInternalServerError describes a response with status code 500, with default header values.
Server error
func NewCreateVMVolumeInternalServerError ¶
func NewCreateVMVolumeInternalServerError() *CreateVMVolumeInternalServerError
NewCreateVMVolumeInternalServerError creates a CreateVMVolumeInternalServerError with default headers values
func (*CreateVMVolumeInternalServerError) Error ¶
func (o *CreateVMVolumeInternalServerError) Error() string
func (*CreateVMVolumeInternalServerError) GetPayload ¶
func (o *CreateVMVolumeInternalServerError) GetPayload() *models.ErrorBody
type CreateVMVolumeNotFound ¶
CreateVMVolumeNotFound describes a response with status code 404, with default header values.
Not found
func NewCreateVMVolumeNotFound ¶
func NewCreateVMVolumeNotFound() *CreateVMVolumeNotFound
NewCreateVMVolumeNotFound creates a CreateVMVolumeNotFound with default headers values
func (*CreateVMVolumeNotFound) Error ¶
func (o *CreateVMVolumeNotFound) Error() string
func (*CreateVMVolumeNotFound) GetPayload ¶
func (o *CreateVMVolumeNotFound) GetPayload() *models.ErrorBody
type CreateVMVolumeOK ¶
type CreateVMVolumeOK struct {
Payload []*models.WithTaskVMVolume
}
CreateVMVolumeOK describes a response with status code 200, with default header values.
Ok
func NewCreateVMVolumeOK ¶
func NewCreateVMVolumeOK() *CreateVMVolumeOK
NewCreateVMVolumeOK creates a CreateVMVolumeOK with default headers values
func (*CreateVMVolumeOK) Error ¶
func (o *CreateVMVolumeOK) Error() string
func (*CreateVMVolumeOK) GetPayload ¶
func (o *CreateVMVolumeOK) GetPayload() []*models.WithTaskVMVolume
type CreateVMVolumeParams ¶
type CreateVMVolumeParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody []*models.VMVolumeCreationParams Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateVMVolumeParams contains all the parameters to send to the API endpoint
for the create Vm volume operation. Typically these are written to a http.Request.
func NewCreateVMVolumeParams ¶
func NewCreateVMVolumeParams() *CreateVMVolumeParams
NewCreateVMVolumeParams creates a new CreateVMVolumeParams 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 NewCreateVMVolumeParamsWithContext ¶
func NewCreateVMVolumeParamsWithContext(ctx context.Context) *CreateVMVolumeParams
NewCreateVMVolumeParamsWithContext creates a new CreateVMVolumeParams object with the ability to set a context for a request.
func NewCreateVMVolumeParamsWithHTTPClient ¶
func NewCreateVMVolumeParamsWithHTTPClient(client *http.Client) *CreateVMVolumeParams
NewCreateVMVolumeParamsWithHTTPClient creates a new CreateVMVolumeParams object with the ability to set a custom HTTPClient for a request.
func NewCreateVMVolumeParamsWithTimeout ¶
func NewCreateVMVolumeParamsWithTimeout(timeout time.Duration) *CreateVMVolumeParams
NewCreateVMVolumeParamsWithTimeout creates a new CreateVMVolumeParams object with the ability to set a timeout on a request.
func (*CreateVMVolumeParams) SetContentLanguage ¶
func (o *CreateVMVolumeParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the create Vm volume params
func (*CreateVMVolumeParams) SetContext ¶
func (o *CreateVMVolumeParams) SetContext(ctx context.Context)
SetContext adds the context to the create Vm volume params
func (*CreateVMVolumeParams) SetDefaults ¶
func (o *CreateVMVolumeParams) SetDefaults()
SetDefaults hydrates default values in the create Vm volume params (not the query body).
All values with no default are reset to their zero value.
func (*CreateVMVolumeParams) SetHTTPClient ¶
func (o *CreateVMVolumeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create Vm volume params
func (*CreateVMVolumeParams) SetRequestBody ¶
func (o *CreateVMVolumeParams) SetRequestBody(requestBody []*models.VMVolumeCreationParams)
SetRequestBody adds the requestBody to the create Vm volume params
func (*CreateVMVolumeParams) SetTimeout ¶
func (o *CreateVMVolumeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create Vm volume params
func (*CreateVMVolumeParams) WithContentLanguage ¶
func (o *CreateVMVolumeParams) WithContentLanguage(contentLanguage *string) *CreateVMVolumeParams
WithContentLanguage adds the contentLanguage to the create Vm volume params
func (*CreateVMVolumeParams) WithContext ¶
func (o *CreateVMVolumeParams) WithContext(ctx context.Context) *CreateVMVolumeParams
WithContext adds the context to the create Vm volume params
func (*CreateVMVolumeParams) WithDefaults ¶
func (o *CreateVMVolumeParams) WithDefaults() *CreateVMVolumeParams
WithDefaults hydrates default values in the create Vm volume params (not the query body).
All values with no default are reset to their zero value.
func (*CreateVMVolumeParams) WithHTTPClient ¶
func (o *CreateVMVolumeParams) WithHTTPClient(client *http.Client) *CreateVMVolumeParams
WithHTTPClient adds the HTTPClient to the create Vm volume params
func (*CreateVMVolumeParams) WithRequestBody ¶
func (o *CreateVMVolumeParams) WithRequestBody(requestBody []*models.VMVolumeCreationParams) *CreateVMVolumeParams
WithRequestBody adds the requestBody to the create Vm volume params
func (*CreateVMVolumeParams) WithTimeout ¶
func (o *CreateVMVolumeParams) WithTimeout(timeout time.Duration) *CreateVMVolumeParams
WithTimeout adds the timeout to the create Vm volume params
func (*CreateVMVolumeParams) WriteToRequest ¶
func (o *CreateVMVolumeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateVMVolumeReader ¶
type CreateVMVolumeReader struct {
// contains filtered or unexported fields
}
CreateVMVolumeReader is a Reader for the CreateVMVolume structure.
func (*CreateVMVolumeReader) ReadResponse ¶
func (o *CreateVMVolumeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteVMVolumeFromVMBadRequest ¶
DeleteVMVolumeFromVMBadRequest describes a response with status code 400, with default header values.
Bad request
func NewDeleteVMVolumeFromVMBadRequest ¶
func NewDeleteVMVolumeFromVMBadRequest() *DeleteVMVolumeFromVMBadRequest
NewDeleteVMVolumeFromVMBadRequest creates a DeleteVMVolumeFromVMBadRequest with default headers values
func (*DeleteVMVolumeFromVMBadRequest) Error ¶
func (o *DeleteVMVolumeFromVMBadRequest) Error() string
func (*DeleteVMVolumeFromVMBadRequest) GetPayload ¶
func (o *DeleteVMVolumeFromVMBadRequest) GetPayload() *models.ErrorBody
type DeleteVMVolumeFromVMInternalServerError ¶
DeleteVMVolumeFromVMInternalServerError describes a response with status code 500, with default header values.
Server error
func NewDeleteVMVolumeFromVMInternalServerError ¶
func NewDeleteVMVolumeFromVMInternalServerError() *DeleteVMVolumeFromVMInternalServerError
NewDeleteVMVolumeFromVMInternalServerError creates a DeleteVMVolumeFromVMInternalServerError with default headers values
func (*DeleteVMVolumeFromVMInternalServerError) Error ¶
func (o *DeleteVMVolumeFromVMInternalServerError) Error() string
func (*DeleteVMVolumeFromVMInternalServerError) GetPayload ¶
func (o *DeleteVMVolumeFromVMInternalServerError) GetPayload() *models.ErrorBody
type DeleteVMVolumeFromVMNotFound ¶
DeleteVMVolumeFromVMNotFound describes a response with status code 404, with default header values.
Not found
func NewDeleteVMVolumeFromVMNotFound ¶
func NewDeleteVMVolumeFromVMNotFound() *DeleteVMVolumeFromVMNotFound
NewDeleteVMVolumeFromVMNotFound creates a DeleteVMVolumeFromVMNotFound with default headers values
func (*DeleteVMVolumeFromVMNotFound) Error ¶
func (o *DeleteVMVolumeFromVMNotFound) Error() string
func (*DeleteVMVolumeFromVMNotFound) GetPayload ¶
func (o *DeleteVMVolumeFromVMNotFound) GetPayload() *models.ErrorBody
type DeleteVMVolumeFromVMOK ¶
type DeleteVMVolumeFromVMOK struct {
Payload []*models.WithTaskDeleteVMVolume
}
DeleteVMVolumeFromVMOK describes a response with status code 200, with default header values.
Ok
func NewDeleteVMVolumeFromVMOK ¶
func NewDeleteVMVolumeFromVMOK() *DeleteVMVolumeFromVMOK
NewDeleteVMVolumeFromVMOK creates a DeleteVMVolumeFromVMOK with default headers values
func (*DeleteVMVolumeFromVMOK) Error ¶
func (o *DeleteVMVolumeFromVMOK) Error() string
func (*DeleteVMVolumeFromVMOK) GetPayload ¶
func (o *DeleteVMVolumeFromVMOK) GetPayload() []*models.WithTaskDeleteVMVolume
type DeleteVMVolumeFromVMParams ¶
type DeleteVMVolumeFromVMParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.VMVolumeDeletionParams Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteVMVolumeFromVMParams contains all the parameters to send to the API endpoint
for the delete Vm volume from Vm operation. Typically these are written to a http.Request.
func NewDeleteVMVolumeFromVMParams ¶
func NewDeleteVMVolumeFromVMParams() *DeleteVMVolumeFromVMParams
NewDeleteVMVolumeFromVMParams creates a new DeleteVMVolumeFromVMParams 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 NewDeleteVMVolumeFromVMParamsWithContext ¶
func NewDeleteVMVolumeFromVMParamsWithContext(ctx context.Context) *DeleteVMVolumeFromVMParams
NewDeleteVMVolumeFromVMParamsWithContext creates a new DeleteVMVolumeFromVMParams object with the ability to set a context for a request.
func NewDeleteVMVolumeFromVMParamsWithHTTPClient ¶
func NewDeleteVMVolumeFromVMParamsWithHTTPClient(client *http.Client) *DeleteVMVolumeFromVMParams
NewDeleteVMVolumeFromVMParamsWithHTTPClient creates a new DeleteVMVolumeFromVMParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteVMVolumeFromVMParamsWithTimeout ¶
func NewDeleteVMVolumeFromVMParamsWithTimeout(timeout time.Duration) *DeleteVMVolumeFromVMParams
NewDeleteVMVolumeFromVMParamsWithTimeout creates a new DeleteVMVolumeFromVMParams object with the ability to set a timeout on a request.
func (*DeleteVMVolumeFromVMParams) SetContentLanguage ¶
func (o *DeleteVMVolumeFromVMParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the delete Vm volume from Vm params
func (*DeleteVMVolumeFromVMParams) SetContext ¶
func (o *DeleteVMVolumeFromVMParams) SetContext(ctx context.Context)
SetContext adds the context to the delete Vm volume from Vm params
func (*DeleteVMVolumeFromVMParams) SetDefaults ¶
func (o *DeleteVMVolumeFromVMParams) SetDefaults()
SetDefaults hydrates default values in the delete Vm volume from Vm params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteVMVolumeFromVMParams) SetHTTPClient ¶
func (o *DeleteVMVolumeFromVMParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete Vm volume from Vm params
func (*DeleteVMVolumeFromVMParams) SetRequestBody ¶
func (o *DeleteVMVolumeFromVMParams) SetRequestBody(requestBody *models.VMVolumeDeletionParams)
SetRequestBody adds the requestBody to the delete Vm volume from Vm params
func (*DeleteVMVolumeFromVMParams) SetTimeout ¶
func (o *DeleteVMVolumeFromVMParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete Vm volume from Vm params
func (*DeleteVMVolumeFromVMParams) WithContentLanguage ¶
func (o *DeleteVMVolumeFromVMParams) WithContentLanguage(contentLanguage *string) *DeleteVMVolumeFromVMParams
WithContentLanguage adds the contentLanguage to the delete Vm volume from Vm params
func (*DeleteVMVolumeFromVMParams) WithContext ¶
func (o *DeleteVMVolumeFromVMParams) WithContext(ctx context.Context) *DeleteVMVolumeFromVMParams
WithContext adds the context to the delete Vm volume from Vm params
func (*DeleteVMVolumeFromVMParams) WithDefaults ¶
func (o *DeleteVMVolumeFromVMParams) WithDefaults() *DeleteVMVolumeFromVMParams
WithDefaults hydrates default values in the delete Vm volume from Vm params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteVMVolumeFromVMParams) WithHTTPClient ¶
func (o *DeleteVMVolumeFromVMParams) WithHTTPClient(client *http.Client) *DeleteVMVolumeFromVMParams
WithHTTPClient adds the HTTPClient to the delete Vm volume from Vm params
func (*DeleteVMVolumeFromVMParams) WithRequestBody ¶
func (o *DeleteVMVolumeFromVMParams) WithRequestBody(requestBody *models.VMVolumeDeletionParams) *DeleteVMVolumeFromVMParams
WithRequestBody adds the requestBody to the delete Vm volume from Vm params
func (*DeleteVMVolumeFromVMParams) WithTimeout ¶
func (o *DeleteVMVolumeFromVMParams) WithTimeout(timeout time.Duration) *DeleteVMVolumeFromVMParams
WithTimeout adds the timeout to the delete Vm volume from Vm params
func (*DeleteVMVolumeFromVMParams) WriteToRequest ¶
func (o *DeleteVMVolumeFromVMParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteVMVolumeFromVMReader ¶
type DeleteVMVolumeFromVMReader struct {
// contains filtered or unexported fields
}
DeleteVMVolumeFromVMReader is a Reader for the DeleteVMVolumeFromVM structure.
func (*DeleteVMVolumeFromVMReader) ReadResponse ¶
func (o *DeleteVMVolumeFromVMReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetVMVolumesBadRequest ¶
GetVMVolumesBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetVMVolumesBadRequest ¶
func NewGetVMVolumesBadRequest() *GetVMVolumesBadRequest
NewGetVMVolumesBadRequest creates a GetVMVolumesBadRequest with default headers values
func (*GetVMVolumesBadRequest) Error ¶
func (o *GetVMVolumesBadRequest) Error() string
func (*GetVMVolumesBadRequest) GetPayload ¶
func (o *GetVMVolumesBadRequest) GetPayload() *models.ErrorBody
type GetVMVolumesConnectionBadRequest ¶
GetVMVolumesConnectionBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetVMVolumesConnectionBadRequest ¶
func NewGetVMVolumesConnectionBadRequest() *GetVMVolumesConnectionBadRequest
NewGetVMVolumesConnectionBadRequest creates a GetVMVolumesConnectionBadRequest with default headers values
func (*GetVMVolumesConnectionBadRequest) Error ¶
func (o *GetVMVolumesConnectionBadRequest) Error() string
func (*GetVMVolumesConnectionBadRequest) GetPayload ¶
func (o *GetVMVolumesConnectionBadRequest) GetPayload() *models.ErrorBody
type GetVMVolumesConnectionInternalServerError ¶
GetVMVolumesConnectionInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetVMVolumesConnectionInternalServerError ¶
func NewGetVMVolumesConnectionInternalServerError() *GetVMVolumesConnectionInternalServerError
NewGetVMVolumesConnectionInternalServerError creates a GetVMVolumesConnectionInternalServerError with default headers values
func (*GetVMVolumesConnectionInternalServerError) Error ¶
func (o *GetVMVolumesConnectionInternalServerError) Error() string
func (*GetVMVolumesConnectionInternalServerError) GetPayload ¶
func (o *GetVMVolumesConnectionInternalServerError) GetPayload() *models.ErrorBody
type GetVMVolumesConnectionNotFound ¶
GetVMVolumesConnectionNotFound describes a response with status code 404, with default header values.
Not found
func NewGetVMVolumesConnectionNotFound ¶
func NewGetVMVolumesConnectionNotFound() *GetVMVolumesConnectionNotFound
NewGetVMVolumesConnectionNotFound creates a GetVMVolumesConnectionNotFound with default headers values
func (*GetVMVolumesConnectionNotFound) Error ¶
func (o *GetVMVolumesConnectionNotFound) Error() string
func (*GetVMVolumesConnectionNotFound) GetPayload ¶
func (o *GetVMVolumesConnectionNotFound) GetPayload() *models.ErrorBody
type GetVMVolumesConnectionOK ¶
type GetVMVolumesConnectionOK struct {
Payload *models.VMVolumeConnection
}
GetVMVolumesConnectionOK describes a response with status code 200, with default header values.
Ok
func NewGetVMVolumesConnectionOK ¶
func NewGetVMVolumesConnectionOK() *GetVMVolumesConnectionOK
NewGetVMVolumesConnectionOK creates a GetVMVolumesConnectionOK with default headers values
func (*GetVMVolumesConnectionOK) Error ¶
func (o *GetVMVolumesConnectionOK) Error() string
func (*GetVMVolumesConnectionOK) GetPayload ¶
func (o *GetVMVolumesConnectionOK) GetPayload() *models.VMVolumeConnection
type GetVMVolumesConnectionParams ¶
type GetVMVolumesConnectionParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetVMVolumesConnectionRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetVMVolumesConnectionParams contains all the parameters to send to the API endpoint
for the get Vm volumes connection operation. Typically these are written to a http.Request.
func NewGetVMVolumesConnectionParams ¶
func NewGetVMVolumesConnectionParams() *GetVMVolumesConnectionParams
NewGetVMVolumesConnectionParams creates a new GetVMVolumesConnectionParams 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 NewGetVMVolumesConnectionParamsWithContext ¶
func NewGetVMVolumesConnectionParamsWithContext(ctx context.Context) *GetVMVolumesConnectionParams
NewGetVMVolumesConnectionParamsWithContext creates a new GetVMVolumesConnectionParams object with the ability to set a context for a request.
func NewGetVMVolumesConnectionParamsWithHTTPClient ¶
func NewGetVMVolumesConnectionParamsWithHTTPClient(client *http.Client) *GetVMVolumesConnectionParams
NewGetVMVolumesConnectionParamsWithHTTPClient creates a new GetVMVolumesConnectionParams object with the ability to set a custom HTTPClient for a request.
func NewGetVMVolumesConnectionParamsWithTimeout ¶
func NewGetVMVolumesConnectionParamsWithTimeout(timeout time.Duration) *GetVMVolumesConnectionParams
NewGetVMVolumesConnectionParamsWithTimeout creates a new GetVMVolumesConnectionParams object with the ability to set a timeout on a request.
func (*GetVMVolumesConnectionParams) SetContentLanguage ¶
func (o *GetVMVolumesConnectionParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get Vm volumes connection params
func (*GetVMVolumesConnectionParams) SetContext ¶
func (o *GetVMVolumesConnectionParams) SetContext(ctx context.Context)
SetContext adds the context to the get Vm volumes connection params
func (*GetVMVolumesConnectionParams) SetDefaults ¶
func (o *GetVMVolumesConnectionParams) SetDefaults()
SetDefaults hydrates default values in the get Vm volumes connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetVMVolumesConnectionParams) SetHTTPClient ¶
func (o *GetVMVolumesConnectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get Vm volumes connection params
func (*GetVMVolumesConnectionParams) SetRequestBody ¶
func (o *GetVMVolumesConnectionParams) SetRequestBody(requestBody *models.GetVMVolumesConnectionRequestBody)
SetRequestBody adds the requestBody to the get Vm volumes connection params
func (*GetVMVolumesConnectionParams) SetTimeout ¶
func (o *GetVMVolumesConnectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get Vm volumes connection params
func (*GetVMVolumesConnectionParams) WithContentLanguage ¶
func (o *GetVMVolumesConnectionParams) WithContentLanguage(contentLanguage *string) *GetVMVolumesConnectionParams
WithContentLanguage adds the contentLanguage to the get Vm volumes connection params
func (*GetVMVolumesConnectionParams) WithContext ¶
func (o *GetVMVolumesConnectionParams) WithContext(ctx context.Context) *GetVMVolumesConnectionParams
WithContext adds the context to the get Vm volumes connection params
func (*GetVMVolumesConnectionParams) WithDefaults ¶
func (o *GetVMVolumesConnectionParams) WithDefaults() *GetVMVolumesConnectionParams
WithDefaults hydrates default values in the get Vm volumes connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetVMVolumesConnectionParams) WithHTTPClient ¶
func (o *GetVMVolumesConnectionParams) WithHTTPClient(client *http.Client) *GetVMVolumesConnectionParams
WithHTTPClient adds the HTTPClient to the get Vm volumes connection params
func (*GetVMVolumesConnectionParams) WithRequestBody ¶
func (o *GetVMVolumesConnectionParams) WithRequestBody(requestBody *models.GetVMVolumesConnectionRequestBody) *GetVMVolumesConnectionParams
WithRequestBody adds the requestBody to the get Vm volumes connection params
func (*GetVMVolumesConnectionParams) WithTimeout ¶
func (o *GetVMVolumesConnectionParams) WithTimeout(timeout time.Duration) *GetVMVolumesConnectionParams
WithTimeout adds the timeout to the get Vm volumes connection params
func (*GetVMVolumesConnectionParams) WriteToRequest ¶
func (o *GetVMVolumesConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetVMVolumesConnectionReader ¶
type GetVMVolumesConnectionReader struct {
// contains filtered or unexported fields
}
GetVMVolumesConnectionReader is a Reader for the GetVMVolumesConnection structure.
func (*GetVMVolumesConnectionReader) ReadResponse ¶
func (o *GetVMVolumesConnectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetVMVolumesInternalServerError ¶
GetVMVolumesInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetVMVolumesInternalServerError ¶
func NewGetVMVolumesInternalServerError() *GetVMVolumesInternalServerError
NewGetVMVolumesInternalServerError creates a GetVMVolumesInternalServerError with default headers values
func (*GetVMVolumesInternalServerError) Error ¶
func (o *GetVMVolumesInternalServerError) Error() string
func (*GetVMVolumesInternalServerError) GetPayload ¶
func (o *GetVMVolumesInternalServerError) GetPayload() *models.ErrorBody
type GetVMVolumesNotFound ¶
GetVMVolumesNotFound describes a response with status code 404, with default header values.
Not found
func NewGetVMVolumesNotFound ¶
func NewGetVMVolumesNotFound() *GetVMVolumesNotFound
NewGetVMVolumesNotFound creates a GetVMVolumesNotFound with default headers values
func (*GetVMVolumesNotFound) Error ¶
func (o *GetVMVolumesNotFound) Error() string
func (*GetVMVolumesNotFound) GetPayload ¶
func (o *GetVMVolumesNotFound) GetPayload() *models.ErrorBody
type GetVMVolumesOK ¶
GetVMVolumesOK describes a response with status code 200, with default header values.
Ok
func NewGetVMVolumesOK ¶
func NewGetVMVolumesOK() *GetVMVolumesOK
NewGetVMVolumesOK creates a GetVMVolumesOK with default headers values
func (*GetVMVolumesOK) Error ¶
func (o *GetVMVolumesOK) Error() string
func (*GetVMVolumesOK) GetPayload ¶
func (o *GetVMVolumesOK) GetPayload() []*models.VMVolume
type GetVMVolumesParams ¶
type GetVMVolumesParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetVMVolumesRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetVMVolumesParams contains all the parameters to send to the API endpoint
for the get Vm volumes operation. Typically these are written to a http.Request.
func NewGetVMVolumesParams ¶
func NewGetVMVolumesParams() *GetVMVolumesParams
NewGetVMVolumesParams creates a new GetVMVolumesParams 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 NewGetVMVolumesParamsWithContext ¶
func NewGetVMVolumesParamsWithContext(ctx context.Context) *GetVMVolumesParams
NewGetVMVolumesParamsWithContext creates a new GetVMVolumesParams object with the ability to set a context for a request.
func NewGetVMVolumesParamsWithHTTPClient ¶
func NewGetVMVolumesParamsWithHTTPClient(client *http.Client) *GetVMVolumesParams
NewGetVMVolumesParamsWithHTTPClient creates a new GetVMVolumesParams object with the ability to set a custom HTTPClient for a request.
func NewGetVMVolumesParamsWithTimeout ¶
func NewGetVMVolumesParamsWithTimeout(timeout time.Duration) *GetVMVolumesParams
NewGetVMVolumesParamsWithTimeout creates a new GetVMVolumesParams object with the ability to set a timeout on a request.
func (*GetVMVolumesParams) SetContentLanguage ¶
func (o *GetVMVolumesParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get Vm volumes params
func (*GetVMVolumesParams) SetContext ¶
func (o *GetVMVolumesParams) SetContext(ctx context.Context)
SetContext adds the context to the get Vm volumes params
func (*GetVMVolumesParams) SetDefaults ¶
func (o *GetVMVolumesParams) SetDefaults()
SetDefaults hydrates default values in the get Vm volumes params (not the query body).
All values with no default are reset to their zero value.
func (*GetVMVolumesParams) SetHTTPClient ¶
func (o *GetVMVolumesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get Vm volumes params
func (*GetVMVolumesParams) SetRequestBody ¶
func (o *GetVMVolumesParams) SetRequestBody(requestBody *models.GetVMVolumesRequestBody)
SetRequestBody adds the requestBody to the get Vm volumes params
func (*GetVMVolumesParams) SetTimeout ¶
func (o *GetVMVolumesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get Vm volumes params
func (*GetVMVolumesParams) WithContentLanguage ¶
func (o *GetVMVolumesParams) WithContentLanguage(contentLanguage *string) *GetVMVolumesParams
WithContentLanguage adds the contentLanguage to the get Vm volumes params
func (*GetVMVolumesParams) WithContext ¶
func (o *GetVMVolumesParams) WithContext(ctx context.Context) *GetVMVolumesParams
WithContext adds the context to the get Vm volumes params
func (*GetVMVolumesParams) WithDefaults ¶
func (o *GetVMVolumesParams) WithDefaults() *GetVMVolumesParams
WithDefaults hydrates default values in the get Vm volumes params (not the query body).
All values with no default are reset to their zero value.
func (*GetVMVolumesParams) WithHTTPClient ¶
func (o *GetVMVolumesParams) WithHTTPClient(client *http.Client) *GetVMVolumesParams
WithHTTPClient adds the HTTPClient to the get Vm volumes params
func (*GetVMVolumesParams) WithRequestBody ¶
func (o *GetVMVolumesParams) WithRequestBody(requestBody *models.GetVMVolumesRequestBody) *GetVMVolumesParams
WithRequestBody adds the requestBody to the get Vm volumes params
func (*GetVMVolumesParams) WithTimeout ¶
func (o *GetVMVolumesParams) WithTimeout(timeout time.Duration) *GetVMVolumesParams
WithTimeout adds the timeout to the get Vm volumes params
func (*GetVMVolumesParams) WriteToRequest ¶
func (o *GetVMVolumesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetVMVolumesReader ¶
type GetVMVolumesReader struct {
// contains filtered or unexported fields
}
GetVMVolumesReader is a Reader for the GetVMVolumes structure.
func (*GetVMVolumesReader) ReadResponse ¶
func (o *GetVMVolumesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.