vm_disk

package
v0.0.0-...-67cd95e Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT 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 vm disk API

func (*Client) GetVMDisks

func (a *Client) GetVMDisks(params *GetVMDisksParams, opts ...ClientOption) (*GetVMDisksOK, error)

GetVMDisks get Vm disks API

func (*Client) GetVMDisksConnection

func (a *Client) GetVMDisksConnection(params *GetVMDisksConnectionParams, opts ...ClientOption) (*GetVMDisksConnectionOK, error)

GetVMDisksConnection get Vm disks connection API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetVMDisks(params *GetVMDisksParams, opts ...ClientOption) (*GetVMDisksOK, error)

	GetVMDisksConnection(params *GetVMDisksConnectionParams, opts ...ClientOption) (*GetVMDisksConnectionOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new vm disk API client.

type GetVMDisksBadRequest

type GetVMDisksBadRequest struct {
	Payload string
}
GetVMDisksBadRequest describes a response with status code 400, with default header values.

GetVMDisksBadRequest get Vm disks bad request

func NewGetVMDisksBadRequest

func NewGetVMDisksBadRequest() *GetVMDisksBadRequest

NewGetVMDisksBadRequest creates a GetVMDisksBadRequest with default headers values

func (*GetVMDisksBadRequest) Error

func (o *GetVMDisksBadRequest) Error() string

func (*GetVMDisksBadRequest) GetPayload

func (o *GetVMDisksBadRequest) GetPayload() string

type GetVMDisksConnectionBadRequest

type GetVMDisksConnectionBadRequest struct {
	Payload string
}
GetVMDisksConnectionBadRequest describes a response with status code 400, with default header values.

GetVMDisksConnectionBadRequest get Vm disks connection bad request

func NewGetVMDisksConnectionBadRequest

func NewGetVMDisksConnectionBadRequest() *GetVMDisksConnectionBadRequest

NewGetVMDisksConnectionBadRequest creates a GetVMDisksConnectionBadRequest with default headers values

func (*GetVMDisksConnectionBadRequest) Error

func (*GetVMDisksConnectionBadRequest) GetPayload

func (o *GetVMDisksConnectionBadRequest) GetPayload() string

type GetVMDisksConnectionOK

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

Ok

func NewGetVMDisksConnectionOK

func NewGetVMDisksConnectionOK() *GetVMDisksConnectionOK

NewGetVMDisksConnectionOK creates a GetVMDisksConnectionOK with default headers values

func (*GetVMDisksConnectionOK) Error

func (o *GetVMDisksConnectionOK) Error() string

func (*GetVMDisksConnectionOK) GetPayload

type GetVMDisksConnectionParams

type GetVMDisksConnectionParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetVMDisksConnectionRequestBody

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

GetVMDisksConnectionParams contains all the parameters to send to the API endpoint

for the get Vm disks connection operation.

Typically these are written to a http.Request.

func NewGetVMDisksConnectionParams

func NewGetVMDisksConnectionParams() *GetVMDisksConnectionParams

NewGetVMDisksConnectionParams creates a new GetVMDisksConnectionParams 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 NewGetVMDisksConnectionParamsWithContext

func NewGetVMDisksConnectionParamsWithContext(ctx context.Context) *GetVMDisksConnectionParams

NewGetVMDisksConnectionParamsWithContext creates a new GetVMDisksConnectionParams object with the ability to set a context for a request.

func NewGetVMDisksConnectionParamsWithHTTPClient

func NewGetVMDisksConnectionParamsWithHTTPClient(client *http.Client) *GetVMDisksConnectionParams

NewGetVMDisksConnectionParamsWithHTTPClient creates a new GetVMDisksConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetVMDisksConnectionParamsWithTimeout

func NewGetVMDisksConnectionParamsWithTimeout(timeout time.Duration) *GetVMDisksConnectionParams

NewGetVMDisksConnectionParamsWithTimeout creates a new GetVMDisksConnectionParams object with the ability to set a timeout on a request.

func (*GetVMDisksConnectionParams) SetContentLanguage

func (o *GetVMDisksConnectionParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get Vm disks connection params

func (*GetVMDisksConnectionParams) SetContext

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

SetContext adds the context to the get Vm disks connection params

func (*GetVMDisksConnectionParams) SetDefaults

func (o *GetVMDisksConnectionParams) SetDefaults()

SetDefaults hydrates default values in the get Vm disks connection params (not the query body).

All values with no default are reset to their zero value.

func (*GetVMDisksConnectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get Vm disks connection params

func (*GetVMDisksConnectionParams) SetRequestBody

func (o *GetVMDisksConnectionParams) SetRequestBody(requestBody *models.GetVMDisksConnectionRequestBody)

SetRequestBody adds the requestBody to the get Vm disks connection params

func (*GetVMDisksConnectionParams) SetTimeout

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

SetTimeout adds the timeout to the get Vm disks connection params

func (*GetVMDisksConnectionParams) WithContentLanguage

func (o *GetVMDisksConnectionParams) WithContentLanguage(contentLanguage *string) *GetVMDisksConnectionParams

WithContentLanguage adds the contentLanguage to the get Vm disks connection params

func (*GetVMDisksConnectionParams) WithContext

WithContext adds the context to the get Vm disks connection params

func (*GetVMDisksConnectionParams) WithDefaults

WithDefaults hydrates default values in the get Vm disks connection params (not the query body).

All values with no default are reset to their zero value.

func (*GetVMDisksConnectionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get Vm disks connection params

func (*GetVMDisksConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get Vm disks connection params

func (*GetVMDisksConnectionParams) WithTimeout

WithTimeout adds the timeout to the get Vm disks connection params

func (*GetVMDisksConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetVMDisksConnectionReader

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

GetVMDisksConnectionReader is a Reader for the GetVMDisksConnection structure.

func (*GetVMDisksConnectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetVMDisksOK

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

Ok

func NewGetVMDisksOK

func NewGetVMDisksOK() *GetVMDisksOK

NewGetVMDisksOK creates a GetVMDisksOK with default headers values

func (*GetVMDisksOK) Error

func (o *GetVMDisksOK) Error() string

func (*GetVMDisksOK) GetPayload

func (o *GetVMDisksOK) GetPayload() []*models.VMDisk

type GetVMDisksParams

type GetVMDisksParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetVMDisksRequestBody

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

GetVMDisksParams contains all the parameters to send to the API endpoint

for the get Vm disks operation.

Typically these are written to a http.Request.

func NewGetVMDisksParams

func NewGetVMDisksParams() *GetVMDisksParams

NewGetVMDisksParams creates a new GetVMDisksParams 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 NewGetVMDisksParamsWithContext

func NewGetVMDisksParamsWithContext(ctx context.Context) *GetVMDisksParams

NewGetVMDisksParamsWithContext creates a new GetVMDisksParams object with the ability to set a context for a request.

func NewGetVMDisksParamsWithHTTPClient

func NewGetVMDisksParamsWithHTTPClient(client *http.Client) *GetVMDisksParams

NewGetVMDisksParamsWithHTTPClient creates a new GetVMDisksParams object with the ability to set a custom HTTPClient for a request.

func NewGetVMDisksParamsWithTimeout

func NewGetVMDisksParamsWithTimeout(timeout time.Duration) *GetVMDisksParams

NewGetVMDisksParamsWithTimeout creates a new GetVMDisksParams object with the ability to set a timeout on a request.

func (*GetVMDisksParams) SetContentLanguage

func (o *GetVMDisksParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get Vm disks params

func (*GetVMDisksParams) SetContext

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

SetContext adds the context to the get Vm disks params

func (*GetVMDisksParams) SetDefaults

func (o *GetVMDisksParams) SetDefaults()

SetDefaults hydrates default values in the get Vm disks params (not the query body).

All values with no default are reset to their zero value.

func (*GetVMDisksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get Vm disks params

func (*GetVMDisksParams) SetRequestBody

func (o *GetVMDisksParams) SetRequestBody(requestBody *models.GetVMDisksRequestBody)

SetRequestBody adds the requestBody to the get Vm disks params

func (*GetVMDisksParams) SetTimeout

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

SetTimeout adds the timeout to the get Vm disks params

func (*GetVMDisksParams) WithContentLanguage

func (o *GetVMDisksParams) WithContentLanguage(contentLanguage *string) *GetVMDisksParams

WithContentLanguage adds the contentLanguage to the get Vm disks params

func (*GetVMDisksParams) WithContext

func (o *GetVMDisksParams) WithContext(ctx context.Context) *GetVMDisksParams

WithContext adds the context to the get Vm disks params

func (*GetVMDisksParams) WithDefaults

func (o *GetVMDisksParams) WithDefaults() *GetVMDisksParams

WithDefaults hydrates default values in the get Vm disks params (not the query body).

All values with no default are reset to their zero value.

func (*GetVMDisksParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get Vm disks params

func (*GetVMDisksParams) WithRequestBody

func (o *GetVMDisksParams) WithRequestBody(requestBody *models.GetVMDisksRequestBody) *GetVMDisksParams

WithRequestBody adds the requestBody to the get Vm disks params

func (*GetVMDisksParams) WithTimeout

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

WithTimeout adds the timeout to the get Vm disks params

func (*GetVMDisksParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetVMDisksReader

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

GetVMDisksReader is a Reader for the GetVMDisks structure.

func (*GetVMDisksReader) ReadResponse

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