catalog_entitlements

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 10 Imported by: 1

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 catalog entitlements API

func (*Client) CreateEntitlementUsingPOST2 added in v0.4.0

CreateEntitlementUsingPOST2 creates an entitlement

Creates an entitlement for a given project.

func (*Client) DeleteEntitlementUsingDELETE2 added in v0.4.0

func (a *Client) DeleteEntitlementUsingDELETE2(params *DeleteEntitlementUsingDELETE2Params, opts ...ClientOption) (*DeleteEntitlementUsingDELETE2NoContent, error)

DeleteEntitlementUsingDELETE2 deletes an entitlement

Deletes the entitlement with the specified id.

func (*Client) GetEntitlementsUsingGET2 added in v0.4.0

func (a *Client) GetEntitlementsUsingGET2(params *GetEntitlementsUsingGET2Params, opts ...ClientOption) (*GetEntitlementsUsingGET2OK, error)

GetEntitlementsUsingGET2 returns all entitlements filtered by project Id

Returns all entitlements (filtered by projectId).

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption added in v0.2.20

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.2.18

type ClientService interface {
	CreateEntitlementUsingPOST2(params *CreateEntitlementUsingPOST2Params, opts ...ClientOption) (*CreateEntitlementUsingPOST2OK, *CreateEntitlementUsingPOST2Created, error)

	DeleteEntitlementUsingDELETE2(params *DeleteEntitlementUsingDELETE2Params, opts ...ClientOption) (*DeleteEntitlementUsingDELETE2NoContent, error)

	GetEntitlementsUsingGET2(params *GetEntitlementsUsingGET2Params, opts ...ClientOption) (*GetEntitlementsUsingGET2OK, 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 catalog entitlements API client.

type CreateEntitlementUsingPOST2BadRequest added in v0.4.0

type CreateEntitlementUsingPOST2BadRequest struct {
	Payload *models.Error
}

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

Catalog item or source cannot be entitled to the project

func NewCreateEntitlementUsingPOST2BadRequest added in v0.4.0

func NewCreateEntitlementUsingPOST2BadRequest() *CreateEntitlementUsingPOST2BadRequest

NewCreateEntitlementUsingPOST2BadRequest creates a CreateEntitlementUsingPOST2BadRequest with default headers values

func (*CreateEntitlementUsingPOST2BadRequest) Error added in v0.4.0

func (*CreateEntitlementUsingPOST2BadRequest) GetPayload added in v0.4.0

func (*CreateEntitlementUsingPOST2BadRequest) IsClientError added in v0.5.0

func (o *CreateEntitlementUsingPOST2BadRequest) IsClientError() bool

IsClientError returns true when this create entitlement using p o s t2 bad request response has a 4xx status code

func (*CreateEntitlementUsingPOST2BadRequest) IsCode added in v0.5.0

IsCode returns true when this create entitlement using p o s t2 bad request response a status code equal to that given

func (*CreateEntitlementUsingPOST2BadRequest) IsRedirect added in v0.5.0

IsRedirect returns true when this create entitlement using p o s t2 bad request response has a 3xx status code

func (*CreateEntitlementUsingPOST2BadRequest) IsServerError added in v0.5.0

func (o *CreateEntitlementUsingPOST2BadRequest) IsServerError() bool

IsServerError returns true when this create entitlement using p o s t2 bad request response has a 5xx status code

func (*CreateEntitlementUsingPOST2BadRequest) IsSuccess added in v0.5.0

IsSuccess returns true when this create entitlement using p o s t2 bad request response has a 2xx status code

func (*CreateEntitlementUsingPOST2BadRequest) String added in v0.5.0

type CreateEntitlementUsingPOST2Created added in v0.4.0

type CreateEntitlementUsingPOST2Created struct {
	Payload *models.Entitlement
}

CreateEntitlementUsingPOST2Created describes a response with status code 201, with default header values.

Created

func NewCreateEntitlementUsingPOST2Created added in v0.4.0

func NewCreateEntitlementUsingPOST2Created() *CreateEntitlementUsingPOST2Created

NewCreateEntitlementUsingPOST2Created creates a CreateEntitlementUsingPOST2Created with default headers values

func (*CreateEntitlementUsingPOST2Created) Error added in v0.4.0

func (*CreateEntitlementUsingPOST2Created) GetPayload added in v0.4.0

func (*CreateEntitlementUsingPOST2Created) IsClientError added in v0.5.0

func (o *CreateEntitlementUsingPOST2Created) IsClientError() bool

IsClientError returns true when this create entitlement using p o s t2 created response has a 4xx status code

func (*CreateEntitlementUsingPOST2Created) IsCode added in v0.5.0

IsCode returns true when this create entitlement using p o s t2 created response a status code equal to that given

func (*CreateEntitlementUsingPOST2Created) IsRedirect added in v0.5.0

func (o *CreateEntitlementUsingPOST2Created) IsRedirect() bool

IsRedirect returns true when this create entitlement using p o s t2 created response has a 3xx status code

func (*CreateEntitlementUsingPOST2Created) IsServerError added in v0.5.0

func (o *CreateEntitlementUsingPOST2Created) IsServerError() bool

IsServerError returns true when this create entitlement using p o s t2 created response has a 5xx status code

func (*CreateEntitlementUsingPOST2Created) IsSuccess added in v0.5.0

IsSuccess returns true when this create entitlement using p o s t2 created response has a 2xx status code

func (*CreateEntitlementUsingPOST2Created) String added in v0.5.0

type CreateEntitlementUsingPOST2NotFound added in v0.4.0

type CreateEntitlementUsingPOST2NotFound struct {
	Payload *models.Error
}

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

Catalog item or catalog source not found

func NewCreateEntitlementUsingPOST2NotFound added in v0.4.0

func NewCreateEntitlementUsingPOST2NotFound() *CreateEntitlementUsingPOST2NotFound

NewCreateEntitlementUsingPOST2NotFound creates a CreateEntitlementUsingPOST2NotFound with default headers values

func (*CreateEntitlementUsingPOST2NotFound) Error added in v0.4.0

func (*CreateEntitlementUsingPOST2NotFound) GetPayload added in v0.4.0

func (*CreateEntitlementUsingPOST2NotFound) IsClientError added in v0.5.0

func (o *CreateEntitlementUsingPOST2NotFound) IsClientError() bool

IsClientError returns true when this create entitlement using p o s t2 not found response has a 4xx status code

func (*CreateEntitlementUsingPOST2NotFound) IsCode added in v0.5.0

IsCode returns true when this create entitlement using p o s t2 not found response a status code equal to that given

func (*CreateEntitlementUsingPOST2NotFound) IsRedirect added in v0.5.0

func (o *CreateEntitlementUsingPOST2NotFound) IsRedirect() bool

IsRedirect returns true when this create entitlement using p o s t2 not found response has a 3xx status code

func (*CreateEntitlementUsingPOST2NotFound) IsServerError added in v0.5.0

func (o *CreateEntitlementUsingPOST2NotFound) IsServerError() bool

IsServerError returns true when this create entitlement using p o s t2 not found response has a 5xx status code

func (*CreateEntitlementUsingPOST2NotFound) IsSuccess added in v0.5.0

IsSuccess returns true when this create entitlement using p o s t2 not found response has a 2xx status code

func (*CreateEntitlementUsingPOST2NotFound) String added in v0.5.0

type CreateEntitlementUsingPOST2OK added in v0.4.0

type CreateEntitlementUsingPOST2OK struct {
	Payload *models.Entitlement
}

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

OK

func NewCreateEntitlementUsingPOST2OK added in v0.4.0

func NewCreateEntitlementUsingPOST2OK() *CreateEntitlementUsingPOST2OK

NewCreateEntitlementUsingPOST2OK creates a CreateEntitlementUsingPOST2OK with default headers values

func (*CreateEntitlementUsingPOST2OK) Error added in v0.4.0

func (*CreateEntitlementUsingPOST2OK) GetPayload added in v0.4.0

func (*CreateEntitlementUsingPOST2OK) IsClientError added in v0.5.0

func (o *CreateEntitlementUsingPOST2OK) IsClientError() bool

IsClientError returns true when this create entitlement using p o s t2 o k response has a 4xx status code

func (*CreateEntitlementUsingPOST2OK) IsCode added in v0.5.0

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

IsCode returns true when this create entitlement using p o s t2 o k response a status code equal to that given

func (*CreateEntitlementUsingPOST2OK) IsRedirect added in v0.5.0

func (o *CreateEntitlementUsingPOST2OK) IsRedirect() bool

IsRedirect returns true when this create entitlement using p o s t2 o k response has a 3xx status code

func (*CreateEntitlementUsingPOST2OK) IsServerError added in v0.5.0

func (o *CreateEntitlementUsingPOST2OK) IsServerError() bool

IsServerError returns true when this create entitlement using p o s t2 o k response has a 5xx status code

func (*CreateEntitlementUsingPOST2OK) IsSuccess added in v0.5.0

func (o *CreateEntitlementUsingPOST2OK) IsSuccess() bool

IsSuccess returns true when this create entitlement using p o s t2 o k response has a 2xx status code

func (*CreateEntitlementUsingPOST2OK) String added in v0.5.0

type CreateEntitlementUsingPOST2Params added in v0.4.0

type CreateEntitlementUsingPOST2Params struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.
	*/
	APIVersion *string

	/* Entitlement.

	   The entitlement to be created
	*/
	Entitlement *models.Entitlement

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

CreateEntitlementUsingPOST2Params contains all the parameters to send to the API endpoint

for the create entitlement using p o s t 2 operation.

Typically these are written to a http.Request.

func NewCreateEntitlementUsingPOST2Params added in v0.4.0

func NewCreateEntitlementUsingPOST2Params() *CreateEntitlementUsingPOST2Params

NewCreateEntitlementUsingPOST2Params creates a new CreateEntitlementUsingPOST2Params 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 NewCreateEntitlementUsingPOST2ParamsWithContext added in v0.4.0

func NewCreateEntitlementUsingPOST2ParamsWithContext(ctx context.Context) *CreateEntitlementUsingPOST2Params

NewCreateEntitlementUsingPOST2ParamsWithContext creates a new CreateEntitlementUsingPOST2Params object with the ability to set a context for a request.

func NewCreateEntitlementUsingPOST2ParamsWithHTTPClient added in v0.4.0

func NewCreateEntitlementUsingPOST2ParamsWithHTTPClient(client *http.Client) *CreateEntitlementUsingPOST2Params

NewCreateEntitlementUsingPOST2ParamsWithHTTPClient creates a new CreateEntitlementUsingPOST2Params object with the ability to set a custom HTTPClient for a request.

func NewCreateEntitlementUsingPOST2ParamsWithTimeout added in v0.4.0

func NewCreateEntitlementUsingPOST2ParamsWithTimeout(timeout time.Duration) *CreateEntitlementUsingPOST2Params

NewCreateEntitlementUsingPOST2ParamsWithTimeout creates a new CreateEntitlementUsingPOST2Params object with the ability to set a timeout on a request.

func (*CreateEntitlementUsingPOST2Params) SetAPIVersion added in v0.4.0

func (o *CreateEntitlementUsingPOST2Params) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the create entitlement using p o s t 2 params

func (*CreateEntitlementUsingPOST2Params) SetContext added in v0.4.0

SetContext adds the context to the create entitlement using p o s t 2 params

func (*CreateEntitlementUsingPOST2Params) SetDefaults added in v0.4.0

func (o *CreateEntitlementUsingPOST2Params) SetDefaults()

SetDefaults hydrates default values in the create entitlement using p o s t 2 params (not the query body).

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

func (*CreateEntitlementUsingPOST2Params) SetEntitlement added in v0.4.0

func (o *CreateEntitlementUsingPOST2Params) SetEntitlement(entitlement *models.Entitlement)

SetEntitlement adds the entitlement to the create entitlement using p o s t 2 params

func (*CreateEntitlementUsingPOST2Params) SetHTTPClient added in v0.4.0

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

SetHTTPClient adds the HTTPClient to the create entitlement using p o s t 2 params

func (*CreateEntitlementUsingPOST2Params) SetTimeout added in v0.4.0

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

SetTimeout adds the timeout to the create entitlement using p o s t 2 params

func (*CreateEntitlementUsingPOST2Params) WithAPIVersion added in v0.4.0

WithAPIVersion adds the aPIVersion to the create entitlement using p o s t 2 params

func (*CreateEntitlementUsingPOST2Params) WithContext added in v0.4.0

WithContext adds the context to the create entitlement using p o s t 2 params

func (*CreateEntitlementUsingPOST2Params) WithDefaults added in v0.4.0

WithDefaults hydrates default values in the create entitlement using p o s t 2 params (not the query body).

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

func (*CreateEntitlementUsingPOST2Params) WithEntitlement added in v0.4.0

WithEntitlement adds the entitlement to the create entitlement using p o s t 2 params

func (*CreateEntitlementUsingPOST2Params) WithHTTPClient added in v0.4.0

WithHTTPClient adds the HTTPClient to the create entitlement using p o s t 2 params

func (*CreateEntitlementUsingPOST2Params) WithTimeout added in v0.4.0

WithTimeout adds the timeout to the create entitlement using p o s t 2 params

func (*CreateEntitlementUsingPOST2Params) WriteToRequest added in v0.4.0

WriteToRequest writes these params to a swagger request

type CreateEntitlementUsingPOST2Reader added in v0.4.0

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

CreateEntitlementUsingPOST2Reader is a Reader for the CreateEntitlementUsingPOST2 structure.

func (*CreateEntitlementUsingPOST2Reader) ReadResponse added in v0.4.0

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

ReadResponse reads a server response into the received o.

type CreateEntitlementUsingPOST2Unauthorized added in v0.4.0

type CreateEntitlementUsingPOST2Unauthorized struct {
}

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

Unauthorized

func NewCreateEntitlementUsingPOST2Unauthorized added in v0.4.0

func NewCreateEntitlementUsingPOST2Unauthorized() *CreateEntitlementUsingPOST2Unauthorized

NewCreateEntitlementUsingPOST2Unauthorized creates a CreateEntitlementUsingPOST2Unauthorized with default headers values

func (*CreateEntitlementUsingPOST2Unauthorized) Error added in v0.4.0

func (*CreateEntitlementUsingPOST2Unauthorized) IsClientError added in v0.5.0

func (o *CreateEntitlementUsingPOST2Unauthorized) IsClientError() bool

IsClientError returns true when this create entitlement using p o s t2 unauthorized response has a 4xx status code

func (*CreateEntitlementUsingPOST2Unauthorized) IsCode added in v0.5.0

IsCode returns true when this create entitlement using p o s t2 unauthorized response a status code equal to that given

func (*CreateEntitlementUsingPOST2Unauthorized) IsRedirect added in v0.5.0

IsRedirect returns true when this create entitlement using p o s t2 unauthorized response has a 3xx status code

func (*CreateEntitlementUsingPOST2Unauthorized) IsServerError added in v0.5.0

func (o *CreateEntitlementUsingPOST2Unauthorized) IsServerError() bool

IsServerError returns true when this create entitlement using p o s t2 unauthorized response has a 5xx status code

func (*CreateEntitlementUsingPOST2Unauthorized) IsSuccess added in v0.5.0

IsSuccess returns true when this create entitlement using p o s t2 unauthorized response has a 2xx status code

func (*CreateEntitlementUsingPOST2Unauthorized) String added in v0.5.0

type DeleteEntitlementUsingDELETE2NoContent added in v0.4.0

type DeleteEntitlementUsingDELETE2NoContent struct {
}

DeleteEntitlementUsingDELETE2NoContent describes a response with status code 204, with default header values.

No Content

func NewDeleteEntitlementUsingDELETE2NoContent added in v0.4.0

func NewDeleteEntitlementUsingDELETE2NoContent() *DeleteEntitlementUsingDELETE2NoContent

NewDeleteEntitlementUsingDELETE2NoContent creates a DeleteEntitlementUsingDELETE2NoContent with default headers values

func (*DeleteEntitlementUsingDELETE2NoContent) Error added in v0.4.0

func (*DeleteEntitlementUsingDELETE2NoContent) IsClientError added in v0.5.0

func (o *DeleteEntitlementUsingDELETE2NoContent) IsClientError() bool

IsClientError returns true when this delete entitlement using d e l e t e2 no content response has a 4xx status code

func (*DeleteEntitlementUsingDELETE2NoContent) IsCode added in v0.5.0

IsCode returns true when this delete entitlement using d e l e t e2 no content response a status code equal to that given

func (*DeleteEntitlementUsingDELETE2NoContent) IsRedirect added in v0.5.0

IsRedirect returns true when this delete entitlement using d e l e t e2 no content response has a 3xx status code

func (*DeleteEntitlementUsingDELETE2NoContent) IsServerError added in v0.5.0

func (o *DeleteEntitlementUsingDELETE2NoContent) IsServerError() bool

IsServerError returns true when this delete entitlement using d e l e t e2 no content response has a 5xx status code

func (*DeleteEntitlementUsingDELETE2NoContent) IsSuccess added in v0.5.0

IsSuccess returns true when this delete entitlement using d e l e t e2 no content response has a 2xx status code

func (*DeleteEntitlementUsingDELETE2NoContent) String added in v0.5.0

type DeleteEntitlementUsingDELETE2Params added in v0.4.0

type DeleteEntitlementUsingDELETE2Params struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.
	*/
	APIVersion *string

	/* ID.

	   Entitlement id

	   Format: uuid
	*/
	ID strfmt.UUID

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

DeleteEntitlementUsingDELETE2Params contains all the parameters to send to the API endpoint

for the delete entitlement using d e l e t e 2 operation.

Typically these are written to a http.Request.

func NewDeleteEntitlementUsingDELETE2Params added in v0.4.0

func NewDeleteEntitlementUsingDELETE2Params() *DeleteEntitlementUsingDELETE2Params

NewDeleteEntitlementUsingDELETE2Params creates a new DeleteEntitlementUsingDELETE2Params 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 NewDeleteEntitlementUsingDELETE2ParamsWithContext added in v0.4.0

func NewDeleteEntitlementUsingDELETE2ParamsWithContext(ctx context.Context) *DeleteEntitlementUsingDELETE2Params

NewDeleteEntitlementUsingDELETE2ParamsWithContext creates a new DeleteEntitlementUsingDELETE2Params object with the ability to set a context for a request.

func NewDeleteEntitlementUsingDELETE2ParamsWithHTTPClient added in v0.4.0

func NewDeleteEntitlementUsingDELETE2ParamsWithHTTPClient(client *http.Client) *DeleteEntitlementUsingDELETE2Params

NewDeleteEntitlementUsingDELETE2ParamsWithHTTPClient creates a new DeleteEntitlementUsingDELETE2Params object with the ability to set a custom HTTPClient for a request.

func NewDeleteEntitlementUsingDELETE2ParamsWithTimeout added in v0.4.0

func NewDeleteEntitlementUsingDELETE2ParamsWithTimeout(timeout time.Duration) *DeleteEntitlementUsingDELETE2Params

NewDeleteEntitlementUsingDELETE2ParamsWithTimeout creates a new DeleteEntitlementUsingDELETE2Params object with the ability to set a timeout on a request.

func (*DeleteEntitlementUsingDELETE2Params) SetAPIVersion added in v0.4.0

func (o *DeleteEntitlementUsingDELETE2Params) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the delete entitlement using d e l e t e 2 params

func (*DeleteEntitlementUsingDELETE2Params) SetContext added in v0.4.0

SetContext adds the context to the delete entitlement using d e l e t e 2 params

func (*DeleteEntitlementUsingDELETE2Params) SetDefaults added in v0.4.0

func (o *DeleteEntitlementUsingDELETE2Params) SetDefaults()

SetDefaults hydrates default values in the delete entitlement using d e l e t e 2 params (not the query body).

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

func (*DeleteEntitlementUsingDELETE2Params) SetHTTPClient added in v0.4.0

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

SetHTTPClient adds the HTTPClient to the delete entitlement using d e l e t e 2 params

func (*DeleteEntitlementUsingDELETE2Params) SetID added in v0.4.0

SetID adds the id to the delete entitlement using d e l e t e 2 params

func (*DeleteEntitlementUsingDELETE2Params) SetTimeout added in v0.4.0

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

SetTimeout adds the timeout to the delete entitlement using d e l e t e 2 params

func (*DeleteEntitlementUsingDELETE2Params) WithAPIVersion added in v0.4.0

WithAPIVersion adds the aPIVersion to the delete entitlement using d e l e t e 2 params

func (*DeleteEntitlementUsingDELETE2Params) WithContext added in v0.4.0

WithContext adds the context to the delete entitlement using d e l e t e 2 params

func (*DeleteEntitlementUsingDELETE2Params) WithDefaults added in v0.4.0

WithDefaults hydrates default values in the delete entitlement using d e l e t e 2 params (not the query body).

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

func (*DeleteEntitlementUsingDELETE2Params) WithHTTPClient added in v0.4.0

WithHTTPClient adds the HTTPClient to the delete entitlement using d e l e t e 2 params

func (*DeleteEntitlementUsingDELETE2Params) WithID added in v0.4.0

WithID adds the id to the delete entitlement using d e l e t e 2 params

func (*DeleteEntitlementUsingDELETE2Params) WithTimeout added in v0.4.0

WithTimeout adds the timeout to the delete entitlement using d e l e t e 2 params

func (*DeleteEntitlementUsingDELETE2Params) WriteToRequest added in v0.4.0

WriteToRequest writes these params to a swagger request

type DeleteEntitlementUsingDELETE2Reader added in v0.4.0

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

DeleteEntitlementUsingDELETE2Reader is a Reader for the DeleteEntitlementUsingDELETE2 structure.

func (*DeleteEntitlementUsingDELETE2Reader) ReadResponse added in v0.4.0

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

ReadResponse reads a server response into the received o.

type DeleteEntitlementUsingDELETE2Unauthorized added in v0.4.0

type DeleteEntitlementUsingDELETE2Unauthorized struct {
}

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

Unauthorized

func NewDeleteEntitlementUsingDELETE2Unauthorized added in v0.4.0

func NewDeleteEntitlementUsingDELETE2Unauthorized() *DeleteEntitlementUsingDELETE2Unauthorized

NewDeleteEntitlementUsingDELETE2Unauthorized creates a DeleteEntitlementUsingDELETE2Unauthorized with default headers values

func (*DeleteEntitlementUsingDELETE2Unauthorized) Error added in v0.4.0

func (*DeleteEntitlementUsingDELETE2Unauthorized) IsClientError added in v0.5.0

IsClientError returns true when this delete entitlement using d e l e t e2 unauthorized response has a 4xx status code

func (*DeleteEntitlementUsingDELETE2Unauthorized) IsCode added in v0.5.0

IsCode returns true when this delete entitlement using d e l e t e2 unauthorized response a status code equal to that given

func (*DeleteEntitlementUsingDELETE2Unauthorized) IsRedirect added in v0.5.0

IsRedirect returns true when this delete entitlement using d e l e t e2 unauthorized response has a 3xx status code

func (*DeleteEntitlementUsingDELETE2Unauthorized) IsServerError added in v0.5.0

IsServerError returns true when this delete entitlement using d e l e t e2 unauthorized response has a 5xx status code

func (*DeleteEntitlementUsingDELETE2Unauthorized) IsSuccess added in v0.5.0

IsSuccess returns true when this delete entitlement using d e l e t e2 unauthorized response has a 2xx status code

func (*DeleteEntitlementUsingDELETE2Unauthorized) String added in v0.5.0

type GetEntitlementsUsingGET2OK added in v0.4.0

type GetEntitlementsUsingGET2OK struct {
	Payload []*models.Entitlement
}

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

OK

func NewGetEntitlementsUsingGET2OK added in v0.4.0

func NewGetEntitlementsUsingGET2OK() *GetEntitlementsUsingGET2OK

NewGetEntitlementsUsingGET2OK creates a GetEntitlementsUsingGET2OK with default headers values

func (*GetEntitlementsUsingGET2OK) Error added in v0.4.0

func (*GetEntitlementsUsingGET2OK) GetPayload added in v0.4.0

func (o *GetEntitlementsUsingGET2OK) GetPayload() []*models.Entitlement

func (*GetEntitlementsUsingGET2OK) IsClientError added in v0.5.0

func (o *GetEntitlementsUsingGET2OK) IsClientError() bool

IsClientError returns true when this get entitlements using g e t2 o k response has a 4xx status code

func (*GetEntitlementsUsingGET2OK) IsCode added in v0.5.0

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

IsCode returns true when this get entitlements using g e t2 o k response a status code equal to that given

func (*GetEntitlementsUsingGET2OK) IsRedirect added in v0.5.0

func (o *GetEntitlementsUsingGET2OK) IsRedirect() bool

IsRedirect returns true when this get entitlements using g e t2 o k response has a 3xx status code

func (*GetEntitlementsUsingGET2OK) IsServerError added in v0.5.0

func (o *GetEntitlementsUsingGET2OK) IsServerError() bool

IsServerError returns true when this get entitlements using g e t2 o k response has a 5xx status code

func (*GetEntitlementsUsingGET2OK) IsSuccess added in v0.5.0

func (o *GetEntitlementsUsingGET2OK) IsSuccess() bool

IsSuccess returns true when this get entitlements using g e t2 o k response has a 2xx status code

func (*GetEntitlementsUsingGET2OK) String added in v0.5.0

func (o *GetEntitlementsUsingGET2OK) String() string

type GetEntitlementsUsingGET2Params added in v0.4.0

type GetEntitlementsUsingGET2Params struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.
	*/
	APIVersion *string

	/* ProjectID.

	   The project id for which to return .
	*/
	ProjectID *string

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

GetEntitlementsUsingGET2Params contains all the parameters to send to the API endpoint

for the get entitlements using g e t 2 operation.

Typically these are written to a http.Request.

func NewGetEntitlementsUsingGET2Params added in v0.4.0

func NewGetEntitlementsUsingGET2Params() *GetEntitlementsUsingGET2Params

NewGetEntitlementsUsingGET2Params creates a new GetEntitlementsUsingGET2Params 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 NewGetEntitlementsUsingGET2ParamsWithContext added in v0.4.0

func NewGetEntitlementsUsingGET2ParamsWithContext(ctx context.Context) *GetEntitlementsUsingGET2Params

NewGetEntitlementsUsingGET2ParamsWithContext creates a new GetEntitlementsUsingGET2Params object with the ability to set a context for a request.

func NewGetEntitlementsUsingGET2ParamsWithHTTPClient added in v0.4.0

func NewGetEntitlementsUsingGET2ParamsWithHTTPClient(client *http.Client) *GetEntitlementsUsingGET2Params

NewGetEntitlementsUsingGET2ParamsWithHTTPClient creates a new GetEntitlementsUsingGET2Params object with the ability to set a custom HTTPClient for a request.

func NewGetEntitlementsUsingGET2ParamsWithTimeout added in v0.4.0

func NewGetEntitlementsUsingGET2ParamsWithTimeout(timeout time.Duration) *GetEntitlementsUsingGET2Params

NewGetEntitlementsUsingGET2ParamsWithTimeout creates a new GetEntitlementsUsingGET2Params object with the ability to set a timeout on a request.

func (*GetEntitlementsUsingGET2Params) SetAPIVersion added in v0.4.0

func (o *GetEntitlementsUsingGET2Params) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get entitlements using g e t 2 params

func (*GetEntitlementsUsingGET2Params) SetContext added in v0.4.0

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

SetContext adds the context to the get entitlements using g e t 2 params

func (*GetEntitlementsUsingGET2Params) SetDefaults added in v0.4.0

func (o *GetEntitlementsUsingGET2Params) SetDefaults()

SetDefaults hydrates default values in the get entitlements using g e t 2 params (not the query body).

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

func (*GetEntitlementsUsingGET2Params) SetHTTPClient added in v0.4.0

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

SetHTTPClient adds the HTTPClient to the get entitlements using g e t 2 params

func (*GetEntitlementsUsingGET2Params) SetProjectID added in v0.4.0

func (o *GetEntitlementsUsingGET2Params) SetProjectID(projectID *string)

SetProjectID adds the projectId to the get entitlements using g e t 2 params

func (*GetEntitlementsUsingGET2Params) SetTimeout added in v0.4.0

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

SetTimeout adds the timeout to the get entitlements using g e t 2 params

func (*GetEntitlementsUsingGET2Params) WithAPIVersion added in v0.4.0

WithAPIVersion adds the aPIVersion to the get entitlements using g e t 2 params

func (*GetEntitlementsUsingGET2Params) WithContext added in v0.4.0

WithContext adds the context to the get entitlements using g e t 2 params

func (*GetEntitlementsUsingGET2Params) WithDefaults added in v0.4.0

WithDefaults hydrates default values in the get entitlements using g e t 2 params (not the query body).

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

func (*GetEntitlementsUsingGET2Params) WithHTTPClient added in v0.4.0

WithHTTPClient adds the HTTPClient to the get entitlements using g e t 2 params

func (*GetEntitlementsUsingGET2Params) WithProjectID added in v0.4.0

WithProjectID adds the projectID to the get entitlements using g e t 2 params

func (*GetEntitlementsUsingGET2Params) WithTimeout added in v0.4.0

WithTimeout adds the timeout to the get entitlements using g e t 2 params

func (*GetEntitlementsUsingGET2Params) WriteToRequest added in v0.4.0

WriteToRequest writes these params to a swagger request

type GetEntitlementsUsingGET2Reader added in v0.4.0

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

GetEntitlementsUsingGET2Reader is a Reader for the GetEntitlementsUsingGET2 structure.

func (*GetEntitlementsUsingGET2Reader) ReadResponse added in v0.4.0

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

ReadResponse reads a server response into the received o.

type GetEntitlementsUsingGET2Unauthorized added in v0.4.0

type GetEntitlementsUsingGET2Unauthorized struct {
}

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

Unauthorized

func NewGetEntitlementsUsingGET2Unauthorized added in v0.4.0

func NewGetEntitlementsUsingGET2Unauthorized() *GetEntitlementsUsingGET2Unauthorized

NewGetEntitlementsUsingGET2Unauthorized creates a GetEntitlementsUsingGET2Unauthorized with default headers values

func (*GetEntitlementsUsingGET2Unauthorized) Error added in v0.4.0

func (*GetEntitlementsUsingGET2Unauthorized) IsClientError added in v0.5.0

func (o *GetEntitlementsUsingGET2Unauthorized) IsClientError() bool

IsClientError returns true when this get entitlements using g e t2 unauthorized response has a 4xx status code

func (*GetEntitlementsUsingGET2Unauthorized) IsCode added in v0.5.0

IsCode returns true when this get entitlements using g e t2 unauthorized response a status code equal to that given

func (*GetEntitlementsUsingGET2Unauthorized) IsRedirect added in v0.5.0

IsRedirect returns true when this get entitlements using g e t2 unauthorized response has a 3xx status code

func (*GetEntitlementsUsingGET2Unauthorized) IsServerError added in v0.5.0

func (o *GetEntitlementsUsingGET2Unauthorized) IsServerError() bool

IsServerError returns true when this get entitlements using g e t2 unauthorized response has a 5xx status code

func (*GetEntitlementsUsingGET2Unauthorized) IsSuccess added in v0.5.0

IsSuccess returns true when this get entitlements using g e t2 unauthorized response has a 2xx status code

func (*GetEntitlementsUsingGET2Unauthorized) String added in v0.5.0

Jump to

Keyboard shortcuts

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