gpu_device

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: ISC Imports: 10 Imported by: 1

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 gpu device API

func (*Client) GetDetailVMInfoByGpuDevices added in v2.14.0

func (a *Client) GetDetailVMInfoByGpuDevices(params *GetDetailVMInfoByGpuDevicesParams, opts ...ClientOption) (*GetDetailVMInfoByGpuDevicesOK, error)

GetDetailVMInfoByGpuDevices get detail Vm info by gpu devices API

func (*Client) GetGpuDevices

func (a *Client) GetGpuDevices(params *GetGpuDevicesParams, opts ...ClientOption) (*GetGpuDevicesOK, error)

GetGpuDevices get gpu devices API

func (*Client) GetGpuDevicesConnection

func (a *Client) GetGpuDevicesConnection(params *GetGpuDevicesConnectionParams, opts ...ClientOption) (*GetGpuDevicesConnectionOK, error)

GetGpuDevicesConnection get gpu devices connection API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) SwitchGpuDeviceSriov

func (a *Client) SwitchGpuDeviceSriov(params *SwitchGpuDeviceSriovParams, opts ...ClientOption) (*SwitchGpuDeviceSriovOK, error)

SwitchGpuDeviceSriov switch gpu device sriov API

func (*Client) UpdateGpuDeviceDescription

func (a *Client) UpdateGpuDeviceDescription(params *UpdateGpuDeviceDescriptionParams, opts ...ClientOption) (*UpdateGpuDeviceDescriptionOK, error)

UpdateGpuDeviceDescription update gpu device description API

func (*Client) UpdateGpuDeviceUsage

func (a *Client) UpdateGpuDeviceUsage(params *UpdateGpuDeviceUsageParams, opts ...ClientOption) (*UpdateGpuDeviceUsageOK, error)

