nic

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

func (*Client) GetNics

func (a *Client) GetNics(params *GetNicsParams, opts ...ClientOption) (*GetNicsOK, error)

GetNics get nics API

func (*Client) GetNicsConnection

func (a *Client) GetNicsConnection(params *GetNicsConnectionParams, opts ...ClientOption) (*GetNicsConnectionOK, error)

GetNicsConnection get nics connection API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateNic

func (a *Client) UpdateNic(params *UpdateNicParams, opts ...ClientOption) (*UpdateNicOK, error)

UpdateNic update nic API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetNics(params *GetNicsParams, opts ...ClientOption) (*GetNicsOK, error)

	GetNicsConnection(params *GetNicsConnectionParams, opts ...ClientOption) (*GetNicsConnectionOK, error)

	UpdateNic(params *UpdateNicParams, opts ...ClientOption) (*UpdateNicOK, 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 nic API client.

type GetNicsBadRequest

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

GetNicsBadRequest get nics bad request

func NewGetNicsBadRequest

func NewGetNicsBadRequest() *GetNicsBadRequest

NewGetNicsBadRequest creates a GetNicsBadRequest with default headers values

func (*GetNicsBadRequest) Error

func (o *GetNicsBadRequest) Error() string

func (*GetNicsBadRequest) GetPayload

func (o *GetNicsBadRequest) GetPayload() string

type GetNicsConnectionBadRequest

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

GetNicsConnectionBadRequest get nics connection bad request

func NewGetNicsConnectionBadRequest

func NewGetNicsConnectionBadRequest() *GetNicsConnectionBadRequest

NewGetNicsConnectionBadRequest creates a GetNicsConnectionBadRequest with default headers values

func (*GetNicsConnectionBadRequest) Error

func (*GetNicsConnectionBadRequest) GetPayload

func (o *GetNicsConnectionBadRequest) GetPayload() string

type GetNicsConnectionOK

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

Ok

func NewGetNicsConnectionOK

func NewGetNicsConnectionOK() *GetNicsConnectionOK

NewGetNicsConnectionOK creates a GetNicsConnectionOK with default headers values

func (*GetNicsConnectionOK) Error

func (o *GetNicsConnectionOK) Error() string

func (*GetNicsConnectionOK) GetPayload

func (o *GetNicsConnectionOK) GetPayload() *models.NicConnection

type GetNicsConnectionParams

type GetNicsConnectionParams struct {

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

	// RequestBody.
	RequestBody *models.GetNicsConnectionRequestBody

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

GetNicsConnectionParams contains all the parameters to send to the API endpoint

for the get nics connection operation.

Typically these are written to a http.Request.

func NewGetNicsConnectionParams

func NewGetNicsConnectionParams() *GetNicsConnectionParams

NewGetNicsConnectionParams creates a new GetNicsConnectionParams 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 NewGetNicsConnectionParamsWithContext

func NewGetNicsConnectionParamsWithContext(ctx context.Context) *GetNicsConnectionParams

NewGetNicsConnectionParamsWithContext creates a new GetNicsConnectionParams object with the ability to set a context for a request.

func NewGetNicsConnectionParamsWithHTTPClient

func NewGetNicsConnectionParamsWithHTTPClient(client *http.Client) *GetNicsConnectionParams

NewGetNicsConnectionParamsWithHTTPClient creates a new GetNicsConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetNicsConnectionParamsWithTimeout

func NewGetNicsConnectionParamsWithTimeout(timeout time.Duration) *GetNicsConnectionParams

NewGetNicsConnectionParamsWithTimeout creates a new GetNicsConnectionParams object with the ability to set a timeout on a request.

func (*GetNicsConnectionParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the get nics connection params

func (*GetNicsConnectionParams) SetContext

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

SetContext adds the context to the get nics connection params

func (*GetNicsConnectionParams) SetDefaults

func (o *GetNicsConnectionParams) SetDefaults()

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

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

func (*GetNicsConnectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get nics connection params

func (*GetNicsConnectionParams) SetRequestBody

func (o *GetNicsConnectionParams) SetRequestBody(requestBody *models.GetNicsConnectionRequestBody)

SetRequestBody adds the requestBody to the get nics connection params

func (*GetNicsConnectionParams) SetTimeout

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

SetTimeout adds the timeout to the get nics connection params

func (*GetNicsConnectionParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the get nics connection params

func (*GetNicsConnectionParams) WithContext

WithContext adds the context to the get nics connection params

func (*GetNicsConnectionParams) WithDefaults

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

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

func (*GetNicsConnectionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get nics connection params

func (*GetNicsConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get nics connection params

func (*GetNicsConnectionParams) WithTimeout

WithTimeout adds the timeout to the get nics connection params

func (*GetNicsConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetNicsConnectionReader

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

GetNicsConnectionReader is a Reader for the GetNicsConnection structure.

func (*GetNicsConnectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetNicsOK

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

Ok

func NewGetNicsOK

func NewGetNicsOK() *GetNicsOK

NewGetNicsOK creates a GetNicsOK with default headers values

func (*GetNicsOK) Error

func (o *GetNicsOK) Error() string

func (*GetNicsOK) GetPayload

func (o *GetNicsOK) GetPayload() []*models.Nic

type GetNicsParams

type GetNicsParams struct {

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

	// RequestBody.
	RequestBody *models.GetNicsRequestBody

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

GetNicsParams contains all the parameters to send to the API endpoint

for the get nics operation.

Typically these are written to a http.Request.

func NewGetNicsParams

func NewGetNicsParams() *GetNicsParams

NewGetNicsParams creates a new GetNicsParams 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 NewGetNicsParamsWithContext

func NewGetNicsParamsWithContext(ctx context.Context) *GetNicsParams

NewGetNicsParamsWithContext creates a new GetNicsParams object with the ability to set a context for a request.

func NewGetNicsParamsWithHTTPClient

func NewGetNicsParamsWithHTTPClient(client *http.Client) *GetNicsParams

NewGetNicsParamsWithHTTPClient creates a new GetNicsParams object with the ability to set a custom HTTPClient for a request.

func NewGetNicsParamsWithTimeout

func NewGetNicsParamsWithTimeout(timeout time.Duration) *GetNicsParams

NewGetNicsParamsWithTimeout creates a new GetNicsParams object with the ability to set a timeout on a request.

func (*GetNicsParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the get nics params

func (*GetNicsParams) SetContext

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

SetContext adds the context to the get nics params

func (*GetNicsParams) SetDefaults

func (o *GetNicsParams) SetDefaults()

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

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

func (*GetNicsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get nics params

func (*GetNicsParams) SetRequestBody

func (o *GetNicsParams) SetRequestBody(requestBody *models.GetNicsRequestBody)

SetRequestBody adds the requestBody to the get nics params

func (*GetNicsParams) SetTimeout

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

SetTimeout adds the timeout to the get nics params

func (*GetNicsParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the get nics params

func (*GetNicsParams) WithContext

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

WithContext adds the context to the get nics params

func (*GetNicsParams) WithDefaults

func (o *GetNicsParams) WithDefaults() *GetNicsParams

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

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

func (*GetNicsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get nics params

func (*GetNicsParams) WithRequestBody

func (o *GetNicsParams) WithRequestBody(requestBody *models.GetNicsRequestBody) *GetNicsParams

WithRequestBody adds the requestBody to the get nics params

func (*GetNicsParams) WithTimeout

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

WithTimeout adds the timeout to the get nics params

func (*GetNicsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetNicsReader

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

GetNicsReader is a Reader for the GetNics structure.

func (*GetNicsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateNicBadRequest

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

UpdateNicBadRequest update nic bad request

func NewUpdateNicBadRequest

func NewUpdateNicBadRequest() *UpdateNicBadRequest

NewUpdateNicBadRequest creates a UpdateNicBadRequest with default headers values

func (*UpdateNicBadRequest) Error

func (o *UpdateNicBadRequest) Error() string

func (*UpdateNicBadRequest) GetPayload

func (o *UpdateNicBadRequest) GetPayload() string

type UpdateNicOK

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

Ok

func NewUpdateNicOK

func NewUpdateNicOK() *UpdateNicOK

NewUpdateNicOK creates a UpdateNicOK with default headers values

func (*UpdateNicOK) Error

func (o *UpdateNicOK) Error() string

func (*UpdateNicOK) GetPayload

func (o *UpdateNicOK) GetPayload() []*models.WithTaskNic

type UpdateNicParams

type UpdateNicParams struct {

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

	// RequestBody.
	RequestBody *models.NicUpdationParams

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

UpdateNicParams contains all the parameters to send to the API endpoint

for the update nic operation.

Typically these are written to a http.Request.

func NewUpdateNicParams

func NewUpdateNicParams() *UpdateNicParams

NewUpdateNicParams creates a new UpdateNicParams 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 NewUpdateNicParamsWithContext

func NewUpdateNicParamsWithContext(ctx context.Context) *UpdateNicParams

NewUpdateNicParamsWithContext creates a new UpdateNicParams object with the ability to set a context for a request.

func NewUpdateNicParamsWithHTTPClient

func NewUpdateNicParamsWithHTTPClient(client *http.Client) *UpdateNicParams

NewUpdateNicParamsWithHTTPClient creates a new UpdateNicParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateNicParamsWithTimeout

func NewUpdateNicParamsWithTimeout(timeout time.Duration) *UpdateNicParams

NewUpdateNicParamsWithTimeout creates a new UpdateNicParams object with the ability to set a timeout on a request.

func (*UpdateNicParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the update nic params

func (*UpdateNicParams) SetContext

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

SetContext adds the context to the update nic params

func (*UpdateNicParams) SetDefaults

func (o *UpdateNicParams) SetDefaults()

SetDefaults hydrates default values in the update nic params (not the query body).

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

func (*UpdateNicParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update nic params

func (*UpdateNicParams) SetRequestBody

func (o *UpdateNicParams) SetRequestBody(requestBody *models.NicUpdationParams)

SetRequestBody adds the requestBody to the update nic params

func (*UpdateNicParams) SetTimeout

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

SetTimeout adds the timeout to the update nic params

func (*UpdateNicParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the update nic params

func (*UpdateNicParams) WithContext

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

WithContext adds the context to the update nic params

func (*UpdateNicParams) WithDefaults

func (o *UpdateNicParams) WithDefaults() *UpdateNicParams

WithDefaults hydrates default values in the update nic params (not the query body).

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

func (*UpdateNicParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update nic params

func (*UpdateNicParams) WithRequestBody

func (o *UpdateNicParams) WithRequestBody(requestBody *models.NicUpdationParams) *UpdateNicParams

WithRequestBody adds the requestBody to the update nic params

func (*UpdateNicParams) WithTimeout

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

WithTimeout adds the timeout to the update nic params

func (*UpdateNicParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateNicReader

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

UpdateNicReader is a Reader for the UpdateNic structure.

func (*UpdateNicReader) ReadResponse

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