drives

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 drives API

func (*Client) GetAPI24Drives

func (a *Client) GetAPI24Drives(params *GetAPI24DrivesParams) (*GetApi24DrivesOK, error)

GetAPI24Drives lists flash n v RAM and cache modules

Displays a list of flash, NVRAM, and cache modules that are installed in the array along with their attributes and status.

func (*Client) PatchAPI24Drives

func (a *Client) PatchAPI24Drives(params *PatchAPI24DrivesParams) (*PatchApi24DrivesOK, error)

PatchAPI24Drives modifies flash and n v RAM modules

Modifies flash and NVRAM modules that have been added or connected but not yet admitted to the array.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetAPI24Drives(params *GetAPI24DrivesParams) (*GetApi24DrivesOK, error)

	PatchAPI24Drives(params *PatchAPI24DrivesParams) (*PatchApi24DrivesOK, 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 drives API client.

type GetAPI24DrivesParams

type GetAPI24DrivesParams 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
	/*ContinuationToken
	  A token used to retrieve the next page of data with some consistency guaranteed. The token is a Base64 encoded value. Set `continuation_token` to the system-generated token taken from the `x-next-token` header field of the response. A query has reached its last page when the response does not include a token. Pagination requires the `limit` and `continuation_token` query parameters.

	*/
	ContinuationToken *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
}

GetAPI24DrivesParams contains all the parameters to send to the API endpoint for the get API 24 drives operation typically these are written to a http.Request

func NewGetAPI24DrivesParams

func NewGetAPI24DrivesParams() *GetAPI24DrivesParams

NewGetAPI24DrivesParams creates a new GetAPI24DrivesParams object with the default values initialized.

func NewGetAPI24DrivesParamsWithContext

func NewGetAPI24DrivesParamsWithContext(ctx context.Context) *GetAPI24DrivesParams

NewGetAPI24DrivesParamsWithContext creates a new GetAPI24DrivesParams object with the default values initialized, and the ability to set a context for a request

func NewGetAPI24DrivesParamsWithHTTPClient

func NewGetAPI24DrivesParamsWithHTTPClient(client *http.Client) *GetAPI24DrivesParams

NewGetAPI24DrivesParamsWithHTTPClient creates a new GetAPI24DrivesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetAPI24DrivesParamsWithTimeout

func NewGetAPI24DrivesParamsWithTimeout(timeout time.Duration) *GetAPI24DrivesParams

NewGetAPI24DrivesParamsWithTimeout creates a new GetAPI24DrivesParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetAPI24DrivesParams) SetAuthorization

