Documentation ¶
Index ¶
- type Client
- func (a *Client) GetDisks(params *GetDisksParams, opts ...ClientOption) (*GetDisksOK, error)
- func (a *Client) GetDisksConnection(params *GetDisksConnectionParams, opts ...ClientOption) (*GetDisksConnectionOK, error)
- func (a *Client) MountDisk(params *MountDiskParams, opts ...ClientOption) (*MountDiskOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UnmountDisk(params *UnmountDiskParams, opts ...ClientOption) (*UnmountDiskOK, error)
- type ClientOption
- type ClientService
- type GetDisksBadRequest
- type GetDisksConnectionBadRequest
- type GetDisksConnectionInternalServerError
- type GetDisksConnectionNotFound
- type GetDisksConnectionOK
- type GetDisksConnectionParams
- func NewGetDisksConnectionParams() *GetDisksConnectionParams
- func NewGetDisksConnectionParamsWithContext(ctx context.Context) *GetDisksConnectionParams
- func NewGetDisksConnectionParamsWithHTTPClient(client *http.Client) *GetDisksConnectionParams
- func NewGetDisksConnectionParamsWithTimeout(timeout time.Duration) *GetDisksConnectionParams
- func (o *GetDisksConnectionParams) SetContentLanguage(contentLanguage *string)
- func (o *GetDisksConnectionParams) SetContext(ctx context.Context)
- func (o *GetDisksConnectionParams) SetDefaults()
- func (o *GetDisksConnectionParams) SetHTTPClient(client *http.Client)
- func (o *GetDisksConnectionParams) SetRequestBody(requestBody *models.GetDisksConnectionRequestBody)
- func (o *GetDisksConnectionParams) SetTimeout(timeout time.Duration)
- func (o *GetDisksConnectionParams) WithContentLanguage(contentLanguage *string) *GetDisksConnectionParams
- func (o *GetDisksConnectionParams) WithContext(ctx context.Context) *GetDisksConnectionParams
- func (o *GetDisksConnectionParams) WithDefaults() *GetDisksConnectionParams
- func (o *GetDisksConnectionParams) WithHTTPClient(client *http.Client) *GetDisksConnectionParams
- func (o *GetDisksConnectionParams) WithRequestBody(requestBody *models.GetDisksConnectionRequestBody) *GetDisksConnectionParams
- func (o *GetDisksConnectionParams) WithTimeout(timeout time.Duration) *GetDisksConnectionParams
- func (o *GetDisksConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDisksConnectionReader
- type GetDisksInternalServerError
- type GetDisksNotFound
- type GetDisksOK
- type GetDisksParams
- func (o *GetDisksParams) SetContentLanguage(contentLanguage *string)
- func (o *GetDisksParams) SetContext(ctx context.Context)
- func (o *GetDisksParams) SetDefaults()
- func (o *GetDisksParams) SetHTTPClient(client *http.Client)
- func (o *GetDisksParams) SetRequestBody(requestBody *models.GetDisksRequestBody)
- func (o *GetDisksParams) SetTimeout(timeout time.Duration)
- func (o *GetDisksParams) WithContentLanguage(contentLanguage *string) *GetDisksParams
- func (o *GetDisksParams) WithContext(ctx context.Context) *GetDisksParams
- func (o *GetDisksParams) WithDefaults() *GetDisksParams
- func (o *GetDisksParams) WithHTTPClient(client *http.Client) *GetDisksParams
- func (o *GetDisksParams) WithRequestBody(requestBody *models.GetDisksRequestBody) *GetDisksParams
- func (o *GetDisksParams) WithTimeout(timeout time.Duration) *GetDisksParams
- func (o *GetDisksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDisksReader
- type MountDiskBadRequest
- type MountDiskInternalServerError
- type MountDiskNotFound
- type MountDiskOK
- type MountDiskParams
- func (o *MountDiskParams) SetContentLanguage(contentLanguage *string)
- func (o *MountDiskParams) SetContext(ctx context.Context)
- func (o *MountDiskParams) SetDefaults()
- func (o *MountDiskParams) SetHTTPClient(client *http.Client)
- func (o *MountDiskParams) SetRequestBody(requestBody *models.DiskMountParams)
- func (o *MountDiskParams) SetTimeout(timeout time.Duration)
- func (o *MountDiskParams) WithContentLanguage(contentLanguage *string) *MountDiskParams
- func (o *MountDiskParams) WithContext(ctx context.Context) *MountDiskParams
- func (o *MountDiskParams) WithDefaults() *MountDiskParams
- func (o *MountDiskParams) WithHTTPClient(client *http.Client) *MountDiskParams
- func (o *MountDiskParams) WithRequestBody(requestBody *models.DiskMountParams) *MountDiskParams
- func (o *MountDiskParams) WithTimeout(timeout time.Duration) *MountDiskParams
- func (o *MountDiskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MountDiskReader
- type UnmountDiskBadRequest
- type UnmountDiskInternalServerError
- type UnmountDiskNotFound
- type UnmountDiskOK
- type UnmountDiskParams
- func (o *UnmountDiskParams) SetContentLanguage(contentLanguage *string)
- func (o *UnmountDiskParams) SetContext(ctx context.Context)
- func (o *UnmountDiskParams) SetDefaults()
- func (o *UnmountDiskParams) SetHTTPClient(client *http.Client)
- func (o *UnmountDiskParams) SetRequestBody(requestBody *models.DiskUnmountParams)
- func (o *UnmountDiskParams) SetTimeout(timeout time.Duration)
- func (o *UnmountDiskParams) WithContentLanguage(contentLanguage *string) *UnmountDiskParams
- func (o *UnmountDiskParams) WithContext(ctx context.Context) *UnmountDiskParams
- func (o *UnmountDiskParams) WithDefaults() *UnmountDiskParams
- func (o *UnmountDiskParams) WithHTTPClient(client *http.Client) *UnmountDiskParams
- func (o *UnmountDiskParams) WithRequestBody(requestBody *models.DiskUnmountParams) *UnmountDiskParams
- func (o *UnmountDiskParams) WithTimeout(timeout time.Duration) *UnmountDiskParams
- func (o *UnmountDiskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UnmountDiskReader
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 disk API
func (*Client) GetDisks ¶
func (a *Client) GetDisks(params *GetDisksParams, opts ...ClientOption) (*GetDisksOK, error)
GetDisks get disks API
func (*Client) GetDisksConnection ¶
func (a *Client) GetDisksConnection(params *GetDisksConnectionParams, opts ...ClientOption) (*GetDisksConnectionOK, error)
GetDisksConnection get disks connection API
func (*Client) MountDisk ¶
func (a *Client) MountDisk(params *MountDiskParams, opts ...ClientOption) (*MountDiskOK, error)
MountDisk mount disk API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UnmountDisk ¶
func (a *Client) UnmountDisk(params *UnmountDiskParams, opts ...ClientOption) (*UnmountDiskOK, error)
UnmountDisk unmount disk API
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetDisks(params *GetDisksParams, opts ...ClientOption) (*GetDisksOK, error) GetDisksConnection(params *GetDisksConnectionParams, opts ...ClientOption) (*GetDisksConnectionOK, error) MountDisk(params *MountDiskParams, opts ...ClientOption) (*MountDiskOK, error) UnmountDisk(params *UnmountDiskParams, opts ...ClientOption) (*UnmountDiskOK, 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 disk API client.
type GetDisksBadRequest ¶
GetDisksBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetDisksBadRequest ¶
func NewGetDisksBadRequest() *GetDisksBadRequest
NewGetDisksBadRequest creates a GetDisksBadRequest with default headers values
func (*GetDisksBadRequest) Error ¶
func (o *GetDisksBadRequest) Error() string
func (*GetDisksBadRequest) GetPayload ¶
func (o *GetDisksBadRequest) GetPayload() *models.ErrorBody
type GetDisksConnectionBadRequest ¶
GetDisksConnectionBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetDisksConnectionBadRequest ¶
func NewGetDisksConnectionBadRequest() *GetDisksConnectionBadRequest
NewGetDisksConnectionBadRequest creates a GetDisksConnectionBadRequest with default headers values
func (*GetDisksConnectionBadRequest) Error ¶
func (o *GetDisksConnectionBadRequest) Error() string
func (*GetDisksConnectionBadRequest) GetPayload ¶
func (o *GetDisksConnectionBadRequest) GetPayload() *models.ErrorBody
type GetDisksConnectionInternalServerError ¶
type GetDisksConnectionInternalServerError struct { XTowerRequestID string Payload *models.ErrorBody }
GetDisksConnectionInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetDisksConnectionInternalServerError ¶
func NewGetDisksConnectionInternalServerError() *GetDisksConnectionInternalServerError
NewGetDisksConnectionInternalServerError creates a GetDisksConnectionInternalServerError with default headers values
func (*GetDisksConnectionInternalServerError) Error ¶
func (o *GetDisksConnectionInternalServerError) Error() string
func (*GetDisksConnectionInternalServerError) GetPayload ¶
func (o *GetDisksConnectionInternalServerError) GetPayload() *models.ErrorBody
type GetDisksConnectionNotFound ¶
GetDisksConnectionNotFound describes a response with status code 404, with default header values.
Not found
func NewGetDisksConnectionNotFound ¶
func NewGetDisksConnectionNotFound() *GetDisksConnectionNotFound
NewGetDisksConnectionNotFound creates a GetDisksConnectionNotFound with default headers values
func (*GetDisksConnectionNotFound) Error ¶
func (o *GetDisksConnectionNotFound) Error() string
func (*GetDisksConnectionNotFound) GetPayload ¶
func (o *GetDisksConnectionNotFound) GetPayload() *models.ErrorBody
type GetDisksConnectionOK ¶
type GetDisksConnectionOK struct { XTowerRequestID string Payload *models.DiskConnection }
GetDisksConnectionOK describes a response with status code 200, with default header values.
GetDisksConnectionOK get disks connection o k
func NewGetDisksConnectionOK ¶
func NewGetDisksConnectionOK() *GetDisksConnectionOK
NewGetDisksConnectionOK creates a GetDisksConnectionOK with default headers values
func (*GetDisksConnectionOK) Error ¶
func (o *GetDisksConnectionOK) Error() string
func (*GetDisksConnectionOK) GetPayload ¶
func (o *GetDisksConnectionOK) GetPayload() *models.DiskConnection
type GetDisksConnectionParams ¶
type GetDisksConnectionParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetDisksConnectionRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetDisksConnectionParams contains all the parameters to send to the API endpoint
for the get disks connection operation. Typically these are written to a http.Request.
func NewGetDisksConnectionParams ¶
func NewGetDisksConnectionParams() *GetDisksConnectionParams
NewGetDisksConnectionParams creates a new GetDisksConnectionParams 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 NewGetDisksConnectionParamsWithContext ¶
func NewGetDisksConnectionParamsWithContext(ctx context.Context) *GetDisksConnectionParams
NewGetDisksConnectionParamsWithContext creates a new GetDisksConnectionParams object with the ability to set a context for a request.
func NewGetDisksConnectionParamsWithHTTPClient ¶
func NewGetDisksConnectionParamsWithHTTPClient(client *http.Client) *GetDisksConnectionParams
NewGetDisksConnectionParamsWithHTTPClient creates a new GetDisksConnectionParams object with the ability to set a custom HTTPClient for a request.
func NewGetDisksConnectionParamsWithTimeout ¶
func NewGetDisksConnectionParamsWithTimeout(timeout time.Duration) *GetDisksConnectionParams
NewGetDisksConnectionParamsWithTimeout creates a new GetDisksConnectionParams object with the ability to set a timeout on a request.
func (*GetDisksConnectionParams) SetContentLanguage ¶
func (o *GetDisksConnectionParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get disks connection params
func (*GetDisksConnectionParams) SetContext ¶
func (o *GetDisksConnectionParams) SetContext(ctx context.Context)
SetContext adds the context to the get disks connection params
func (*GetDisksConnectionParams) SetDefaults ¶
func (o *GetDisksConnectionParams) SetDefaults()
SetDefaults hydrates default values in the get disks connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetDisksConnectionParams) SetHTTPClient ¶
func (o *GetDisksConnectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get disks connection params
func (*GetDisksConnectionParams) SetRequestBody ¶
func (o *GetDisksConnectionParams) SetRequestBody(requestBody *models.GetDisksConnectionRequestBody)
SetRequestBody adds the requestBody to the get disks connection params
func (*GetDisksConnectionParams) SetTimeout ¶
func (o *GetDisksConnectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get disks connection params
func (*GetDisksConnectionParams) WithContentLanguage ¶
func (o *GetDisksConnectionParams) WithContentLanguage(contentLanguage *string) *GetDisksConnectionParams
WithContentLanguage adds the contentLanguage to the get disks connection params
func (*GetDisksConnectionParams) WithContext ¶
func (o *GetDisksConnectionParams) WithContext(ctx context.Context) *GetDisksConnectionParams
WithContext adds the context to the get disks connection params
func (*GetDisksConnectionParams) WithDefaults ¶
func (o *GetDisksConnectionParams) WithDefaults() *GetDisksConnectionParams
WithDefaults hydrates default values in the get disks connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetDisksConnectionParams) WithHTTPClient ¶
func (o *GetDisksConnectionParams) WithHTTPClient(client *http.Client) *GetDisksConnectionParams
WithHTTPClient adds the HTTPClient to the get disks connection params
func (*GetDisksConnectionParams) WithRequestBody ¶
func (o *GetDisksConnectionParams) WithRequestBody(requestBody *models.GetDisksConnectionRequestBody) *GetDisksConnectionParams
WithRequestBody adds the requestBody to the get disks connection params
func (*GetDisksConnectionParams) WithTimeout ¶
func (o *GetDisksConnectionParams) WithTimeout(timeout time.Duration) *GetDisksConnectionParams
WithTimeout adds the timeout to the get disks connection params
func (*GetDisksConnectionParams) WriteToRequest ¶
func (o *GetDisksConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetDisksConnectionReader ¶
type GetDisksConnectionReader struct {
// contains filtered or unexported fields
}
GetDisksConnectionReader is a Reader for the GetDisksConnection structure.
func (*GetDisksConnectionReader) ReadResponse ¶
func (o *GetDisksConnectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetDisksInternalServerError ¶
GetDisksInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetDisksInternalServerError ¶
func NewGetDisksInternalServerError() *GetDisksInternalServerError
NewGetDisksInternalServerError creates a GetDisksInternalServerError with default headers values
func (*GetDisksInternalServerError) Error ¶
func (o *GetDisksInternalServerError) Error() string
func (*GetDisksInternalServerError) GetPayload ¶
func (o *GetDisksInternalServerError) GetPayload() *models.ErrorBody
type GetDisksNotFound ¶
GetDisksNotFound describes a response with status code 404, with default header values.
Not found
func NewGetDisksNotFound ¶
func NewGetDisksNotFound() *GetDisksNotFound
NewGetDisksNotFound creates a GetDisksNotFound with default headers values
func (*GetDisksNotFound) Error ¶
func (o *GetDisksNotFound) Error() string
func (*GetDisksNotFound) GetPayload ¶
func (o *GetDisksNotFound) GetPayload() *models.ErrorBody
type GetDisksOK ¶
GetDisksOK describes a response with status code 200, with default header values.
GetDisksOK get disks o k
func NewGetDisksOK ¶
func NewGetDisksOK() *GetDisksOK
NewGetDisksOK creates a GetDisksOK with default headers values
func (*GetDisksOK) Error ¶
func (o *GetDisksOK) Error() string
func (*GetDisksOK) GetPayload ¶
func (o *GetDisksOK) GetPayload() []*models.Disk
type GetDisksParams ¶
type GetDisksParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetDisksRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetDisksParams contains all the parameters to send to the API endpoint
for the get disks operation. Typically these are written to a http.Request.
func NewGetDisksParams ¶
func NewGetDisksParams() *GetDisksParams
NewGetDisksParams creates a new GetDisksParams 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 NewGetDisksParamsWithContext ¶
func NewGetDisksParamsWithContext(ctx context.Context) *GetDisksParams
NewGetDisksParamsWithContext creates a new GetDisksParams object with the ability to set a context for a request.
func NewGetDisksParamsWithHTTPClient ¶
func NewGetDisksParamsWithHTTPClient(client *http.Client) *GetDisksParams
NewGetDisksParamsWithHTTPClient creates a new GetDisksParams object with the ability to set a custom HTTPClient for a request.
func NewGetDisksParamsWithTimeout ¶
func NewGetDisksParamsWithTimeout(timeout time.Duration) *GetDisksParams
NewGetDisksParamsWithTimeout creates a new GetDisksParams object with the ability to set a timeout on a request.
func (*GetDisksParams) SetContentLanguage ¶
func (o *GetDisksParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get disks params
func (*GetDisksParams) SetContext ¶
func (o *GetDisksParams) SetContext(ctx context.Context)
SetContext adds the context to the get disks params
func (*GetDisksParams) SetDefaults ¶
func (o *GetDisksParams) SetDefaults()
SetDefaults hydrates default values in the get disks params (not the query body).
All values with no default are reset to their zero value.
func (*GetDisksParams) SetHTTPClient ¶
func (o *GetDisksParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get disks params
func (*GetDisksParams) SetRequestBody ¶
func (o *GetDisksParams) SetRequestBody(requestBody *models.GetDisksRequestBody)
SetRequestBody adds the requestBody to the get disks params
func (*GetDisksParams) SetTimeout ¶
func (o *GetDisksParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get disks params
func (*GetDisksParams) WithContentLanguage ¶
func (o *GetDisksParams) WithContentLanguage(contentLanguage *string) *GetDisksParams
WithContentLanguage adds the contentLanguage to the get disks params
func (*GetDisksParams) WithContext ¶
func (o *GetDisksParams) WithContext(ctx context.Context) *GetDisksParams
WithContext adds the context to the get disks params
func (*GetDisksParams) WithDefaults ¶
func (o *GetDisksParams) WithDefaults() *GetDisksParams
WithDefaults hydrates default values in the get disks params (not the query body).
All values with no default are reset to their zero value.
func (*GetDisksParams) WithHTTPClient ¶
func (o *GetDisksParams) WithHTTPClient(client *http.Client) *GetDisksParams
WithHTTPClient adds the HTTPClient to the get disks params
func (*GetDisksParams) WithRequestBody ¶
func (o *GetDisksParams) WithRequestBody(requestBody *models.GetDisksRequestBody) *GetDisksParams
WithRequestBody adds the requestBody to the get disks params
func (*GetDisksParams) WithTimeout ¶
func (o *GetDisksParams) WithTimeout(timeout time.Duration) *GetDisksParams
WithTimeout adds the timeout to the get disks params
func (*GetDisksParams) WriteToRequest ¶
func (o *GetDisksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetDisksReader ¶
type GetDisksReader struct {
// contains filtered or unexported fields
}
GetDisksReader is a Reader for the GetDisks structure.
func (*GetDisksReader) ReadResponse ¶
func (o *GetDisksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type MountDiskBadRequest ¶
MountDiskBadRequest describes a response with status code 400, with default header values.
Bad request
func NewMountDiskBadRequest ¶
func NewMountDiskBadRequest() *MountDiskBadRequest
NewMountDiskBadRequest creates a MountDiskBadRequest with default headers values
func (*MountDiskBadRequest) Error ¶
func (o *MountDiskBadRequest) Error() string
func (*MountDiskBadRequest) GetPayload ¶
func (o *MountDiskBadRequest) GetPayload() *models.ErrorBody
type MountDiskInternalServerError ¶
MountDiskInternalServerError describes a response with status code 500, with default header values.
Server error
func NewMountDiskInternalServerError ¶
func NewMountDiskInternalServerError() *MountDiskInternalServerError
NewMountDiskInternalServerError creates a MountDiskInternalServerError with default headers values
func (*MountDiskInternalServerError) Error ¶
func (o *MountDiskInternalServerError) Error() string
func (*MountDiskInternalServerError) GetPayload ¶
func (o *MountDiskInternalServerError) GetPayload() *models.ErrorBody
type MountDiskNotFound ¶
MountDiskNotFound describes a response with status code 404, with default header values.
Not found
func NewMountDiskNotFound ¶
func NewMountDiskNotFound() *MountDiskNotFound
NewMountDiskNotFound creates a MountDiskNotFound with default headers values
func (*MountDiskNotFound) Error ¶
func (o *MountDiskNotFound) Error() string
func (*MountDiskNotFound) GetPayload ¶
func (o *MountDiskNotFound) GetPayload() *models.ErrorBody
type MountDiskOK ¶
type MountDiskOK struct { XTowerRequestID string Payload []*models.WithTaskDisk }
MountDiskOK describes a response with status code 200, with default header values.
MountDiskOK mount disk o k
func NewMountDiskOK ¶
func NewMountDiskOK() *MountDiskOK
NewMountDiskOK creates a MountDiskOK with default headers values
func (*MountDiskOK) Error ¶
func (o *MountDiskOK) Error() string
func (*MountDiskOK) GetPayload ¶
func (o *MountDiskOK) GetPayload() []*models.WithTaskDisk
type MountDiskParams ¶
type MountDiskParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.DiskMountParams Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
MountDiskParams contains all the parameters to send to the API endpoint
for the mount disk operation. Typically these are written to a http.Request.
func NewMountDiskParams ¶
func NewMountDiskParams() *MountDiskParams
NewMountDiskParams creates a new MountDiskParams 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 NewMountDiskParamsWithContext ¶
func NewMountDiskParamsWithContext(ctx context.Context) *MountDiskParams
NewMountDiskParamsWithContext creates a new MountDiskParams object with the ability to set a context for a request.
func NewMountDiskParamsWithHTTPClient ¶
func NewMountDiskParamsWithHTTPClient(client *http.Client) *MountDiskParams
NewMountDiskParamsWithHTTPClient creates a new MountDiskParams object with the ability to set a custom HTTPClient for a request.
func NewMountDiskParamsWithTimeout ¶
func NewMountDiskParamsWithTimeout(timeout time.Duration) *MountDiskParams
NewMountDiskParamsWithTimeout creates a new MountDiskParams object with the ability to set a timeout on a request.
func (*MountDiskParams) SetContentLanguage ¶
func (o *MountDiskParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the mount disk params
func (*MountDiskParams) SetContext ¶
func (o *MountDiskParams) SetContext(ctx context.Context)
SetContext adds the context to the mount disk params
func (*MountDiskParams) SetDefaults ¶
func (o *MountDiskParams) SetDefaults()
SetDefaults hydrates default values in the mount disk params (not the query body).
All values with no default are reset to their zero value.
func (*MountDiskParams) SetHTTPClient ¶
func (o *MountDiskParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the mount disk params
func (*MountDiskParams) SetRequestBody ¶
func (o *MountDiskParams) SetRequestBody(requestBody *models.DiskMountParams)
SetRequestBody adds the requestBody to the mount disk params
func (*MountDiskParams) SetTimeout ¶
func (o *MountDiskParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the mount disk params
func (*MountDiskParams) WithContentLanguage ¶
func (o *MountDiskParams) WithContentLanguage(contentLanguage *string) *MountDiskParams
WithContentLanguage adds the contentLanguage to the mount disk params
func (*MountDiskParams) WithContext ¶
func (o *MountDiskParams) WithContext(ctx context.Context) *MountDiskParams
WithContext adds the context to the mount disk params
func (*MountDiskParams) WithDefaults ¶
func (o *MountDiskParams) WithDefaults() *MountDiskParams
WithDefaults hydrates default values in the mount disk params (not the query body).
All values with no default are reset to their zero value.
func (*MountDiskParams) WithHTTPClient ¶
func (o *MountDiskParams) WithHTTPClient(client *http.Client) *MountDiskParams
WithHTTPClient adds the HTTPClient to the mount disk params
func (*MountDiskParams) WithRequestBody ¶
func (o *MountDiskParams) WithRequestBody(requestBody *models.DiskMountParams) *MountDiskParams
WithRequestBody adds the requestBody to the mount disk params
func (*MountDiskParams) WithTimeout ¶
func (o *MountDiskParams) WithTimeout(timeout time.Duration) *MountDiskParams
WithTimeout adds the timeout to the mount disk params
func (*MountDiskParams) WriteToRequest ¶
func (o *MountDiskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MountDiskReader ¶
type MountDiskReader struct {
// contains filtered or unexported fields
}
MountDiskReader is a Reader for the MountDisk structure.
func (*MountDiskReader) ReadResponse ¶
func (o *MountDiskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UnmountDiskBadRequest ¶
UnmountDiskBadRequest describes a response with status code 400, with default header values.
Bad request
func NewUnmountDiskBadRequest ¶
func NewUnmountDiskBadRequest() *UnmountDiskBadRequest
NewUnmountDiskBadRequest creates a UnmountDiskBadRequest with default headers values
func (*UnmountDiskBadRequest) Error ¶
func (o *UnmountDiskBadRequest) Error() string
func (*UnmountDiskBadRequest) GetPayload ¶
func (o *UnmountDiskBadRequest) GetPayload() *models.ErrorBody
type UnmountDiskInternalServerError ¶
UnmountDiskInternalServerError describes a response with status code 500, with default header values.
Server error
func NewUnmountDiskInternalServerError ¶
func NewUnmountDiskInternalServerError() *UnmountDiskInternalServerError
NewUnmountDiskInternalServerError creates a UnmountDiskInternalServerError with default headers values
func (*UnmountDiskInternalServerError) Error ¶
func (o *UnmountDiskInternalServerError) Error() string
func (*UnmountDiskInternalServerError) GetPayload ¶
func (o *UnmountDiskInternalServerError) GetPayload() *models.ErrorBody
type UnmountDiskNotFound ¶
UnmountDiskNotFound describes a response with status code 404, with default header values.
Not found
func NewUnmountDiskNotFound ¶
func NewUnmountDiskNotFound() *UnmountDiskNotFound
NewUnmountDiskNotFound creates a UnmountDiskNotFound with default headers values
func (*UnmountDiskNotFound) Error ¶
func (o *UnmountDiskNotFound) Error() string
func (*UnmountDiskNotFound) GetPayload ¶
func (o *UnmountDiskNotFound) GetPayload() *models.ErrorBody
type UnmountDiskOK ¶
type UnmountDiskOK struct { XTowerRequestID string Payload []*models.WithTaskDisk }
UnmountDiskOK describes a response with status code 200, with default header values.
UnmountDiskOK unmount disk o k
func NewUnmountDiskOK ¶
func NewUnmountDiskOK() *UnmountDiskOK
NewUnmountDiskOK creates a UnmountDiskOK with default headers values
func (*UnmountDiskOK) Error ¶
func (o *UnmountDiskOK) Error() string
func (*UnmountDiskOK) GetPayload ¶
func (o *UnmountDiskOK) GetPayload() []*models.WithTaskDisk
type UnmountDiskParams ¶
type UnmountDiskParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.DiskUnmountParams Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UnmountDiskParams contains all the parameters to send to the API endpoint
for the unmount disk operation. Typically these are written to a http.Request.
func NewUnmountDiskParams ¶
func NewUnmountDiskParams() *UnmountDiskParams
NewUnmountDiskParams creates a new UnmountDiskParams 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 NewUnmountDiskParamsWithContext ¶
func NewUnmountDiskParamsWithContext(ctx context.Context) *UnmountDiskParams
NewUnmountDiskParamsWithContext creates a new UnmountDiskParams object with the ability to set a context for a request.
func NewUnmountDiskParamsWithHTTPClient ¶
func NewUnmountDiskParamsWithHTTPClient(client *http.Client) *UnmountDiskParams
NewUnmountDiskParamsWithHTTPClient creates a new UnmountDiskParams object with the ability to set a custom HTTPClient for a request.
func NewUnmountDiskParamsWithTimeout ¶
func NewUnmountDiskParamsWithTimeout(timeout time.Duration) *UnmountDiskParams
NewUnmountDiskParamsWithTimeout creates a new UnmountDiskParams object with the ability to set a timeout on a request.
func (*UnmountDiskParams) SetContentLanguage ¶
func (o *UnmountDiskParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the unmount disk params
func (*UnmountDiskParams) SetContext ¶
func (o *UnmountDiskParams) SetContext(ctx context.Context)
SetContext adds the context to the unmount disk params
func (*UnmountDiskParams) SetDefaults ¶
func (o *UnmountDiskParams) SetDefaults()
SetDefaults hydrates default values in the unmount disk params (not the query body).
All values with no default are reset to their zero value.
func (*UnmountDiskParams) SetHTTPClient ¶
func (o *UnmountDiskParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the unmount disk params
func (*UnmountDiskParams) SetRequestBody ¶
func (o *UnmountDiskParams) SetRequestBody(requestBody *models.DiskUnmountParams)
SetRequestBody adds the requestBody to the unmount disk params
func (*UnmountDiskParams) SetTimeout ¶
func (o *UnmountDiskParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the unmount disk params
func (*UnmountDiskParams) WithContentLanguage ¶
func (o *UnmountDiskParams) WithContentLanguage(contentLanguage *string) *UnmountDiskParams
WithContentLanguage adds the contentLanguage to the unmount disk params
func (*UnmountDiskParams) WithContext ¶
func (o *UnmountDiskParams) WithContext(ctx context.Context) *UnmountDiskParams
WithContext adds the context to the unmount disk params
func (*UnmountDiskParams) WithDefaults ¶
func (o *UnmountDiskParams) WithDefaults() *UnmountDiskParams
WithDefaults hydrates default values in the unmount disk params (not the query body).
All values with no default are reset to their zero value.
func (*UnmountDiskParams) WithHTTPClient ¶
func (o *UnmountDiskParams) WithHTTPClient(client *http.Client) *UnmountDiskParams
WithHTTPClient adds the HTTPClient to the unmount disk params
func (*UnmountDiskParams) WithRequestBody ¶
func (o *UnmountDiskParams) WithRequestBody(requestBody *models.DiskUnmountParams) *UnmountDiskParams
WithRequestBody adds the requestBody to the unmount disk params
func (*UnmountDiskParams) WithTimeout ¶
func (o *UnmountDiskParams) WithTimeout(timeout time.Duration) *UnmountDiskParams
WithTimeout adds the timeout to the unmount disk params
func (*UnmountDiskParams) WriteToRequest ¶
func (o *UnmountDiskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UnmountDiskReader ¶
type UnmountDiskReader struct {
// contains filtered or unexported fields
}
UnmountDiskReader is a Reader for the UnmountDisk structure.
func (*UnmountDiskReader) ReadResponse ¶
func (o *UnmountDiskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.