ports

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

func (*Client) GetAPI24Ports

func (a *Client) GetAPI24Ports(params *GetAPI24PortsParams) (*GetApi24PortsOK, error)

GetAPI24Ports lists ports

Displays host name, iSCSI Qualified Names (IQNs), NVMe Qualified Names (NQNs), IPv4 address of the portal, Fibre Channel World Wide Names (WWNs), and failover ports, including those that were discovered by Purity//FA and those that have been manually assigned by system administrators.

func (*Client) GetAPI24PortsInitiators

func (a *Client) GetAPI24PortsInitiators(params *GetAPI24PortsInitiatorsParams) (*GetApi24PortsInitiatorsOK, error)

GetAPI24PortsInitiators lists port initiators

Displays host iSCSI Qualified Names (IQNs), NVMe Qualified Names (NQNs), and Fibre Channel World Wide Names (WWNs), including those that were discovered by Purity//FA and those that have been manually assigned by system administrators, along with the array ports (targets) on which they are eligible to communicate.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetAPI24Ports(params *GetAPI24PortsParams) (*GetApi24PortsOK, error)

	GetAPI24PortsInitiators(params *GetAPI24PortsInitiatorsParams) (*GetApi24PortsInitiatorsOK, 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 ports API client.

type GetAPI24PortsInitiatorsParams

type GetAPI24PortsInitiatorsParams 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
}

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

func NewGetAPI24PortsInitiatorsParams

func NewGetAPI24PortsInitiatorsParams() *GetAPI24PortsInitiatorsParams

NewGetAPI24PortsInitiatorsParams creates a new GetAPI24PortsInitiatorsParams object with the default values initialized.

func NewGetAPI24PortsInitiatorsParamsWithContext

func NewGetAPI24PortsInitiatorsParamsWithContext(ctx context.Context) *GetAPI24PortsInitiatorsParams

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

func NewGetAPI24PortsInitiatorsParamsWithHTTPClient

func NewGetAPI24PortsInitiatorsParamsWithHTTPClient(client *http.Client) *GetAPI24PortsInitiatorsParams

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

func NewGetAPI24PortsInitiatorsParamsWithTimeout

func NewGetAPI24PortsInitiatorsParamsWithTimeout(timeout time.Duration) *GetAPI24PortsInitiatorsParams

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

func (*GetAPI24PortsInitiatorsParams) SetAuthorization

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

SetAuthorization adds the authorization to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) SetContext

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

SetContext adds the context to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) SetFilter

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

SetFilter adds the filter to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) SetLimit

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

SetLimit adds the limit to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) SetNames

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

SetNames adds the names to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) SetOffset

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

SetOffset adds the offset to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) SetSort

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

SetSort adds the sort to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) SetTimeout

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

SetTimeout adds the timeout to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) SetTotalItemCount

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

SetTotalItemCount adds the totalItemCount to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) WithAuthorization

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

WithAuthorization adds the authorization to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) WithContext

WithContext adds the context to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) WithFilter

WithFilter adds the filter to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) WithLimit

WithLimit adds the limit to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) WithNames

WithNames adds the names to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) WithOffset

WithOffset adds the offset to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) WithSort

WithSort adds the sort to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) WithTimeout

WithTimeout adds the timeout to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) WithTotalItemCount

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

WithTotalItemCount adds the totalItemCount to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the get API 24 ports initiators params

