vcenter_endpoints

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 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 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 (*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

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

IsSuccess returns true when this get storage classes using g e t forbidden response has a 2xx status code

func (*GetStorageClassesUsingGETForbidden) 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 (*GetStorageClassesUsingGETOK) GetPayload

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

WithContext adds the context to the get storage classes using get params

func (*GetStorageClassesUsingGETParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get storage classes using get params

func (*GetStorageClassesUsingGETParams) WithOffset

WithOffset adds the offset to the get storage classes using get params

func (*GetStorageClassesUsingGETParams) WithPageNumber

WithPageNumber adds the pageNumber to the get storage classes using get params

func (*GetStorageClassesUsingGETParams) WithPageSize

WithPageSize adds the pageSize to the get storage classes using get params

func (*GetStorageClassesUsingGETParams) WithPaged

WithPaged adds the paged to the get storage classes using get params

func (*GetStorageClassesUsingGETParams) WithSortSorted

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

WithTimeout adds the timeout to the get storage classes using get params

func (*GetStorageClassesUsingGETParams) WithUnpaged

WithUnpaged adds the unpaged to the get storage classes using get params

func (*GetStorageClassesUsingGETParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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