resources

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 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 resources API

func (*Client) GetResources

func (a *Client) GetResources(params *GetResourcesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetResourcesOK, error)

GetResources gets the available resources that support access authorization policies

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 {
	GetResources(params *GetResourcesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetResourcesOK, 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 resources API client.

type GetResourcesForbidden

type GetResourcesForbidden struct {
}

GetResourcesForbidden describes a response with status code 403, with default header values.

Client is not authorized to make this request.

func NewGetResourcesForbidden

func NewGetResourcesForbidden() *GetResourcesForbidden

NewGetResourcesForbidden creates a GetResourcesForbidden with default headers values

func (*GetResourcesForbidden) Error

func (o *GetResourcesForbidden) Error() string

func (*GetResourcesForbidden) IsClientError added in v1.19.1

func (o *GetResourcesForbidden) IsClientError() bool

IsClientError returns true when this get resources forbidden response has a 4xx status code

func (*GetResourcesForbidden) IsCode added in v1.19.1

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

IsCode returns true when this get resources forbidden response a status code equal to that given

func (*GetResourcesForbidden) IsRedirect added in v1.19.1

func (o *GetResourcesForbidden) IsRedirect() bool

IsRedirect returns true when this get resources forbidden response has a 3xx status code

func (*GetResourcesForbidden) IsServerError added in v1.19.1

func (o *GetResourcesForbidden) IsServerError() bool

IsServerError returns true when this get resources forbidden response has a 5xx status code

func (*GetResourcesForbidden) IsSuccess added in v1.19.1

func (o *GetResourcesForbidden) IsSuccess() bool

IsSuccess returns true when this get resources forbidden response has a 2xx status code

func (*GetResourcesForbidden) String added in v1.19.1

func (o *GetResourcesForbidden) String() string

type GetResourcesOK

type GetResourcesOK struct {
	Payload *models.ResourcesEntity
}

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

successful operation

func NewGetResourcesOK

func NewGetResourcesOK() *GetResourcesOK

NewGetResourcesOK creates a GetResourcesOK with default headers values

func (*GetResourcesOK) Error

func (o *GetResourcesOK) Error() string

func (*GetResourcesOK) GetPayload

func (o *GetResourcesOK) GetPayload() *models.ResourcesEntity

func (*GetResourcesOK) IsClientError added in v1.19.1

func (o *GetResourcesOK) IsClientError() bool

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

func (*GetResourcesOK) IsCode added in v1.19.1

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

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

func (*GetResourcesOK) IsRedirect added in v1.19.1

func (o *GetResourcesOK) IsRedirect() bool

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

func (*GetResourcesOK) IsServerError added in v1.19.1

func (o *GetResourcesOK) IsServerError() bool

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

func (*GetResourcesOK) IsSuccess added in v1.19.1

func (o *GetResourcesOK) IsSuccess() bool

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

func (*GetResourcesOK) String added in v1.19.1

func (o *GetResourcesOK) String() string

type GetResourcesParams

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

GetResourcesParams contains all the parameters to send to the API endpoint

for the get resources operation.

Typically these are written to a http.Request.

func NewGetResourcesParams

func NewGetResourcesParams() *GetResourcesParams

NewGetResourcesParams creates a new GetResourcesParams 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 NewGetResourcesParamsWithContext

func NewGetResourcesParamsWithContext(ctx context.Context) *GetResourcesParams

NewGetResourcesParamsWithContext creates a new GetResourcesParams object with the ability to set a context for a request.

func NewGetResourcesParamsWithHTTPClient

func NewGetResourcesParamsWithHTTPClient(client *http.Client) *GetResourcesParams

NewGetResourcesParamsWithHTTPClient creates a new GetResourcesParams object with the ability to set a custom HTTPClient for a request.

func NewGetResourcesParamsWithTimeout

func NewGetResourcesParamsWithTimeout(timeout time.Duration) *GetResourcesParams

NewGetResourcesParamsWithTimeout creates a new GetResourcesParams object with the ability to set a timeout on a request.

func (*GetResourcesParams) SetContext

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

SetContext adds the context to the get resources params

func (*GetResourcesParams) SetDefaults

func (o *GetResourcesParams) SetDefaults()

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

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

func (*GetResourcesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get resources params

func (*GetResourcesParams) SetTimeout

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

SetTimeout adds the timeout to the get resources params

func (*GetResourcesParams) WithContext

WithContext adds the context to the get resources params

func (*GetResourcesParams) WithDefaults

func (o *GetResourcesParams) WithDefaults() *GetResourcesParams

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

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

func (*GetResourcesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get resources params

func (*GetResourcesParams) WithTimeout

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

WithTimeout adds the timeout to the get resources params

func (*GetResourcesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetResourcesReader

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

GetResourcesReader is a Reader for the GetResources structure.

func (*GetResourcesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetResourcesUnauthorized

type GetResourcesUnauthorized struct {
}

GetResourcesUnauthorized describes a response with status code 401, with default header values.

Client could not be authenticated.

func NewGetResourcesUnauthorized

func NewGetResourcesUnauthorized() *GetResourcesUnauthorized

NewGetResourcesUnauthorized creates a GetResourcesUnauthorized with default headers values

func (*GetResourcesUnauthorized) Error

func (o *GetResourcesUnauthorized) Error() string

func (*GetResourcesUnauthorized) IsClientError added in v1.19.1

func (o *GetResourcesUnauthorized) IsClientError() bool

IsClientError returns true when this get resources unauthorized response has a 4xx status code

func (*GetResourcesUnauthorized) IsCode added in v1.19.1

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

IsCode returns true when this get resources unauthorized response a status code equal to that given

func (*GetResourcesUnauthorized) IsRedirect added in v1.19.1

func (o *GetResourcesUnauthorized) IsRedirect() bool

IsRedirect returns true when this get resources unauthorized response has a 3xx status code

func (*GetResourcesUnauthorized) IsServerError added in v1.19.1

func (o *GetResourcesUnauthorized) IsServerError() bool

IsServerError returns true when this get resources unauthorized response has a 5xx status code

func (*GetResourcesUnauthorized) IsSuccess added in v1.19.1

func (o *GetResourcesUnauthorized) IsSuccess() bool

IsSuccess returns true when this get resources unauthorized response has a 2xx status code

func (*GetResourcesUnauthorized) String added in v1.19.1

func (o *GetResourcesUnauthorized) String() string

Jump to

Keyboard shortcuts

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