Documentation ¶
Index ¶
- type Client
- func (a *Client) GetUsbDevices(params *GetUsbDevicesParams, opts ...ClientOption) (*GetUsbDevicesOK, error)
- func (a *Client) GetUsbDevicesConnection(params *GetUsbDevicesConnectionParams, opts ...ClientOption) (*GetUsbDevicesConnectionOK, error)
- func (a *Client) MountUsbDevice(params *MountUsbDeviceParams, opts ...ClientOption) (*MountUsbDeviceOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UnmountUsbDevice(params *UnmountUsbDeviceParams, opts ...ClientOption) (*UnmountUsbDeviceOK, error)
- type ClientOption
- type ClientService
- type GetUsbDevicesBadRequest
- type GetUsbDevicesConnectionBadRequest
- type GetUsbDevicesConnectionInternalServerError
- type GetUsbDevicesConnectionNotFound
- type GetUsbDevicesConnectionOK
- type GetUsbDevicesConnectionParams
- func NewGetUsbDevicesConnectionParams() *GetUsbDevicesConnectionParams
- func NewGetUsbDevicesConnectionParamsWithContext(ctx context.Context) *GetUsbDevicesConnectionParams
- func NewGetUsbDevicesConnectionParamsWithHTTPClient(client *http.Client) *GetUsbDevicesConnectionParams
- func NewGetUsbDevicesConnectionParamsWithTimeout(timeout time.Duration) *GetUsbDevicesConnectionParams
- func (o *GetUsbDevicesConnectionParams) SetContentLanguage(contentLanguage *string)
- func (o *GetUsbDevicesConnectionParams) SetContext(ctx context.Context)
- func (o *GetUsbDevicesConnectionParams) SetDefaults()
- func (o *GetUsbDevicesConnectionParams) SetHTTPClient(client *http.Client)
- func (o *GetUsbDevicesConnectionParams) SetRequestBody(requestBody *models.GetUsbDevicesConnectionRequestBody)
- func (o *GetUsbDevicesConnectionParams) SetTimeout(timeout time.Duration)
- func (o *GetUsbDevicesConnectionParams) WithContentLanguage(contentLanguage *string) *GetUsbDevicesConnectionParams
- func (o *GetUsbDevicesConnectionParams) WithContext(ctx context.Context) *GetUsbDevicesConnectionParams
- func (o *GetUsbDevicesConnectionParams) WithDefaults() *GetUsbDevicesConnectionParams
- func (o *GetUsbDevicesConnectionParams) WithHTTPClient(client *http.Client) *GetUsbDevicesConnectionParams
- func (o *GetUsbDevicesConnectionParams) WithRequestBody(requestBody *models.GetUsbDevicesConnectionRequestBody) *GetUsbDevicesConnectionParams
- func (o *GetUsbDevicesConnectionParams) WithTimeout(timeout time.Duration) *GetUsbDevicesConnectionParams
- func (o *GetUsbDevicesConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUsbDevicesConnectionReader
- type GetUsbDevicesInternalServerError
- type GetUsbDevicesNotFound
- type GetUsbDevicesOK
- type GetUsbDevicesParams
- func (o *GetUsbDevicesParams) SetContentLanguage(contentLanguage *string)
- func (o *GetUsbDevicesParams) SetContext(ctx context.Context)
- func (o *GetUsbDevicesParams) SetDefaults()
- func (o *GetUsbDevicesParams) SetHTTPClient(client *http.Client)
- func (o *GetUsbDevicesParams) SetRequestBody(requestBody *models.GetUsbDevicesRequestBody)
- func (o *GetUsbDevicesParams) SetTimeout(timeout time.Duration)
- func (o *GetUsbDevicesParams) WithContentLanguage(contentLanguage *string) *GetUsbDevicesParams
- func (o *GetUsbDevicesParams) WithContext(ctx context.Context) *GetUsbDevicesParams
- func (o *GetUsbDevicesParams) WithDefaults() *GetUsbDevicesParams
- func (o *GetUsbDevicesParams) WithHTTPClient(client *http.Client) *GetUsbDevicesParams
- func (o *GetUsbDevicesParams) WithRequestBody(requestBody *models.GetUsbDevicesRequestBody) *GetUsbDevicesParams
- func (o *GetUsbDevicesParams) WithTimeout(timeout time.Duration) *GetUsbDevicesParams
- func (o *GetUsbDevicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUsbDevicesReader
- type MountUsbDeviceBadRequest
- type MountUsbDeviceInternalServerError
- type MountUsbDeviceNotFound
- type MountUsbDeviceOK
- type MountUsbDeviceParams
- func NewMountUsbDeviceParams() *MountUsbDeviceParams
- func NewMountUsbDeviceParamsWithContext(ctx context.Context) *MountUsbDeviceParams
- func NewMountUsbDeviceParamsWithHTTPClient(client *http.Client) *MountUsbDeviceParams
- func NewMountUsbDeviceParamsWithTimeout(timeout time.Duration) *MountUsbDeviceParams
- func (o *MountUsbDeviceParams) SetContentLanguage(contentLanguage *string)
- func (o *MountUsbDeviceParams) SetContext(ctx context.Context)
- func (o *MountUsbDeviceParams) SetDefaults()
- func (o *MountUsbDeviceParams) SetHTTPClient(client *http.Client)
- func (o *MountUsbDeviceParams) SetRequestBody(requestBody *models.UsbDeviceMountParams)
- func (o *MountUsbDeviceParams) SetTimeout(timeout time.Duration)
- func (o *MountUsbDeviceParams) WithContentLanguage(contentLanguage *string) *MountUsbDeviceParams
- func (o *MountUsbDeviceParams) WithContext(ctx context.Context) *MountUsbDeviceParams
- func (o *MountUsbDeviceParams) WithDefaults() *MountUsbDeviceParams
- func (o *MountUsbDeviceParams) WithHTTPClient(client *http.Client) *MountUsbDeviceParams
- func (o *MountUsbDeviceParams) WithRequestBody(requestBody *models.UsbDeviceMountParams) *MountUsbDeviceParams
- func (o *MountUsbDeviceParams) WithTimeout(timeout time.Duration) *MountUsbDeviceParams
- func (o *MountUsbDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MountUsbDeviceReader
- type UnmountUsbDeviceBadRequest
- type UnmountUsbDeviceInternalServerError
- type UnmountUsbDeviceNotFound
- type UnmountUsbDeviceOK
- type UnmountUsbDeviceParams
- func NewUnmountUsbDeviceParams() *UnmountUsbDeviceParams
- func NewUnmountUsbDeviceParamsWithContext(ctx context.Context) *UnmountUsbDeviceParams
- func NewUnmountUsbDeviceParamsWithHTTPClient(client *http.Client) *UnmountUsbDeviceParams
- func NewUnmountUsbDeviceParamsWithTimeout(timeout time.Duration) *UnmountUsbDeviceParams
- func (o *UnmountUsbDeviceParams) SetContentLanguage(contentLanguage *string)
- func (o *UnmountUsbDeviceParams) SetContext(ctx context.Context)
- func (o *UnmountUsbDeviceParams) SetDefaults()
- func (o *UnmountUsbDeviceParams) SetHTTPClient(client *http.Client)
- func (o *UnmountUsbDeviceParams) SetRequestBody(requestBody *models.UsbDeviceUnmountParams)
- func (o *UnmountUsbDeviceParams) SetTimeout(timeout time.Duration)
- func (o *UnmountUsbDeviceParams) WithContentLanguage(contentLanguage *string) *UnmountUsbDeviceParams
- func (o *UnmountUsbDeviceParams) WithContext(ctx context.Context) *UnmountUsbDeviceParams
- func (o *UnmountUsbDeviceParams) WithDefaults() *UnmountUsbDeviceParams
- func (o *UnmountUsbDeviceParams) WithHTTPClient(client *http.Client) *UnmountUsbDeviceParams
- func (o *UnmountUsbDeviceParams) WithRequestBody(requestBody *models.UsbDeviceUnmountParams) *UnmountUsbDeviceParams
- func (o *UnmountUsbDeviceParams) WithTimeout(timeout time.Duration) *UnmountUsbDeviceParams
- func (o *UnmountUsbDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UnmountUsbDeviceReader
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 ¶
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 ¶
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 (o *GetUsbDevicesConnectionBadRequest) Error() string
func (*GetUsbDevicesConnectionBadRequest) GetPayload ¶
func (o *GetUsbDevicesConnectionBadRequest) GetPayload() *models.ErrorBody
type GetUsbDevicesConnectionInternalServerError ¶
type GetUsbDevicesConnectionInternalServerError struct { XTowerRequestID string Payload *models.ErrorBody }
GetUsbDevicesConnectionInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetUsbDevicesConnectionInternalServerError ¶
func NewGetUsbDevicesConnectionInternalServerError() *GetUsbDevicesConnectionInternalServerError
NewGetUsbDevicesConnectionInternalServerError creates a GetUsbDevicesConnectionInternalServerError with default headers values
func (*GetUsbDevicesConnectionInternalServerError) Error ¶
func (o *GetUsbDevicesConnectionInternalServerError) Error() string
func (*GetUsbDevicesConnectionInternalServerError) GetPayload ¶
func (o *GetUsbDevicesConnectionInternalServerError) GetPayload() *models.ErrorBody
type GetUsbDevicesConnectionNotFound ¶
GetUsbDevicesConnectionNotFound describes a response with status code 404, with default header values.
Not found
func NewGetUsbDevicesConnectionNotFound ¶
func NewGetUsbDevicesConnectionNotFound() *GetUsbDevicesConnectionNotFound
NewGetUsbDevicesConnectionNotFound creates a GetUsbDevicesConnectionNotFound with default headers values
func (*GetUsbDevicesConnectionNotFound) Error ¶
func (o *GetUsbDevicesConnectionNotFound) Error() string
func (*GetUsbDevicesConnectionNotFound) GetPayload ¶
func (o *GetUsbDevicesConnectionNotFound) GetPayload() *models.ErrorBody
type GetUsbDevicesConnectionOK ¶
type GetUsbDevicesConnectionOK struct { XTowerRequestID string Payload *models.UsbDeviceConnection }
GetUsbDevicesConnectionOK describes a response with status code 200, with default header values.
GetUsbDevicesConnectionOK get usb devices connection o k
func NewGetUsbDevicesConnectionOK ¶
func NewGetUsbDevicesConnectionOK() *GetUsbDevicesConnectionOK
NewGetUsbDevicesConnectionOK creates a GetUsbDevicesConnectionOK with default headers values
func (*GetUsbDevicesConnectionOK) Error ¶
func (o *GetUsbDevicesConnectionOK) Error() string
func (*GetUsbDevicesConnectionOK) GetPayload ¶
func (o *GetUsbDevicesConnectionOK) GetPayload() *models.UsbDeviceConnection
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 ¶
func (o *GetUsbDevicesConnectionParams) SetRequestBody(requestBody *models.GetUsbDevicesConnectionRequestBody)
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 ¶
func (o *GetUsbDevicesConnectionParams) WithContext(ctx context.Context) *GetUsbDevicesConnectionParams
WithContext adds the context to the get usb devices connection params
func (*GetUsbDevicesConnectionParams) WithDefaults ¶
func (o *GetUsbDevicesConnectionParams) WithDefaults() *GetUsbDevicesConnectionParams
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 ¶
func (o *GetUsbDevicesConnectionParams) WithHTTPClient(client *http.Client) *GetUsbDevicesConnectionParams
WithHTTPClient adds the HTTPClient to the get usb devices connection params
func (*GetUsbDevicesConnectionParams) WithRequestBody ¶
func (o *GetUsbDevicesConnectionParams) WithRequestBody(requestBody *models.GetUsbDevicesConnectionRequestBody) *GetUsbDevicesConnectionParams
WithRequestBody adds the requestBody to the get usb devices connection params
func (*GetUsbDevicesConnectionParams) WithTimeout ¶
func (o *GetUsbDevicesConnectionParams) WithTimeout(timeout time.Duration) *GetUsbDevicesConnectionParams
WithTimeout adds the timeout to the get usb devices connection params
func (*GetUsbDevicesConnectionParams) WriteToRequest ¶
func (o *GetUsbDevicesConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
GetUsbDevicesInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetUsbDevicesInternalServerError ¶
func NewGetUsbDevicesInternalServerError() *GetUsbDevicesInternalServerError
NewGetUsbDevicesInternalServerError creates a GetUsbDevicesInternalServerError with default headers values
func (*GetUsbDevicesInternalServerError) Error ¶
func (o *GetUsbDevicesInternalServerError) Error() string
func (*GetUsbDevicesInternalServerError) GetPayload ¶
func (o *GetUsbDevicesInternalServerError) GetPayload() *models.ErrorBody
type GetUsbDevicesNotFound ¶
GetUsbDevicesNotFound describes a response with status code 404, with default header values.
Not found
func NewGetUsbDevicesNotFound ¶
func NewGetUsbDevicesNotFound() *GetUsbDevicesNotFound
NewGetUsbDevicesNotFound creates a GetUsbDevicesNotFound with default headers values
func (*GetUsbDevicesNotFound) Error ¶
func (o *GetUsbDevicesNotFound) Error() string
func (*GetUsbDevicesNotFound) GetPayload ¶
func (o *GetUsbDevicesNotFound) GetPayload() *models.ErrorBody
type GetUsbDevicesOK ¶
GetUsbDevicesOK describes a response with status code 200, with default header values.
GetUsbDevicesOK get usb devices o k
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 ¶
func (o *GetUsbDevicesParams) WithContext(ctx context.Context) *GetUsbDevicesParams
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 ¶
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 ¶
MountUsbDeviceInternalServerError describes a response with status code 500, with default header values.
Server error
func NewMountUsbDeviceInternalServerError ¶
func NewMountUsbDeviceInternalServerError() *MountUsbDeviceInternalServerError
NewMountUsbDeviceInternalServerError creates a MountUsbDeviceInternalServerError with default headers values
func (*MountUsbDeviceInternalServerError) Error ¶
func (o *MountUsbDeviceInternalServerError) Error() string
func (*MountUsbDeviceInternalServerError) GetPayload ¶
func (o *MountUsbDeviceInternalServerError) GetPayload() *models.ErrorBody
type MountUsbDeviceNotFound ¶
MountUsbDeviceNotFound describes a response with status code 404, with default header values.
Not found
func NewMountUsbDeviceNotFound ¶
func NewMountUsbDeviceNotFound() *MountUsbDeviceNotFound
NewMountUsbDeviceNotFound creates a MountUsbDeviceNotFound with default headers values
func (*MountUsbDeviceNotFound) Error ¶
func (o *MountUsbDeviceNotFound) Error() string
func (*MountUsbDeviceNotFound) GetPayload ¶
func (o *MountUsbDeviceNotFound) GetPayload() *models.ErrorBody
type MountUsbDeviceOK ¶
type MountUsbDeviceOK struct { XTowerRequestID string Payload []*models.WithTaskUsbDevice }
MountUsbDeviceOK describes a response with status code 200, with default header values.
MountUsbDeviceOK mount usb device o k
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 ¶
func (o *MountUsbDeviceParams) WithContext(ctx context.Context) *MountUsbDeviceParams
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 ¶
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 (o *UnmountUsbDeviceBadRequest) Error() string
func (*UnmountUsbDeviceBadRequest) GetPayload ¶
func (o *UnmountUsbDeviceBadRequest) GetPayload() *models.ErrorBody
type UnmountUsbDeviceInternalServerError ¶
type UnmountUsbDeviceInternalServerError struct { XTowerRequestID string Payload *models.ErrorBody }
UnmountUsbDeviceInternalServerError describes a response with status code 500, with default header values.
Server error
func NewUnmountUsbDeviceInternalServerError ¶
func NewUnmountUsbDeviceInternalServerError() *UnmountUsbDeviceInternalServerError
NewUnmountUsbDeviceInternalServerError creates a UnmountUsbDeviceInternalServerError with default headers values
func (*UnmountUsbDeviceInternalServerError) Error ¶
func (o *UnmountUsbDeviceInternalServerError) Error() string
func (*UnmountUsbDeviceInternalServerError) GetPayload ¶
func (o *UnmountUsbDeviceInternalServerError) GetPayload() *models.ErrorBody
type UnmountUsbDeviceNotFound ¶
UnmountUsbDeviceNotFound describes a response with status code 404, with default header values.
Not found
func NewUnmountUsbDeviceNotFound ¶
func NewUnmountUsbDeviceNotFound() *UnmountUsbDeviceNotFound
NewUnmountUsbDeviceNotFound creates a UnmountUsbDeviceNotFound with default headers values
func (*UnmountUsbDeviceNotFound) Error ¶
func (o *UnmountUsbDeviceNotFound) Error() string
func (*UnmountUsbDeviceNotFound) GetPayload ¶
func (o *UnmountUsbDeviceNotFound) GetPayload() *models.ErrorBody
type UnmountUsbDeviceOK ¶
type UnmountUsbDeviceOK struct { XTowerRequestID string Payload []*models.WithTaskUsbDevice }
UnmountUsbDeviceOK describes a response with status code 200, with default header values.
UnmountUsbDeviceOK unmount usb device o k
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 ¶
func (o *UnmountUsbDeviceParams) WithContext(ctx context.Context) *UnmountUsbDeviceParams
WithContext adds the context to the unmount usb device params
func (*UnmountUsbDeviceParams) WithDefaults ¶
func (o *UnmountUsbDeviceParams) WithDefaults() *UnmountUsbDeviceParams
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 ¶
func (o *UnmountUsbDeviceParams) WithRequestBody(requestBody *models.UsbDeviceUnmountParams) *UnmountUsbDeviceParams
WithRequestBody adds the requestBody to the unmount usb device params
func (*UnmountUsbDeviceParams) WithTimeout ¶
func (o *UnmountUsbDeviceParams) WithTimeout(timeout time.Duration) *UnmountUsbDeviceParams
WithTimeout adds the timeout to the unmount usb device params
func (*UnmountUsbDeviceParams) WriteToRequest ¶
func (o *UnmountUsbDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.