catalog_entitlements

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 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) CreateEntitlementUsingPOST

CreateEntitlementUsingPOST creates an entitlement

Creates an entitlement for a given project.

func (*Client) DeleteEntitlementUsingDELETE

func (a *Client) DeleteEntitlementUsingDELETE(params *DeleteEntitlementUsingDELETEParams, opts ...ClientOption) (*DeleteEntitlementUsingDELETENoContent, error)

DeleteEntitlementUsingDELETE deletes an entitlement

Deletes the entitlement with the specified id.

func (*Client) GetEntitlementsUsingGET

func (a *Client) GetEntitlementsUsingGET(params *GetEntitlementsUsingGETParams, opts ...ClientOption) (*GetEntitlementsUsingGETOK, error)

GetEntitlementsUsingGET 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 {
	CreateEntitlementUsingPOST(params *CreateEntitlementUsingPOSTParams, opts ...ClientOption) (*CreateEntitlementUsingPOSTOK, *CreateEntitlementUsingPOSTCreated, error)

	DeleteEntitlementUsingDELETE(params *DeleteEntitlementUsingDELETEParams, opts ...ClientOption) (*DeleteEntitlementUsingDELETENoContent, error)

	GetEntitlementsUsingGET(params *GetEntitlementsUsingGETParams, opts ...ClientOption) (*GetEntitlementsUsingGETOK, 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 CreateEntitlementUsingPOSTBadRequest

type CreateEntitlementUsingPOSTBadRequest struct {
	Payload *models.Error
}
CreateEntitlementUsingPOSTBadRequest describes a response with status code 400, with default header values.

Catalog item or source cannot be entitled to the project

func NewCreateEntitlementUsingPOSTBadRequest

func NewCreateEntitlementUsingPOSTBadRequest() *CreateEntitlementUsingPOSTBadRequest

NewCreateEntitlementUsingPOSTBadRequest creates a CreateEntitlementUsingPOSTBadRequest with default headers values

func (*CreateEntitlementUsingPOSTBadRequest) Error

func (*CreateEntitlementUsingPOSTBadRequest) GetPayload added in v0.2.9

type CreateEntitlementUsingPOSTCreated

type CreateEntitlementUsingPOSTCreated struct {
	Payload *models.Entitlement
}
CreateEntitlementUsingPOSTCreated describes a response with status code 201, with default header values.

Created

func NewCreateEntitlementUsingPOSTCreated

func NewCreateEntitlementUsingPOSTCreated() *CreateEntitlementUsingPOSTCreated

NewCreateEntitlementUsingPOSTCreated creates a CreateEntitlementUsingPOSTCreated with default headers values

func (*CreateEntitlementUsingPOSTCreated) Error

func (*CreateEntitlementUsingPOSTCreated) GetPayload

type CreateEntitlementUsingPOSTNotFound

type CreateEntitlementUsingPOSTNotFound struct {
	Payload *models.Error
}
CreateEntitlementUsingPOSTNotFound describes a response with status code 404, with default header values.

Catalog item or catalog source not found

func NewCreateEntitlementUsingPOSTNotFound

func NewCreateEntitlementUsingPOSTNotFound() *CreateEntitlementUsingPOSTNotFound

NewCreateEntitlementUsingPOSTNotFound creates a CreateEntitlementUsingPOSTNotFound with default headers values

func (*CreateEntitlementUsingPOSTNotFound) Error

func (*CreateEntitlementUsingPOSTNotFound) GetPayload added in v0.2.9

type CreateEntitlementUsingPOSTOK

type CreateEntitlementUsingPOSTOK struct {
	Payload *models.Entitlement
}
CreateEntitlementUsingPOSTOK describes a response with status code 200, with default header values.

OK

func NewCreateEntitlementUsingPOSTOK

func NewCreateEntitlementUsingPOSTOK() *CreateEntitlementUsingPOSTOK

NewCreateEntitlementUsingPOSTOK creates a CreateEntitlementUsingPOSTOK with default headers values

func (*CreateEntitlementUsingPOSTOK) Error

func (*CreateEntitlementUsingPOSTOK) GetPayload

type CreateEntitlementUsingPOSTParams

type CreateEntitlementUsingPOSTParams 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
}

CreateEntitlementUsingPOSTParams contains all the parameters to send to the API endpoint

for the create entitlement using p o s t operation.

Typically these are written to a http.Request.

func NewCreateEntitlementUsingPOSTParams

func NewCreateEntitlementUsingPOSTParams() *CreateEntitlementUsingPOSTParams

NewCreateEntitlementUsingPOSTParams creates a new CreateEntitlementUsingPOSTParams 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 NewCreateEntitlementUsingPOSTParamsWithContext

func NewCreateEntitlementUsingPOSTParamsWithContext(ctx context.Context) *CreateEntitlementUsingPOSTParams

NewCreateEntitlementUsingPOSTParamsWithContext creates a new CreateEntitlementUsingPOSTParams object with the ability to set a context for a request.

func NewCreateEntitlementUsingPOSTParamsWithHTTPClient

func NewCreateEntitlementUsingPOSTParamsWithHTTPClient(client *http.Client) *CreateEntitlementUsingPOSTParams

NewCreateEntitlementUsingPOSTParamsWithHTTPClient creates a new CreateEntitlementUsingPOSTParams object with the ability to set a custom HTTPClient for a request.

func NewCreateEntitlementUsingPOSTParamsWithTimeout

func NewCreateEntitlementUsingPOSTParamsWithTimeout(timeout time.Duration) *CreateEntitlementUsingPOSTParams

NewCreateEntitlementUsingPOSTParamsWithTimeout creates a new CreateEntitlementUsingPOSTParams object with the ability to set a timeout on a request.

func (*CreateEntitlementUsingPOSTParams) SetAPIVersion added in v0.2.9

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

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

func (*CreateEntitlementUsingPOSTParams) SetContext

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

func (*CreateEntitlementUsingPOSTParams) SetDefaults added in v0.2.20

func (o *CreateEntitlementUsingPOSTParams) SetDefaults()

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

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

func (*CreateEntitlementUsingPOSTParams) SetEntitlement

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

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

func (*CreateEntitlementUsingPOSTParams) SetHTTPClient

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

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

func (*CreateEntitlementUsingPOSTParams) SetTimeout

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

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

func (*CreateEntitlementUsingPOSTParams) WithAPIVersion added in v0.2.9

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

func (*CreateEntitlementUsingPOSTParams) WithContext

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

func (*CreateEntitlementUsingPOSTParams) WithDefaults added in v0.2.20

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

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

func (*CreateEntitlementUsingPOSTParams) WithEntitlement

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

func (*CreateEntitlementUsingPOSTParams) WithHTTPClient

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

func (*CreateEntitlementUsingPOSTParams) WithTimeout

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

func (*CreateEntitlementUsingPOSTParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateEntitlementUsingPOSTReader

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

CreateEntitlementUsingPOSTReader is a Reader for the CreateEntitlementUsingPOST structure.

func (*CreateEntitlementUsingPOSTReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateEntitlementUsingPOSTUnauthorized

type CreateEntitlementUsingPOSTUnauthorized struct {
}
CreateEntitlementUsingPOSTUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewCreateEntitlementUsingPOSTUnauthorized

func NewCreateEntitlementUsingPOSTUnauthorized() *CreateEntitlementUsingPOSTUnauthorized

NewCreateEntitlementUsingPOSTUnauthorized creates a CreateEntitlementUsingPOSTUnauthorized with default headers values

func (*CreateEntitlementUsingPOSTUnauthorized) Error

type DeleteEntitlementUsingDELETENoContent

type DeleteEntitlementUsingDELETENoContent struct {
}
DeleteEntitlementUsingDELETENoContent describes a response with status code 204, with default header values.

No Content

func NewDeleteEntitlementUsingDELETENoContent

func NewDeleteEntitlementUsingDELETENoContent() *DeleteEntitlementUsingDELETENoContent

NewDeleteEntitlementUsingDELETENoContent creates a DeleteEntitlementUsingDELETENoContent with default headers values

func (*DeleteEntitlementUsingDELETENoContent) Error

type DeleteEntitlementUsingDELETEParams

type DeleteEntitlementUsingDELETEParams 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
}

DeleteEntitlementUsingDELETEParams contains all the parameters to send to the API endpoint

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

Typically these are written to a http.Request.

func NewDeleteEntitlementUsingDELETEParams

func NewDeleteEntitlementUsingDELETEParams() *DeleteEntitlementUsingDELETEParams

NewDeleteEntitlementUsingDELETEParams creates a new DeleteEntitlementUsingDELETEParams 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 NewDeleteEntitlementUsingDELETEParamsWithContext

func NewDeleteEntitlementUsingDELETEParamsWithContext(ctx context.Context) *DeleteEntitlementUsingDELETEParams

NewDeleteEntitlementUsingDELETEParamsWithContext creates a new DeleteEntitlementUsingDELETEParams object with the ability to set a context for a request.

func NewDeleteEntitlementUsingDELETEParamsWithHTTPClient

func NewDeleteEntitlementUsingDELETEParamsWithHTTPClient(client *http.Client) *DeleteEntitlementUsingDELETEParams

NewDeleteEntitlementUsingDELETEParamsWithHTTPClient creates a new DeleteEntitlementUsingDELETEParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteEntitlementUsingDELETEParamsWithTimeout

func NewDeleteEntitlementUsingDELETEParamsWithTimeout(timeout time.Duration) *DeleteEntitlementUsingDELETEParams

NewDeleteEntitlementUsingDELETEParamsWithTimeout creates a new DeleteEntitlementUsingDELETEParams object with the ability to set a timeout on a request.

func (*DeleteEntitlementUsingDELETEParams) SetAPIVersion added in v0.2.9

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

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

func (*DeleteEntitlementUsingDELETEParams) SetContext

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

func (*DeleteEntitlementUsingDELETEParams) SetDefaults added in v0.2.20

func (o *DeleteEntitlementUsingDELETEParams) SetDefaults()

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

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

func (*DeleteEntitlementUsingDELETEParams) SetHTTPClient

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

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

func (*DeleteEntitlementUsingDELETEParams) SetID

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

func (*DeleteEntitlementUsingDELETEParams) SetTimeout

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

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

func (*DeleteEntitlementUsingDELETEParams) WithAPIVersion added in v0.2.9

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

func (*DeleteEntitlementUsingDELETEParams) WithContext

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

func (*DeleteEntitlementUsingDELETEParams) WithDefaults added in v0.2.20

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

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

func (*DeleteEntitlementUsingDELETEParams) WithHTTPClient

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

func (*DeleteEntitlementUsingDELETEParams) WithID

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

func (*DeleteEntitlementUsingDELETEParams) WithTimeout

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

func (*DeleteEntitlementUsingDELETEParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteEntitlementUsingDELETEReader

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

DeleteEntitlementUsingDELETEReader is a Reader for the DeleteEntitlementUsingDELETE structure.

func (*DeleteEntitlementUsingDELETEReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteEntitlementUsingDELETEUnauthorized

type DeleteEntitlementUsingDELETEUnauthorized struct {
}
DeleteEntitlementUsingDELETEUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewDeleteEntitlementUsingDELETEUnauthorized

func NewDeleteEntitlementUsingDELETEUnauthorized() *DeleteEntitlementUsingDELETEUnauthorized

NewDeleteEntitlementUsingDELETEUnauthorized creates a DeleteEntitlementUsingDELETEUnauthorized with default headers values

func (*DeleteEntitlementUsingDELETEUnauthorized) Error

type GetEntitlementsUsingGETOK

type GetEntitlementsUsingGETOK struct {
	Payload []*models.Entitlement
}
GetEntitlementsUsingGETOK describes a response with status code 200, with default header values.

OK

func NewGetEntitlementsUsingGETOK

func NewGetEntitlementsUsingGETOK() *GetEntitlementsUsingGETOK

NewGetEntitlementsUsingGETOK creates a GetEntitlementsUsingGETOK with default headers values

func (*GetEntitlementsUsingGETOK) Error

func (o *GetEntitlementsUsingGETOK) Error() string

func (*GetEntitlementsUsingGETOK) GetPayload

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

type GetEntitlementsUsingGETParams

type GetEntitlementsUsingGETParams 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
}

GetEntitlementsUsingGETParams contains all the parameters to send to the API endpoint

for the get entitlements using g e t operation.

Typically these are written to a http.Request.

func NewGetEntitlementsUsingGETParams

func NewGetEntitlementsUsingGETParams() *GetEntitlementsUsingGETParams

NewGetEntitlementsUsingGETParams creates a new GetEntitlementsUsingGETParams 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 NewGetEntitlementsUsingGETParamsWithContext

func NewGetEntitlementsUsingGETParamsWithContext(ctx context.Context) *GetEntitlementsUsingGETParams

NewGetEntitlementsUsingGETParamsWithContext creates a new GetEntitlementsUsingGETParams object with the ability to set a context for a request.

func NewGetEntitlementsUsingGETParamsWithHTTPClient

func NewGetEntitlementsUsingGETParamsWithHTTPClient(client *http.Client) *GetEntitlementsUsingGETParams

NewGetEntitlementsUsingGETParamsWithHTTPClient creates a new GetEntitlementsUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewGetEntitlementsUsingGETParamsWithTimeout

func NewGetEntitlementsUsingGETParamsWithTimeout(timeout time.Duration) *GetEntitlementsUsingGETParams

NewGetEntitlementsUsingGETParamsWithTimeout creates a new GetEntitlementsUsingGETParams object with the ability to set a timeout on a request.

func (*GetEntitlementsUsingGETParams) SetAPIVersion added in v0.2.9

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

SetAPIVersion adds the apiVersion to the get entitlements using get params

func (*GetEntitlementsUsingGETParams) SetContext

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

SetContext adds the context to the get entitlements using get params

func (*GetEntitlementsUsingGETParams) SetDefaults added in v0.2.20

func (o *GetEntitlementsUsingGETParams) SetDefaults()

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

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

func (*GetEntitlementsUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get entitlements using get params

func (*GetEntitlementsUsingGETParams) SetProjectID

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

SetProjectID adds the projectId to the get entitlements using get params

func (*GetEntitlementsUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the get entitlements using get params

func (*GetEntitlementsUsingGETParams) WithAPIVersion added in v0.2.9

func (o *GetEntitlementsUsingGETParams) WithAPIVersion(aPIVersion *string) *GetEntitlementsUsingGETParams

WithAPIVersion adds the aPIVersion to the get entitlements using get params

func (*GetEntitlementsUsingGETParams) WithContext

WithContext adds the context to the get entitlements using get params

func (*GetEntitlementsUsingGETParams) WithDefaults added in v0.2.20

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

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

func (*GetEntitlementsUsingGETParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get entitlements using get params

func (*GetEntitlementsUsingGETParams) WithProjectID

WithProjectID adds the projectID to the get entitlements using get params

func (*GetEntitlementsUsingGETParams) WithTimeout

WithTimeout adds the timeout to the get entitlements using get params

func (*GetEntitlementsUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetEntitlementsUsingGETReader

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

GetEntitlementsUsingGETReader is a Reader for the GetEntitlementsUsingGET structure.

func (*GetEntitlementsUsingGETReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetEntitlementsUsingGETUnauthorized

type GetEntitlementsUsingGETUnauthorized struct {
}
GetEntitlementsUsingGETUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetEntitlementsUsingGETUnauthorized

func NewGetEntitlementsUsingGETUnauthorized() *GetEntitlementsUsingGETUnauthorized

NewGetEntitlementsUsingGETUnauthorized creates a GetEntitlementsUsingGETUnauthorized with default headers values

func (*GetEntitlementsUsingGETUnauthorized) Error

Jump to

Keyboard shortcuts

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