Documentation ¶
Index ¶
- type Client
- func (a *Client) ListDevices(opts ...ClientOption) (*ListDevicesOK, error)
- func (a *Client) ListDevicesWithParams(params *ListDevicesParams, opts ...ClientOption) (*ListDevicesOK, error)
- func (a *Client) SearchDevices(opts ...ClientOption) (*SearchDevicesOK, error)
- func (a *Client) SearchDevicesWithParams(params *SearchDevicesParams, opts ...ClientOption) (*SearchDevicesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type ListDevicesForbidden
- func (o *ListDevicesForbidden) Code() int
- func (o *ListDevicesForbidden) Error() string
- func (o *ListDevicesForbidden) GetPayload() *models.ErrorResponseBody
- func (o *ListDevicesForbidden) IsClientError() bool
- func (o *ListDevicesForbidden) IsCode(code int) bool
- func (o *ListDevicesForbidden) IsRedirect() bool
- func (o *ListDevicesForbidden) IsServerError() bool
- func (o *ListDevicesForbidden) IsSuccess() bool
- func (o *ListDevicesForbidden) String() string
- type ListDevicesInternalServerError
- func (o *ListDevicesInternalServerError) Code() int
- func (o *ListDevicesInternalServerError) Error() string
- func (o *ListDevicesInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *ListDevicesInternalServerError) IsClientError() bool
- func (o *ListDevicesInternalServerError) IsCode(code int) bool
- func (o *ListDevicesInternalServerError) IsRedirect() bool
- func (o *ListDevicesInternalServerError) IsServerError() bool
- func (o *ListDevicesInternalServerError) IsSuccess() bool
- func (o *ListDevicesInternalServerError) String() string
- type ListDevicesNotFound
- func (o *ListDevicesNotFound) Code() int
- func (o *ListDevicesNotFound) Error() string
- func (o *ListDevicesNotFound) GetPayload() *models.ErrorResponseBody
- func (o *ListDevicesNotFound) IsClientError() bool
- func (o *ListDevicesNotFound) IsCode(code int) bool
- func (o *ListDevicesNotFound) IsRedirect() bool
- func (o *ListDevicesNotFound) IsServerError() bool
- func (o *ListDevicesNotFound) IsSuccess() bool
- func (o *ListDevicesNotFound) String() string
- type ListDevicesOK
- func (o *ListDevicesOK) Code() int
- func (o *ListDevicesOK) Error() string
- func (o *ListDevicesOK) GetPayload() []*models.DeviceDTO
- func (o *ListDevicesOK) IsClientError() bool
- func (o *ListDevicesOK) IsCode(code int) bool
- func (o *ListDevicesOK) IsRedirect() bool
- func (o *ListDevicesOK) IsServerError() bool
- func (o *ListDevicesOK) IsSuccess() bool
- func (o *ListDevicesOK) String() string
- type ListDevicesParams
- func (o *ListDevicesParams) SetContext(ctx context.Context)
- func (o *ListDevicesParams) SetDefaults()
- func (o *ListDevicesParams) SetHTTPClient(client *http.Client)
- func (o *ListDevicesParams) SetTimeout(timeout time.Duration)
- func (o *ListDevicesParams) WithContext(ctx context.Context) *ListDevicesParams
- func (o *ListDevicesParams) WithDefaults() *ListDevicesParams
- func (o *ListDevicesParams) WithHTTPClient(client *http.Client) *ListDevicesParams
- func (o *ListDevicesParams) WithTimeout(timeout time.Duration) *ListDevicesParams
- func (o *ListDevicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListDevicesReader
- type ListDevicesUnauthorized
- func (o *ListDevicesUnauthorized) Code() int
- func (o *ListDevicesUnauthorized) Error() string
- func (o *ListDevicesUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *ListDevicesUnauthorized) IsClientError() bool
- func (o *ListDevicesUnauthorized) IsCode(code int) bool
- func (o *ListDevicesUnauthorized) IsRedirect() bool
- func (o *ListDevicesUnauthorized) IsServerError() bool
- func (o *ListDevicesUnauthorized) IsSuccess() bool
- func (o *ListDevicesUnauthorized) String() string
- type SearchDevicesForbidden
- func (o *SearchDevicesForbidden) Code() int
- func (o *SearchDevicesForbidden) Error() string
- func (o *SearchDevicesForbidden) GetPayload() *models.ErrorResponseBody
- func (o *SearchDevicesForbidden) IsClientError() bool
- func (o *SearchDevicesForbidden) IsCode(code int) bool
- func (o *SearchDevicesForbidden) IsRedirect() bool
- func (o *SearchDevicesForbidden) IsServerError() bool
- func (o *SearchDevicesForbidden) IsSuccess() bool
- func (o *SearchDevicesForbidden) String() string
- type SearchDevicesInternalServerError
- func (o *SearchDevicesInternalServerError) Code() int
- func (o *SearchDevicesInternalServerError) Error() string
- func (o *SearchDevicesInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *SearchDevicesInternalServerError) IsClientError() bool
- func (o *SearchDevicesInternalServerError) IsCode(code int) bool
- func (o *SearchDevicesInternalServerError) IsRedirect() bool
- func (o *SearchDevicesInternalServerError) IsServerError() bool
- func (o *SearchDevicesInternalServerError) IsSuccess() bool
- func (o *SearchDevicesInternalServerError) String() string
- type SearchDevicesNotFound
- func (o *SearchDevicesNotFound) Code() int
- func (o *SearchDevicesNotFound) Error() string
- func (o *SearchDevicesNotFound) GetPayload() *models.ErrorResponseBody
- func (o *SearchDevicesNotFound) IsClientError() bool
- func (o *SearchDevicesNotFound) IsCode(code int) bool
- func (o *SearchDevicesNotFound) IsRedirect() bool
- func (o *SearchDevicesNotFound) IsServerError() bool
- func (o *SearchDevicesNotFound) IsSuccess() bool
- func (o *SearchDevicesNotFound) String() string
- type SearchDevicesOK
- func (o *SearchDevicesOK) Code() int
- func (o *SearchDevicesOK) Error() string
- func (o *SearchDevicesOK) GetPayload() *models.SearchDeviceQueryResult
- func (o *SearchDevicesOK) IsClientError() bool
- func (o *SearchDevicesOK) IsCode(code int) bool
- func (o *SearchDevicesOK) IsRedirect() bool
- func (o *SearchDevicesOK) IsServerError() bool
- func (o *SearchDevicesOK) IsSuccess() bool
- func (o *SearchDevicesOK) String() string
- type SearchDevicesParams
- func (o *SearchDevicesParams) SetContext(ctx context.Context)
- func (o *SearchDevicesParams) SetDefaults()
- func (o *SearchDevicesParams) SetHTTPClient(client *http.Client)
- func (o *SearchDevicesParams) SetTimeout(timeout time.Duration)
- func (o *SearchDevicesParams) WithContext(ctx context.Context) *SearchDevicesParams
- func (o *SearchDevicesParams) WithDefaults() *SearchDevicesParams
- func (o *SearchDevicesParams) WithHTTPClient(client *http.Client) *SearchDevicesParams
- func (o *SearchDevicesParams) WithTimeout(timeout time.Duration) *SearchDevicesParams
- func (o *SearchDevicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchDevicesReader
- type SearchDevicesUnauthorized
- func (o *SearchDevicesUnauthorized) Code() int
- func (o *SearchDevicesUnauthorized) Error() string
- func (o *SearchDevicesUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *SearchDevicesUnauthorized) IsClientError() bool
- func (o *SearchDevicesUnauthorized) IsCode(code int) bool
- func (o *SearchDevicesUnauthorized) IsRedirect() bool
- func (o *SearchDevicesUnauthorized) IsServerError() bool
- func (o *SearchDevicesUnauthorized) IsSuccess() bool
- func (o *SearchDevicesUnauthorized) String() string
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 devices API
func (*Client) ListDevices ¶
func (a *Client) ListDevices(opts ...ClientOption) (*ListDevicesOK, error)
ListDevices lists all devices within the last 30 days
func (*Client) ListDevicesWithParams ¶
func (a *Client) ListDevicesWithParams(params *ListDevicesParams, opts ...ClientOption) (*ListDevicesOK, error)
func (*Client) SearchDevices ¶
func (a *Client) SearchDevices(opts ...ClientOption) (*SearchDevicesOK, error)
SearchDevices lists all devices within the last 30 days
func (*Client) SearchDevicesWithParams ¶
func (a *Client) SearchDevicesWithParams(params *SearchDevicesParams, opts ...ClientOption) (*SearchDevicesOK, error)
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
func WithAuthInfo ¶
func WithAuthInfo(authInfo runtime.ClientAuthInfoWriter) ClientOption
WithAuthInfo changes the transport on the client
type ClientService ¶
type ClientService interface { SearchDevices(opts ...ClientOption) (*SearchDevicesOK, error) SearchDevicesWithParams(params *SearchDevicesParams, opts ...ClientOption) (*SearchDevicesOK, error) ListDevices(opts ...ClientOption) (*ListDevicesOK, error) ListDevicesWithParams(params *ListDevicesParams, opts ...ClientOption) (*ListDevicesOK, 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 devices API client.
type ListDevicesForbidden ¶
type ListDevicesForbidden struct {
Payload *models.ErrorResponseBody
}
ListDevicesForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewListDevicesForbidden ¶
func NewListDevicesForbidden() *ListDevicesForbidden
NewListDevicesForbidden creates a ListDevicesForbidden with default headers values
func (*ListDevicesForbidden) Code ¶
func (o *ListDevicesForbidden) Code() int
Code gets the status code for the list devices forbidden response
func (*ListDevicesForbidden) Error ¶
func (o *ListDevicesForbidden) Error() string
func (*ListDevicesForbidden) GetPayload ¶
func (o *ListDevicesForbidden) GetPayload() *models.ErrorResponseBody
func (*ListDevicesForbidden) IsClientError ¶
func (o *ListDevicesForbidden) IsClientError() bool
IsClientError returns true when this list devices forbidden response has a 4xx status code
func (*ListDevicesForbidden) IsCode ¶
func (o *ListDevicesForbidden) IsCode(code int) bool
IsCode returns true when this list devices forbidden response a status code equal to that given
func (*ListDevicesForbidden) IsRedirect ¶
func (o *ListDevicesForbidden) IsRedirect() bool
IsRedirect returns true when this list devices forbidden response has a 3xx status code
func (*ListDevicesForbidden) IsServerError ¶
func (o *ListDevicesForbidden) IsServerError() bool
IsServerError returns true when this list devices forbidden response has a 5xx status code
func (*ListDevicesForbidden) IsSuccess ¶
func (o *ListDevicesForbidden) IsSuccess() bool
IsSuccess returns true when this list devices forbidden response has a 2xx status code
func (*ListDevicesForbidden) String ¶
func (o *ListDevicesForbidden) String() string
type ListDevicesInternalServerError ¶
type ListDevicesInternalServerError struct {
Payload *models.ErrorResponseBody
}
ListDevicesInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewListDevicesInternalServerError ¶
func NewListDevicesInternalServerError() *ListDevicesInternalServerError
NewListDevicesInternalServerError creates a ListDevicesInternalServerError with default headers values
func (*ListDevicesInternalServerError) Code ¶
func (o *ListDevicesInternalServerError) Code() int
Code gets the status code for the list devices internal server error response
func (*ListDevicesInternalServerError) Error ¶
func (o *ListDevicesInternalServerError) Error() string
func (*ListDevicesInternalServerError) GetPayload ¶
func (o *ListDevicesInternalServerError) GetPayload() *models.ErrorResponseBody
func (*ListDevicesInternalServerError) IsClientError ¶
func (o *ListDevicesInternalServerError) IsClientError() bool
IsClientError returns true when this list devices internal server error response has a 4xx status code
func (*ListDevicesInternalServerError) IsCode ¶
func (o *ListDevicesInternalServerError) IsCode(code int) bool
IsCode returns true when this list devices internal server error response a status code equal to that given
func (*ListDevicesInternalServerError) IsRedirect ¶
func (o *ListDevicesInternalServerError) IsRedirect() bool
IsRedirect returns true when this list devices internal server error response has a 3xx status code
func (*ListDevicesInternalServerError) IsServerError ¶
func (o *ListDevicesInternalServerError) IsServerError() bool
IsServerError returns true when this list devices internal server error response has a 5xx status code
func (*ListDevicesInternalServerError) IsSuccess ¶
func (o *ListDevicesInternalServerError) IsSuccess() bool
IsSuccess returns true when this list devices internal server error response has a 2xx status code
func (*ListDevicesInternalServerError) String ¶
func (o *ListDevicesInternalServerError) String() string
type ListDevicesNotFound ¶
type ListDevicesNotFound struct {
Payload *models.ErrorResponseBody
}
ListDevicesNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewListDevicesNotFound ¶
func NewListDevicesNotFound() *ListDevicesNotFound
NewListDevicesNotFound creates a ListDevicesNotFound with default headers values
func (*ListDevicesNotFound) Code ¶
func (o *ListDevicesNotFound) Code() int
Code gets the status code for the list devices not found response
func (*ListDevicesNotFound) Error ¶
func (o *ListDevicesNotFound) Error() string
func (*ListDevicesNotFound) GetPayload ¶
func (o *ListDevicesNotFound) GetPayload() *models.ErrorResponseBody
func (*ListDevicesNotFound) IsClientError ¶
func (o *ListDevicesNotFound) IsClientError() bool
IsClientError returns true when this list devices not found response has a 4xx status code
func (*ListDevicesNotFound) IsCode ¶
func (o *ListDevicesNotFound) IsCode(code int) bool
IsCode returns true when this list devices not found response a status code equal to that given
func (*ListDevicesNotFound) IsRedirect ¶
func (o *ListDevicesNotFound) IsRedirect() bool
IsRedirect returns true when this list devices not found response has a 3xx status code
func (*ListDevicesNotFound) IsServerError ¶
func (o *ListDevicesNotFound) IsServerError() bool
IsServerError returns true when this list devices not found response has a 5xx status code
func (*ListDevicesNotFound) IsSuccess ¶
func (o *ListDevicesNotFound) IsSuccess() bool
IsSuccess returns true when this list devices not found response has a 2xx status code
func (*ListDevicesNotFound) String ¶
func (o *ListDevicesNotFound) String() string
type ListDevicesOK ¶
ListDevicesOK describes a response with status code 200, with default header values.
(empty)
func NewListDevicesOK ¶
func NewListDevicesOK() *ListDevicesOK
NewListDevicesOK creates a ListDevicesOK with default headers values
func (*ListDevicesOK) Code ¶
func (o *ListDevicesOK) Code() int
Code gets the status code for the list devices Ok response
func (*ListDevicesOK) Error ¶
func (o *ListDevicesOK) Error() string
func (*ListDevicesOK) GetPayload ¶
func (o *ListDevicesOK) GetPayload() []*models.DeviceDTO
func (*ListDevicesOK) IsClientError ¶
func (o *ListDevicesOK) IsClientError() bool
IsClientError returns true when this list devices Ok response has a 4xx status code
func (*ListDevicesOK) IsCode ¶
func (o *ListDevicesOK) IsCode(code int) bool
IsCode returns true when this list devices Ok response a status code equal to that given
func (*ListDevicesOK) IsRedirect ¶
func (o *ListDevicesOK) IsRedirect() bool
IsRedirect returns true when this list devices Ok response has a 3xx status code
func (*ListDevicesOK) IsServerError ¶
func (o *ListDevicesOK) IsServerError() bool
IsServerError returns true when this list devices Ok response has a 5xx status code
func (*ListDevicesOK) IsSuccess ¶
func (o *ListDevicesOK) IsSuccess() bool
IsSuccess returns true when this list devices Ok response has a 2xx status code
func (*ListDevicesOK) String ¶
func (o *ListDevicesOK) String() string
type ListDevicesParams ¶
type ListDevicesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListDevicesParams contains all the parameters to send to the API endpoint
for the list devices operation. Typically these are written to a http.Request.
func NewListDevicesParams ¶
func NewListDevicesParams() *ListDevicesParams
NewListDevicesParams creates a new ListDevicesParams 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 NewListDevicesParamsWithContext ¶
func NewListDevicesParamsWithContext(ctx context.Context) *ListDevicesParams
NewListDevicesParamsWithContext creates a new ListDevicesParams object with the ability to set a context for a request.
func NewListDevicesParamsWithHTTPClient ¶
func NewListDevicesParamsWithHTTPClient(client *http.Client) *ListDevicesParams
NewListDevicesParamsWithHTTPClient creates a new ListDevicesParams object with the ability to set a custom HTTPClient for a request.
func NewListDevicesParamsWithTimeout ¶
func NewListDevicesParamsWithTimeout(timeout time.Duration) *ListDevicesParams
NewListDevicesParamsWithTimeout creates a new ListDevicesParams object with the ability to set a timeout on a request.
func (*ListDevicesParams) SetContext ¶
func (o *ListDevicesParams) SetContext(ctx context.Context)
SetContext adds the context to the list devices params
func (*ListDevicesParams) SetDefaults ¶
func (o *ListDevicesParams) SetDefaults()
SetDefaults hydrates default values in the list devices params (not the query body).
All values with no default are reset to their zero value.
func (*ListDevicesParams) SetHTTPClient ¶
func (o *ListDevicesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list devices params
func (*ListDevicesParams) SetTimeout ¶
func (o *ListDevicesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list devices params
func (*ListDevicesParams) WithContext ¶
func (o *ListDevicesParams) WithContext(ctx context.Context) *ListDevicesParams
WithContext adds the context to the list devices params
func (*ListDevicesParams) WithDefaults ¶
func (o *ListDevicesParams) WithDefaults() *ListDevicesParams
WithDefaults hydrates default values in the list devices params (not the query body).
All values with no default are reset to their zero value.
func (*ListDevicesParams) WithHTTPClient ¶
func (o *ListDevicesParams) WithHTTPClient(client *http.Client) *ListDevicesParams
WithHTTPClient adds the HTTPClient to the list devices params
func (*ListDevicesParams) WithTimeout ¶
func (o *ListDevicesParams) WithTimeout(timeout time.Duration) *ListDevicesParams
WithTimeout adds the timeout to the list devices params
func (*ListDevicesParams) WriteToRequest ¶
func (o *ListDevicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListDevicesReader ¶
type ListDevicesReader struct {
// contains filtered or unexported fields
}
ListDevicesReader is a Reader for the ListDevices structure.
func (*ListDevicesReader) ReadResponse ¶
func (o *ListDevicesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListDevicesUnauthorized ¶
type ListDevicesUnauthorized struct {
}ListDevicesUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewListDevicesUnauthorized ¶
func NewListDevicesUnauthorized() *ListDevicesUnauthorized
NewListDevicesUnauthorized creates a ListDevicesUnauthorized with default headers values
func (*ListDevicesUnauthorized) Code ¶
func (o *ListDevicesUnauthorized) Code() int
Code gets the status code for the list devices unauthorized response
func (*ListDevicesUnauthorized) Error ¶
func (o *ListDevicesUnauthorized) Error() string
func (*ListDevicesUnauthorized) GetPayload ¶
func (o *ListDevicesUnauthorized) GetPayload() *models.ErrorResponseBody
func (*ListDevicesUnauthorized) IsClientError ¶
func (o *ListDevicesUnauthorized) IsClientError() bool
IsClientError returns true when this list devices unauthorized response has a 4xx status code
func (*ListDevicesUnauthorized) IsCode ¶
func (o *ListDevicesUnauthorized) IsCode(code int) bool
IsCode returns true when this list devices unauthorized response a status code equal to that given
func (*ListDevicesUnauthorized) IsRedirect ¶
func (o *ListDevicesUnauthorized) IsRedirect() bool
IsRedirect returns true when this list devices unauthorized response has a 3xx status code
func (*ListDevicesUnauthorized) IsServerError ¶
func (o *ListDevicesUnauthorized) IsServerError() bool
IsServerError returns true when this list devices unauthorized response has a 5xx status code
func (*ListDevicesUnauthorized) IsSuccess ¶
func (o *ListDevicesUnauthorized) IsSuccess() bool
IsSuccess returns true when this list devices unauthorized response has a 2xx status code
func (*ListDevicesUnauthorized) String ¶
func (o *ListDevicesUnauthorized) String() string
type SearchDevicesForbidden ¶
type SearchDevicesForbidden struct {
Payload *models.ErrorResponseBody
}
SearchDevicesForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewSearchDevicesForbidden ¶
func NewSearchDevicesForbidden() *SearchDevicesForbidden
NewSearchDevicesForbidden creates a SearchDevicesForbidden with default headers values
func (*SearchDevicesForbidden) Code ¶
func (o *SearchDevicesForbidden) Code() int
Code gets the status code for the search devices forbidden response
func (*SearchDevicesForbidden) Error ¶
func (o *SearchDevicesForbidden) Error() string
func (*SearchDevicesForbidden) GetPayload ¶
func (o *SearchDevicesForbidden) GetPayload() *models.ErrorResponseBody
func (*SearchDevicesForbidden) IsClientError ¶
func (o *SearchDevicesForbidden) IsClientError() bool
IsClientError returns true when this search devices forbidden response has a 4xx status code
func (*SearchDevicesForbidden) IsCode ¶
func (o *SearchDevicesForbidden) IsCode(code int) bool
IsCode returns true when this search devices forbidden response a status code equal to that given
func (*SearchDevicesForbidden) IsRedirect ¶
func (o *SearchDevicesForbidden) IsRedirect() bool
IsRedirect returns true when this search devices forbidden response has a 3xx status code
func (*SearchDevicesForbidden) IsServerError ¶
func (o *SearchDevicesForbidden) IsServerError() bool
IsServerError returns true when this search devices forbidden response has a 5xx status code
func (*SearchDevicesForbidden) IsSuccess ¶
func (o *SearchDevicesForbidden) IsSuccess() bool
IsSuccess returns true when this search devices forbidden response has a 2xx status code
func (*SearchDevicesForbidden) String ¶
func (o *SearchDevicesForbidden) String() string
type SearchDevicesInternalServerError ¶
type SearchDevicesInternalServerError struct {
Payload *models.ErrorResponseBody
}
SearchDevicesInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewSearchDevicesInternalServerError ¶
func NewSearchDevicesInternalServerError() *SearchDevicesInternalServerError
NewSearchDevicesInternalServerError creates a SearchDevicesInternalServerError with default headers values
func (*SearchDevicesInternalServerError) Code ¶
func (o *SearchDevicesInternalServerError) Code() int
Code gets the status code for the search devices internal server error response
func (*SearchDevicesInternalServerError) Error ¶
func (o *SearchDevicesInternalServerError) Error() string
func (*SearchDevicesInternalServerError) GetPayload ¶
func (o *SearchDevicesInternalServerError) GetPayload() *models.ErrorResponseBody
func (*SearchDevicesInternalServerError) IsClientError ¶
func (o *SearchDevicesInternalServerError) IsClientError() bool
IsClientError returns true when this search devices internal server error response has a 4xx status code
func (*SearchDevicesInternalServerError) IsCode ¶
func (o *SearchDevicesInternalServerError) IsCode(code int) bool
IsCode returns true when this search devices internal server error response a status code equal to that given
func (*SearchDevicesInternalServerError) IsRedirect ¶
func (o *SearchDevicesInternalServerError) IsRedirect() bool
IsRedirect returns true when this search devices internal server error response has a 3xx status code
func (*SearchDevicesInternalServerError) IsServerError ¶
func (o *SearchDevicesInternalServerError) IsServerError() bool
IsServerError returns true when this search devices internal server error response has a 5xx status code
func (*SearchDevicesInternalServerError) IsSuccess ¶
func (o *SearchDevicesInternalServerError) IsSuccess() bool
IsSuccess returns true when this search devices internal server error response has a 2xx status code
func (*SearchDevicesInternalServerError) String ¶
func (o *SearchDevicesInternalServerError) String() string
type SearchDevicesNotFound ¶
type SearchDevicesNotFound struct {
Payload *models.ErrorResponseBody
}
SearchDevicesNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewSearchDevicesNotFound ¶
func NewSearchDevicesNotFound() *SearchDevicesNotFound
NewSearchDevicesNotFound creates a SearchDevicesNotFound with default headers values
func (*SearchDevicesNotFound) Code ¶
func (o *SearchDevicesNotFound) Code() int
Code gets the status code for the search devices not found response
func (*SearchDevicesNotFound) Error ¶
func (o *SearchDevicesNotFound) Error() string
func (*SearchDevicesNotFound) GetPayload ¶
func (o *SearchDevicesNotFound) GetPayload() *models.ErrorResponseBody
func (*SearchDevicesNotFound) IsClientError ¶
func (o *SearchDevicesNotFound) IsClientError() bool
IsClientError returns true when this search devices not found response has a 4xx status code
func (*SearchDevicesNotFound) IsCode ¶
func (o *SearchDevicesNotFound) IsCode(code int) bool
IsCode returns true when this search devices not found response a status code equal to that given
func (*SearchDevicesNotFound) IsRedirect ¶
func (o *SearchDevicesNotFound) IsRedirect() bool
IsRedirect returns true when this search devices not found response has a 3xx status code
func (*SearchDevicesNotFound) IsServerError ¶
func (o *SearchDevicesNotFound) IsServerError() bool
IsServerError returns true when this search devices not found response has a 5xx status code
func (*SearchDevicesNotFound) IsSuccess ¶
func (o *SearchDevicesNotFound) IsSuccess() bool
IsSuccess returns true when this search devices not found response has a 2xx status code
func (*SearchDevicesNotFound) String ¶
func (o *SearchDevicesNotFound) String() string
type SearchDevicesOK ¶
type SearchDevicesOK struct {
Payload *models.SearchDeviceQueryResult
}
SearchDevicesOK describes a response with status code 200, with default header values.
(empty)
func NewSearchDevicesOK ¶
func NewSearchDevicesOK() *SearchDevicesOK
NewSearchDevicesOK creates a SearchDevicesOK with default headers values
func (*SearchDevicesOK) Code ¶
func (o *SearchDevicesOK) Code() int
Code gets the status code for the search devices Ok response
func (*SearchDevicesOK) Error ¶
func (o *SearchDevicesOK) Error() string
func (*SearchDevicesOK) GetPayload ¶
func (o *SearchDevicesOK) GetPayload() *models.SearchDeviceQueryResult
func (*SearchDevicesOK) IsClientError ¶
func (o *SearchDevicesOK) IsClientError() bool
IsClientError returns true when this search devices Ok response has a 4xx status code
func (*SearchDevicesOK) IsCode ¶
func (o *SearchDevicesOK) IsCode(code int) bool
IsCode returns true when this search devices Ok response a status code equal to that given
func (*SearchDevicesOK) IsRedirect ¶
func (o *SearchDevicesOK) IsRedirect() bool
IsRedirect returns true when this search devices Ok response has a 3xx status code
func (*SearchDevicesOK) IsServerError ¶
func (o *SearchDevicesOK) IsServerError() bool
IsServerError returns true when this search devices Ok response has a 5xx status code
func (*SearchDevicesOK) IsSuccess ¶
func (o *SearchDevicesOK) IsSuccess() bool
IsSuccess returns true when this search devices Ok response has a 2xx status code
func (*SearchDevicesOK) String ¶
func (o *SearchDevicesOK) String() string
type SearchDevicesParams ¶
type SearchDevicesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SearchDevicesParams contains all the parameters to send to the API endpoint
for the search devices operation. Typically these are written to a http.Request.
func NewSearchDevicesParams ¶
func NewSearchDevicesParams() *SearchDevicesParams
NewSearchDevicesParams creates a new SearchDevicesParams 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 NewSearchDevicesParamsWithContext ¶
func NewSearchDevicesParamsWithContext(ctx context.Context) *SearchDevicesParams
NewSearchDevicesParamsWithContext creates a new SearchDevicesParams object with the ability to set a context for a request.
func NewSearchDevicesParamsWithHTTPClient ¶
func NewSearchDevicesParamsWithHTTPClient(client *http.Client) *SearchDevicesParams
NewSearchDevicesParamsWithHTTPClient creates a new SearchDevicesParams object with the ability to set a custom HTTPClient for a request.
func NewSearchDevicesParamsWithTimeout ¶
func NewSearchDevicesParamsWithTimeout(timeout time.Duration) *SearchDevicesParams
NewSearchDevicesParamsWithTimeout creates a new SearchDevicesParams object with the ability to set a timeout on a request.
func (*SearchDevicesParams) SetContext ¶
func (o *SearchDevicesParams) SetContext(ctx context.Context)
SetContext adds the context to the search devices params
func (*SearchDevicesParams) SetDefaults ¶
func (o *SearchDevicesParams) SetDefaults()
SetDefaults hydrates default values in the search devices params (not the query body).
All values with no default are reset to their zero value.
func (*SearchDevicesParams) SetHTTPClient ¶
func (o *SearchDevicesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the search devices params
func (*SearchDevicesParams) SetTimeout ¶
func (o *SearchDevicesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the search devices params
func (*SearchDevicesParams) WithContext ¶
func (o *SearchDevicesParams) WithContext(ctx context.Context) *SearchDevicesParams
WithContext adds the context to the search devices params
func (*SearchDevicesParams) WithDefaults ¶
func (o *SearchDevicesParams) WithDefaults() *SearchDevicesParams
WithDefaults hydrates default values in the search devices params (not the query body).
All values with no default are reset to their zero value.
func (*SearchDevicesParams) WithHTTPClient ¶
func (o *SearchDevicesParams) WithHTTPClient(client *http.Client) *SearchDevicesParams
WithHTTPClient adds the HTTPClient to the search devices params
func (*SearchDevicesParams) WithTimeout ¶
func (o *SearchDevicesParams) WithTimeout(timeout time.Duration) *SearchDevicesParams
WithTimeout adds the timeout to the search devices params
func (*SearchDevicesParams) WriteToRequest ¶
func (o *SearchDevicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SearchDevicesReader ¶
type SearchDevicesReader struct {
// contains filtered or unexported fields
}
SearchDevicesReader is a Reader for the SearchDevices structure.
func (*SearchDevicesReader) ReadResponse ¶
func (o *SearchDevicesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SearchDevicesUnauthorized ¶
type SearchDevicesUnauthorized struct {
}SearchDevicesUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewSearchDevicesUnauthorized ¶
func NewSearchDevicesUnauthorized() *SearchDevicesUnauthorized
NewSearchDevicesUnauthorized creates a SearchDevicesUnauthorized with default headers values
func (*SearchDevicesUnauthorized) Code ¶
func (o *SearchDevicesUnauthorized) Code() int
Code gets the status code for the search devices unauthorized response
func (*SearchDevicesUnauthorized) Error ¶
func (o *SearchDevicesUnauthorized) Error() string
func (*SearchDevicesUnauthorized) GetPayload ¶
func (o *SearchDevicesUnauthorized) GetPayload() *models.ErrorResponseBody
func (*SearchDevicesUnauthorized) IsClientError ¶
func (o *SearchDevicesUnauthorized) IsClientError() bool
IsClientError returns true when this search devices unauthorized response has a 4xx status code
func (*SearchDevicesUnauthorized) IsCode ¶
func (o *SearchDevicesUnauthorized) IsCode(code int) bool
IsCode returns true when this search devices unauthorized response a status code equal to that given
func (*SearchDevicesUnauthorized) IsRedirect ¶
func (o *SearchDevicesUnauthorized) IsRedirect() bool
IsRedirect returns true when this search devices unauthorized response has a 3xx status code
func (*SearchDevicesUnauthorized) IsServerError ¶
func (o *SearchDevicesUnauthorized) IsServerError() bool
IsServerError returns true when this search devices unauthorized response has a 5xx status code
func (*SearchDevicesUnauthorized) IsSuccess ¶
func (o *SearchDevicesUnauthorized) IsSuccess() bool
IsSuccess returns true when this search devices unauthorized response has a 2xx status code
func (*SearchDevicesUnauthorized) String ¶
func (o *SearchDevicesUnauthorized) String() string