hardware

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for 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

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

WithSort adds the sort to the get API 24 hardware params

func (*GetAPI24HardwareParams) WithTimeout

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

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

type GetApi24HardwareBadRequest struct {
	Payload *models.Error
}

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 (*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

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

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

WithHardware adds the hardware to the patch API 24 hardware params

func (*PatchAPI24HardwareParams) WithNames

WithNames adds the names to the patch API 24 hardware params

func (*PatchAPI24HardwareParams) WithTimeout

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

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

type PatchApi24HardwareBadRequest struct {
	Payload *models.Error
}

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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL