entitlements

package
v0.0.0-...-4387d94 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT 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 entitlements API

func (*Client) GetV1Entitlements

func (a *Client) GetV1Entitlements(params *GetV1EntitlementsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1EntitlementsOK, error)

GetV1Entitlements Retrieve all entitlements

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 {
	GetV1Entitlements(params *GetV1EntitlementsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1EntitlementsOK, 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 entitlements API client.

type GetV1EntitlementsOK

type GetV1EntitlementsOK struct {
	Payload *models.EntitlementEntityPaginated
}

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

Retrieve all entitlements

func NewGetV1EntitlementsOK

func NewGetV1EntitlementsOK() *GetV1EntitlementsOK

NewGetV1EntitlementsOK creates a GetV1EntitlementsOK with default headers values

func (*GetV1EntitlementsOK) Error

func (o *GetV1EntitlementsOK) Error() string

func (*GetV1EntitlementsOK) GetPayload

func (*GetV1EntitlementsOK) IsClientError

func (o *GetV1EntitlementsOK) IsClientError() bool

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

func (*GetV1EntitlementsOK) IsCode

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

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

func (*GetV1EntitlementsOK) IsRedirect

func (o *GetV1EntitlementsOK) IsRedirect() bool

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

func (*GetV1EntitlementsOK) IsServerError

func (o *GetV1EntitlementsOK) IsServerError() bool

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

func (*GetV1EntitlementsOK) IsSuccess

func (o *GetV1EntitlementsOK) IsSuccess() bool

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

func (*GetV1EntitlementsOK) String

func (o *GetV1EntitlementsOK) String() string

type GetV1EntitlementsParams

type GetV1EntitlementsParams struct {

	/* Name.

	   Name of Entitlement
	*/
	Name *string

	/* Type.

	   Type of Entitlement
	*/
	Type *string

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

GetV1EntitlementsParams contains all the parameters to send to the API endpoint

for the get v1 entitlements operation.

Typically these are written to a http.Request.

func NewGetV1EntitlementsParams

func NewGetV1EntitlementsParams() *GetV1EntitlementsParams

NewGetV1EntitlementsParams creates a new GetV1EntitlementsParams 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 NewGetV1EntitlementsParamsWithContext

func NewGetV1EntitlementsParamsWithContext(ctx context.Context) *GetV1EntitlementsParams

NewGetV1EntitlementsParamsWithContext creates a new GetV1EntitlementsParams object with the ability to set a context for a request.

func NewGetV1EntitlementsParamsWithHTTPClient

func NewGetV1EntitlementsParamsWithHTTPClient(client *http.Client) *GetV1EntitlementsParams

NewGetV1EntitlementsParamsWithHTTPClient creates a new GetV1EntitlementsParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1EntitlementsParamsWithTimeout

func NewGetV1EntitlementsParamsWithTimeout(timeout time.Duration) *GetV1EntitlementsParams

NewGetV1EntitlementsParamsWithTimeout creates a new GetV1EntitlementsParams object with the ability to set a timeout on a request.

func (*GetV1EntitlementsParams) SetContext

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

SetContext adds the context to the get v1 entitlements params

func (*GetV1EntitlementsParams) SetDefaults

func (o *GetV1EntitlementsParams) SetDefaults()

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

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

func (*GetV1EntitlementsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 entitlements params

func (*GetV1EntitlementsParams) SetName

func (o *GetV1EntitlementsParams) SetName(name *string)

SetName adds the name to the get v1 entitlements params

func (*GetV1EntitlementsParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 entitlements params

func (*GetV1EntitlementsParams) SetType

func (o *GetV1EntitlementsParams) SetType(typeVar *string)

SetType adds the type to the get v1 entitlements params

func (*GetV1EntitlementsParams) WithContext

WithContext adds the context to the get v1 entitlements params

func (*GetV1EntitlementsParams) WithDefaults

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

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

func (*GetV1EntitlementsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get v1 entitlements params

func (*GetV1EntitlementsParams) WithName

WithName adds the name to the get v1 entitlements params

func (*GetV1EntitlementsParams) WithTimeout

WithTimeout adds the timeout to the get v1 entitlements params

func (*GetV1EntitlementsParams) WithType

WithType adds the typeVar to the get v1 entitlements params

func (*GetV1EntitlementsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetV1EntitlementsReader

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

GetV1EntitlementsReader is a Reader for the GetV1Entitlements structure.

func (*GetV1EntitlementsReader) ReadResponse

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