disk

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachMachineDiskBadRequest

type AttachMachineDiskBadRequest struct {
}

AttachMachineDiskBadRequest handles this case with default header values.

Invalid Request - bad data

func NewAttachMachineDiskBadRequest

func NewAttachMachineDiskBadRequest() *AttachMachineDiskBadRequest

NewAttachMachineDiskBadRequest creates a AttachMachineDiskBadRequest with default headers values

func (*AttachMachineDiskBadRequest) Error

type AttachMachineDiskForbidden

type AttachMachineDiskForbidden struct {
}

AttachMachineDiskForbidden handles this case with default header values.

Forbidden

func NewAttachMachineDiskForbidden

func NewAttachMachineDiskForbidden() *AttachMachineDiskForbidden

NewAttachMachineDiskForbidden creates a AttachMachineDiskForbidden with default headers values

func (*AttachMachineDiskForbidden) Error

type AttachMachineDiskNotFound

type AttachMachineDiskNotFound struct {
}

AttachMachineDiskNotFound handles this case with default header values.

Not Found

func NewAttachMachineDiskNotFound

func NewAttachMachineDiskNotFound() *AttachMachineDiskNotFound

NewAttachMachineDiskNotFound creates a AttachMachineDiskNotFound with default headers values

func (*AttachMachineDiskNotFound) Error

func (o *AttachMachineDiskNotFound) Error() string

type AttachMachineDiskOK

type AttachMachineDiskOK struct {
	Payload *models.RequestTracker
}

AttachMachineDiskOK handles this case with default header values.

successful operation

func NewAttachMachineDiskOK

func NewAttachMachineDiskOK() *AttachMachineDiskOK

NewAttachMachineDiskOK creates a AttachMachineDiskOK with default headers values

func (*AttachMachineDiskOK) Error

func (o *AttachMachineDiskOK) Error() string

func (*AttachMachineDiskOK) GetPayload

func (o *AttachMachineDiskOK) GetPayload() *models.RequestTracker

type AttachMachineDiskParams

type AttachMachineDiskParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about

	*/
	APIVersion *string
	/*Body
	  Disk Specification instance

	*/
	Body *models.DiskAttachmentSpecification
	/*ID
	  The ID of the machine.

	*/
	ID string

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

AttachMachineDiskParams contains all the parameters to send to the API endpoint for the attach machine disk operation typically these are written to a http.Request

func NewAttachMachineDiskParams

func NewAttachMachineDiskParams() *AttachMachineDiskParams

NewAttachMachineDiskParams creates a new AttachMachineDiskParams object with the default values initialized.

func NewAttachMachineDiskParamsWithContext

func NewAttachMachineDiskParamsWithContext(ctx context.Context) *AttachMachineDiskParams

NewAttachMachineDiskParamsWithContext creates a new AttachMachineDiskParams object with the default values initialized, and the ability to set a context for a request

func NewAttachMachineDiskParamsWithHTTPClient

func NewAttachMachineDiskParamsWithHTTPClient(client *http.Client) *AttachMachineDiskParams

NewAttachMachineDiskParamsWithHTTPClient creates a new AttachMachineDiskParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAttachMachineDiskParamsWithTimeout

func NewAttachMachineDiskParamsWithTimeout(timeout time.Duration) *AttachMachineDiskParams

NewAttachMachineDiskParamsWithTimeout creates a new AttachMachineDiskParams object with the default values initialized, and the ability to set a timeout on a request

func (*AttachMachineDiskParams) SetAPIVersion

