Documentation
¶
Index ¶
- type Client
- type ClientService
- type GetAPI24HardwareParams
- func NewGetAPI24HardwareParams() *GetAPI24HardwareParams
- func NewGetAPI24HardwareParamsWithContext(ctx context.Context) *GetAPI24HardwareParams
- func NewGetAPI24HardwareParamsWithHTTPClient(client *http.Client) *GetAPI24HardwareParams
- func NewGetAPI24HardwareParamsWithTimeout(timeout time.Duration) *GetAPI24HardwareParams
- func (o *GetAPI24HardwareParams) SetAuthorization(authorization *string)
- func (o *GetAPI24HardwareParams) SetContext(ctx context.Context)
- func (o *GetAPI24HardwareParams) SetFilter(filter *string)
- func (o *GetAPI24HardwareParams) SetHTTPClient(client *http.Client)
- func (o *GetAPI24HardwareParams) SetLimit(limit *int32)
- func (o *GetAPI24HardwareParams) SetNames(names []string)
- func (o *GetAPI24HardwareParams) SetOffset(offset *int32)
- func (o *GetAPI24HardwareParams) SetSort(sort []string)
- func (o *GetAPI24HardwareParams) SetTimeout(timeout time.Duration)
- func (o *GetAPI24HardwareParams) SetTotalItemCount(totalItemCount *bool)
- func (o *GetAPI24HardwareParams) SetXRequestID(xRequestID *string)
- func (o *GetAPI24HardwareParams) WithAuthorization(authorization *string) *GetAPI24HardwareParams
- func (o *GetAPI24HardwareParams) WithContext(ctx context.Context) *GetAPI24HardwareParams
- func (o *GetAPI24HardwareParams) WithFilter(filter *string) *GetAPI24HardwareParams
- func (o *GetAPI24HardwareParams) WithHTTPClient(client *http.Client) *GetAPI24HardwareParams
- func (o *GetAPI24HardwareParams) WithLimit(limit *int32) *GetAPI24HardwareParams
- func (o *GetAPI24HardwareParams) WithNames(names []string) *GetAPI24HardwareParams
- func (o *GetAPI24HardwareParams) WithOffset(offset *int32) *GetAPI24HardwareParams
- func (o *GetAPI24HardwareParams) WithSort(sort []string) *GetAPI24HardwareParams
- func (o *GetAPI24HardwareParams) WithTimeout(timeout time.Duration) *GetAPI24HardwareParams
- func (o *GetAPI24HardwareParams) WithTotalItemCount(totalItemCount *bool) *GetAPI24HardwareParams
- func (o *GetAPI24HardwareParams) WithXRequestID(xRequestID *string) *GetAPI24HardwareParams
- func (o *GetAPI24HardwareParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPI24HardwareReader
- type GetApi24HardwareBadRequest
- type GetApi24HardwareOK
- type PatchAPI24HardwareParams
- func NewPatchAPI24HardwareParams() *PatchAPI24HardwareParams
- func NewPatchAPI24HardwareParamsWithContext(ctx context.Context) *PatchAPI24HardwareParams
- func NewPatchAPI24HardwareParamsWithHTTPClient(client *http.Client) *PatchAPI24HardwareParams
- func NewPatchAPI24HardwareParamsWithTimeout(timeout time.Duration) *PatchAPI24HardwareParams
- func (o *PatchAPI24HardwareParams) SetAuthorization(authorization *string)
- func (o *PatchAPI24HardwareParams) SetContext(ctx context.Context)
- func (o *PatchAPI24HardwareParams) SetHTTPClient(client *http.Client)
- func (o *PatchAPI24HardwareParams) SetHardware(hardware *models.HardwarePatch)
- func (o *PatchAPI24HardwareParams) SetNames(names []string)
- func (o *PatchAPI24HardwareParams) SetTimeout(timeout time.Duration)
- func (o *PatchAPI24HardwareParams) SetXRequestID(xRequestID *string)
- func (o *PatchAPI24HardwareParams) WithAuthorization(authorization *string) *PatchAPI24HardwareParams
- func (o *PatchAPI24HardwareParams) WithContext(ctx context.Context) *PatchAPI24HardwareParams
- func (o *PatchAPI24HardwareParams) WithHTTPClient(client *http.Client) *PatchAPI24HardwareParams
- func (o *PatchAPI24HardwareParams) WithHardware(hardware *models.HardwarePatch) *PatchAPI24HardwareParams
- func (o *PatchAPI24HardwareParams) WithNames(names []string) *PatchAPI24HardwareParams
- func (o *PatchAPI24HardwareParams) WithTimeout(timeout time.Duration) *PatchAPI24HardwareParams
- func (o *PatchAPI24HardwareParams) WithXRequestID(xRequestID *string) *PatchAPI24HardwareParams
- func (o *PatchAPI24HardwareParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchAPI24HardwareReader
- type PatchApi24HardwareBadRequest
- type PatchApi24HardwareOK
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 hardware API
func (*Client) GetAPI24Hardware ¶
func (a *Client) GetAPI24Hardware(params *GetAPI24HardwareParams) (*GetApi24HardwareOK, error)
GetAPI24Hardware lists hardware component information
Displays a list of hardware slots and bays and status of installed components.
func (*Client) PatchAPI24Hardware ¶
func (a *Client) PatchAPI24Hardware(params *PatchAPI24HardwareParams) (*PatchApi24HardwareOK, error)
PatchAPI24Hardware modifies visual identification
Modifies the visual identification of a specified hardware component, and causing the ID LED to turn on or off.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { GetAPI24Hardware(params *GetAPI24HardwareParams) (*GetApi24HardwareOK, error) PatchAPI24Hardware(params *PatchAPI24HardwareParams) (*PatchApi24HardwareOK, 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 hardware API client.
type GetAPI24HardwareParams ¶
type GetAPI24HardwareParams struct { /*Authorization Access token (in JWT format) required to use any API endpoint (except `/oauth2`, `/login`, and `/logout`) */ Authorization *string /*XRequestID Supplied by client during request or generated by server. */ XRequestID *string /*Filter Narrows down the results to only the response objects that satisfy the filter criteria. */ Filter *string /*Limit Limits the size of the response to the specified number of objects on each page. To return the total number of resources, set `limit=0`. The total number of resources is returned as a `total_item_count` value. If the page size requested is larger than the system maximum limit, the server returns the maximum limit, disregarding the requested page size. */ Limit *int32 /*Names Performs the operation on the unique name specified. Enter multiple names in comma-separated format. For example, `name01,name02`. */ Names []string /*Offset The starting position based on the results of the query in relation to the full set of response objects returned. */ Offset *int32 /*Sort Returns the response objects in the order specified. Set `sort` to the name in the response by which to sort. Sorting can be performed on any of the names in the response, and the objects can be sorted in ascending or descending order. By default, the response objects are sorted in ascending order. To sort in descending order, append the minus sign (`-`) to the name. A single request can be sorted on multiple objects. For example, you can sort all volumes from largest to smallest volume size, and then sort volumes of the same size in ascending order by volume name. To sort on multiple names, list the names as comma-separated values. */ Sort []string /*TotalItemCount If set to `true`, the `total_item_count` matching the specified query parameters is calculated and returned in the response. If set to `false`, the `total_item_count` is `null` in the response. This may speed up queries where the `total_item_count` is large. If not specified, defaults to `false`. */ TotalItemCount *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAPI24HardwareParams contains all the parameters to send to the API endpoint for the get API 24 hardware operation typically these are written to a http.Request
func NewGetAPI24HardwareParams ¶
func NewGetAPI24HardwareParams() *GetAPI24HardwareParams
NewGetAPI24HardwareParams creates a new GetAPI24HardwareParams object with the default values initialized.
func NewGetAPI24HardwareParamsWithContext ¶
func NewGetAPI24HardwareParamsWithContext(ctx context.Context) *GetAPI24HardwareParams
NewGetAPI24HardwareParamsWithContext creates a new GetAPI24HardwareParams object with the default values initialized, and the ability to set a context for a request
func NewGetAPI24HardwareParamsWithHTTPClient ¶
func NewGetAPI24HardwareParamsWithHTTPClient(client *http.Client) *GetAPI24HardwareParams
NewGetAPI24HardwareParamsWithHTTPClient creates a new GetAPI24HardwareParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetAPI24HardwareParamsWithTimeout ¶
func NewGetAPI24HardwareParamsWithTimeout(timeout time.Duration) *GetAPI24HardwareParams
NewGetAPI24HardwareParamsWithTimeout creates a new GetAPI24HardwareParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetAPI24HardwareParams) SetAuthorization ¶
func (o *GetAPI24HardwareParams) SetAuthorization(authorization *string)
SetAuthorization adds the authorization to the get API 24 hardware params
func (*GetAPI24HardwareParams) SetContext ¶
func (o *GetAPI24HardwareParams) SetContext(ctx context.Context)
SetContext adds the context to the get API 24 hardware params
func (*GetAPI24HardwareParams) SetFilter ¶
func (o *GetAPI24HardwareParams) SetFilter(filter *string)
SetFilter adds the filter to the get API 24 hardware params
func (*GetAPI24HardwareParams) SetHTTPClient ¶
func (o *GetAPI24HardwareParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get API 24 hardware params
func (*GetAPI24HardwareParams) SetLimit ¶
func (o *GetAPI24HardwareParams) SetLimit(limit *int32)
SetLimit adds the limit to the get API 24 hardware params
func (*GetAPI24HardwareParams) SetNames ¶
func (o *GetAPI24HardwareParams) SetNames(names []string)
SetNames adds the names to the get API 24 hardware params
func (*GetAPI24HardwareParams) SetOffset ¶
func (o *GetAPI24HardwareParams) SetOffset(offset *int32)
SetOffset adds the offset to the get API 24 hardware params
func (*GetAPI24HardwareParams) SetSort ¶
func (o *GetAPI24HardwareParams) SetSort(sort []string)
SetSort adds the sort to the get API 24 hardware params
func (*GetAPI24HardwareParams) SetTimeout ¶
func (o *GetAPI24HardwareParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get API 24 hardware params
func (*GetAPI24HardwareParams) SetTotalItemCount ¶
func (o *GetAPI24HardwareParams) SetTotalItemCount(totalItemCount *bool)
SetTotalItemCount adds the totalItemCount to the get API 24 hardware params
func (*GetAPI24HardwareParams) SetXRequestID ¶
func (o *GetAPI24HardwareParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get API 24 hardware params
func (*GetAPI24HardwareParams) WithAuthorization ¶
func (o *GetAPI24HardwareParams) WithAuthorization(authorization *string) *GetAPI24HardwareParams
WithAuthorization adds the authorization to the get API 24 hardware params
func (*GetAPI24HardwareParams) WithContext ¶
func (o *GetAPI24HardwareParams) WithContext(ctx context.Context) *GetAPI24HardwareParams
WithContext adds the context to the get API 24 hardware params
func (*GetAPI24HardwareParams) WithFilter ¶
func (o *GetAPI24HardwareParams) WithFilter(filter *string) *GetAPI24HardwareParams
WithFilter adds the filter to the get API 24 hardware params
func (*GetAPI24HardwareParams) WithHTTPClient ¶
func (o *GetAPI24HardwareParams) WithHTTPClient(client *http.Client) *GetAPI24HardwareParams
WithHTTPClient adds the HTTPClient to the get API 24 hardware params
func (*GetAPI24HardwareParams) WithLimit ¶
func (o *GetAPI24HardwareParams) WithLimit(limit *int32) *GetAPI24HardwareParams
WithLimit adds the limit to the get API 24 hardware params
func (*GetAPI24HardwareParams) WithNames ¶
func (o *GetAPI24HardwareParams) WithNames(names []string) *GetAPI24HardwareParams
WithNames adds the names to the get API 24 hardware params
func (*GetAPI24HardwareParams) WithOffset ¶
func (o *GetAPI24HardwareParams) WithOffset(offset *int32) *GetAPI24HardwareParams
WithOffset adds the offset to the get API 24 hardware params
func (*GetAPI24HardwareParams) WithSort ¶
func (o *GetAPI24HardwareParams) WithSort(sort []string) *GetAPI24HardwareParams
WithSort adds the sort to the get API 24 hardware params
func (*GetAPI24HardwareParams) WithTimeout ¶
func (o *GetAPI24HardwareParams) WithTimeout(timeout time.Duration) *GetAPI24HardwareParams
WithTimeout adds the timeout to the get API 24 hardware params
func (*GetAPI24HardwareParams) WithTotalItemCount ¶
func (o *GetAPI24HardwareParams) WithTotalItemCount(totalItemCount *bool) *GetAPI24HardwareParams
WithTotalItemCount adds the totalItemCount to the get API 24 hardware params
func (*GetAPI24HardwareParams) WithXRequestID ¶
func (o *GetAPI24HardwareParams) WithXRequestID(xRequestID *string) *GetAPI24HardwareParams
WithXRequestID adds the xRequestID to the get API 24 hardware params
func (*GetAPI24HardwareParams) WriteToRequest ¶
func (o *GetAPI24HardwareParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAPI24HardwareReader ¶
type GetAPI24HardwareReader struct {
// contains filtered or unexported fields
}
GetAPI24HardwareReader is a Reader for the GetAPI24Hardware structure.
func (*GetAPI24HardwareReader) ReadResponse ¶
func (o *GetAPI24HardwareReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetApi24HardwareBadRequest ¶
GetApi24HardwareBadRequest handles this case with default header values.
BadRequest
func NewGetApi24HardwareBadRequest ¶
func NewGetApi24HardwareBadRequest() *GetApi24HardwareBadRequest
NewGetApi24HardwareBadRequest creates a GetApi24HardwareBadRequest with default headers values
func (*GetApi24HardwareBadRequest) Error ¶
func (o *GetApi24HardwareBadRequest) Error() string
func (*GetApi24HardwareBadRequest) GetPayload ¶
func (o *GetApi24HardwareBadRequest) GetPayload() *models.Error
type GetApi24HardwareOK ¶
type GetApi24HardwareOK struct {
Payload *models.HardwareGetResponse
}
GetApi24HardwareOK handles this case with default header values.
OK
func NewGetApi24HardwareOK ¶
func NewGetApi24HardwareOK() *GetApi24HardwareOK
NewGetApi24HardwareOK creates a GetApi24HardwareOK with default headers values
func (*GetApi24HardwareOK) Error ¶
func (o *GetApi24HardwareOK) Error() string
func (*GetApi24HardwareOK) GetPayload ¶
func (o *GetApi24HardwareOK) GetPayload() *models.HardwareGetResponse
type PatchAPI24HardwareParams ¶
type PatchAPI24HardwareParams struct { /*Authorization Access token (in JWT format) required to use any API endpoint (except `/oauth2`, `/login`, and `/logout`) */ Authorization *string /*XRequestID Supplied by client during request or generated by server. */ XRequestID *string /*Hardware*/ Hardware *models.HardwarePatch /*Names Performs the operation on the unique name specified. Enter multiple names in comma-separated format. For example, `name01,name02`. */ Names []string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PatchAPI24HardwareParams contains all the parameters to send to the API endpoint for the patch API 24 hardware operation typically these are written to a http.Request
func NewPatchAPI24HardwareParams ¶
func NewPatchAPI24HardwareParams() *PatchAPI24HardwareParams
NewPatchAPI24HardwareParams creates a new PatchAPI24HardwareParams object with the default values initialized.
func NewPatchAPI24HardwareParamsWithContext ¶
func NewPatchAPI24HardwareParamsWithContext(ctx context.Context) *PatchAPI24HardwareParams
NewPatchAPI24HardwareParamsWithContext creates a new PatchAPI24HardwareParams object with the default values initialized, and the ability to set a context for a request
func NewPatchAPI24HardwareParamsWithHTTPClient ¶
func NewPatchAPI24HardwareParamsWithHTTPClient(client *http.Client) *PatchAPI24HardwareParams
NewPatchAPI24HardwareParamsWithHTTPClient creates a new PatchAPI24HardwareParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPatchAPI24HardwareParamsWithTimeout ¶
func NewPatchAPI24HardwareParamsWithTimeout(timeout time.Duration) *PatchAPI24HardwareParams
NewPatchAPI24HardwareParamsWithTimeout creates a new PatchAPI24HardwareParams object with the default values initialized, and the ability to set a timeout on a request
func (*PatchAPI24HardwareParams) SetAuthorization ¶
func (o *PatchAPI24HardwareParams) SetAuthorization(authorization *string)
SetAuthorization adds the authorization to the patch API 24 hardware params
func (*PatchAPI24HardwareParams) SetContext ¶
func (o *PatchAPI24HardwareParams) SetContext(ctx context.Context)
SetContext adds the context to the patch API 24 hardware params
func (*PatchAPI24HardwareParams) SetHTTPClient ¶
func (o *PatchAPI24HardwareParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the patch API 24 hardware params
func (*PatchAPI24HardwareParams) SetHardware ¶
func (o *PatchAPI24HardwareParams) SetHardware(hardware *models.HardwarePatch)
SetHardware adds the hardware to the patch API 24 hardware params
func (*PatchAPI24HardwareParams) SetNames ¶
func (o *PatchAPI24HardwareParams) SetNames(names []string)
SetNames adds the names to the patch API 24 hardware params
func (*PatchAPI24HardwareParams) SetTimeout ¶
func (o *PatchAPI24HardwareParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the patch API 24 hardware params
func (*PatchAPI24HardwareParams) SetXRequestID ¶
func (o *PatchAPI24HardwareParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the patch API 24 hardware params
func (*PatchAPI24HardwareParams) WithAuthorization ¶
func (o *PatchAPI24HardwareParams) WithAuthorization(authorization *string) *PatchAPI24HardwareParams
WithAuthorization adds the authorization to the patch API 24 hardware params
func (*PatchAPI24HardwareParams) WithContext ¶
func (o *PatchAPI24HardwareParams) WithContext(ctx context.Context) *PatchAPI24HardwareParams
WithContext adds the context to the patch API 24 hardware params
func (*PatchAPI24HardwareParams) WithHTTPClient ¶
func (o *PatchAPI24HardwareParams) WithHTTPClient(client *http.Client) *PatchAPI24HardwareParams
WithHTTPClient adds the HTTPClient to the patch API 24 hardware params
func (*PatchAPI24HardwareParams) WithHardware ¶
func (o *PatchAPI24HardwareParams) WithHardware(hardware *models.HardwarePatch) *PatchAPI24HardwareParams
WithHardware adds the hardware to the patch API 24 hardware params
func (*PatchAPI24HardwareParams) WithNames ¶
func (o *PatchAPI24HardwareParams) WithNames(names []string) *PatchAPI24HardwareParams
WithNames adds the names to the patch API 24 hardware params
func (*PatchAPI24HardwareParams) WithTimeout ¶
func (o *PatchAPI24HardwareParams) WithTimeout(timeout time.Duration) *PatchAPI24HardwareParams
WithTimeout adds the timeout to the patch API 24 hardware params
func (*PatchAPI24HardwareParams) WithXRequestID ¶
func (o *PatchAPI24HardwareParams) WithXRequestID(xRequestID *string) *PatchAPI24HardwareParams
WithXRequestID adds the xRequestID to the patch API 24 hardware params
func (*PatchAPI24HardwareParams) WriteToRequest ¶
func (o *PatchAPI24HardwareParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PatchAPI24HardwareReader ¶
type PatchAPI24HardwareReader struct {
// contains filtered or unexported fields
}
PatchAPI24HardwareReader is a Reader for the PatchAPI24Hardware structure.
func (*PatchAPI24HardwareReader) ReadResponse ¶
func (o *PatchAPI24HardwareReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PatchApi24HardwareBadRequest ¶
PatchApi24HardwareBadRequest handles this case with default header values.
BadRequest
func NewPatchApi24HardwareBadRequest ¶
func NewPatchApi24HardwareBadRequest() *PatchApi24HardwareBadRequest
NewPatchApi24HardwareBadRequest creates a PatchApi24HardwareBadRequest with default headers values
func (*PatchApi24HardwareBadRequest) Error ¶
func (o *PatchApi24HardwareBadRequest) Error() string
func (*PatchApi24HardwareBadRequest) GetPayload ¶
func (o *PatchApi24HardwareBadRequest) GetPayload() *models.Error
type PatchApi24HardwareOK ¶
type PatchApi24HardwareOK struct {
Payload *models.HardwareResponse
}
PatchApi24HardwareOK handles this case with default header values.
OK
func NewPatchApi24HardwareOK ¶
func NewPatchApi24HardwareOK() *PatchApi24HardwareOK
NewPatchApi24HardwareOK creates a PatchApi24HardwareOK with default headers values
func (*PatchApi24HardwareOK) Error ¶
func (o *PatchApi24HardwareOK) Error() string
func (*PatchApi24HardwareOK) GetPayload ¶
func (o *PatchApi24HardwareOK) GetPayload() *models.HardwareResponse