vra

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 r a API

func (*Client) GetVras added in v0.1.1

func (a *Client) GetVras(params *GetVrasParams, opts ...ClientOption) (*GetVrasOK, error)

GetVras gets all existing v realize automation instances

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 {
	GetVras(params *GetVrasParams, opts ...ClientOption) (*GetVrasOK, 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 r a API client.

type GetVrasOK added in v0.1.1

type GetVrasOK struct {
	Payload *models.PageOfVRA
}

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

OK

func NewGetVrasOK added in v0.1.1

func NewGetVrasOK() *GetVrasOK

NewGetVrasOK creates a GetVrasOK with default headers values

func (*GetVrasOK) Error added in v0.1.1

func (o *GetVrasOK) Error() string

func (*GetVrasOK) GetPayload added in v0.1.1

func (o *GetVrasOK) GetPayload() *models.PageOfVRA

func (*GetVrasOK) IsClientError added in v0.1.1

func (o *GetVrasOK) IsClientError() bool

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

func (*GetVrasOK) IsCode added in v0.1.1

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

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

func (*GetVrasOK) IsRedirect added in v0.1.1

func (o *GetVrasOK) IsRedirect() bool

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

func (*GetVrasOK) IsServerError added in v0.1.1

func (o *GetVrasOK) IsServerError() bool

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

func (*GetVrasOK) IsSuccess added in v0.1.1

func (o *GetVrasOK) IsSuccess() bool

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

func (*GetVrasOK) String added in v0.1.1

func (o *GetVrasOK) String() string

type GetVrasParams added in v0.1.1

type GetVrasParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetVrasParams contains all the parameters to send to the API endpoint

for the get vras operation.

Typically these are written to a http.Request.

func NewGetVrasParams added in v0.1.1

func NewGetVrasParams() *GetVrasParams

NewGetVrasParams creates a new GetVrasParams 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 NewGetVrasParamsWithContext added in v0.1.1

func NewGetVrasParamsWithContext(ctx context.Context) *GetVrasParams

NewGetVrasParamsWithContext creates a new GetVrasParams object with the ability to set a context for a request.

func NewGetVrasParamsWithHTTPClient added in v0.1.1

func NewGetVrasParamsWithHTTPClient(client *http.Client) *GetVrasParams

NewGetVrasParamsWithHTTPClient creates a new GetVrasParams object with the ability to set a custom HTTPClient for a request.

func NewGetVrasParamsWithTimeout added in v0.1.1

func NewGetVrasParamsWithTimeout(timeout time.Duration) *GetVrasParams

NewGetVrasParamsWithTimeout creates a new GetVrasParams object with the ability to set a timeout on a request.

func (*GetVrasParams) SetContext added in v0.1.1

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

SetContext adds the context to the get vras params

func (*GetVrasParams) SetDefaults added in v0.1.1

func (o *GetVrasParams) SetDefaults()

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

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

func (*GetVrasParams) SetHTTPClient added in v0.1.1

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

SetHTTPClient adds the HTTPClient to the get vras params

func (*GetVrasParams) SetTimeout added in v0.1.1

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

SetTimeout adds the timeout to the get vras params

func (*GetVrasParams) WithContext added in v0.1.1

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

WithContext adds the context to the get vras params

func (*GetVrasParams) WithDefaults added in v0.1.1

func (o *GetVrasParams) WithDefaults() *GetVrasParams

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

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

func (*GetVrasParams) WithHTTPClient added in v0.1.1

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

WithHTTPClient adds the HTTPClient to the get vras params

func (*GetVrasParams) WithTimeout added in v0.1.1

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

WithTimeout adds the timeout to the get vras params

func (*GetVrasParams) WriteToRequest added in v0.1.1

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

WriteToRequest writes these params to a swagger request

type GetVrasReader added in v0.1.1

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

GetVrasReader is a Reader for the GetVras structure.

func (*GetVrasReader) ReadResponse added in v0.1.1

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