Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetStorageClassesUsingGETForbidden
- func (o *GetStorageClassesUsingGETForbidden) Error() string
- func (o *GetStorageClassesUsingGETForbidden) IsClientError() bool
- func (o *GetStorageClassesUsingGETForbidden) IsCode(code int) bool
- func (o *GetStorageClassesUsingGETForbidden) IsRedirect() bool
- func (o *GetStorageClassesUsingGETForbidden) IsServerError() bool
- func (o *GetStorageClassesUsingGETForbidden) IsSuccess() bool
- func (o *GetStorageClassesUsingGETForbidden) String() string
- type GetStorageClassesUsingGETOK
- func (o *GetStorageClassesUsingGETOK) Error() string
- func (o *GetStorageClassesUsingGETOK) GetPayload() *models.PageOfStoragePolicy
- func (o *GetStorageClassesUsingGETOK) IsClientError() bool
- func (o *GetStorageClassesUsingGETOK) IsCode(code int) bool
- func (o *GetStorageClassesUsingGETOK) IsRedirect() bool
- func (o *GetStorageClassesUsingGETOK) IsServerError() bool
- func (o *GetStorageClassesUsingGETOK) IsSuccess() bool
- func (o *GetStorageClassesUsingGETOK) String() string
- type GetStorageClassesUsingGETParams
- func NewGetStorageClassesUsingGETParams() *GetStorageClassesUsingGETParams
- func NewGetStorageClassesUsingGETParamsWithContext(ctx context.Context) *GetStorageClassesUsingGETParams
- func NewGetStorageClassesUsingGETParamsWithHTTPClient(client *http.Client) *GetStorageClassesUsingGETParams
- func NewGetStorageClassesUsingGETParamsWithTimeout(timeout time.Duration) *GetStorageClassesUsingGETParams
- func (o *GetStorageClassesUsingGETParams) SetContext(ctx context.Context)
- func (o *GetStorageClassesUsingGETParams) SetDefaults()
- func (o *GetStorageClassesUsingGETParams) SetEndpointSelfLinkID(endpointSelfLinkID string)
- func (o *GetStorageClassesUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *GetStorageClassesUsingGETParams) SetOffset(offset *int64)
- func (o *GetStorageClassesUsingGETParams) SetPageNumber(pageNumber *int32)
- func (o *GetStorageClassesUsingGETParams) SetPageSize(pageSize *int32)
- func (o *GetStorageClassesUsingGETParams) SetPaged(paged *bool)
- func (o *GetStorageClassesUsingGETParams) SetSortSorted(sortSorted *bool)
- func (o *GetStorageClassesUsingGETParams) SetSortUnsorted(sortUnsorted *bool)
- func (o *GetStorageClassesUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *GetStorageClassesUsingGETParams) SetUnpaged(unpaged *bool)
- func (o *GetStorageClassesUsingGETParams) WithContext(ctx context.Context) *GetStorageClassesUsingGETParams
- func (o *GetStorageClassesUsingGETParams) WithDefaults() *GetStorageClassesUsingGETParams
- func (o *GetStorageClassesUsingGETParams) WithEndpointSelfLinkID(endpointSelfLinkID string) *GetStorageClassesUsingGETParams
- func (o *GetStorageClassesUsingGETParams) WithHTTPClient(client *http.Client) *GetStorageClassesUsingGETParams
- func (o *GetStorageClassesUsingGETParams) WithOffset(offset *int64) *GetStorageClassesUsingGETParams
- func (o *GetStorageClassesUsingGETParams) WithPageNumber(pageNumber *int32) *GetStorageClassesUsingGETParams
- func (o *GetStorageClassesUsingGETParams) WithPageSize(pageSize *int32) *GetStorageClassesUsingGETParams
- func (o *GetStorageClassesUsingGETParams) WithPaged(paged *bool) *GetStorageClassesUsingGETParams
- func (o *GetStorageClassesUsingGETParams) WithSortSorted(sortSorted *bool) *GetStorageClassesUsingGETParams
- func (o *GetStorageClassesUsingGETParams) WithSortUnsorted(sortUnsorted *bool) *GetStorageClassesUsingGETParams
- func (o *GetStorageClassesUsingGETParams) WithTimeout(timeout time.Duration) *GetStorageClassesUsingGETParams
- func (o *GetStorageClassesUsingGETParams) WithUnpaged(unpaged *bool) *GetStorageClassesUsingGETParams
- func (o *GetStorageClassesUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetStorageClassesUsingGETReader
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 v center endpoints API
func (*Client) GetStorageClassesUsingGET ¶
func (a *Client) GetStorageClassesUsingGET(params *GetStorageClassesUsingGETParams, opts ...ClientOption) (*GetStorageClassesUsingGETOK, error)
GetStorageClassesUsingGET gets all storage classes identifiers for a v center endpoint
Get all storage classes defined in all managed supervisor clusters in a particular vCenter instance. vCenter instance is identified by endpoint SelfLink Id
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
type ClientService ¶
type ClientService interface { GetStorageClassesUsingGET(params *GetStorageClassesUsingGETParams, opts ...ClientOption) (*GetStorageClassesUsingGETOK, 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 v center endpoints API client.
type GetStorageClassesUsingGETForbidden ¶
type GetStorageClassesUsingGETForbidden struct { }
GetStorageClassesUsingGETForbidden describes a response with status code 403, with default header values.
Forbidden, the user lacks permissions
func NewGetStorageClassesUsingGETForbidden ¶
func NewGetStorageClassesUsingGETForbidden() *GetStorageClassesUsingGETForbidden
NewGetStorageClassesUsingGETForbidden creates a GetStorageClassesUsingGETForbidden with default headers values
func (*GetStorageClassesUsingGETForbidden) Error ¶
func (o *GetStorageClassesUsingGETForbidden) Error() string
func (*GetStorageClassesUsingGETForbidden) IsClientError ¶
func (o *GetStorageClassesUsingGETForbidden) IsClientError() bool
IsClientError returns true when this get storage classes using g e t forbidden response has a 4xx status code
func (*GetStorageClassesUsingGETForbidden) IsCode ¶
func (o *GetStorageClassesUsingGETForbidden) IsCode(code int) bool
IsCode returns true when this get storage classes using g e t forbidden response a status code equal to that given
func (*GetStorageClassesUsingGETForbidden) IsRedirect ¶
func (o *GetStorageClassesUsingGETForbidden) IsRedirect() bool
IsRedirect returns true when this get storage classes using g e t forbidden response has a 3xx status code
func (*GetStorageClassesUsingGETForbidden) IsServerError ¶
func (o *GetStorageClassesUsingGETForbidden) IsServerError() bool
IsServerError returns true when this get storage classes using g e t forbidden response has a 5xx status code
func (*GetStorageClassesUsingGETForbidden) IsSuccess ¶
func (o *GetStorageClassesUsingGETForbidden) IsSuccess() bool
IsSuccess returns true when this get storage classes using g e t forbidden response has a 2xx status code
func (*GetStorageClassesUsingGETForbidden) String ¶
func (o *GetStorageClassesUsingGETForbidden) String() string
type GetStorageClassesUsingGETOK ¶
type GetStorageClassesUsingGETOK struct {
Payload *models.PageOfStoragePolicy
}
GetStorageClassesUsingGETOK describes a response with status code 200, with default header values.
OK
func NewGetStorageClassesUsingGETOK ¶
func NewGetStorageClassesUsingGETOK() *GetStorageClassesUsingGETOK
NewGetStorageClassesUsingGETOK creates a GetStorageClassesUsingGETOK with default headers values
func (*GetStorageClassesUsingGETOK) Error ¶
func (o *GetStorageClassesUsingGETOK) Error() string
func (*GetStorageClassesUsingGETOK) GetPayload ¶
func (o *GetStorageClassesUsingGETOK) GetPayload() *models.PageOfStoragePolicy
func (*GetStorageClassesUsingGETOK) IsClientError ¶
func (o *GetStorageClassesUsingGETOK) IsClientError() bool
IsClientError returns true when this get storage classes using g e t o k response has a 4xx status code
func (*GetStorageClassesUsingGETOK) IsCode ¶
func (o *GetStorageClassesUsingGETOK) IsCode(code int) bool
IsCode returns true when this get storage classes using g e t o k response a status code equal to that given
func (*GetStorageClassesUsingGETOK) IsRedirect ¶
func (o *GetStorageClassesUsingGETOK) IsRedirect() bool
IsRedirect returns true when this get storage classes using g e t o k response has a 3xx status code
func (*GetStorageClassesUsingGETOK) IsServerError ¶
func (o *GetStorageClassesUsingGETOK) IsServerError() bool
IsServerError returns true when this get storage classes using g e t o k response has a 5xx status code
func (*GetStorageClassesUsingGETOK) IsSuccess ¶
func (o *GetStorageClassesUsingGETOK) IsSuccess() bool
IsSuccess returns true when this get storage classes using g e t o k response has a 2xx status code
func (*GetStorageClassesUsingGETOK) String ¶
func (o *GetStorageClassesUsingGETOK) String() string
type GetStorageClassesUsingGETParams ¶
type GetStorageClassesUsingGETParams struct { /* EndpointSelfLinkID. endpointSelfLinkId */ EndpointSelfLinkID string // Offset. // // Format: int64 Offset *int64 // PageNumber. // // Format: int32 PageNumber *int32 // PageSize. // // Format: int32 PageSize *int32 // Paged. Paged *bool // SortSorted. SortSorted *bool // SortUnsorted. SortUnsorted *bool // Unpaged. Unpaged *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetStorageClassesUsingGETParams contains all the parameters to send to the API endpoint
for the get storage classes using g e t operation. Typically these are written to a http.Request.
func NewGetStorageClassesUsingGETParams ¶
func NewGetStorageClassesUsingGETParams() *GetStorageClassesUsingGETParams
NewGetStorageClassesUsingGETParams creates a new GetStorageClassesUsingGETParams 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 NewGetStorageClassesUsingGETParamsWithContext ¶
func NewGetStorageClassesUsingGETParamsWithContext(ctx context.Context) *GetStorageClassesUsingGETParams
NewGetStorageClassesUsingGETParamsWithContext creates a new GetStorageClassesUsingGETParams object with the ability to set a context for a request.
func NewGetStorageClassesUsingGETParamsWithHTTPClient ¶
func NewGetStorageClassesUsingGETParamsWithHTTPClient(client *http.Client) *GetStorageClassesUsingGETParams
NewGetStorageClassesUsingGETParamsWithHTTPClient creates a new GetStorageClassesUsingGETParams object with the ability to set a custom HTTPClient for a request.
func NewGetStorageClassesUsingGETParamsWithTimeout ¶
func NewGetStorageClassesUsingGETParamsWithTimeout(timeout time.Duration) *GetStorageClassesUsingGETParams
NewGetStorageClassesUsingGETParamsWithTimeout creates a new GetStorageClassesUsingGETParams object with the ability to set a timeout on a request.
func (*GetStorageClassesUsingGETParams) SetContext ¶
func (o *GetStorageClassesUsingGETParams) SetContext(ctx context.Context)
SetContext adds the context to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) SetDefaults ¶
func (o *GetStorageClassesUsingGETParams) SetDefaults()
SetDefaults hydrates default values in the get storage classes using get params (not the query body).
All values with no default are reset to their zero value.
func (*GetStorageClassesUsingGETParams) SetEndpointSelfLinkID ¶
func (o *GetStorageClassesUsingGETParams) SetEndpointSelfLinkID(endpointSelfLinkID string)
SetEndpointSelfLinkID adds the endpointSelfLinkId to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) SetHTTPClient ¶
func (o *GetStorageClassesUsingGETParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) SetOffset ¶
func (o *GetStorageClassesUsingGETParams) SetOffset(offset *int64)
SetOffset adds the offset to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) SetPageNumber ¶
func (o *GetStorageClassesUsingGETParams) SetPageNumber(pageNumber *int32)
SetPageNumber adds the pageNumber to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) SetPageSize ¶
func (o *GetStorageClassesUsingGETParams) SetPageSize(pageSize *int32)
SetPageSize adds the pageSize to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) SetPaged ¶
func (o *GetStorageClassesUsingGETParams) SetPaged(paged *bool)
SetPaged adds the paged to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) SetSortSorted ¶
func (o *GetStorageClassesUsingGETParams) SetSortSorted(sortSorted *bool)
SetSortSorted adds the sortSorted to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) SetSortUnsorted ¶
func (o *GetStorageClassesUsingGETParams) SetSortUnsorted(sortUnsorted *bool)
SetSortUnsorted adds the sortUnsorted to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) SetTimeout ¶
func (o *GetStorageClassesUsingGETParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) SetUnpaged ¶
func (o *GetStorageClassesUsingGETParams) SetUnpaged(unpaged *bool)
SetUnpaged adds the unpaged to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) WithContext ¶
func (o *GetStorageClassesUsingGETParams) WithContext(ctx context.Context) *GetStorageClassesUsingGETParams
WithContext adds the context to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) WithDefaults ¶
func (o *GetStorageClassesUsingGETParams) WithDefaults() *GetStorageClassesUsingGETParams
WithDefaults hydrates default values in the get storage classes using get params (not the query body).
All values with no default are reset to their zero value.
func (*GetStorageClassesUsingGETParams) WithEndpointSelfLinkID ¶
func (o *GetStorageClassesUsingGETParams) WithEndpointSelfLinkID(endpointSelfLinkID string) *GetStorageClassesUsingGETParams
WithEndpointSelfLinkID adds the endpointSelfLinkID to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) WithHTTPClient ¶
func (o *GetStorageClassesUsingGETParams) WithHTTPClient(client *http.Client) *GetStorageClassesUsingGETParams
WithHTTPClient adds the HTTPClient to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) WithOffset ¶
func (o *GetStorageClassesUsingGETParams) WithOffset(offset *int64) *GetStorageClassesUsingGETParams
WithOffset adds the offset to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) WithPageNumber ¶
func (o *GetStorageClassesUsingGETParams) WithPageNumber(pageNumber *int32) *GetStorageClassesUsingGETParams
WithPageNumber adds the pageNumber to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) WithPageSize ¶
func (o *GetStorageClassesUsingGETParams) WithPageSize(pageSize *int32) *GetStorageClassesUsingGETParams
WithPageSize adds the pageSize to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) WithPaged ¶
func (o *GetStorageClassesUsingGETParams) WithPaged(paged *bool) *GetStorageClassesUsingGETParams
WithPaged adds the paged to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) WithSortSorted ¶
func (o *GetStorageClassesUsingGETParams) WithSortSorted(sortSorted *bool) *GetStorageClassesUsingGETParams
WithSortSorted adds the sortSorted to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) WithSortUnsorted ¶
func (o *GetStorageClassesUsingGETParams) WithSortUnsorted(sortUnsorted *bool) *GetStorageClassesUsingGETParams
WithSortUnsorted adds the sortUnsorted to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) WithTimeout ¶
func (o *GetStorageClassesUsingGETParams) WithTimeout(timeout time.Duration) *GetStorageClassesUsingGETParams
WithTimeout adds the timeout to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) WithUnpaged ¶
func (o *GetStorageClassesUsingGETParams) WithUnpaged(unpaged *bool) *GetStorageClassesUsingGETParams
WithUnpaged adds the unpaged to the get storage classes using get params
func (*GetStorageClassesUsingGETParams) WriteToRequest ¶
func (o *GetStorageClassesUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetStorageClassesUsingGETReader ¶
type GetStorageClassesUsingGETReader struct {
// contains filtered or unexported fields
}
GetStorageClassesUsingGETReader is a Reader for the GetStorageClassesUsingGET structure.
func (*GetStorageClassesUsingGETReader) ReadResponse ¶
func (o *GetStorageClassesUsingGETReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.