wsa

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

func (*Client) GetWsas added in v0.1.1

func (a *Client) GetWsas(params *GetWsasParams, opts ...ClientOption) (*GetWsasOK, error)

GetWsas gets all existing workspace o n e access 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 {
	GetWsas(params *GetWsasParams, opts ...ClientOption) (*GetWsasOK, 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 wsa API client.

type GetWsasOK added in v0.1.1

type GetWsasOK struct {
	Payload *models.PageOfWSA
}

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

OK

func NewGetWsasOK added in v0.1.1

func NewGetWsasOK() *GetWsasOK

NewGetWsasOK creates a GetWsasOK with default headers values

func (*GetWsasOK) Error added in v0.1.1

func (o *GetWsasOK) Error() string

func (*GetWsasOK) GetPayload added in v0.1.1

func (o *GetWsasOK) GetPayload() *models.PageOfWSA

func (*GetWsasOK) IsClientError added in v0.1.1

func (o *GetWsasOK) IsClientError() bool

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

func (*GetWsasOK) IsCode added in v0.1.1

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

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

func (*GetWsasOK) IsRedirect added in v0.1.1

func (o *GetWsasOK) IsRedirect() bool

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

func (*GetWsasOK) IsServerError added in v0.1.1

func (o *GetWsasOK) IsServerError() bool

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

func (*GetWsasOK) IsSuccess added in v0.1.1

func (o *GetWsasOK) IsSuccess() bool

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

func (*GetWsasOK) String added in v0.1.1

func (o *GetWsasOK) String() string

type GetWsasParams added in v0.1.1

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

GetWsasParams contains all the parameters to send to the API endpoint

for the get wsas operation.

Typically these are written to a http.Request.

func NewGetWsasParams added in v0.1.1

func NewGetWsasParams() *GetWsasParams

NewGetWsasParams creates a new GetWsasParams 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 NewGetWsasParamsWithContext added in v0.1.1

func NewGetWsasParamsWithContext(ctx context.Context) *GetWsasParams

NewGetWsasParamsWithContext creates a new GetWsasParams object with the ability to set a context for a request.

func NewGetWsasParamsWithHTTPClient added in v0.1.1

func NewGetWsasParamsWithHTTPClient(client *http.Client) *GetWsasParams

NewGetWsasParamsWithHTTPClient creates a new GetWsasParams object with the ability to set a custom HTTPClient for a request.

func NewGetWsasParamsWithTimeout added in v0.1.1

func NewGetWsasParamsWithTimeout(timeout time.Duration) *GetWsasParams

NewGetWsasParamsWithTimeout creates a new GetWsasParams object with the ability to set a timeout on a request.

func (*GetWsasParams) SetContext added in v0.1.1

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

SetContext adds the context to the get wsas params

func (*GetWsasParams) SetDefaults added in v0.1.1

func (o *GetWsasParams) SetDefaults()

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

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

func (*GetWsasParams) SetHTTPClient added in v0.1.1

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

SetHTTPClient adds the HTTPClient to the get wsas params

func (*GetWsasParams) SetTimeout added in v0.1.1

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

SetTimeout adds the timeout to the get wsas params

func (*GetWsasParams) WithContext added in v0.1.1

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

WithContext adds the context to the get wsas params

func (*GetWsasParams) WithDefaults added in v0.1.1

func (o *GetWsasParams) WithDefaults() *GetWsasParams

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

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

func (*GetWsasParams) WithHTTPClient added in v0.1.1

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

WithHTTPClient adds the HTTPClient to the get wsas params

func (*GetWsasParams) WithTimeout added in v0.1.1

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

WithTimeout adds the timeout to the get wsas params

func (*GetWsasParams) WriteToRequest added in v0.1.1

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

WriteToRequest writes these params to a swagger request

type GetWsasReader added in v0.1.1

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

GetWsasReader is a Reader for the GetWsas structure.

func (*GetWsasReader) ReadResponse added in v0.1.1

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