func (o *AttachMachineDiskParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the attach machine disk params

func (*AttachMachineDiskParams) SetBody

SetBody adds the body to the attach machine disk params

func (*AttachMachineDiskParams) SetContext

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

SetContext adds the context to the attach machine disk params

func (*AttachMachineDiskParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the attach machine disk params

func (*AttachMachineDiskParams) SetID

func (o *AttachMachineDiskParams) SetID(id string)

SetID adds the id to the attach machine disk params

func (*AttachMachineDiskParams) SetTimeout

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

SetTimeout adds the timeout to the attach machine disk params

func (*AttachMachineDiskParams) WithAPIVersion

func (o *AttachMachineDiskParams) WithAPIVersion(aPIVersion *string) *AttachMachineDiskParams

WithAPIVersion adds the aPIVersion to the attach machine disk params

func (*AttachMachineDiskParams) WithBody

WithBody adds the body to the attach machine disk params

func (*AttachMachineDiskParams) WithContext

WithContext adds the context to the attach machine disk params

func (*AttachMachineDiskParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the attach machine disk params

func (*AttachMachineDiskParams) WithID

WithID adds the id to the attach machine disk params

func (*AttachMachineDiskParams) WithTimeout

WithTimeout adds the timeout to the attach machine disk params

func (*AttachMachineDiskParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AttachMachineDiskReader

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

AttachMachineDiskReader is a Reader for the AttachMachineDisk structure.

func (*AttachMachineDiskReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for disk API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new disk API client.

func (*Client) AttachMachineDisk

func (a *Client) AttachMachineDisk(params *AttachMachineDiskParams) (*AttachMachineDiskOK, error)

AttachMachineDisk attaches machine disk

Attach a disk to a machine.

func (*Client) CreateBlockDevice

func (a *Client) CreateBlockDevice(params *CreateBlockDeviceParams) (*CreateBlockDeviceAccepted, error)

CreateBlockDevice creates block device

Following disk custom properties can be passed while creating a block device:

  1. dataStore: Defines name of the datastore in which the disk has to be provisioned.
  2. storagePolicy: Defines name of the storage policy in which the disk has to be provisioned. If name of the datastore is specified in the custom properties then, datastore takes precedence.
  3. provisioningType: Defines the type of provisioning. For eg. thick/thin.

func (*Client) DeleteBlockDevice

DeleteBlockDevice deletes a block device

Delete a BlockDevice

func (*Client) DeleteMachineDisk

DeleteMachineDisk deletes machine disk

Remove a disk from a given machine.

func (*Client) GetBlockDevice

func (a *Client) GetBlockDevice(params *GetBlockDeviceParams) (*GetBlockDeviceOK, error)

GetBlockDevice gets block device

Get a single BlockDevice

func (*Client) GetBlockDevices

func (a *Client) GetBlockDevices(params *GetBlockDevicesParams) (*GetBlockDevicesOK, error)

GetBlockDevices gets block devices

Get all BlockDevices

func (*Client) GetMachineDisk

func (a *Client) GetMachineDisk(params *GetMachineDiskParams) (*GetMachineDiskOK, error)

GetMachineDisk gets a machine disk

Get disk with a given id for specific machine

func (*Client) GetMachineDisks

func (a *Client) GetMachineDisks(params *GetMachineDisksParams) (*GetMachineDisksOK, error)

GetMachineDisks gets machine disks

Get all machine disks

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type CreateBlockDeviceAccepted

type CreateBlockDeviceAccepted struct {
	Payload *models.RequestTracker
}

CreateBlockDeviceAccepted handles this case with default header values.

successful operation

func NewCreateBlockDeviceAccepted

func NewCreateBlockDeviceAccepted() *CreateBlockDeviceAccepted

NewCreateBlockDeviceAccepted creates a CreateBlockDeviceAccepted with default headers values

func (*CreateBlockDeviceAccepted) Error

func (o *CreateBlockDeviceAccepted) Error() string

func (*CreateBlockDeviceAccepted) GetPayload

type CreateBlockDeviceBadRequest

type CreateBlockDeviceBadRequest struct {
}

CreateBlockDeviceBadRequest handles this case with default header values.

Invalid Request - bad data

func NewCreateBlockDeviceBadRequest

func NewCreateBlockDeviceBadRequest() *CreateBlockDeviceBadRequest

NewCreateBlockDeviceBadRequest creates a CreateBlockDeviceBadRequest with default headers values

func (*CreateBlockDeviceBadRequest) Error

type CreateBlockDeviceForbidden

type CreateBlockDeviceForbidden struct {
}

CreateBlockDeviceForbidden handles this case with default header values.

Forbidden

func NewCreateBlockDeviceForbidden

func NewCreateBlockDeviceForbidden() *CreateBlockDeviceForbidden

NewCreateBlockDeviceForbidden creates a CreateBlockDeviceForbidden with default headers values

func (*CreateBlockDeviceForbidden) Error

type CreateBlockDeviceParams

type CreateBlockDeviceParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about

	*/
	APIVersion *string
	/*Body
	  Disk Specification instance

	*/
	Body *models.BlockDeviceSpecification

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

CreateBlockDeviceParams contains all the parameters to send to the API endpoint for the create block device operation typically these are written to a http.Request

func NewCreateBlockDeviceParams

func NewCreateBlockDeviceParams() *CreateBlockDeviceParams

NewCreateBlockDeviceParams creates a new CreateBlockDeviceParams object with the default values initialized.

func NewCreateBlockDeviceParamsWithContext

func NewCreateBlockDeviceParamsWithContext(ctx context.Context) *CreateBlockDeviceParams

NewCreateBlockDeviceParamsWithContext creates a new CreateBlockDeviceParams object with the default values initialized, and the ability to set a context for a request

func NewCreateBlockDeviceParamsWithHTTPClient

func NewCreateBlockDeviceParamsWithHTTPClient(client *http.Client) *CreateBlockDeviceParams

NewCreateBlockDeviceParamsWithHTTPClient creates a new CreateBlockDeviceParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateBlockDeviceParamsWithTimeout

func NewCreateBlockDeviceParamsWithTimeout(timeout time.Duration) *CreateBlockDeviceParams

NewCreateBlockDeviceParamsWithTimeout creates a new CreateBlockDeviceParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateBlockDeviceParams) SetAPIVersion

func (o *CreateBlockDeviceParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the create block device params

func (*CreateBlockDeviceParams) SetBody

SetBody adds the body to the create block device params

func (*CreateBlockDeviceParams) SetContext

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

SetContext adds the context to the create block device params

func (*CreateBlockDeviceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create block device params

func (*CreateBlockDeviceParams) SetTimeout

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

SetTimeout adds the timeout to the create block device params

func (*CreateBlockDeviceParams) WithAPIVersion

func (o *CreateBlockDeviceParams) WithAPIVersion(aPIVersion *string) *CreateBlockDeviceParams

WithAPIVersion adds the aPIVersion to the create block device params

func (*CreateBlockDeviceParams) WithBody

WithBody adds the body to the create block device params

func (*CreateBlockDeviceParams) WithContext

WithContext adds the context to the create block device params

func (*CreateBlockDeviceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create block device params

func (*CreateBlockDeviceParams) WithTimeout

WithTimeout adds the timeout to the create block device params

func (*CreateBlockDeviceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateBlockDeviceReader

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

CreateBlockDeviceReader is a Reader for the CreateBlockDevice structure.

func (*CreateBlockDeviceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteBlockDeviceAccepted

type DeleteBlockDeviceAccepted struct {
	Payload *models.RequestTracker
}

DeleteBlockDeviceAccepted handles this case with default header values.

successful operation

func NewDeleteBlockDeviceAccepted

func NewDeleteBlockDeviceAccepted() *DeleteBlockDeviceAccepted

NewDeleteBlockDeviceAccepted creates a DeleteBlockDeviceAccepted with default headers values

func (*DeleteBlockDeviceAccepted) Error

func (o *DeleteBlockDeviceAccepted) Error() string

func (*DeleteBlockDeviceAccepted) GetPayload

type DeleteBlockDeviceForbidden

type DeleteBlockDeviceForbidden struct {
}

DeleteBlockDeviceForbidden handles this case with default header values.

Forbidden

func NewDeleteBlockDeviceForbidden

func NewDeleteBlockDeviceForbidden() *DeleteBlockDeviceForbidden

NewDeleteBlockDeviceForbidden creates a DeleteBlockDeviceForbidden with default headers values

func (*DeleteBlockDeviceForbidden) Error

type DeleteBlockDeviceNoContent added in v0.2.1

type DeleteBlockDeviceNoContent struct {
}

DeleteBlockDeviceNoContent handles this case with default header values.

No Content

func NewDeleteBlockDeviceNoContent added in v0.2.1

func NewDeleteBlockDeviceNoContent() *DeleteBlockDeviceNoContent

NewDeleteBlockDeviceNoContent creates a DeleteBlockDeviceNoContent with default headers values

func (*DeleteBlockDeviceNoContent) Error added in v0.2.1

type DeleteBlockDeviceParams

type DeleteBlockDeviceParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about

	*/
	APIVersion *string
	/*ID
	  The ID of the block device.

	*/
	ID string

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

DeleteBlockDeviceParams contains all the parameters to send to the API endpoint for the delete block device operation typically these are written to a http.Request

func NewDeleteBlockDeviceParams

func NewDeleteBlockDeviceParams() *DeleteBlockDeviceParams

NewDeleteBlockDeviceParams creates a new DeleteBlockDeviceParams object with the default values initialized.

func NewDeleteBlockDeviceParamsWithContext

func NewDeleteBlockDeviceParamsWithContext(ctx context.Context) *DeleteBlockDeviceParams

NewDeleteBlockDeviceParamsWithContext creates a new DeleteBlockDeviceParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteBlockDeviceParamsWithHTTPClient

func NewDeleteBlockDeviceParamsWithHTTPClient(client *http.Client) *DeleteBlockDeviceParams

NewDeleteBlockDeviceParamsWithHTTPClient creates a new DeleteBlockDeviceParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteBlockDeviceParamsWithTimeout

func NewDeleteBlockDeviceParamsWithTimeout(timeout time.Duration) *DeleteBlockDeviceParams

NewDeleteBlockDeviceParamsWithTimeout creates a new DeleteBlockDeviceParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteBlockDeviceParams) SetAPIVersion

func (o *DeleteBlockDeviceParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the delete block device params

func (*DeleteBlockDeviceParams) SetContext

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

SetContext adds the context to the delete block device params

func (*DeleteBlockDeviceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete block device params

func (*DeleteBlockDeviceParams) SetID

func (o *DeleteBlockDeviceParams) SetID(id string)

SetID adds the id to the delete block device params

func (*DeleteBlockDeviceParams) SetTimeout

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

SetTimeout adds the timeout to the delete block device params

func (*DeleteBlockDeviceParams) WithAPIVersion

func (o *DeleteBlockDeviceParams) WithAPIVersion(aPIVersion *string) *DeleteBlockDeviceParams

WithAPIVersion adds the aPIVersion to the delete block device params

func (*DeleteBlockDeviceParams) WithContext

WithContext adds the context to the delete block device params

func (*DeleteBlockDeviceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete block device params

func (*DeleteBlockDeviceParams) WithID

WithID adds the id to the delete block device params

func (*DeleteBlockDeviceParams) WithTimeout

WithTimeout adds the timeout to the delete block device params

func (*DeleteBlockDeviceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteBlockDeviceReader

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

DeleteBlockDeviceReader is a Reader for the DeleteBlockDevice structure.

func (*DeleteBlockDeviceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteMachineDiskAccepted

type DeleteMachineDiskAccepted struct {
	Payload *models.RequestTracker
}

DeleteMachineDiskAccepted handles this case with default header values.

successful operation

func NewDeleteMachineDiskAccepted

func NewDeleteMachineDiskAccepted() *DeleteMachineDiskAccepted

NewDeleteMachineDiskAccepted creates a DeleteMachineDiskAccepted with default headers values

func (*DeleteMachineDiskAccepted) Error

func (o *DeleteMachineDiskAccepted) Error() string

func (*DeleteMachineDiskAccepted) GetPayload

type DeleteMachineDiskForbidden

type DeleteMachineDiskForbidden struct {
}

DeleteMachineDiskForbidden handles this case with default header values.

Forbidden

func NewDeleteMachineDiskForbidden

func NewDeleteMachineDiskForbidden() *DeleteMachineDiskForbidden

NewDeleteMachineDiskForbidden creates a DeleteMachineDiskForbidden with default headers values

func (*DeleteMachineDiskForbidden) Error

type DeleteMachineDiskNoContent added in v0.2.2

type DeleteMachineDiskNoContent struct {
}

DeleteMachineDiskNoContent handles this case with default header values.

No Content

func NewDeleteMachineDiskNoContent added in v0.2.2

func NewDeleteMachineDiskNoContent() *DeleteMachineDiskNoContent

NewDeleteMachineDiskNoContent creates a DeleteMachineDiskNoContent with default headers values

func (*DeleteMachineDiskNoContent) Error added in v0.2.2

type DeleteMachineDiskParams

type DeleteMachineDiskParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about

	*/
	APIVersion *string
	/*ID
	  The ID of the machine.

	*/
	ID string
	/*Id1
	  The ID of the disk.

	*/
	Id1 string

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

DeleteMachineDiskParams contains all the parameters to send to the API endpoint for the delete machine disk operation typically these are written to a http.Request

func NewDeleteMachineDiskParams

func NewDeleteMachineDiskParams() *DeleteMachineDiskParams

NewDeleteMachineDiskParams creates a new DeleteMachineDiskParams object with the default values initialized.

func NewDeleteMachineDiskParamsWithContext

func NewDeleteMachineDiskParamsWithContext(ctx context.Context) *DeleteMachineDiskParams

NewDeleteMachineDiskParamsWithContext creates a new DeleteMachineDiskParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteMachineDiskParamsWithHTTPClient

func NewDeleteMachineDiskParamsWithHTTPClient(client *http.Client) *DeleteMachineDiskParams

NewDeleteMachineDiskParamsWithHTTPClient creates a new DeleteMachineDiskParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteMachineDiskParamsWithTimeout

func NewDeleteMachineDiskParamsWithTimeout(timeout time.Duration) *DeleteMachineDiskParams

NewDeleteMachineDiskParamsWithTimeout creates a new DeleteMachineDiskParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteMachineDiskParams) SetAPIVersion

func (o *DeleteMachineDiskParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the delete machine disk params

func (*DeleteMachineDiskParams) SetContext

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

SetContext adds the context to the delete machine disk params

func (*DeleteMachineDiskParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete machine disk params

func (*DeleteMachineDiskParams) SetID

func (o *DeleteMachineDiskParams) SetID(id string)

SetID adds the id to the delete machine disk params

func (*DeleteMachineDiskParams) SetId1

func (o *DeleteMachineDiskParams) SetId1(id1 string)

SetId1 adds the id1 to the delete machine disk params

func (*DeleteMachineDiskParams) SetTimeout

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

SetTimeout adds the timeout to the delete machine disk params

func (*DeleteMachineDiskParams) WithAPIVersion

func (o *DeleteMachineDiskParams) WithAPIVersion(aPIVersion *string) *DeleteMachineDiskParams

WithAPIVersion adds the aPIVersion to the delete machine disk params

func (*DeleteMachineDiskParams) WithContext

WithContext adds the context to the delete machine disk params

func (*DeleteMachineDiskParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete machine disk params

func (*DeleteMachineDiskParams) WithID

WithID adds the id to the delete machine disk params

func (*DeleteMachineDiskParams) WithId1

WithId1 adds the id1 to the delete machine disk params

func (*DeleteMachineDiskParams) WithTimeout

WithTimeout adds the timeout to the delete machine disk params

func (*DeleteMachineDiskParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteMachineDiskReader

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

DeleteMachineDiskReader is a Reader for the DeleteMachineDisk structure.

func (*DeleteMachineDiskReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetBlockDeviceForbidden

type GetBlockDeviceForbidden struct {
}

GetBlockDeviceForbidden handles this case with default header values.

Forbidden

func NewGetBlockDeviceForbidden

func NewGetBlockDeviceForbidden() *GetBlockDeviceForbidden

NewGetBlockDeviceForbidden creates a GetBlockDeviceForbidden with default headers values

func (*GetBlockDeviceForbidden) Error

func (o *GetBlockDeviceForbidden) Error() string

type GetBlockDeviceOK

type GetBlockDeviceOK struct {
	Payload *models.BlockDevice
}

GetBlockDeviceOK handles this case with default header values.

successful operation

func NewGetBlockDeviceOK

func NewGetBlockDeviceOK() *GetBlockDeviceOK

NewGetBlockDeviceOK creates a GetBlockDeviceOK with default headers values

func (*GetBlockDeviceOK) Error

func (o *GetBlockDeviceOK) Error() string

func (*GetBlockDeviceOK) GetPayload

func (o *GetBlockDeviceOK) GetPayload() *models.BlockDevice

type GetBlockDeviceParams

type GetBlockDeviceParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about

	*/
	APIVersion *string
	/*ID
	  The ID of the block device.

	*/
	ID string

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

GetBlockDeviceParams contains all the parameters to send to the API endpoint for the get block device operation typically these are written to a http.Request

func NewGetBlockDeviceParams

func NewGetBlockDeviceParams() *GetBlockDeviceParams

NewGetBlockDeviceParams creates a new GetBlockDeviceParams object with the default values initialized.

func NewGetBlockDeviceParamsWithContext

func NewGetBlockDeviceParamsWithContext(ctx context.Context) *GetBlockDeviceParams

NewGetBlockDeviceParamsWithContext creates a new GetBlockDeviceParams object with the default values initialized, and the ability to set a context for a request

func NewGetBlockDeviceParamsWithHTTPClient

func NewGetBlockDeviceParamsWithHTTPClient(client *http.Client) *GetBlockDeviceParams

NewGetBlockDeviceParamsWithHTTPClient creates a new GetBlockDeviceParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetBlockDeviceParamsWithTimeout

func NewGetBlockDeviceParamsWithTimeout(timeout time.Duration) *GetBlockDeviceParams

NewGetBlockDeviceParamsWithTimeout creates a new GetBlockDeviceParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetBlockDeviceParams) SetAPIVersion

func (o *GetBlockDeviceParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get block device params

func (*GetBlockDeviceParams) SetContext

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

SetContext adds the context to the get block device params

func (*GetBlockDeviceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get block device params

func (*GetBlockDeviceParams) SetID

func (o *GetBlockDeviceParams) SetID(id string)

SetID adds the id to the get block device params

func (*GetBlockDeviceParams) SetTimeout

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

SetTimeout adds the timeout to the get block device params

func (*GetBlockDeviceParams) WithAPIVersion

func (o *GetBlockDeviceParams) WithAPIVersion(aPIVersion *string) *GetBlockDeviceParams

WithAPIVersion adds the aPIVersion to the get block device params

func (*GetBlockDeviceParams) WithContext

WithContext adds the context to the get block device params

func (*GetBlockDeviceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get block device params

func (*GetBlockDeviceParams) WithID

WithID adds the id to the get block device params

func (*GetBlockDeviceParams) WithTimeout

func (o *GetBlockDeviceParams) WithTimeout(timeout time.Duration) *GetBlockDeviceParams

WithTimeout adds the timeout to the get block device params

func (*GetBlockDeviceParams) WriteToRequest

func (o *GetBlockDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetBlockDeviceReader

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

GetBlockDeviceReader is a Reader for the GetBlockDevice structure.

func (*GetBlockDeviceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetBlockDevicesForbidden

type GetBlockDevicesForbidden struct {
}

GetBlockDevicesForbidden handles this case with default header values.

Forbidden

func NewGetBlockDevicesForbidden

func NewGetBlockDevicesForbidden() *GetBlockDevicesForbidden

NewGetBlockDevicesForbidden creates a GetBlockDevicesForbidden with default headers values

func (*GetBlockDevicesForbidden) Error

func (o *GetBlockDevicesForbidden) Error() string

type GetBlockDevicesOK

type GetBlockDevicesOK struct {
	Payload *models.BlockDeviceResult
}

GetBlockDevicesOK handles this case with default header values.

successful operation

func NewGetBlockDevicesOK

func NewGetBlockDevicesOK() *GetBlockDevicesOK

NewGetBlockDevicesOK creates a GetBlockDevicesOK with default headers values

func (*GetBlockDevicesOK) Error

func (o *GetBlockDevicesOK) Error() string

func (*GetBlockDevicesOK) GetPayload

func (o *GetBlockDevicesOK) GetPayload() *models.BlockDeviceResult

type GetBlockDevicesParams

type GetBlockDevicesParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about

	*/
	APIVersion *string

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

GetBlockDevicesParams contains all the parameters to send to the API endpoint for the get block devices operation typically these are written to a http.Request

func NewGetBlockDevicesParams

func NewGetBlockDevicesParams() *GetBlockDevicesParams

NewGetBlockDevicesParams creates a new GetBlockDevicesParams object with the default values initialized.

func NewGetBlockDevicesParamsWithContext

func NewGetBlockDevicesParamsWithContext(ctx context.Context) *GetBlockDevicesParams

NewGetBlockDevicesParamsWithContext creates a new GetBlockDevicesParams object with the default values initialized, and the ability to set a context for a request

func NewGetBlockDevicesParamsWithHTTPClient

func NewGetBlockDevicesParamsWithHTTPClient(client *http.Client) *GetBlockDevicesParams

NewGetBlockDevicesParamsWithHTTPClient creates a new GetBlockDevicesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetBlockDevicesParamsWithTimeout

func NewGetBlockDevicesParamsWithTimeout(timeout time.Duration) *GetBlockDevicesParams

NewGetBlockDevicesParamsWithTimeout creates a new GetBlockDevicesParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetBlockDevicesParams) SetAPIVersion

func (o *GetBlockDevicesParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get block devices params

func (*GetBlockDevicesParams) SetContext

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

SetContext adds the context to the get block devices params

func (*GetBlockDevicesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get block devices params

func (*GetBlockDevicesParams) SetTimeout

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

SetTimeout adds the timeout to the get block devices params

func (*GetBlockDevicesParams) WithAPIVersion

func (o *GetBlockDevicesParams) WithAPIVersion(aPIVersion *string) *GetBlockDevicesParams

WithAPIVersion adds the aPIVersion to the get block devices params

func (*GetBlockDevicesParams) WithContext

WithContext adds the context to the get block devices params

func (*GetBlockDevicesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get block devices params

func (*GetBlockDevicesParams) WithTimeout

func (o *GetBlockDevicesParams) WithTimeout(timeout time.Duration) *GetBlockDevicesParams

WithTimeout adds the timeout to the get block devices params

func (*GetBlockDevicesParams) WriteToRequest

func (o *GetBlockDevicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetBlockDevicesReader

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

GetBlockDevicesReader is a Reader for the GetBlockDevices structure.

func (*GetBlockDevicesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetMachineDiskForbidden

type GetMachineDiskForbidden struct {
}

GetMachineDiskForbidden handles this case with default header values.

Forbidden

func NewGetMachineDiskForbidden

func NewGetMachineDiskForbidden() *GetMachineDiskForbidden

NewGetMachineDiskForbidden creates a GetMachineDiskForbidden with default headers values

func (*GetMachineDiskForbidden) Error

func (o *GetMachineDiskForbidden) Error() string

type GetMachineDiskNotFound

type GetMachineDiskNotFound struct {
}

GetMachineDiskNotFound handles this case with default header values.

Not Found

func NewGetMachineDiskNotFound

func NewGetMachineDiskNotFound() *GetMachineDiskNotFound

NewGetMachineDiskNotFound creates a GetMachineDiskNotFound with default headers values

func (*GetMachineDiskNotFound) Error

func (o *GetMachineDiskNotFound) Error() string

type GetMachineDiskOK

type GetMachineDiskOK struct {
	Payload *models.BlockDevice
}

GetMachineDiskOK handles this case with default header values.

successful operation

func NewGetMachineDiskOK

func NewGetMachineDiskOK() *GetMachineDiskOK

NewGetMachineDiskOK creates a GetMachineDiskOK with default headers values

func (*GetMachineDiskOK) Error

func (o *GetMachineDiskOK) Error() string

func (*GetMachineDiskOK) GetPayload

func (o *GetMachineDiskOK) GetPayload() *models.BlockDevice

type GetMachineDiskParams

type GetMachineDiskParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about

	*/
	APIVersion *string
	/*ID
	  The ID of the machine.

	*/
	ID string
	/*Id1
	  The ID of the disk.

	*/
	Id1 string

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

GetMachineDiskParams contains all the parameters to send to the API endpoint for the get machine disk operation typically these are written to a http.Request

func NewGetMachineDiskParams

func NewGetMachineDiskParams() *GetMachineDiskParams

NewGetMachineDiskParams creates a new GetMachineDiskParams object with the default values initialized.

func NewGetMachineDiskParamsWithContext

func NewGetMachineDiskParamsWithContext(ctx context.Context) *GetMachineDiskParams

NewGetMachineDiskParamsWithContext creates a new GetMachineDiskParams object with the default values initialized, and the ability to set a context for a request

func NewGetMachineDiskParamsWithHTTPClient

func NewGetMachineDiskParamsWithHTTPClient(client *http.Client) *GetMachineDiskParams

NewGetMachineDiskParamsWithHTTPClient creates a new GetMachineDiskParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetMachineDiskParamsWithTimeout

func NewGetMachineDiskParamsWithTimeout(timeout time.Duration) *GetMachineDiskParams

NewGetMachineDiskParamsWithTimeout creates a new GetMachineDiskParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetMachineDiskParams) SetAPIVersion

func (o *GetMachineDiskParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get machine disk params

func (*GetMachineDiskParams) SetContext

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

SetContext adds the context to the get machine disk params

func (*GetMachineDiskParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get machine disk params

func (*GetMachineDiskParams) SetID

func (o *GetMachineDiskParams) SetID(id string)

SetID adds the id to the get machine disk params

func (*GetMachineDiskParams) SetId1

func (o *GetMachineDiskParams) SetId1(id1 string)

SetId1 adds the id1 to the get machine disk params

func (*GetMachineDiskParams) SetTimeout

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

SetTimeout adds the timeout to the get machine disk params

func (*GetMachineDiskParams) WithAPIVersion

func (o *GetMachineDiskParams) WithAPIVersion(aPIVersion *string) *GetMachineDiskParams

WithAPIVersion adds the aPIVersion to the get machine disk params

func (*GetMachineDiskParams) WithContext

WithContext adds the context to the get machine disk params

func (*GetMachineDiskParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get machine disk params

func (*GetMachineDiskParams) WithID

WithID adds the id to the get machine disk params

func (*GetMachineDiskParams) WithId1

WithId1 adds the id1 to the get machine disk params

func (*GetMachineDiskParams) WithTimeout

func (o *GetMachineDiskParams) WithTimeout(timeout time.Duration) *GetMachineDiskParams

WithTimeout adds the timeout to the get machine disk params

func (*GetMachineDiskParams) WriteToRequest

func (o *GetMachineDiskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetMachineDiskReader

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

GetMachineDiskReader is a Reader for the GetMachineDisk structure.

func (*GetMachineDiskReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetMachineDisksForbidden

type GetMachineDisksForbidden struct {
}

GetMachineDisksForbidden handles this case with default header values.

Forbidden

func NewGetMachineDisksForbidden

func NewGetMachineDisksForbidden() *GetMachineDisksForbidden

NewGetMachineDisksForbidden creates a GetMachineDisksForbidden with default headers values

func (*GetMachineDisksForbidden) Error

func (o *GetMachineDisksForbidden) Error() string

type GetMachineDisksNotFound

type GetMachineDisksNotFound struct {
}

GetMachineDisksNotFound handles this case with default header values.

Not Found

func NewGetMachineDisksNotFound

func NewGetMachineDisksNotFound() *GetMachineDisksNotFound

NewGetMachineDisksNotFound creates a GetMachineDisksNotFound with default headers values

func (*GetMachineDisksNotFound) Error

func (o *GetMachineDisksNotFound) Error() string

type GetMachineDisksOK

type GetMachineDisksOK struct {
	Payload *models.BlockDeviceResult
}

GetMachineDisksOK handles this case with default header values.

successful operation

func NewGetMachineDisksOK

func NewGetMachineDisksOK() *GetMachineDisksOK

NewGetMachineDisksOK creates a GetMachineDisksOK with default headers values

func (*GetMachineDisksOK) Error

func (o *GetMachineDisksOK) Error() string

func (*GetMachineDisksOK) GetPayload

func (o *GetMachineDisksOK) GetPayload() *models.BlockDeviceResult

type GetMachineDisksParams

type GetMachineDisksParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about

	*/
	APIVersion *string
	/*ID
	  The ID of the machine.

	*/
	ID string

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

GetMachineDisksParams contains all the parameters to send to the API endpoint for the get machine disks operation typically these are written to a http.Request

func NewGetMachineDisksParams

func NewGetMachineDisksParams() *GetMachineDisksParams

NewGetMachineDisksParams creates a new GetMachineDisksParams object with the default values initialized.

func NewGetMachineDisksParamsWithContext

func NewGetMachineDisksParamsWithContext(ctx context.Context) *GetMachineDisksParams

NewGetMachineDisksParamsWithContext creates a new GetMachineDisksParams object with the default values initialized, and the ability to set a context for a request

func NewGetMachineDisksParamsWithHTTPClient

func NewGetMachineDisksParamsWithHTTPClient(client *http.Client) *GetMachineDisksParams

NewGetMachineDisksParamsWithHTTPClient creates a new GetMachineDisksParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetMachineDisksParamsWithTimeout

func NewGetMachineDisksParamsWithTimeout(timeout time.Duration) *GetMachineDisksParams

NewGetMachineDisksParamsWithTimeout creates a new GetMachineDisksParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetMachineDisksParams) SetAPIVersion

func (o *GetMachineDisksParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get machine disks params

func (*GetMachineDisksParams) SetContext

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

SetContext adds the context to the get machine disks params

func (*GetMachineDisksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get machine disks params

func (*GetMachineDisksParams) SetID

func (o *GetMachineDisksParams) SetID(id string)

SetID adds the id to the get machine disks params

func (*GetMachineDisksParams) SetTimeout

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

SetTimeout adds the timeout to the get machine disks params

func (*GetMachineDisksParams) WithAPIVersion

func (o *GetMachineDisksParams) WithAPIVersion(aPIVersion *string) *GetMachineDisksParams

WithAPIVersion adds the aPIVersion to the get machine disks params

func (*GetMachineDisksParams) WithContext

WithContext adds the context to the get machine disks params

func (*GetMachineDisksParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get machine disks params

func (*GetMachineDisksParams) WithID

WithID adds the id to the get machine disks params

func (*GetMachineDisksParams) WithTimeout

func (o *GetMachineDisksParams) WithTimeout(timeout time.Duration) *GetMachineDisksParams

WithTimeout adds the timeout to the get machine disks params

func (*GetMachineDisksParams) WriteToRequest

func (o *GetMachineDisksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetMachineDisksReader

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

GetMachineDisksReader is a Reader for the GetMachineDisks structure.

func (*GetMachineDisksReader) ReadResponse

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