vm_nic

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 vm nic API

func (*Client) GetVMNics

func (a *Client) GetVMNics(params *GetVMNicsParams, opts ...ClientOption) (*GetVMNicsOK, error)

GetVMNics get Vm nics API

func (*Client) GetVMNicsConnection

func (a *Client) GetVMNicsConnection(params *GetVMNicsConnectionParams, opts ...ClientOption) (*GetVMNicsConnectionOK, error)

GetVMNicsConnection get Vm nics 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 {
	GetVMNics(params *GetVMNicsParams, opts ...ClientOption) (*GetVMNicsOK, error)

	GetVMNicsConnection(params *GetVMNicsConnectionParams, opts ...ClientOption) (*GetVMNicsConnectionOK, 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 nic API client.

type GetVMNicsBadRequest

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

Bad request

func NewGetVMNicsBadRequest

func NewGetVMNicsBadRequest() *GetVMNicsBadRequest

NewGetVMNicsBadRequest creates a GetVMNicsBadRequest with default headers values

func (*GetVMNicsBadRequest) Error

func (o *GetVMNicsBadRequest) Error() string

func (*GetVMNicsBadRequest) GetPayload

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

type GetVMNicsConnectionBadRequest

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

Bad request

func NewGetVMNicsConnectionBadRequest

func NewGetVMNicsConnectionBadRequest() *GetVMNicsConnectionBadRequest

NewGetVMNicsConnectionBadRequest creates a GetVMNicsConnectionBadRequest with default headers values

func (*GetVMNicsConnectionBadRequest) Error

func (*GetVMNicsConnectionBadRequest) GetPayload

type GetVMNicsConnectionInternalServerError added in v1.10.0

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

Server error

func NewGetVMNicsConnectionInternalServerError added in v1.10.0

func NewGetVMNicsConnectionInternalServerError() *GetVMNicsConnectionInternalServerError

NewGetVMNicsConnectionInternalServerError creates a GetVMNicsConnectionInternalServerError with default headers values

func (*GetVMNicsConnectionInternalServerError) Error added in v1.10.0

func (*GetVMNicsConnectionInternalServerError) GetPayload added in v1.10.0

type GetVMNicsConnectionNotFound added in v1.10.0

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

Not found

func NewGetVMNicsConnectionNotFound added in v1.10.0

func NewGetVMNicsConnectionNotFound() *GetVMNicsConnectionNotFound

NewGetVMNicsConnectionNotFound creates a GetVMNicsConnectionNotFound with default headers values

func (*GetVMNicsConnectionNotFound) Error added in v1.10.0

func (*GetVMNicsConnectionNotFound) GetPayload added in v1.10.0

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

type GetVMNicsConnectionOK

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

Ok

func NewGetVMNicsConnectionOK

func NewGetVMNicsConnectionOK() *GetVMNicsConnectionOK

NewGetVMNicsConnectionOK creates a GetVMNicsConnectionOK with default headers values

func (*GetVMNicsConnectionOK) Error

func (o *GetVMNicsConnectionOK) Error() string

func (*GetVMNicsConnectionOK) GetPayload

func (o *GetVMNicsConnectionOK) GetPayload() *models.VMNicConnection

type GetVMNicsConnectionParams

type GetVMNicsConnectionParams struct {

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

	// RequestBody.
	RequestBody *models.GetVMNicsConnectionRequestBody

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

GetVMNicsConnectionParams contains all the parameters to send to the API endpoint

for the get Vm nics connection operation.

Typically these are written to a http.Request.

func NewGetVMNicsConnectionParams

func NewGetVMNicsConnectionParams() *GetVMNicsConnectionParams

NewGetVMNicsConnectionParams creates a new GetVMNicsConnectionParams 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 NewGetVMNicsConnectionParamsWithContext

func NewGetVMNicsConnectionParamsWithContext(ctx context.Context) *GetVMNicsConnectionParams

NewGetVMNicsConnectionParamsWithContext creates a new GetVMNicsConnectionParams object with the ability to set a context for a request.

func NewGetVMNicsConnectionParamsWithHTTPClient

func NewGetVMNicsConnectionParamsWithHTTPClient(client *http.Client) *GetVMNicsConnectionParams

NewGetVMNicsConnectionParamsWithHTTPClient creates a new GetVMNicsConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetVMNicsConnectionParamsWithTimeout

func NewGetVMNicsConnectionParamsWithTimeout(timeout time.Duration) *GetVMNicsConnectionParams

NewGetVMNicsConnectionParamsWithTimeout creates a new GetVMNicsConnectionParams object with the ability to set a timeout on a request.

func (*GetVMNicsConnectionParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the get Vm nics connection params

func (*GetVMNicsConnectionParams) SetContext

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

SetContext adds the context to the get Vm nics connection params

func (*GetVMNicsConnectionParams) SetDefaults

func (o *GetVMNicsConnectionParams) SetDefaults()

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

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

func (*GetVMNicsConnectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get Vm nics connection params

func (*GetVMNicsConnectionParams) SetRequestBody

func (o *GetVMNicsConnectionParams) SetRequestBody(requestBody *models.GetVMNicsConnectionRequestBody)

SetRequestBody adds the requestBody to the get Vm nics connection params

func (*GetVMNicsConnectionParams) SetTimeout

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

SetTimeout adds the timeout to the get Vm nics connection params

func (*GetVMNicsConnectionParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the get Vm nics connection params

func (*GetVMNicsConnectionParams) WithContext

WithContext adds the context to the get Vm nics connection params

func (*GetVMNicsConnectionParams) WithDefaults

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

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

func (*GetVMNicsConnectionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get Vm nics connection params

func (*GetVMNicsConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get Vm nics connection params

func (*GetVMNicsConnectionParams) WithTimeout

WithTimeout adds the timeout to the get Vm nics connection params

func (*GetVMNicsConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetVMNicsConnectionReader

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

GetVMNicsConnectionReader is a Reader for the GetVMNicsConnection structure.

func (*GetVMNicsConnectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetVMNicsInternalServerError added in v1.10.0

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

Server error

func NewGetVMNicsInternalServerError added in v1.10.0

func NewGetVMNicsInternalServerError() *GetVMNicsInternalServerError

NewGetVMNicsInternalServerError creates a GetVMNicsInternalServerError with default headers values

func (*GetVMNicsInternalServerError) Error added in v1.10.0

func (*GetVMNicsInternalServerError) GetPayload added in v1.10.0

type GetVMNicsNotFound added in v1.10.0

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

Not found

func NewGetVMNicsNotFound added in v1.10.0

func NewGetVMNicsNotFound() *GetVMNicsNotFound

NewGetVMNicsNotFound creates a GetVMNicsNotFound with default headers values

func (*GetVMNicsNotFound) Error added in v1.10.0

func (o *GetVMNicsNotFound) Error() string

func (*GetVMNicsNotFound) GetPayload added in v1.10.0

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

type GetVMNicsOK

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

Ok

func NewGetVMNicsOK

func NewGetVMNicsOK() *GetVMNicsOK

NewGetVMNicsOK creates a GetVMNicsOK with default headers values

func (*GetVMNicsOK) Error

func (o *GetVMNicsOK) Error() string

func (*GetVMNicsOK) GetPayload

func (o *GetVMNicsOK) GetPayload() []*models.VMNic

type GetVMNicsParams

type GetVMNicsParams struct {

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

	// RequestBody.
	RequestBody *models.GetVMNicsRequestBody

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

GetVMNicsParams contains all the parameters to send to the API endpoint

for the get Vm nics operation.

Typically these are written to a http.Request.

func NewGetVMNicsParams

func NewGetVMNicsParams() *GetVMNicsParams

NewGetVMNicsParams creates a new GetVMNicsParams 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 NewGetVMNicsParamsWithContext

func NewGetVMNicsParamsWithContext(ctx context.Context) *GetVMNicsParams

NewGetVMNicsParamsWithContext creates a new GetVMNicsParams object with the ability to set a context for a request.

func NewGetVMNicsParamsWithHTTPClient

func NewGetVMNicsParamsWithHTTPClient(client *http.Client) *GetVMNicsParams

NewGetVMNicsParamsWithHTTPClient creates a new GetVMNicsParams object with the ability to set a custom HTTPClient for a request.

func NewGetVMNicsParamsWithTimeout

func NewGetVMNicsParamsWithTimeout(timeout time.Duration) *GetVMNicsParams

NewGetVMNicsParamsWithTimeout creates a new GetVMNicsParams object with the ability to set a timeout on a request.

func (*GetVMNicsParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the get Vm nics params

func (*GetVMNicsParams) SetContext

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

SetContext adds the context to the get Vm nics params

func (*GetVMNicsParams) SetDefaults

func (o *GetVMNicsParams) SetDefaults()

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

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

func (*GetVMNicsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get Vm nics params

func (*GetVMNicsParams) SetRequestBody

func (o *GetVMNicsParams) SetRequestBody(requestBody *models.GetVMNicsRequestBody)

SetRequestBody adds the requestBody to the get Vm nics params

func (*GetVMNicsParams) SetTimeout

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

SetTimeout adds the timeout to the get Vm nics params

func (*GetVMNicsParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the get Vm nics params

func (*GetVMNicsParams) WithContext

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

WithContext adds the context to the get Vm nics params

func (*GetVMNicsParams) WithDefaults

func (o *GetVMNicsParams) WithDefaults() *GetVMNicsParams

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

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

func (*GetVMNicsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get Vm nics params

func (*GetVMNicsParams) WithRequestBody

func (o *GetVMNicsParams) WithRequestBody(requestBody *models.GetVMNicsRequestBody) *GetVMNicsParams

WithRequestBody adds the requestBody to the get Vm nics params

func (*GetVMNicsParams) WithTimeout

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

WithTimeout adds the timeout to the get Vm nics params

func (*GetVMNicsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetVMNicsReader

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

GetVMNicsReader is a Reader for the GetVMNics structure.

func (*GetVMNicsReader) ReadResponse

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