func (*GetAPI24PortsInitiatorsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAPI24PortsInitiatorsReader

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

GetAPI24PortsInitiatorsReader is a Reader for the GetAPI24PortsInitiators structure.

func (*GetAPI24PortsInitiatorsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAPI24PortsParams

type GetAPI24PortsParams 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
}

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

func NewGetAPI24PortsParams

func NewGetAPI24PortsParams() *GetAPI24PortsParams

NewGetAPI24PortsParams creates a new GetAPI24PortsParams object with the default values initialized.

func NewGetAPI24PortsParamsWithContext

func NewGetAPI24PortsParamsWithContext(ctx context.Context) *GetAPI24PortsParams

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

func NewGetAPI24PortsParamsWithHTTPClient

func NewGetAPI24PortsParamsWithHTTPClient(client *http.Client) *GetAPI24PortsParams

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

func NewGetAPI24PortsParamsWithTimeout

func NewGetAPI24PortsParamsWithTimeout(timeout time.Duration) *GetAPI24PortsParams

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

func (*GetAPI24PortsParams) SetAuthorization

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

SetAuthorization adds the authorization to the get API 24 ports params

func (*GetAPI24PortsParams) SetContext

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

SetContext adds the context to the get API 24 ports params

func (*GetAPI24PortsParams) SetFilter

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

SetFilter adds the filter to the get API 24 ports params

func (*GetAPI24PortsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API 24 ports params

func (*GetAPI24PortsParams) SetLimit

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

SetLimit adds the limit to the get API 24 ports params

func (*GetAPI24PortsParams) SetNames

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

SetNames adds the names to the get API 24 ports params

func (*GetAPI24PortsParams) SetOffset

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

SetOffset adds the offset to the get API 24 ports params

func (*GetAPI24PortsParams) SetSort

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

SetSort adds the sort to the get API 24 ports params

func (*GetAPI24PortsParams) SetTimeout

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

SetTimeout adds the timeout to the get API 24 ports params

func (*GetAPI24PortsParams) SetTotalItemCount

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

SetTotalItemCount adds the totalItemCount to the get API 24 ports params

func (*GetAPI24PortsParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the get API 24 ports params

func (*GetAPI24PortsParams) WithAuthorization

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

WithAuthorization adds the authorization to the get API 24 ports params

func (*GetAPI24PortsParams) WithContext

WithContext adds the context to the get API 24 ports params

func (*GetAPI24PortsParams) WithFilter

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

WithFilter adds the filter to the get API 24 ports params

func (*GetAPI24PortsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get API 24 ports params

func (*GetAPI24PortsParams) WithLimit

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

WithLimit adds the limit to the get API 24 ports params

func (*GetAPI24PortsParams) WithNames

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

WithNames adds the names to the get API 24 ports params

func (*GetAPI24PortsParams) WithOffset

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

WithOffset adds the offset to the get API 24 ports params

func (*GetAPI24PortsParams) WithSort

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

WithSort adds the sort to the get API 24 ports params

func (*GetAPI24PortsParams) WithTimeout

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

WithTimeout adds the timeout to the get API 24 ports params

func (*GetAPI24PortsParams) WithTotalItemCount

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

WithTotalItemCount adds the totalItemCount to the get API 24 ports params

func (*GetAPI24PortsParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the get API 24 ports params

func (*GetAPI24PortsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAPI24PortsReader

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

GetAPI24PortsReader is a Reader for the GetAPI24Ports structure.

func (*GetAPI24PortsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetApi24PortsBadRequest

type GetApi24PortsBadRequest struct {
	Payload *models.Error
}

GetApi24PortsBadRequest handles this case with default header values.

BadRequest

func NewGetApi24PortsBadRequest

func NewGetApi24PortsBadRequest() *GetApi24PortsBadRequest

NewGetApi24PortsBadRequest creates a GetApi24PortsBadRequest with default headers values

func (*GetApi24PortsBadRequest) Error

func (o *GetApi24PortsBadRequest) Error() string

func (*GetApi24PortsBadRequest) GetPayload

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

type GetApi24PortsInitiatorsBadRequest

type GetApi24PortsInitiatorsBadRequest struct {
	Payload *models.Error
}

GetApi24PortsInitiatorsBadRequest handles this case with default header values.

BadRequest

func NewGetApi24PortsInitiatorsBadRequest

func NewGetApi24PortsInitiatorsBadRequest() *GetApi24PortsInitiatorsBadRequest

NewGetApi24PortsInitiatorsBadRequest creates a GetApi24PortsInitiatorsBadRequest with default headers values

func (*GetApi24PortsInitiatorsBadRequest) Error

func (*GetApi24PortsInitiatorsBadRequest) GetPayload

type GetApi24PortsInitiatorsOK

type GetApi24PortsInitiatorsOK struct {
	Payload *models.PortInitiatorsGetResponse
}

GetApi24PortsInitiatorsOK handles this case with default header values.

OK

func NewGetApi24PortsInitiatorsOK

func NewGetApi24PortsInitiatorsOK() *GetApi24PortsInitiatorsOK

NewGetApi24PortsInitiatorsOK creates a GetApi24PortsInitiatorsOK with default headers values

func (*GetApi24PortsInitiatorsOK) Error

func (o *GetApi24PortsInitiatorsOK) Error() string

func (*GetApi24PortsInitiatorsOK) GetPayload

type GetApi24PortsOK

type GetApi24PortsOK struct {
	Payload *models.PortGetResponse
}

GetApi24PortsOK handles this case with default header values.

OK

func NewGetApi24PortsOK

func NewGetApi24PortsOK() *GetApi24PortsOK

NewGetApi24PortsOK creates a GetApi24PortsOK with default headers values

func (*GetApi24PortsOK) Error

func (o *GetApi24PortsOK) Error() string

func (*GetApi24PortsOK) GetPayload

func (o *GetApi24PortsOK) GetPayload() *models.PortGetResponse

Jump to

Keyboard shortcuts

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