UpdateGpuDeviceUsage update gpu device usage API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetDetailVMInfoByGpuDevices(params *GetDetailVMInfoByGpuDevicesParams, opts ...ClientOption) (*GetDetailVMInfoByGpuDevicesOK, error)

	GetGpuDevices(params *GetGpuDevicesParams, opts ...ClientOption) (*GetGpuDevicesOK, error)

	GetGpuDevicesConnection(params *GetGpuDevicesConnectionParams, opts ...ClientOption) (*GetGpuDevicesConnectionOK, error)

	SwitchGpuDeviceSriov(params *SwitchGpuDeviceSriovParams, opts ...ClientOption) (*SwitchGpuDeviceSriovOK, error)

	UpdateGpuDeviceDescription(params *UpdateGpuDeviceDescriptionParams, opts ...ClientOption) (*UpdateGpuDeviceDescriptionOK, error)

	UpdateGpuDeviceUsage(params *UpdateGpuDeviceUsageParams, opts ...ClientOption) (*UpdateGpuDeviceUsageOK, 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 gpu device API client.

type GetDetailVMInfoByGpuDevicesBadRequest added in v2.14.0

type GetDetailVMInfoByGpuDevicesBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetDetailVMInfoByGpuDevicesBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetDetailVMInfoByGpuDevicesBadRequest added in v2.14.0

func NewGetDetailVMInfoByGpuDevicesBadRequest() *GetDetailVMInfoByGpuDevicesBadRequest

NewGetDetailVMInfoByGpuDevicesBadRequest creates a GetDetailVMInfoByGpuDevicesBadRequest with default headers values

func (*GetDetailVMInfoByGpuDevicesBadRequest) Error added in v2.14.0

func (*GetDetailVMInfoByGpuDevicesBadRequest) GetPayload added in v2.14.0

type GetDetailVMInfoByGpuDevicesInternalServerError added in v2.14.0

type GetDetailVMInfoByGpuDevicesInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetDetailVMInfoByGpuDevicesInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetDetailVMInfoByGpuDevicesInternalServerError added in v2.14.0

func NewGetDetailVMInfoByGpuDevicesInternalServerError() *GetDetailVMInfoByGpuDevicesInternalServerError

NewGetDetailVMInfoByGpuDevicesInternalServerError creates a GetDetailVMInfoByGpuDevicesInternalServerError with default headers values

func (*GetDetailVMInfoByGpuDevicesInternalServerError) Error added in v2.14.0

func (*GetDetailVMInfoByGpuDevicesInternalServerError) GetPayload added in v2.14.0

type GetDetailVMInfoByGpuDevicesNotFound added in v2.14.0

type GetDetailVMInfoByGpuDevicesNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetDetailVMInfoByGpuDevicesNotFound describes a response with status code 404, with default header values.

Not found

func NewGetDetailVMInfoByGpuDevicesNotFound added in v2.14.0

func NewGetDetailVMInfoByGpuDevicesNotFound() *GetDetailVMInfoByGpuDevicesNotFound

NewGetDetailVMInfoByGpuDevicesNotFound creates a GetDetailVMInfoByGpuDevicesNotFound with default headers values

func (*GetDetailVMInfoByGpuDevicesNotFound) Error added in v2.14.0

func (*GetDetailVMInfoByGpuDevicesNotFound) GetPayload added in v2.14.0

type GetDetailVMInfoByGpuDevicesNotModified added in v2.14.0

type GetDetailVMInfoByGpuDevicesNotModified struct {
}
GetDetailVMInfoByGpuDevicesNotModified describes a response with status code 304, with default header values.

Not modified

func NewGetDetailVMInfoByGpuDevicesNotModified added in v2.14.0

func NewGetDetailVMInfoByGpuDevicesNotModified() *GetDetailVMInfoByGpuDevicesNotModified

NewGetDetailVMInfoByGpuDevicesNotModified creates a GetDetailVMInfoByGpuDevicesNotModified with default headers values

func (*GetDetailVMInfoByGpuDevicesNotModified) Error added in v2.14.0

type GetDetailVMInfoByGpuDevicesOK added in v2.14.0

type GetDetailVMInfoByGpuDevicesOK struct {
	XTowerRequestID string

	Payload []*models.GpuVMInfo
}
GetDetailVMInfoByGpuDevicesOK describes a response with status code 200, with default header values.

GetDetailVMInfoByGpuDevicesOK get detail Vm info by gpu devices o k

func NewGetDetailVMInfoByGpuDevicesOK added in v2.14.0

func NewGetDetailVMInfoByGpuDevicesOK() *GetDetailVMInfoByGpuDevicesOK

NewGetDetailVMInfoByGpuDevicesOK creates a GetDetailVMInfoByGpuDevicesOK with default headers values

func (*GetDetailVMInfoByGpuDevicesOK) Error added in v2.14.0

func (*GetDetailVMInfoByGpuDevicesOK) GetPayload added in v2.14.0

func (o *GetDetailVMInfoByGpuDevicesOK) GetPayload() []*models.GpuVMInfo

type GetDetailVMInfoByGpuDevicesParams added in v2.14.0

type GetDetailVMInfoByGpuDevicesParams struct {

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

	// RequestBody.
	RequestBody *models.GetGpuDevicesRequestBody

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

GetDetailVMInfoByGpuDevicesParams contains all the parameters to send to the API endpoint

for the get detail Vm info by gpu devices operation.

Typically these are written to a http.Request.

func NewGetDetailVMInfoByGpuDevicesParams added in v2.14.0

func NewGetDetailVMInfoByGpuDevicesParams() *GetDetailVMInfoByGpuDevicesParams

NewGetDetailVMInfoByGpuDevicesParams creates a new GetDetailVMInfoByGpuDevicesParams 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 NewGetDetailVMInfoByGpuDevicesParamsWithContext added in v2.14.0

func NewGetDetailVMInfoByGpuDevicesParamsWithContext(ctx context.Context) *GetDetailVMInfoByGpuDevicesParams

NewGetDetailVMInfoByGpuDevicesParamsWithContext creates a new GetDetailVMInfoByGpuDevicesParams object with the ability to set a context for a request.

func NewGetDetailVMInfoByGpuDevicesParamsWithHTTPClient added in v2.14.0

func NewGetDetailVMInfoByGpuDevicesParamsWithHTTPClient(client *http.Client) *GetDetailVMInfoByGpuDevicesParams

NewGetDetailVMInfoByGpuDevicesParamsWithHTTPClient creates a new GetDetailVMInfoByGpuDevicesParams object with the ability to set a custom HTTPClient for a request.

func NewGetDetailVMInfoByGpuDevicesParamsWithTimeout added in v2.14.0

func NewGetDetailVMInfoByGpuDevicesParamsWithTimeout(timeout time.Duration) *GetDetailVMInfoByGpuDevicesParams

NewGetDetailVMInfoByGpuDevicesParamsWithTimeout creates a new GetDetailVMInfoByGpuDevicesParams object with the ability to set a timeout on a request.

func (*GetDetailVMInfoByGpuDevicesParams) SetContentLanguage added in v2.14.0

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

SetContentLanguage adds the contentLanguage to the get detail Vm info by gpu devices params

func (*GetDetailVMInfoByGpuDevicesParams) SetContext added in v2.14.0

SetContext adds the context to the get detail Vm info by gpu devices params

func (*GetDetailVMInfoByGpuDevicesParams) SetDefaults added in v2.14.0

func (o *GetDetailVMInfoByGpuDevicesParams) SetDefaults()

SetDefaults hydrates default values in the get detail Vm info by gpu devices params (not the query body).

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

func (*GetDetailVMInfoByGpuDevicesParams) SetHTTPClient added in v2.14.0

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

SetHTTPClient adds the HTTPClient to the get detail Vm info by gpu devices params

func (*GetDetailVMInfoByGpuDevicesParams) SetRequestBody added in v2.14.0

func (o *GetDetailVMInfoByGpuDevicesParams) SetRequestBody(requestBody *models.GetGpuDevicesRequestBody)

SetRequestBody adds the requestBody to the get detail Vm info by gpu devices params

func (*GetDetailVMInfoByGpuDevicesParams) SetTimeout added in v2.14.0

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

SetTimeout adds the timeout to the get detail Vm info by gpu devices params

func (*GetDetailVMInfoByGpuDevicesParams) WithContentLanguage added in v2.14.0

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

WithContentLanguage adds the contentLanguage to the get detail Vm info by gpu devices params

func (*GetDetailVMInfoByGpuDevicesParams) WithContext added in v2.14.0

WithContext adds the context to the get detail Vm info by gpu devices params

func (*GetDetailVMInfoByGpuDevicesParams) WithDefaults added in v2.14.0

WithDefaults hydrates default values in the get detail Vm info by gpu devices params (not the query body).

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

func (*GetDetailVMInfoByGpuDevicesParams) WithHTTPClient added in v2.14.0

WithHTTPClient adds the HTTPClient to the get detail Vm info by gpu devices params

func (*GetDetailVMInfoByGpuDevicesParams) WithRequestBody added in v2.14.0

WithRequestBody adds the requestBody to the get detail Vm info by gpu devices params

func (*GetDetailVMInfoByGpuDevicesParams) WithTimeout added in v2.14.0

WithTimeout adds the timeout to the get detail Vm info by gpu devices params

func (*GetDetailVMInfoByGpuDevicesParams) WriteToRequest added in v2.14.0

WriteToRequest writes these params to a swagger request

type GetDetailVMInfoByGpuDevicesReader added in v2.14.0

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

GetDetailVMInfoByGpuDevicesReader is a Reader for the GetDetailVMInfoByGpuDevices structure.

func (*GetDetailVMInfoByGpuDevicesReader) ReadResponse added in v2.14.0

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

ReadResponse reads a server response into the received o.

type GetGpuDevicesBadRequest

type GetGpuDevicesBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetGpuDevicesBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetGpuDevicesBadRequest

func NewGetGpuDevicesBadRequest() *GetGpuDevicesBadRequest

NewGetGpuDevicesBadRequest creates a GetGpuDevicesBadRequest with default headers values

func (*GetGpuDevicesBadRequest) Error

func (o *GetGpuDevicesBadRequest) Error() string

func (*GetGpuDevicesBadRequest) GetPayload

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

type GetGpuDevicesConnectionBadRequest

type GetGpuDevicesConnectionBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetGpuDevicesConnectionBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetGpuDevicesConnectionBadRequest

func NewGetGpuDevicesConnectionBadRequest() *GetGpuDevicesConnectionBadRequest

NewGetGpuDevicesConnectionBadRequest creates a GetGpuDevicesConnectionBadRequest with default headers values

func (*GetGpuDevicesConnectionBadRequest) Error

func (*GetGpuDevicesConnectionBadRequest) GetPayload

type GetGpuDevicesConnectionInternalServerError

type GetGpuDevicesConnectionInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetGpuDevicesConnectionInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetGpuDevicesConnectionInternalServerError

func NewGetGpuDevicesConnectionInternalServerError() *GetGpuDevicesConnectionInternalServerError

NewGetGpuDevicesConnectionInternalServerError creates a GetGpuDevicesConnectionInternalServerError with default headers values

func (*GetGpuDevicesConnectionInternalServerError) Error

func (*GetGpuDevicesConnectionInternalServerError) GetPayload

type GetGpuDevicesConnectionNotFound

type GetGpuDevicesConnectionNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetGpuDevicesConnectionNotFound describes a response with status code 404, with default header values.

Not found

func NewGetGpuDevicesConnectionNotFound

func NewGetGpuDevicesConnectionNotFound() *GetGpuDevicesConnectionNotFound

NewGetGpuDevicesConnectionNotFound creates a GetGpuDevicesConnectionNotFound with default headers values

func (*GetGpuDevicesConnectionNotFound) Error

func (*GetGpuDevicesConnectionNotFound) GetPayload

type GetGpuDevicesConnectionOK

type GetGpuDevicesConnectionOK struct {
	XTowerRequestID string

	Payload *models.GpuDeviceConnection
}
GetGpuDevicesConnectionOK describes a response with status code 200, with default header values.

GetGpuDevicesConnectionOK get gpu devices connection o k

func NewGetGpuDevicesConnectionOK

func NewGetGpuDevicesConnectionOK() *GetGpuDevicesConnectionOK

NewGetGpuDevicesConnectionOK creates a GetGpuDevicesConnectionOK with default headers values

func (*GetGpuDevicesConnectionOK) Error

func (o *GetGpuDevicesConnectionOK) Error() string

func (*GetGpuDevicesConnectionOK) GetPayload

type GetGpuDevicesConnectionParams

type GetGpuDevicesConnectionParams struct {

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

	// RequestBody.
	RequestBody *models.GetGpuDevicesConnectionRequestBody

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

GetGpuDevicesConnectionParams contains all the parameters to send to the API endpoint

for the get gpu devices connection operation.

Typically these are written to a http.Request.

func NewGetGpuDevicesConnectionParams

func NewGetGpuDevicesConnectionParams() *GetGpuDevicesConnectionParams

NewGetGpuDevicesConnectionParams creates a new GetGpuDevicesConnectionParams 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 NewGetGpuDevicesConnectionParamsWithContext

func NewGetGpuDevicesConnectionParamsWithContext(ctx context.Context) *GetGpuDevicesConnectionParams

NewGetGpuDevicesConnectionParamsWithContext creates a new GetGpuDevicesConnectionParams object with the ability to set a context for a request.

func NewGetGpuDevicesConnectionParamsWithHTTPClient

func NewGetGpuDevicesConnectionParamsWithHTTPClient(client *http.Client) *GetGpuDevicesConnectionParams

NewGetGpuDevicesConnectionParamsWithHTTPClient creates a new GetGpuDevicesConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetGpuDevicesConnectionParamsWithTimeout

func NewGetGpuDevicesConnectionParamsWithTimeout(timeout time.Duration) *GetGpuDevicesConnectionParams

NewGetGpuDevicesConnectionParamsWithTimeout creates a new GetGpuDevicesConnectionParams object with the ability to set a timeout on a request.

func (*GetGpuDevicesConnectionParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the get gpu devices connection params

func (*GetGpuDevicesConnectionParams) SetContext

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

SetContext adds the context to the get gpu devices connection params

func (*GetGpuDevicesConnectionParams) SetDefaults

func (o *GetGpuDevicesConnectionParams) SetDefaults()

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

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

func (*GetGpuDevicesConnectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get gpu devices connection params

func (*GetGpuDevicesConnectionParams) SetRequestBody

SetRequestBody adds the requestBody to the get gpu devices connection params

func (*GetGpuDevicesConnectionParams) SetTimeout

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

SetTimeout adds the timeout to the get gpu devices connection params

func (*GetGpuDevicesConnectionParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the get gpu devices connection params

func (*GetGpuDevicesConnectionParams) WithContext

WithContext adds the context to the get gpu devices connection params

func (*GetGpuDevicesConnectionParams) WithDefaults

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

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

func (*GetGpuDevicesConnectionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get gpu devices connection params

func (*GetGpuDevicesConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get gpu devices connection params

func (*GetGpuDevicesConnectionParams) WithTimeout

WithTimeout adds the timeout to the get gpu devices connection params

func (*GetGpuDevicesConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetGpuDevicesConnectionReader

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

GetGpuDevicesConnectionReader is a Reader for the GetGpuDevicesConnection structure.

func (*GetGpuDevicesConnectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetGpuDevicesInternalServerError

type GetGpuDevicesInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetGpuDevicesInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetGpuDevicesInternalServerError

func NewGetGpuDevicesInternalServerError() *GetGpuDevicesInternalServerError

NewGetGpuDevicesInternalServerError creates a GetGpuDevicesInternalServerError with default headers values

func (*GetGpuDevicesInternalServerError) Error

func (*GetGpuDevicesInternalServerError) GetPayload

type GetGpuDevicesNotFound

type GetGpuDevicesNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetGpuDevicesNotFound describes a response with status code 404, with default header values.

Not found

func NewGetGpuDevicesNotFound

func NewGetGpuDevicesNotFound() *GetGpuDevicesNotFound

NewGetGpuDevicesNotFound creates a GetGpuDevicesNotFound with default headers values

func (*GetGpuDevicesNotFound) Error

func (o *GetGpuDevicesNotFound) Error() string

func (*GetGpuDevicesNotFound) GetPayload

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

type GetGpuDevicesOK

type GetGpuDevicesOK struct {
	XTowerRequestID string

	Payload []*models.GpuDevice
}
GetGpuDevicesOK describes a response with status code 200, with default header values.

GetGpuDevicesOK get gpu devices o k

func NewGetGpuDevicesOK

func NewGetGpuDevicesOK() *GetGpuDevicesOK

NewGetGpuDevicesOK creates a GetGpuDevicesOK with default headers values

func (*GetGpuDevicesOK) Error

func (o *GetGpuDevicesOK) Error() string

func (*GetGpuDevicesOK) GetPayload

func (o *GetGpuDevicesOK) GetPayload() []*models.GpuDevice

type GetGpuDevicesParams

type GetGpuDevicesParams struct {

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

	// RequestBody.
	RequestBody *models.GetGpuDevicesRequestBody

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

GetGpuDevicesParams contains all the parameters to send to the API endpoint

for the get gpu devices operation.

Typically these are written to a http.Request.

func NewGetGpuDevicesParams

func NewGetGpuDevicesParams() *GetGpuDevicesParams

NewGetGpuDevicesParams creates a new GetGpuDevicesParams 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 NewGetGpuDevicesParamsWithContext

func NewGetGpuDevicesParamsWithContext(ctx context.Context) *GetGpuDevicesParams

NewGetGpuDevicesParamsWithContext creates a new GetGpuDevicesParams object with the ability to set a context for a request.

func NewGetGpuDevicesParamsWithHTTPClient

func NewGetGpuDevicesParamsWithHTTPClient(client *http.Client) *GetGpuDevicesParams

NewGetGpuDevicesParamsWithHTTPClient creates a new GetGpuDevicesParams object with the ability to set a custom HTTPClient for a request.

func NewGetGpuDevicesParamsWithTimeout

func NewGetGpuDevicesParamsWithTimeout(timeout time.Duration) *GetGpuDevicesParams

NewGetGpuDevicesParamsWithTimeout creates a new GetGpuDevicesParams object with the ability to set a timeout on a request.

func (*GetGpuDevicesParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the get gpu devices params

func (*GetGpuDevicesParams) SetContext

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

SetContext adds the context to the get gpu devices params

func (*GetGpuDevicesParams) SetDefaults

func (o *GetGpuDevicesParams) SetDefaults()

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

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

func (*GetGpuDevicesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get gpu devices params

func (*GetGpuDevicesParams) SetRequestBody

func (o *GetGpuDevicesParams) SetRequestBody(requestBody *models.GetGpuDevicesRequestBody)

SetRequestBody adds the requestBody to the get gpu devices params

func (*GetGpuDevicesParams) SetTimeout

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

SetTimeout adds the timeout to the get gpu devices params

func (*GetGpuDevicesParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the get gpu devices params

func (*GetGpuDevicesParams) WithContext

WithContext adds the context to the get gpu devices params

func (*GetGpuDevicesParams) WithDefaults

func (o *GetGpuDevicesParams) WithDefaults() *GetGpuDevicesParams

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

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

func (*GetGpuDevicesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get gpu devices params

func (*GetGpuDevicesParams) WithRequestBody

func (o *GetGpuDevicesParams) WithRequestBody(requestBody *models.GetGpuDevicesRequestBody) *GetGpuDevicesParams

WithRequestBody adds the requestBody to the get gpu devices params

func (*GetGpuDevicesParams) WithTimeout

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

WithTimeout adds the timeout to the get gpu devices params

func (*GetGpuDevicesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetGpuDevicesReader

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

GetGpuDevicesReader is a Reader for the GetGpuDevices structure.

func (*GetGpuDevicesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SwitchGpuDeviceSriovBadRequest

type SwitchGpuDeviceSriovBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
SwitchGpuDeviceSriovBadRequest describes a response with status code 400, with default header values.

Bad request

func NewSwitchGpuDeviceSriovBadRequest

func NewSwitchGpuDeviceSriovBadRequest() *SwitchGpuDeviceSriovBadRequest

NewSwitchGpuDeviceSriovBadRequest creates a SwitchGpuDeviceSriovBadRequest with default headers values

func (*SwitchGpuDeviceSriovBadRequest) Error

func (*SwitchGpuDeviceSriovBadRequest) GetPayload

type SwitchGpuDeviceSriovInternalServerError

type SwitchGpuDeviceSriovInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
SwitchGpuDeviceSriovInternalServerError describes a response with status code 500, with default header values.

Server error

func NewSwitchGpuDeviceSriovInternalServerError

func NewSwitchGpuDeviceSriovInternalServerError() *SwitchGpuDeviceSriovInternalServerError

NewSwitchGpuDeviceSriovInternalServerError creates a SwitchGpuDeviceSriovInternalServerError with default headers values

func (*SwitchGpuDeviceSriovInternalServerError) Error

func (*SwitchGpuDeviceSriovInternalServerError) GetPayload

type SwitchGpuDeviceSriovNotFound

type SwitchGpuDeviceSriovNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
SwitchGpuDeviceSriovNotFound describes a response with status code 404, with default header values.

Not found

func NewSwitchGpuDeviceSriovNotFound

func NewSwitchGpuDeviceSriovNotFound() *SwitchGpuDeviceSriovNotFound

NewSwitchGpuDeviceSriovNotFound creates a SwitchGpuDeviceSriovNotFound with default headers values

func (*SwitchGpuDeviceSriovNotFound) Error

func (*SwitchGpuDeviceSriovNotFound) GetPayload

type SwitchGpuDeviceSriovNotModified

type SwitchGpuDeviceSriovNotModified struct {
}
SwitchGpuDeviceSriovNotModified describes a response with status code 304, with default header values.

Not modified

func NewSwitchGpuDeviceSriovNotModified

func NewSwitchGpuDeviceSriovNotModified() *SwitchGpuDeviceSriovNotModified

NewSwitchGpuDeviceSriovNotModified creates a SwitchGpuDeviceSriovNotModified with default headers values

func (*SwitchGpuDeviceSriovNotModified) Error

type SwitchGpuDeviceSriovOK

type SwitchGpuDeviceSriovOK struct {
	XTowerRequestID string

	Payload []*models.WithTaskGpuDevice
}
SwitchGpuDeviceSriovOK describes a response with status code 200, with default header values.

SwitchGpuDeviceSriovOK switch gpu device sriov o k

func NewSwitchGpuDeviceSriovOK

func NewSwitchGpuDeviceSriovOK() *SwitchGpuDeviceSriovOK

NewSwitchGpuDeviceSriovOK creates a SwitchGpuDeviceSriovOK with default headers values

func (*SwitchGpuDeviceSriovOK) Error

func (o *SwitchGpuDeviceSriovOK) Error() string

func (*SwitchGpuDeviceSriovOK) GetPayload

func (o *SwitchGpuDeviceSriovOK) GetPayload() []*models.WithTaskGpuDevice

type SwitchGpuDeviceSriovParams

type SwitchGpuDeviceSriovParams struct {

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

	// RequestBody.
	RequestBody *models.GpuDeviceSriovSwitchParams

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

SwitchGpuDeviceSriovParams contains all the parameters to send to the API endpoint

for the switch gpu device sriov operation.

Typically these are written to a http.Request.

func NewSwitchGpuDeviceSriovParams

func NewSwitchGpuDeviceSriovParams() *SwitchGpuDeviceSriovParams

NewSwitchGpuDeviceSriovParams creates a new SwitchGpuDeviceSriovParams 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 NewSwitchGpuDeviceSriovParamsWithContext

func NewSwitchGpuDeviceSriovParamsWithContext(ctx context.Context) *SwitchGpuDeviceSriovParams

NewSwitchGpuDeviceSriovParamsWithContext creates a new SwitchGpuDeviceSriovParams object with the ability to set a context for a request.

func NewSwitchGpuDeviceSriovParamsWithHTTPClient

func NewSwitchGpuDeviceSriovParamsWithHTTPClient(client *http.Client) *SwitchGpuDeviceSriovParams

NewSwitchGpuDeviceSriovParamsWithHTTPClient creates a new SwitchGpuDeviceSriovParams object with the ability to set a custom HTTPClient for a request.

func NewSwitchGpuDeviceSriovParamsWithTimeout

func NewSwitchGpuDeviceSriovParamsWithTimeout(timeout time.Duration) *SwitchGpuDeviceSriovParams

NewSwitchGpuDeviceSriovParamsWithTimeout creates a new SwitchGpuDeviceSriovParams object with the ability to set a timeout on a request.

func (*SwitchGpuDeviceSriovParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the switch gpu device sriov params

func (*SwitchGpuDeviceSriovParams) SetContext

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

SetContext adds the context to the switch gpu device sriov params

func (*SwitchGpuDeviceSriovParams) SetDefaults

func (o *SwitchGpuDeviceSriovParams) SetDefaults()

SetDefaults hydrates default values in the switch gpu device sriov params (not the query body).

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

func (*SwitchGpuDeviceSriovParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the switch gpu device sriov params

func (*SwitchGpuDeviceSriovParams) SetRequestBody

func (o *SwitchGpuDeviceSriovParams) SetRequestBody(requestBody *models.GpuDeviceSriovSwitchParams)

SetRequestBody adds the requestBody to the switch gpu device sriov params

func (*SwitchGpuDeviceSriovParams) SetTimeout

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

SetTimeout adds the timeout to the switch gpu device sriov params

func (*SwitchGpuDeviceSriovParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the switch gpu device sriov params

func (*SwitchGpuDeviceSriovParams) WithContext

WithContext adds the context to the switch gpu device sriov params

func (*SwitchGpuDeviceSriovParams) WithDefaults

WithDefaults hydrates default values in the switch gpu device sriov params (not the query body).

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

func (*SwitchGpuDeviceSriovParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the switch gpu device sriov params

func (*SwitchGpuDeviceSriovParams) WithRequestBody

WithRequestBody adds the requestBody to the switch gpu device sriov params

func (*SwitchGpuDeviceSriovParams) WithTimeout

WithTimeout adds the timeout to the switch gpu device sriov params

func (*SwitchGpuDeviceSriovParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SwitchGpuDeviceSriovReader

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

SwitchGpuDeviceSriovReader is a Reader for the SwitchGpuDeviceSriov structure.

func (*SwitchGpuDeviceSriovReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateGpuDeviceDescriptionBadRequest

type UpdateGpuDeviceDescriptionBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateGpuDeviceDescriptionBadRequest describes a response with status code 400, with default header values.

Bad request

func NewUpdateGpuDeviceDescriptionBadRequest

func NewUpdateGpuDeviceDescriptionBadRequest() *UpdateGpuDeviceDescriptionBadRequest

NewUpdateGpuDeviceDescriptionBadRequest creates a UpdateGpuDeviceDescriptionBadRequest with default headers values

func (*UpdateGpuDeviceDescriptionBadRequest) Error

func (*UpdateGpuDeviceDescriptionBadRequest) GetPayload

type UpdateGpuDeviceDescriptionInternalServerError

type UpdateGpuDeviceDescriptionInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateGpuDeviceDescriptionInternalServerError describes a response with status code 500, with default header values.

Server error

func NewUpdateGpuDeviceDescriptionInternalServerError

func NewUpdateGpuDeviceDescriptionInternalServerError() *UpdateGpuDeviceDescriptionInternalServerError

NewUpdateGpuDeviceDescriptionInternalServerError creates a UpdateGpuDeviceDescriptionInternalServerError with default headers values

func (*UpdateGpuDeviceDescriptionInternalServerError) Error

func (*UpdateGpuDeviceDescriptionInternalServerError) GetPayload

type UpdateGpuDeviceDescriptionNotFound

type UpdateGpuDeviceDescriptionNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateGpuDeviceDescriptionNotFound describes a response with status code 404, with default header values.

Not found

func NewUpdateGpuDeviceDescriptionNotFound

func NewUpdateGpuDeviceDescriptionNotFound() *UpdateGpuDeviceDescriptionNotFound

NewUpdateGpuDeviceDescriptionNotFound creates a UpdateGpuDeviceDescriptionNotFound with default headers values

func (*UpdateGpuDeviceDescriptionNotFound) Error

func (*UpdateGpuDeviceDescriptionNotFound) GetPayload

type UpdateGpuDeviceDescriptionNotModified

type UpdateGpuDeviceDescriptionNotModified struct {
}
UpdateGpuDeviceDescriptionNotModified describes a response with status code 304, with default header values.

Not modified

func NewUpdateGpuDeviceDescriptionNotModified

func NewUpdateGpuDeviceDescriptionNotModified() *UpdateGpuDeviceDescriptionNotModified

NewUpdateGpuDeviceDescriptionNotModified creates a UpdateGpuDeviceDescriptionNotModified with default headers values

func (*UpdateGpuDeviceDescriptionNotModified) Error

type UpdateGpuDeviceDescriptionOK

type UpdateGpuDeviceDescriptionOK struct {
	XTowerRequestID string

	Payload []*models.WithTaskGpuDevice
}
UpdateGpuDeviceDescriptionOK describes a response with status code 200, with default header values.

UpdateGpuDeviceDescriptionOK update gpu device description o k

func NewUpdateGpuDeviceDescriptionOK

func NewUpdateGpuDeviceDescriptionOK() *UpdateGpuDeviceDescriptionOK

NewUpdateGpuDeviceDescriptionOK creates a UpdateGpuDeviceDescriptionOK with default headers values

func (*UpdateGpuDeviceDescriptionOK) Error

func (*UpdateGpuDeviceDescriptionOK) GetPayload

type UpdateGpuDeviceDescriptionParams

type UpdateGpuDeviceDescriptionParams struct {

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

	// RequestBody.
	RequestBody *models.GpuDeviceDescriptionUpdationParams

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

UpdateGpuDeviceDescriptionParams contains all the parameters to send to the API endpoint

for the update gpu device description operation.

Typically these are written to a http.Request.

func NewUpdateGpuDeviceDescriptionParams

func NewUpdateGpuDeviceDescriptionParams() *UpdateGpuDeviceDescriptionParams

NewUpdateGpuDeviceDescriptionParams creates a new UpdateGpuDeviceDescriptionParams 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 NewUpdateGpuDeviceDescriptionParamsWithContext

func NewUpdateGpuDeviceDescriptionParamsWithContext(ctx context.Context) *UpdateGpuDeviceDescriptionParams

NewUpdateGpuDeviceDescriptionParamsWithContext creates a new UpdateGpuDeviceDescriptionParams object with the ability to set a context for a request.

func NewUpdateGpuDeviceDescriptionParamsWithHTTPClient

func NewUpdateGpuDeviceDescriptionParamsWithHTTPClient(client *http.Client) *UpdateGpuDeviceDescriptionParams

NewUpdateGpuDeviceDescriptionParamsWithHTTPClient creates a new UpdateGpuDeviceDescriptionParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateGpuDeviceDescriptionParamsWithTimeout

func NewUpdateGpuDeviceDescriptionParamsWithTimeout(timeout time.Duration) *UpdateGpuDeviceDescriptionParams

NewUpdateGpuDeviceDescriptionParamsWithTimeout creates a new UpdateGpuDeviceDescriptionParams object with the ability to set a timeout on a request.

func (*UpdateGpuDeviceDescriptionParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the update gpu device description params

func (*UpdateGpuDeviceDescriptionParams) SetContext

SetContext adds the context to the update gpu device description params

func (*UpdateGpuDeviceDescriptionParams) SetDefaults

func (o *UpdateGpuDeviceDescriptionParams) SetDefaults()

SetDefaults hydrates default values in the update gpu device description params (not the query body).

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

func (*UpdateGpuDeviceDescriptionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update gpu device description params

func (*UpdateGpuDeviceDescriptionParams) SetRequestBody

SetRequestBody adds the requestBody to the update gpu device description params

func (*UpdateGpuDeviceDescriptionParams) SetTimeout

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

SetTimeout adds the timeout to the update gpu device description params

func (*UpdateGpuDeviceDescriptionParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the update gpu device description params

func (*UpdateGpuDeviceDescriptionParams) WithContext

WithContext adds the context to the update gpu device description params

func (*UpdateGpuDeviceDescriptionParams) WithDefaults

WithDefaults hydrates default values in the update gpu device description params (not the query body).

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

func (*UpdateGpuDeviceDescriptionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update gpu device description params

func (*UpdateGpuDeviceDescriptionParams) WithRequestBody

WithRequestBody adds the requestBody to the update gpu device description params

func (*UpdateGpuDeviceDescriptionParams) WithTimeout

WithTimeout adds the timeout to the update gpu device description params

func (*UpdateGpuDeviceDescriptionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateGpuDeviceDescriptionReader

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

UpdateGpuDeviceDescriptionReader is a Reader for the UpdateGpuDeviceDescription structure.

func (*UpdateGpuDeviceDescriptionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateGpuDeviceUsageBadRequest

type UpdateGpuDeviceUsageBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateGpuDeviceUsageBadRequest describes a response with status code 400, with default header values.

Bad request

func NewUpdateGpuDeviceUsageBadRequest

func NewUpdateGpuDeviceUsageBadRequest() *UpdateGpuDeviceUsageBadRequest

NewUpdateGpuDeviceUsageBadRequest creates a UpdateGpuDeviceUsageBadRequest with default headers values

func (*UpdateGpuDeviceUsageBadRequest) Error

func (*UpdateGpuDeviceUsageBadRequest) GetPayload

type UpdateGpuDeviceUsageInternalServerError

type UpdateGpuDeviceUsageInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateGpuDeviceUsageInternalServerError describes a response with status code 500, with default header values.

Server error

func NewUpdateGpuDeviceUsageInternalServerError

func NewUpdateGpuDeviceUsageInternalServerError() *UpdateGpuDeviceUsageInternalServerError

NewUpdateGpuDeviceUsageInternalServerError creates a UpdateGpuDeviceUsageInternalServerError with default headers values

func (*UpdateGpuDeviceUsageInternalServerError) Error

func (*UpdateGpuDeviceUsageInternalServerError) GetPayload

type UpdateGpuDeviceUsageNotFound

type UpdateGpuDeviceUsageNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateGpuDeviceUsageNotFound describes a response with status code 404, with default header values.

Not found

func NewUpdateGpuDeviceUsageNotFound

func NewUpdateGpuDeviceUsageNotFound() *UpdateGpuDeviceUsageNotFound

NewUpdateGpuDeviceUsageNotFound creates a UpdateGpuDeviceUsageNotFound with default headers values

func (*UpdateGpuDeviceUsageNotFound) Error

func (*UpdateGpuDeviceUsageNotFound) GetPayload

type UpdateGpuDeviceUsageNotModified

type UpdateGpuDeviceUsageNotModified struct {
}
UpdateGpuDeviceUsageNotModified describes a response with status code 304, with default header values.

Not modified

func NewUpdateGpuDeviceUsageNotModified

func NewUpdateGpuDeviceUsageNotModified() *UpdateGpuDeviceUsageNotModified

NewUpdateGpuDeviceUsageNotModified creates a UpdateGpuDeviceUsageNotModified with default headers values

func (*UpdateGpuDeviceUsageNotModified) Error

type UpdateGpuDeviceUsageOK

type UpdateGpuDeviceUsageOK struct {
	XTowerRequestID string

	Payload []*models.WithTaskGpuDevice
}
UpdateGpuDeviceUsageOK describes a response with status code 200, with default header values.

UpdateGpuDeviceUsageOK update gpu device usage o k

func NewUpdateGpuDeviceUsageOK

func NewUpdateGpuDeviceUsageOK() *UpdateGpuDeviceUsageOK

NewUpdateGpuDeviceUsageOK creates a UpdateGpuDeviceUsageOK with default headers values

func (*UpdateGpuDeviceUsageOK) Error

func (o *UpdateGpuDeviceUsageOK) Error() string

func (*UpdateGpuDeviceUsageOK) GetPayload

func (o *UpdateGpuDeviceUsageOK) GetPayload() []*models.WithTaskGpuDevice

type UpdateGpuDeviceUsageParams

type UpdateGpuDeviceUsageParams struct {

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

	// RequestBody.
	RequestBody *models.GpuDeviceUsageUpdationParams

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

UpdateGpuDeviceUsageParams contains all the parameters to send to the API endpoint

for the update gpu device usage operation.

Typically these are written to a http.Request.

func NewUpdateGpuDeviceUsageParams

func NewUpdateGpuDeviceUsageParams() *UpdateGpuDeviceUsageParams

NewUpdateGpuDeviceUsageParams creates a new UpdateGpuDeviceUsageParams 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 NewUpdateGpuDeviceUsageParamsWithContext

func NewUpdateGpuDeviceUsageParamsWithContext(ctx context.Context) *UpdateGpuDeviceUsageParams

NewUpdateGpuDeviceUsageParamsWithContext creates a new UpdateGpuDeviceUsageParams object with the ability to set a context for a request.

func NewUpdateGpuDeviceUsageParamsWithHTTPClient

func NewUpdateGpuDeviceUsageParamsWithHTTPClient(client *http.Client) *UpdateGpuDeviceUsageParams

NewUpdateGpuDeviceUsageParamsWithHTTPClient creates a new UpdateGpuDeviceUsageParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateGpuDeviceUsageParamsWithTimeout

func NewUpdateGpuDeviceUsageParamsWithTimeout(timeout time.Duration) *UpdateGpuDeviceUsageParams

NewUpdateGpuDeviceUsageParamsWithTimeout creates a new UpdateGpuDeviceUsageParams object with the ability to set a timeout on a request.

func (*UpdateGpuDeviceUsageParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the update gpu device usage params

func (*UpdateGpuDeviceUsageParams) SetContext

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

SetContext adds the context to the update gpu device usage params

func (*UpdateGpuDeviceUsageParams) SetDefaults

func (o *UpdateGpuDeviceUsageParams) SetDefaults()

SetDefaults hydrates default values in the update gpu device usage params (not the query body).

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

func (*UpdateGpuDeviceUsageParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update gpu device usage params

func (*UpdateGpuDeviceUsageParams) SetRequestBody

func (o *UpdateGpuDeviceUsageParams) SetRequestBody(requestBody *models.GpuDeviceUsageUpdationParams)

SetRequestBody adds the requestBody to the update gpu device usage params

func (*UpdateGpuDeviceUsageParams) SetTimeout

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

SetTimeout adds the timeout to the update gpu device usage params

func (*UpdateGpuDeviceUsageParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the update gpu device usage params

func (*UpdateGpuDeviceUsageParams) WithContext

WithContext adds the context to the update gpu device usage params

func (*UpdateGpuDeviceUsageParams) WithDefaults

WithDefaults hydrates default values in the update gpu device usage params (not the query body).

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

func (*UpdateGpuDeviceUsageParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update gpu device usage params

func (*UpdateGpuDeviceUsageParams) WithRequestBody

WithRequestBody adds the requestBody to the update gpu device usage params

func (*UpdateGpuDeviceUsageParams) WithTimeout

WithTimeout adds the timeout to the update gpu device usage params

func (*UpdateGpuDeviceUsageParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateGpuDeviceUsageReader

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

UpdateGpuDeviceUsageReader is a Reader for the UpdateGpuDeviceUsage structure.

func (*UpdateGpuDeviceUsageReader) ReadResponse

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