disk

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: ISC 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 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

type GetDisksBadRequest struct {
	Payload *models.ErrorBody
}
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

type GetDisksConnectionBadRequest struct {
	Payload *models.ErrorBody
}
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 (*GetDisksConnectionBadRequest) GetPayload

type GetDisksConnectionInternalServerError added in v1.10.0

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

Server error

func NewGetDisksConnectionInternalServerError added in v1.10.0

func NewGetDisksConnectionInternalServerError() *GetDisksConnectionInternalServerError

NewGetDisksConnectionInternalServerError creates a GetDisksConnectionInternalServerError with default headers values

func (*GetDisksConnectionInternalServerError) Error added in v1.10.0

func (*GetDisksConnectionInternalServerError) GetPayload added in v1.10.0

type GetDisksConnectionNotFound added in v1.10.0

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

Not found

func NewGetDisksConnectionNotFound added in v1.10.0

func NewGetDisksConnectionNotFound() *GetDisksConnectionNotFound

NewGetDisksConnectionNotFound creates a GetDisksConnectionNotFound with default headers values

func (*GetDisksConnectionNotFound) Error added in v1.10.0

func (*GetDisksConnectionNotFound) GetPayload added in v1.10.0

func (o *GetDisksConnectionNotFound) GetPayload() *models.ErrorBody

type GetDisksConnectionOK

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

Ok

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

WithContext adds the context to the get disks connection params

func (*GetDisksConnectionParams) WithDefaults

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

WithRequestBody adds the requestBody to the get disks connection params

func (*GetDisksConnectionParams) WithTimeout

WithTimeout adds the timeout to the get disks connection params

func (*GetDisksConnectionParams) WriteToRequest

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 added in v1.10.0

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

Server error

func NewGetDisksInternalServerError added in v1.10.0

func NewGetDisksInternalServerError() *GetDisksInternalServerError

NewGetDisksInternalServerError creates a GetDisksInternalServerError with default headers values

func (*GetDisksInternalServerError) Error added in v1.10.0

func (*GetDisksInternalServerError) GetPayload added in v1.10.0

func (o *GetDisksInternalServerError) GetPayload() *models.ErrorBody

type GetDisksNotFound added in v1.10.0

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

Not found

func NewGetDisksNotFound added in v1.10.0

func NewGetDisksNotFound() *GetDisksNotFound

NewGetDisksNotFound creates a GetDisksNotFound with default headers values

func (*GetDisksNotFound) Error added in v1.10.0

func (o *GetDisksNotFound) Error() string

func (*GetDisksNotFound) GetPayload added in v1.10.0

func (o *GetDisksNotFound) GetPayload() *models.ErrorBody

type GetDisksOK

type GetDisksOK struct {
	Payload []*models.Disk
}
GetDisksOK describes a response with status code 200, with default header values.

Ok

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

type MountDiskBadRequest struct {
	Payload *models.ErrorBody
}
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 added in v1.10.0

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

Server error

func NewMountDiskInternalServerError added in v1.10.0

func NewMountDiskInternalServerError() *MountDiskInternalServerError

NewMountDiskInternalServerError creates a MountDiskInternalServerError with default headers values

func (*MountDiskInternalServerError) Error added in v1.10.0

func (*MountDiskInternalServerError) GetPayload added in v1.10.0

type MountDiskNotFound added in v1.10.0

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

Not found

func NewMountDiskNotFound added in v1.10.0

func NewMountDiskNotFound() *MountDiskNotFound

NewMountDiskNotFound creates a MountDiskNotFound with default headers values

func (*MountDiskNotFound) Error added in v1.10.0

func (o *MountDiskNotFound) Error() string

func (*MountDiskNotFound) GetPayload added in v1.10.0

func (o *MountDiskNotFound) GetPayload() *models.ErrorBody

type MountDiskOK

type MountDiskOK struct {
	Payload []*models.WithTaskDisk
}
MountDiskOK describes a response with status code 200, with default header values.

Ok

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

type UnmountDiskBadRequest struct {
	Payload *models.ErrorBody
}
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 added in v1.10.0

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

Server error

func NewUnmountDiskInternalServerError added in v1.10.0

func NewUnmountDiskInternalServerError() *UnmountDiskInternalServerError

NewUnmountDiskInternalServerError creates a UnmountDiskInternalServerError with default headers values

func (*UnmountDiskInternalServerError) Error added in v1.10.0

func (*UnmountDiskInternalServerError) GetPayload added in v1.10.0

type UnmountDiskNotFound added in v1.10.0

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

Not found

func NewUnmountDiskNotFound added in v1.10.0

func NewUnmountDiskNotFound() *UnmountDiskNotFound

NewUnmountDiskNotFound creates a UnmountDiskNotFound with default headers values

func (*UnmountDiskNotFound) Error added in v1.10.0

func (o *UnmountDiskNotFound) Error() string

func (*UnmountDiskNotFound) GetPayload added in v1.10.0

func (o *UnmountDiskNotFound) GetPayload() *models.ErrorBody

type UnmountDiskOK

type UnmountDiskOK struct {
	Payload []*models.WithTaskDisk
}
UnmountDiskOK describes a response with status code 200, with default header values.

Ok

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.

Jump to

Keyboard shortcuts

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