usb_device

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

func (*Client) GetUsbDevices

func (a *Client) GetUsbDevices(params *GetUsbDevicesParams, opts ...ClientOption) (*GetUsbDevicesOK, error)

GetUsbDevices get usb devices API

func (*Client) GetUsbDevicesConnection

func (a *Client) GetUsbDevicesConnection(params *GetUsbDevicesConnectionParams, opts ...ClientOption) (*GetUsbDevicesConnectionOK, error)

GetUsbDevicesConnection get usb devices connection API

func (*Client) MountUsbDevice

func (a *Client) MountUsbDevice(params *MountUsbDeviceParams, opts ...ClientOption) (*MountUsbDeviceOK, error)

MountUsbDevice mount usb device API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UnmountUsbDevice

func (a *Client) UnmountUsbDevice(params *UnmountUsbDeviceParams, opts ...ClientOption) (*UnmountUsbDeviceOK, error)

UnmountUsbDevice unmount usb device API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetUsbDevices(params *GetUsbDevicesParams, opts ...ClientOption) (*GetUsbDevicesOK, error)

	GetUsbDevicesConnection(params *GetUsbDevicesConnectionParams, opts ...ClientOption) (*GetUsbDevicesConnectionOK, error)

	MountUsbDevice(params *MountUsbDeviceParams, opts ...ClientOption) (*MountUsbDeviceOK, error)

	UnmountUsbDevice(params *UnmountUsbDeviceParams, opts ...ClientOption) (*UnmountUsbDeviceOK, 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 usb device API client.

type GetUsbDevicesBadRequest

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

Bad request

func NewGetUsbDevicesBadRequest

func NewGetUsbDevicesBadRequest() *GetUsbDevicesBadRequest

NewGetUsbDevicesBadRequest creates a GetUsbDevicesBadRequest with default headers values

func (*GetUsbDevicesBadRequest) Error

func (o *GetUsbDevicesBadRequest) Error() string

func (*GetUsbDevicesBadRequest) GetPayload

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

type GetUsbDevicesConnectionBadRequest

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

Bad request

func NewGetUsbDevicesConnectionBadRequest

func NewGetUsbDevicesConnectionBadRequest() *GetUsbDevicesConnectionBadRequest

NewGetUsbDevicesConnectionBadRequest creates a GetUsbDevicesConnectionBadRequest with default headers values

func (*GetUsbDevicesConnectionBadRequest) Error

func (*GetUsbDevicesConnectionBadRequest) GetPayload

type GetUsbDevicesConnectionInternalServerError added in v1.10.0

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

Server error

func NewGetUsbDevicesConnectionInternalServerError added in v1.10.0

func NewGetUsbDevicesConnectionInternalServerError() *GetUsbDevicesConnectionInternalServerError

NewGetUsbDevicesConnectionInternalServerError creates a GetUsbDevicesConnectionInternalServerError with default headers values

func (*GetUsbDevicesConnectionInternalServerError) Error added in v1.10.0

func (*GetUsbDevicesConnectionInternalServerError) GetPayload added in v1.10.0

type GetUsbDevicesConnectionNotFound added in v1.10.0

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

Not found

func NewGetUsbDevicesConnectionNotFound added in v1.10.0

func NewGetUsbDevicesConnectionNotFound() *GetUsbDevicesConnectionNotFound

NewGetUsbDevicesConnectionNotFound creates a GetUsbDevicesConnectionNotFound with default headers values

func (*GetUsbDevicesConnectionNotFound) Error added in v1.10.0

func (*GetUsbDevicesConnectionNotFound) GetPayload added in v1.10.0

type GetUsbDevicesConnectionOK

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

Ok

func NewGetUsbDevicesConnectionOK

func NewGetUsbDevicesConnectionOK() *GetUsbDevicesConnectionOK

NewGetUsbDevicesConnectionOK creates a GetUsbDevicesConnectionOK with default headers values

func (*GetUsbDevicesConnectionOK) Error

func (o *GetUsbDevicesConnectionOK) Error() string

func (*GetUsbDevicesConnectionOK) GetPayload

type GetUsbDevicesConnectionParams

type GetUsbDevicesConnectionParams struct {

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

	// RequestBody.
	RequestBody *models.GetUsbDevicesConnectionRequestBody

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

GetUsbDevicesConnectionParams contains all the parameters to send to the API endpoint

for the get usb devices connection operation.

Typically these are written to a http.Request.

func NewGetUsbDevicesConnectionParams

func NewGetUsbDevicesConnectionParams() *GetUsbDevicesConnectionParams

NewGetUsbDevicesConnectionParams creates a new GetUsbDevicesConnectionParams 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 NewGetUsbDevicesConnectionParamsWithContext

func NewGetUsbDevicesConnectionParamsWithContext(ctx context.Context) *GetUsbDevicesConnectionParams

NewGetUsbDevicesConnectionParamsWithContext creates a new GetUsbDevicesConnectionParams object with the ability to set a context for a request.

func NewGetUsbDevicesConnectionParamsWithHTTPClient

func NewGetUsbDevicesConnectionParamsWithHTTPClient(client *http.Client) *GetUsbDevicesConnectionParams

NewGetUsbDevicesConnectionParamsWithHTTPClient creates a new GetUsbDevicesConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetUsbDevicesConnectionParamsWithTimeout

func NewGetUsbDevicesConnectionParamsWithTimeout(timeout time.Duration) *GetUsbDevicesConnectionParams

NewGetUsbDevicesConnectionParamsWithTimeout creates a new GetUsbDevicesConnectionParams object with the ability to set a timeout on a request.

func (*GetUsbDevicesConnectionParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the get usb devices connection params

func (*GetUsbDevicesConnectionParams) SetContext

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

SetContext adds the context to the get usb devices connection params

func (*GetUsbDevicesConnectionParams) SetDefaults

func (o *GetUsbDevicesConnectionParams) SetDefaults()

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

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

func (*GetUsbDevicesConnectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get usb devices connection params

func (*GetUsbDevicesConnectionParams) SetRequestBody

SetRequestBody adds the requestBody to the get usb devices connection params

func (*GetUsbDevicesConnectionParams) SetTimeout

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

SetTimeout adds the timeout to the get usb devices connection params

func (*GetUsbDevicesConnectionParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the get usb devices connection params

func (*GetUsbDevicesConnectionParams) WithContext

WithContext adds the context to the get usb devices connection params

func (*GetUsbDevicesConnectionParams) WithDefaults

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

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

func (*GetUsbDevicesConnectionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get usb devices connection params

func (*GetUsbDevicesConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get usb devices connection params

func (*GetUsbDevicesConnectionParams) WithTimeout

WithTimeout adds the timeout to the get usb devices connection params

func (*GetUsbDevicesConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUsbDevicesConnectionReader

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

GetUsbDevicesConnectionReader is a Reader for the GetUsbDevicesConnection structure.

func (*GetUsbDevicesConnectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUsbDevicesInternalServerError added in v1.10.0

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

Server error

func NewGetUsbDevicesInternalServerError added in v1.10.0

func NewGetUsbDevicesInternalServerError() *GetUsbDevicesInternalServerError

NewGetUsbDevicesInternalServerError creates a GetUsbDevicesInternalServerError with default headers values

func (*GetUsbDevicesInternalServerError) Error added in v1.10.0

func (*GetUsbDevicesInternalServerError) GetPayload added in v1.10.0

type GetUsbDevicesNotFound added in v1.10.0

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

Not found

func NewGetUsbDevicesNotFound added in v1.10.0

func NewGetUsbDevicesNotFound() *GetUsbDevicesNotFound

NewGetUsbDevicesNotFound creates a GetUsbDevicesNotFound with default headers values

func (*GetUsbDevicesNotFound) Error added in v1.10.0

func (o *GetUsbDevicesNotFound) Error() string

func (*GetUsbDevicesNotFound) GetPayload added in v1.10.0

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

type GetUsbDevicesOK

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

Ok

func NewGetUsbDevicesOK

func NewGetUsbDevicesOK() *GetUsbDevicesOK

NewGetUsbDevicesOK creates a GetUsbDevicesOK with default headers values

func (*GetUsbDevicesOK) Error

func (o *GetUsbDevicesOK) Error() string

func (*GetUsbDevicesOK) GetPayload

func (o *GetUsbDevicesOK) GetPayload() []*models.UsbDevice

type GetUsbDevicesParams

type GetUsbDevicesParams struct {

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

	// RequestBody.
	RequestBody *models.GetUsbDevicesRequestBody

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

GetUsbDevicesParams contains all the parameters to send to the API endpoint

for the get usb devices operation.

Typically these are written to a http.Request.

func NewGetUsbDevicesParams

func NewGetUsbDevicesParams() *GetUsbDevicesParams

NewGetUsbDevicesParams creates a new GetUsbDevicesParams 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 NewGetUsbDevicesParamsWithContext

func NewGetUsbDevicesParamsWithContext(ctx context.Context) *GetUsbDevicesParams

NewGetUsbDevicesParamsWithContext creates a new GetUsbDevicesParams object with the ability to set a context for a request.

func NewGetUsbDevicesParamsWithHTTPClient

func NewGetUsbDevicesParamsWithHTTPClient(client *http.Client) *GetUsbDevicesParams

NewGetUsbDevicesParamsWithHTTPClient creates a new GetUsbDevicesParams object with the ability to set a custom HTTPClient for a request.

func NewGetUsbDevicesParamsWithTimeout

func NewGetUsbDevicesParamsWithTimeout(timeout time.Duration) *GetUsbDevicesParams

NewGetUsbDevicesParamsWithTimeout creates a new GetUsbDevicesParams object with the ability to set a timeout on a request.

func (*GetUsbDevicesParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the get usb devices params

func (*GetUsbDevicesParams) SetContext

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

SetContext adds the context to the get usb devices params

func (*GetUsbDevicesParams) SetDefaults

func (o *GetUsbDevicesParams) SetDefaults()

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

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

func (*GetUsbDevicesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get usb devices params

func (*GetUsbDevicesParams) SetRequestBody

func (o *GetUsbDevicesParams) SetRequestBody(requestBody *models.GetUsbDevicesRequestBody)

SetRequestBody adds the requestBody to the get usb devices params

func (*GetUsbDevicesParams) SetTimeout

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

SetTimeout adds the timeout to the get usb devices params

func (*GetUsbDevicesParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the get usb devices params

func (*GetUsbDevicesParams) WithContext

WithContext adds the context to the get usb devices params

func (*GetUsbDevicesParams) WithDefaults

func (o *GetUsbDevicesParams) WithDefaults() *GetUsbDevicesParams

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

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

func (*GetUsbDevicesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get usb devices params

func (*GetUsbDevicesParams) WithRequestBody

func (o *GetUsbDevicesParams) WithRequestBody(requestBody *models.GetUsbDevicesRequestBody) *GetUsbDevicesParams

WithRequestBody adds the requestBody to the get usb devices params

func (*GetUsbDevicesParams) WithTimeout

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

WithTimeout adds the timeout to the get usb devices params

func (*GetUsbDevicesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUsbDevicesReader

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

GetUsbDevicesReader is a Reader for the GetUsbDevices structure.

func (*GetUsbDevicesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type MountUsbDeviceBadRequest

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

Bad request

func NewMountUsbDeviceBadRequest

func NewMountUsbDeviceBadRequest() *MountUsbDeviceBadRequest

NewMountUsbDeviceBadRequest creates a MountUsbDeviceBadRequest with default headers values

func (*MountUsbDeviceBadRequest) Error

func (o *MountUsbDeviceBadRequest) Error() string

func (*MountUsbDeviceBadRequest) GetPayload

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

type MountUsbDeviceInternalServerError added in v1.10.0

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

Server error

func NewMountUsbDeviceInternalServerError added in v1.10.0

func NewMountUsbDeviceInternalServerError() *MountUsbDeviceInternalServerError

NewMountUsbDeviceInternalServerError creates a MountUsbDeviceInternalServerError with default headers values

func (*MountUsbDeviceInternalServerError) Error added in v1.10.0

func (*MountUsbDeviceInternalServerError) GetPayload added in v1.10.0

type MountUsbDeviceNotFound added in v1.10.0

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

Not found

func NewMountUsbDeviceNotFound added in v1.10.0

func NewMountUsbDeviceNotFound() *MountUsbDeviceNotFound

NewMountUsbDeviceNotFound creates a MountUsbDeviceNotFound with default headers values

func (*MountUsbDeviceNotFound) Error added in v1.10.0

func (o *MountUsbDeviceNotFound) Error() string

func (*MountUsbDeviceNotFound) GetPayload added in v1.10.0

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

type MountUsbDeviceOK

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

Ok

func NewMountUsbDeviceOK

func NewMountUsbDeviceOK() *MountUsbDeviceOK

NewMountUsbDeviceOK creates a MountUsbDeviceOK with default headers values

func (*MountUsbDeviceOK) Error

func (o *MountUsbDeviceOK) Error() string

func (*MountUsbDeviceOK) GetPayload

func (o *MountUsbDeviceOK) GetPayload() []*models.WithTaskUsbDevice

type MountUsbDeviceParams

type MountUsbDeviceParams struct {

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

	// RequestBody.
	RequestBody *models.UsbDeviceMountParams

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

MountUsbDeviceParams contains all the parameters to send to the API endpoint

for the mount usb device operation.

Typically these are written to a http.Request.

func NewMountUsbDeviceParams

func NewMountUsbDeviceParams() *MountUsbDeviceParams

NewMountUsbDeviceParams creates a new MountUsbDeviceParams 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 NewMountUsbDeviceParamsWithContext

func NewMountUsbDeviceParamsWithContext(ctx context.Context) *MountUsbDeviceParams

NewMountUsbDeviceParamsWithContext creates a new MountUsbDeviceParams object with the ability to set a context for a request.

func NewMountUsbDeviceParamsWithHTTPClient

func NewMountUsbDeviceParamsWithHTTPClient(client *http.Client) *MountUsbDeviceParams

NewMountUsbDeviceParamsWithHTTPClient creates a new MountUsbDeviceParams object with the ability to set a custom HTTPClient for a request.

func NewMountUsbDeviceParamsWithTimeout

func NewMountUsbDeviceParamsWithTimeout(timeout time.Duration) *MountUsbDeviceParams

NewMountUsbDeviceParamsWithTimeout creates a new MountUsbDeviceParams object with the ability to set a timeout on a request.

func (*MountUsbDeviceParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the mount usb device params

func (*MountUsbDeviceParams) SetContext

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

SetContext adds the context to the mount usb device params

func (*MountUsbDeviceParams) SetDefaults

func (o *MountUsbDeviceParams) SetDefaults()

SetDefaults hydrates default values in the mount usb device params (not the query body).

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

func (*MountUsbDeviceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the mount usb device params

func (*MountUsbDeviceParams) SetRequestBody

func (o *MountUsbDeviceParams) SetRequestBody(requestBody *models.UsbDeviceMountParams)

SetRequestBody adds the requestBody to the mount usb device params

func (*MountUsbDeviceParams) SetTimeout

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

SetTimeout adds the timeout to the mount usb device params

func (*MountUsbDeviceParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the mount usb device params

func (*MountUsbDeviceParams) WithContext

WithContext adds the context to the mount usb device params

func (*MountUsbDeviceParams) WithDefaults

func (o *MountUsbDeviceParams) WithDefaults() *MountUsbDeviceParams

WithDefaults hydrates default values in the mount usb device params (not the query body).

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

func (*MountUsbDeviceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the mount usb device params

func (*MountUsbDeviceParams) WithRequestBody

func (o *MountUsbDeviceParams) WithRequestBody(requestBody *models.UsbDeviceMountParams) *MountUsbDeviceParams

WithRequestBody adds the requestBody to the mount usb device params

func (*MountUsbDeviceParams) WithTimeout

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

WithTimeout adds the timeout to the mount usb device params

func (*MountUsbDeviceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type MountUsbDeviceReader

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

MountUsbDeviceReader is a Reader for the MountUsbDevice structure.

func (*MountUsbDeviceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UnmountUsbDeviceBadRequest

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

Bad request

func NewUnmountUsbDeviceBadRequest

func NewUnmountUsbDeviceBadRequest() *UnmountUsbDeviceBadRequest

NewUnmountUsbDeviceBadRequest creates a UnmountUsbDeviceBadRequest with default headers values

func (*UnmountUsbDeviceBadRequest) Error

func (*UnmountUsbDeviceBadRequest) GetPayload

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

type UnmountUsbDeviceInternalServerError added in v1.10.0

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

Server error

func NewUnmountUsbDeviceInternalServerError added in v1.10.0

func NewUnmountUsbDeviceInternalServerError() *UnmountUsbDeviceInternalServerError

NewUnmountUsbDeviceInternalServerError creates a UnmountUsbDeviceInternalServerError with default headers values

func (*UnmountUsbDeviceInternalServerError) Error added in v1.10.0

func (*UnmountUsbDeviceInternalServerError) GetPayload added in v1.10.0

type UnmountUsbDeviceNotFound added in v1.10.0

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

Not found

func NewUnmountUsbDeviceNotFound added in v1.10.0

func NewUnmountUsbDeviceNotFound() *UnmountUsbDeviceNotFound

NewUnmountUsbDeviceNotFound creates a UnmountUsbDeviceNotFound with default headers values

func (*UnmountUsbDeviceNotFound) Error added in v1.10.0

func (o *UnmountUsbDeviceNotFound) Error() string

func (*UnmountUsbDeviceNotFound) GetPayload added in v1.10.0

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

type UnmountUsbDeviceOK

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

Ok

func NewUnmountUsbDeviceOK

func NewUnmountUsbDeviceOK() *UnmountUsbDeviceOK

NewUnmountUsbDeviceOK creates a UnmountUsbDeviceOK with default headers values

func (*UnmountUsbDeviceOK) Error

func (o *UnmountUsbDeviceOK) Error() string

func (*UnmountUsbDeviceOK) GetPayload

func (o *UnmountUsbDeviceOK) GetPayload() []*models.WithTaskUsbDevice

type UnmountUsbDeviceParams

type UnmountUsbDeviceParams struct {

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

	// RequestBody.
	RequestBody *models.UsbDeviceUnmountParams

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

UnmountUsbDeviceParams contains all the parameters to send to the API endpoint

for the unmount usb device operation.

Typically these are written to a http.Request.

func NewUnmountUsbDeviceParams

func NewUnmountUsbDeviceParams() *UnmountUsbDeviceParams

NewUnmountUsbDeviceParams creates a new UnmountUsbDeviceParams 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 NewUnmountUsbDeviceParamsWithContext

func NewUnmountUsbDeviceParamsWithContext(ctx context.Context) *UnmountUsbDeviceParams

NewUnmountUsbDeviceParamsWithContext creates a new UnmountUsbDeviceParams object with the ability to set a context for a request.

func NewUnmountUsbDeviceParamsWithHTTPClient

func NewUnmountUsbDeviceParamsWithHTTPClient(client *http.Client) *UnmountUsbDeviceParams

NewUnmountUsbDeviceParamsWithHTTPClient creates a new UnmountUsbDeviceParams object with the ability to set a custom HTTPClient for a request.

func NewUnmountUsbDeviceParamsWithTimeout

func NewUnmountUsbDeviceParamsWithTimeout(timeout time.Duration) *UnmountUsbDeviceParams

NewUnmountUsbDeviceParamsWithTimeout creates a new UnmountUsbDeviceParams object with the ability to set a timeout on a request.

func (*UnmountUsbDeviceParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the unmount usb device params

func (*UnmountUsbDeviceParams) SetContext

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

SetContext adds the context to the unmount usb device params

func (*UnmountUsbDeviceParams) SetDefaults

func (o *UnmountUsbDeviceParams) SetDefaults()

SetDefaults hydrates default values in the unmount usb device params (not the query body).

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

func (*UnmountUsbDeviceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the unmount usb device params

func (*UnmountUsbDeviceParams) SetRequestBody

func (o *UnmountUsbDeviceParams) SetRequestBody(requestBody *models.UsbDeviceUnmountParams)

SetRequestBody adds the requestBody to the unmount usb device params

func (*UnmountUsbDeviceParams) SetTimeout

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

SetTimeout adds the timeout to the unmount usb device params

func (*UnmountUsbDeviceParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the unmount usb device params

func (*UnmountUsbDeviceParams) WithContext

WithContext adds the context to the unmount usb device params

func (*UnmountUsbDeviceParams) WithDefaults

WithDefaults hydrates default values in the unmount usb device params (not the query body).

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

func (*UnmountUsbDeviceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the unmount usb device params

func (*UnmountUsbDeviceParams) WithRequestBody

WithRequestBody adds the requestBody to the unmount usb device params

func (*UnmountUsbDeviceParams) WithTimeout

WithTimeout adds the timeout to the unmount usb device params

func (*UnmountUsbDeviceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UnmountUsbDeviceReader

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

UnmountUsbDeviceReader is a Reader for the UnmountUsbDevice structure.

func (*UnmountUsbDeviceReader) ReadResponse

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