func (o *GetAPI24DrivesParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the get API 24 drives params

func (*GetAPI24DrivesParams) SetContext

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

SetContext adds the context to the get API 24 drives params

func (*GetAPI24DrivesParams) SetContinuationToken

func (o *GetAPI24DrivesParams) SetContinuationToken(continuationToken *string)

SetContinuationToken adds the continuationToken to the get API 24 drives params

func (*GetAPI24DrivesParams) SetFilter

func (o *GetAPI24DrivesParams) SetFilter(filter *string)

SetFilter adds the filter to the get API 24 drives params

func (*GetAPI24DrivesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API 24 drives params

func (*GetAPI24DrivesParams) SetLimit

func (o *GetAPI24DrivesParams) SetLimit(limit *int32)

SetLimit adds the limit to the get API 24 drives params

func (*GetAPI24DrivesParams) SetNames

func (o *GetAPI24DrivesParams) SetNames(names []string)

SetNames adds the names to the get API 24 drives params

func (*GetAPI24DrivesParams) SetOffset

func (o *GetAPI24DrivesParams) SetOffset(offset *int32)

SetOffset adds the offset to the get API 24 drives params

func (*GetAPI24DrivesParams) SetSort

func (o *GetAPI24DrivesParams) SetSort(sort []string)

SetSort adds the sort to the get API 24 drives params

func (*GetAPI24DrivesParams) SetTimeout

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

SetTimeout adds the timeout to the get API 24 drives params

func (*GetAPI24DrivesParams) SetTotalItemCount

func (o *GetAPI24DrivesParams) SetTotalItemCount(totalItemCount *bool)

SetTotalItemCount adds the totalItemCount to the get API 24 drives params

func (*GetAPI24DrivesParams) SetXRequestID

func (o *GetAPI24DrivesParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get API 24 drives params

func (*GetAPI24DrivesParams) WithAuthorization

func (o *GetAPI24DrivesParams) WithAuthorization(authorization *string) *GetAPI24DrivesParams

WithAuthorization adds the authorization to the get API 24 drives params

func (*GetAPI24DrivesParams) WithContext

WithContext adds the context to the get API 24 drives params

func (*GetAPI24DrivesParams) WithContinuationToken

func (o *GetAPI24DrivesParams) WithContinuationToken(continuationToken *string) *GetAPI24DrivesParams

WithContinuationToken adds the continuationToken to the get API 24 drives params

func (*GetAPI24DrivesParams) WithFilter

func (o *GetAPI24DrivesParams) WithFilter(filter *string) *GetAPI24DrivesParams

WithFilter adds the filter to the get API 24 drives params

func (*GetAPI24DrivesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get API 24 drives params

func (*GetAPI24DrivesParams) WithLimit

func (o *GetAPI24DrivesParams) WithLimit(limit *int32) *GetAPI24DrivesParams

WithLimit adds the limit to the get API 24 drives params

func (*GetAPI24DrivesParams) WithNames

func (o *GetAPI24DrivesParams) WithNames(names []string) *GetAPI24DrivesParams

WithNames adds the names to the get API 24 drives params

func (*GetAPI24DrivesParams) WithOffset

func (o *GetAPI24DrivesParams) WithOffset(offset *int32) *GetAPI24DrivesParams

WithOffset adds the offset to the get API 24 drives params

func (*GetAPI24DrivesParams) WithSort

func (o *GetAPI24DrivesParams) WithSort(sort []string) *GetAPI24DrivesParams

WithSort adds the sort to the get API 24 drives params

func (*GetAPI24DrivesParams) WithTimeout

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

WithTimeout adds the timeout to the get API 24 drives params

func (*GetAPI24DrivesParams) WithTotalItemCount

func (o *GetAPI24DrivesParams) WithTotalItemCount(totalItemCount *bool) *GetAPI24DrivesParams

WithTotalItemCount adds the totalItemCount to the get API 24 drives params

func (*GetAPI24DrivesParams) WithXRequestID

func (o *GetAPI24DrivesParams) WithXRequestID(xRequestID *string) *GetAPI24DrivesParams

WithXRequestID adds the xRequestID to the get API 24 drives params

func (*GetAPI24DrivesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAPI24DrivesReader

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

GetAPI24DrivesReader is a Reader for the GetAPI24Drives structure.

func (*GetAPI24DrivesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetApi24DrivesBadRequest

type GetApi24DrivesBadRequest struct {
	Payload *models.Error
}

GetApi24DrivesBadRequest handles this case with default header values.

BadRequest

func NewGetApi24DrivesBadRequest

func NewGetApi24DrivesBadRequest() *GetApi24DrivesBadRequest

NewGetApi24DrivesBadRequest creates a GetApi24DrivesBadRequest with default headers values

func (*GetApi24DrivesBadRequest) Error

func (o *GetApi24DrivesBadRequest) Error() string

func (*GetApi24DrivesBadRequest) GetPayload

func (o *GetApi24DrivesBadRequest) GetPayload() *models.Error

type GetApi24DrivesOK

type GetApi24DrivesOK struct {
	Payload *models.DriveGetResponse
}

GetApi24DrivesOK handles this case with default header values.

OK

func NewGetApi24DrivesOK

func NewGetApi24DrivesOK() *GetApi24DrivesOK

NewGetApi24DrivesOK creates a GetApi24DrivesOK with default headers values

func (*GetApi24DrivesOK) Error

func (o *GetApi24DrivesOK) Error() string

func (*GetApi24DrivesOK) GetPayload

func (o *GetApi24DrivesOK) GetPayload() *models.DriveGetResponse

type PatchAPI24DrivesParams

type PatchAPI24DrivesParams 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
	/*Admit
	  If `true`, admits any `unadmitted` drives into the system.

	*/
	Admit *bool

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

PatchAPI24DrivesParams contains all the parameters to send to the API endpoint for the patch API 24 drives operation typically these are written to a http.Request

func NewPatchAPI24DrivesParams

func NewPatchAPI24DrivesParams() *PatchAPI24DrivesParams

NewPatchAPI24DrivesParams creates a new PatchAPI24DrivesParams object with the default values initialized.

func NewPatchAPI24DrivesParamsWithContext

func NewPatchAPI24DrivesParamsWithContext(ctx context.Context) *PatchAPI24DrivesParams

NewPatchAPI24DrivesParamsWithContext creates a new PatchAPI24DrivesParams object with the default values initialized, and the ability to set a context for a request

func NewPatchAPI24DrivesParamsWithHTTPClient

func NewPatchAPI24DrivesParamsWithHTTPClient(client *http.Client) *PatchAPI24DrivesParams

NewPatchAPI24DrivesParamsWithHTTPClient creates a new PatchAPI24DrivesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPatchAPI24DrivesParamsWithTimeout

func NewPatchAPI24DrivesParamsWithTimeout(timeout time.Duration) *PatchAPI24DrivesParams

NewPatchAPI24DrivesParamsWithTimeout creates a new PatchAPI24DrivesParams object with the default values initialized, and the ability to set a timeout on a request

func (*PatchAPI24DrivesParams) SetAdmit

func (o *PatchAPI24DrivesParams) SetAdmit(admit *bool)

SetAdmit adds the admit to the patch API 24 drives params

func (*PatchAPI24DrivesParams) SetAuthorization

func (o *PatchAPI24DrivesParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the patch API 24 drives params

func (*PatchAPI24DrivesParams) SetContext

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

SetContext adds the context to the patch API 24 drives params

func (*PatchAPI24DrivesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch API 24 drives params

func (*PatchAPI24DrivesParams) SetTimeout

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

SetTimeout adds the timeout to the patch API 24 drives params

func (*PatchAPI24DrivesParams) SetXRequestID

func (o *PatchAPI24DrivesParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the patch API 24 drives params

func (*PatchAPI24DrivesParams) WithAdmit

func (o *PatchAPI24DrivesParams) WithAdmit(admit *bool) *PatchAPI24DrivesParams

WithAdmit adds the admit to the patch API 24 drives params

func (*PatchAPI24DrivesParams) WithAuthorization

func (o *PatchAPI24DrivesParams) WithAuthorization(authorization *string) *PatchAPI24DrivesParams

WithAuthorization adds the authorization to the patch API 24 drives params

func (*PatchAPI24DrivesParams) WithContext

WithContext adds the context to the patch API 24 drives params

func (*PatchAPI24DrivesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the patch API 24 drives params

func (*PatchAPI24DrivesParams) WithTimeout

WithTimeout adds the timeout to the patch API 24 drives params

func (*PatchAPI24DrivesParams) WithXRequestID

func (o *PatchAPI24DrivesParams) WithXRequestID(xRequestID *string) *PatchAPI24DrivesParams

WithXRequestID adds the xRequestID to the patch API 24 drives params

func (*PatchAPI24DrivesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchAPI24DrivesReader

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

PatchAPI24DrivesReader is a Reader for the PatchAPI24Drives structure.

func (*PatchAPI24DrivesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchApi24DrivesBadRequest

type PatchApi24DrivesBadRequest struct {
	Payload *models.Error
}

PatchApi24DrivesBadRequest handles this case with default header values.

BadRequest

func NewPatchApi24DrivesBadRequest

func NewPatchApi24DrivesBadRequest() *PatchApi24DrivesBadRequest

NewPatchApi24DrivesBadRequest creates a PatchApi24DrivesBadRequest with default headers values

func (*PatchApi24DrivesBadRequest) Error

func (*PatchApi24DrivesBadRequest) GetPayload

func (o *PatchApi24DrivesBadRequest) GetPayload() *models.Error

type PatchApi24DrivesOK

type PatchApi24DrivesOK struct {
	Payload *models.DriveResponse
}

PatchApi24DrivesOK handles this case with default header values.

OK

func NewPatchApi24DrivesOK

func NewPatchApi24DrivesOK() *PatchApi24DrivesOK

NewPatchApi24DrivesOK creates a PatchApi24DrivesOK with default headers values

func (*PatchApi24DrivesOK) Error

func (o *PatchApi24DrivesOK) Error() string

func (*PatchApi24DrivesOK) GetPayload

func (o *PatchApi24DrivesOK) GetPayload() *models.DriveResponse

Jump to

Keyboard shortcuts

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