vcenters

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: BSD-2-Clause Imports: 10 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 centers API

func (*Client) GetVCENTERS added in v0.1.1

func (a *Client) GetVCENTERS(params *GetVCENTERSParams, opts ...ClientOption) (*GetVCENTERSOK, error)

GetVCENTERS gets v centers

func (*Client) GetVcenter added in v0.1.1

func (a *Client) GetVcenter(params *GetVcenterParams, opts ...ClientOption) (*GetVcenterOK, error)

GetVcenter gets a v center

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 {
	GetVcenter(params *GetVcenterParams, opts ...ClientOption) (*GetVcenterOK, error)

	GetVCENTERS(params *GetVCENTERSParams, opts ...ClientOption) (*GetVCENTERSOK, 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 centers API client.

type GetVCENTERSBadRequest added in v0.1.1

type GetVCENTERSBadRequest struct {
	Payload *models.Error
}

GetVCENTERSBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewGetVCENTERSBadRequest added in v0.1.1

func NewGetVCENTERSBadRequest() *GetVCENTERSBadRequest

NewGetVCENTERSBadRequest creates a GetVCENTERSBadRequest with default headers values

func (*GetVCENTERSBadRequest) Error added in v0.1.1

func (o *GetVCENTERSBadRequest) Error() string

func (*GetVCENTERSBadRequest) GetPayload added in v0.1.1

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

func (*GetVCENTERSBadRequest) IsClientError added in v0.1.1

func (o *GetVCENTERSBadRequest) IsClientError() bool

IsClientError returns true when this get Vcenters bad request response has a 4xx status code

func (*GetVCENTERSBadRequest) IsCode added in v0.1.1

func (o *GetVCENTERSBadRequest) IsCode(code int) bool

IsCode returns true when this get Vcenters bad request response a status code equal to that given

func (*GetVCENTERSBadRequest) IsRedirect added in v0.1.1

func (o *GetVCENTERSBadRequest) IsRedirect() bool

IsRedirect returns true when this get Vcenters bad request response has a 3xx status code

func (*GetVCENTERSBadRequest) IsServerError added in v0.1.1

func (o *GetVCENTERSBadRequest) IsServerError() bool

IsServerError returns true when this get Vcenters bad request response has a 5xx status code

func (*GetVCENTERSBadRequest) IsSuccess added in v0.1.1

func (o *GetVCENTERSBadRequest) IsSuccess() bool

IsSuccess returns true when this get Vcenters bad request response has a 2xx status code

func (*GetVCENTERSBadRequest) String added in v0.1.1

func (o *GetVCENTERSBadRequest) String() string

type GetVCENTERSInternalServerError added in v0.1.1

type GetVCENTERSInternalServerError struct {
	Payload *models.Error
}

GetVCENTERSInternalServerError describes a response with status code 500, with default header values.

InternalServerError

func NewGetVCENTERSInternalServerError added in v0.1.1

func NewGetVCENTERSInternalServerError() *GetVCENTERSInternalServerError

NewGetVCENTERSInternalServerError creates a GetVCENTERSInternalServerError with default headers values

func (*GetVCENTERSInternalServerError) Error added in v0.1.1

func (*GetVCENTERSInternalServerError) GetPayload added in v0.1.1

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

func (*GetVCENTERSInternalServerError) IsClientError added in v0.1.1

func (o *GetVCENTERSInternalServerError) IsClientError() bool

IsClientError returns true when this get Vcenters internal server error response has a 4xx status code

func (*GetVCENTERSInternalServerError) IsCode added in v0.1.1

func (o *GetVCENTERSInternalServerError) IsCode(code int) bool

IsCode returns true when this get Vcenters internal server error response a status code equal to that given

func (*GetVCENTERSInternalServerError) IsRedirect added in v0.1.1

func (o *GetVCENTERSInternalServerError) IsRedirect() bool

IsRedirect returns true when this get Vcenters internal server error response has a 3xx status code

func (*GetVCENTERSInternalServerError) IsServerError added in v0.1.1

func (o *GetVCENTERSInternalServerError) IsServerError() bool

IsServerError returns true when this get Vcenters internal server error response has a 5xx status code

func (*GetVCENTERSInternalServerError) IsSuccess added in v0.1.1

func (o *GetVCENTERSInternalServerError) IsSuccess() bool

IsSuccess returns true when this get Vcenters internal server error response has a 2xx status code

func (*GetVCENTERSInternalServerError) String added in v0.1.1

type GetVCENTERSOK added in v0.1.1

type GetVCENTERSOK struct {
	Payload *models.PageOfVcenter
}

GetVCENTERSOK describes a response with status code 200, with default header values.

Ok

func NewGetVCENTERSOK added in v0.1.1

func NewGetVCENTERSOK() *GetVCENTERSOK

NewGetVCENTERSOK creates a GetVCENTERSOK with default headers values

func (*GetVCENTERSOK) Error added in v0.1.1

func (o *GetVCENTERSOK) Error() string

func (*GetVCENTERSOK) GetPayload added in v0.1.1

func (o *GetVCENTERSOK) GetPayload() *models.PageOfVcenter

func (*GetVCENTERSOK) IsClientError added in v0.1.1

func (o *GetVCENTERSOK) IsClientError() bool

IsClientError returns true when this get Vcenters o k response has a 4xx status code

func (*GetVCENTERSOK) IsCode added in v0.1.1

func (o *GetVCENTERSOK) IsCode(code int) bool

IsCode returns true when this get Vcenters o k response a status code equal to that given

func (*GetVCENTERSOK) IsRedirect added in v0.1.1

func (o *GetVCENTERSOK) IsRedirect() bool

IsRedirect returns true when this get Vcenters o k response has a 3xx status code

func (*GetVCENTERSOK) IsServerError added in v0.1.1

func (o *GetVCENTERSOK) IsServerError() bool

IsServerError returns true when this get Vcenters o k response has a 5xx status code

func (*GetVCENTERSOK) IsSuccess added in v0.1.1

func (o *GetVCENTERSOK) IsSuccess() bool

IsSuccess returns true when this get Vcenters o k response has a 2xx status code

func (*GetVCENTERSOK) String added in v0.1.1

func (o *GetVCENTERSOK) String() string

type GetVCENTERSParams added in v0.1.1

type GetVCENTERSParams struct {

	/* DomainID.

	   ID of the domain
	*/
	DomainID *string

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

GetVCENTERSParams contains all the parameters to send to the API endpoint

for the get Vcenters operation.

Typically these are written to a http.Request.

func NewGetVCENTERSParams added in v0.1.1

func NewGetVCENTERSParams() *GetVCENTERSParams

NewGetVCENTERSParams creates a new GetVCENTERSParams 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 NewGetVCENTERSParamsWithContext added in v0.1.1

func NewGetVCENTERSParamsWithContext(ctx context.Context) *GetVCENTERSParams

NewGetVCENTERSParamsWithContext creates a new GetVCENTERSParams object with the ability to set a context for a request.

func NewGetVCENTERSParamsWithHTTPClient added in v0.1.1

func NewGetVCENTERSParamsWithHTTPClient(client *http.Client) *GetVCENTERSParams

NewGetVCENTERSParamsWithHTTPClient creates a new GetVCENTERSParams object with the ability to set a custom HTTPClient for a request.

func NewGetVCENTERSParamsWithTimeout added in v0.1.1

func NewGetVCENTERSParamsWithTimeout(timeout time.Duration) *GetVCENTERSParams

NewGetVCENTERSParamsWithTimeout creates a new GetVCENTERSParams object with the ability to set a timeout on a request.

func (*GetVCENTERSParams) SetContext added in v0.1.1

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

SetContext adds the context to the get Vcenters params

func (*GetVCENTERSParams) SetDefaults added in v0.1.1

func (o *GetVCENTERSParams) SetDefaults()

SetDefaults hydrates default values in the get Vcenters params (not the query body).

All values with no default are reset to their zero value.

func (*GetVCENTERSParams) SetDomainID added in v0.1.1

func (o *GetVCENTERSParams) SetDomainID(domainID *string)

SetDomainID adds the domainId to the get Vcenters params

func (*GetVCENTERSParams) SetHTTPClient added in v0.1.1

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

SetHTTPClient adds the HTTPClient to the get Vcenters params

func (*GetVCENTERSParams) SetTimeout added in v0.1.1

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

SetTimeout adds the timeout to the get Vcenters params

func (*GetVCENTERSParams) WithContext added in v0.1.1

func (o *GetVCENTERSParams) WithContext(ctx context.Context) *GetVCENTERSParams

WithContext adds the context to the get Vcenters params

func (*GetVCENTERSParams) WithDefaults added in v0.1.1

func (o *GetVCENTERSParams) WithDefaults() *GetVCENTERSParams

WithDefaults hydrates default values in the get Vcenters params (not the query body).

All values with no default are reset to their zero value.

func (*GetVCENTERSParams) WithDomainID added in v0.1.1

func (o *GetVCENTERSParams) WithDomainID(domainID *string) *GetVCENTERSParams

WithDomainID adds the domainID to the get Vcenters params

func (*GetVCENTERSParams) WithHTTPClient added in v0.1.1

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

WithHTTPClient adds the HTTPClient to the get Vcenters params

func (*GetVCENTERSParams) WithTimeout added in v0.1.1

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

WithTimeout adds the timeout to the get Vcenters params

func (*GetVCENTERSParams) WriteToRequest added in v0.1.1

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

WriteToRequest writes these params to a swagger request

type GetVCENTERSReader added in v0.1.1

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

GetVCENTERSReader is a Reader for the GetVCENTERS structure.

func (*GetVCENTERSReader) ReadResponse added in v0.1.1

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

ReadResponse reads a server response into the received o.

type GetVcenterInternalServerError added in v0.1.1

type GetVcenterInternalServerError struct {
	Payload *models.Error
}

GetVcenterInternalServerError describes a response with status code 500, with default header values.

InternalServerError

func NewGetVcenterInternalServerError added in v0.1.1

func NewGetVcenterInternalServerError() *GetVcenterInternalServerError

NewGetVcenterInternalServerError creates a GetVcenterInternalServerError with default headers values

func (*GetVcenterInternalServerError) Error added in v0.1.1

func (*GetVcenterInternalServerError) GetPayload added in v0.1.1

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

func (*GetVcenterInternalServerError) IsClientError added in v0.1.1

func (o *GetVcenterInternalServerError) IsClientError() bool

IsClientError returns true when this get vcenter internal server error response has a 4xx status code

func (*GetVcenterInternalServerError) IsCode added in v0.1.1

func (o *GetVcenterInternalServerError) IsCode(code int) bool

IsCode returns true when this get vcenter internal server error response a status code equal to that given

func (*GetVcenterInternalServerError) IsRedirect added in v0.1.1

func (o *GetVcenterInternalServerError) IsRedirect() bool

IsRedirect returns true when this get vcenter internal server error response has a 3xx status code

func (*GetVcenterInternalServerError) IsServerError added in v0.1.1

func (o *GetVcenterInternalServerError) IsServerError() bool

IsServerError returns true when this get vcenter internal server error response has a 5xx status code

func (*GetVcenterInternalServerError) IsSuccess added in v0.1.1

func (o *GetVcenterInternalServerError) IsSuccess() bool

IsSuccess returns true when this get vcenter internal server error response has a 2xx status code

func (*GetVcenterInternalServerError) String added in v0.1.1

type GetVcenterNotFound added in v0.1.1

type GetVcenterNotFound struct {
	Payload *models.Error
}

GetVcenterNotFound describes a response with status code 404, with default header values.

vCenter not found

func NewGetVcenterNotFound added in v0.1.1

func NewGetVcenterNotFound() *GetVcenterNotFound

NewGetVcenterNotFound creates a GetVcenterNotFound with default headers values

func (*GetVcenterNotFound) Error added in v0.1.1

func (o *GetVcenterNotFound) Error() string

func (*GetVcenterNotFound) GetPayload added in v0.1.1

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

func (*GetVcenterNotFound) IsClientError added in v0.1.1

func (o *GetVcenterNotFound) IsClientError() bool

IsClientError returns true when this get vcenter not found response has a 4xx status code

func (*GetVcenterNotFound) IsCode added in v0.1.1

func (o *GetVcenterNotFound) IsCode(code int) bool

IsCode returns true when this get vcenter not found response a status code equal to that given

func (*GetVcenterNotFound) IsRedirect added in v0.1.1

func (o *GetVcenterNotFound) IsRedirect() bool

IsRedirect returns true when this get vcenter not found response has a 3xx status code

func (*GetVcenterNotFound) IsServerError added in v0.1.1

func (o *GetVcenterNotFound) IsServerError() bool

IsServerError returns true when this get vcenter not found response has a 5xx status code

func (*GetVcenterNotFound) IsSuccess added in v0.1.1

func (o *GetVcenterNotFound) IsSuccess() bool

IsSuccess returns true when this get vcenter not found response has a 2xx status code

func (*GetVcenterNotFound) String added in v0.1.1

func (o *GetVcenterNotFound) String() string

type GetVcenterOK added in v0.1.1

type GetVcenterOK struct {
	Payload *models.Vcenter
}

GetVcenterOK describes a response with status code 200, with default header values.

Ok

func NewGetVcenterOK added in v0.1.1

func NewGetVcenterOK() *GetVcenterOK

NewGetVcenterOK creates a GetVcenterOK with default headers values

func (*GetVcenterOK) Error added in v0.1.1

func (o *GetVcenterOK) Error() string

func (*GetVcenterOK) GetPayload added in v0.1.1

func (o *GetVcenterOK) GetPayload() *models.Vcenter

func (*GetVcenterOK) IsClientError added in v0.1.1

func (o *GetVcenterOK) IsClientError() bool

IsClientError returns true when this get vcenter o k response has a 4xx status code

func (*GetVcenterOK) IsCode added in v0.1.1

func (o *GetVcenterOK) IsCode(code int) bool

IsCode returns true when this get vcenter o k response a status code equal to that given

func (*GetVcenterOK) IsRedirect added in v0.1.1

func (o *GetVcenterOK) IsRedirect() bool

IsRedirect returns true when this get vcenter o k response has a 3xx status code

func (*GetVcenterOK) IsServerError added in v0.1.1

func (o *GetVcenterOK) IsServerError() bool

IsServerError returns true when this get vcenter o k response has a 5xx status code

func (*GetVcenterOK) IsSuccess added in v0.1.1

func (o *GetVcenterOK) IsSuccess() bool

IsSuccess returns true when this get vcenter o k response has a 2xx status code

func (*GetVcenterOK) String added in v0.1.1

func (o *GetVcenterOK) String() string

type GetVcenterParams added in v0.1.1

type GetVcenterParams struct {

	/* ID.

	   vCenter ID
	*/
	ID string

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

GetVcenterParams contains all the parameters to send to the API endpoint

for the get vcenter operation.

Typically these are written to a http.Request.

func NewGetVcenterParams added in v0.1.1

func NewGetVcenterParams() *GetVcenterParams

NewGetVcenterParams creates a new GetVcenterParams 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 NewGetVcenterParamsWithContext added in v0.1.1

func NewGetVcenterParamsWithContext(ctx context.Context) *GetVcenterParams

NewGetVcenterParamsWithContext creates a new GetVcenterParams object with the ability to set a context for a request.

func NewGetVcenterParamsWithHTTPClient added in v0.1.1

func NewGetVcenterParamsWithHTTPClient(client *http.Client) *GetVcenterParams

NewGetVcenterParamsWithHTTPClient creates a new GetVcenterParams object with the ability to set a custom HTTPClient for a request.

func NewGetVcenterParamsWithTimeout added in v0.1.1

func NewGetVcenterParamsWithTimeout(timeout time.Duration) *GetVcenterParams

NewGetVcenterParamsWithTimeout creates a new GetVcenterParams object with the ability to set a timeout on a request.

func (*GetVcenterParams) SetContext added in v0.1.1

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

SetContext adds the context to the get vcenter params

func (*GetVcenterParams) SetDefaults added in v0.1.1

func (o *GetVcenterParams) SetDefaults()

SetDefaults hydrates default values in the get vcenter params (not the query body).

All values with no default are reset to their zero value.

func (*GetVcenterParams) SetHTTPClient added in v0.1.1

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

SetHTTPClient adds the HTTPClient to the get vcenter params

func (*GetVcenterParams) SetID added in v0.1.1

func (o *GetVcenterParams) SetID(id string)

SetID adds the id to the get vcenter params

func (*GetVcenterParams) SetTimeout added in v0.1.1

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

SetTimeout adds the timeout to the get vcenter params

func (*GetVcenterParams) WithContext added in v0.1.1

func (o *GetVcenterParams) WithContext(ctx context.Context) *GetVcenterParams

WithContext adds the context to the get vcenter params

func (*GetVcenterParams) WithDefaults added in v0.1.1

func (o *GetVcenterParams) WithDefaults() *GetVcenterParams

WithDefaults hydrates default values in the get vcenter params (not the query body).

All values with no default are reset to their zero value.

func (*GetVcenterParams) WithHTTPClient added in v0.1.1

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

WithHTTPClient adds the HTTPClient to the get vcenter params

func (*GetVcenterParams) WithID added in v0.1.1

func (o *GetVcenterParams) WithID(id string) *GetVcenterParams

WithID adds the id to the get vcenter params

func (*GetVcenterParams) WithTimeout added in v0.1.1

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

WithTimeout adds the timeout to the get vcenter params

func (*GetVcenterParams) WriteToRequest added in v0.1.1

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

WriteToRequest writes these params to a swagger request

type GetVcenterReader added in v0.1.1

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

GetVcenterReader is a Reader for the GetVcenter structure.

func (*GetVcenterReader) ReadResponse added in v0.1.1

func (o *GetVcenterReader) 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