catalog_entitlements

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 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 New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new catalog entitlements API client.

func (*Client) CreateEntitlementUsingPOST

CreateEntitlementUsingPOST creates an entitlement

Creates an entitlement for a given project.

func (*Client) DeleteEntitlementUsingDELETE

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

DeleteEntitlementUsingDELETE deletes an entitlement

Deletes the entitlement with the specified id.

func (*Client) GetEntitlementsUsingGET

func (a *Client) GetEntitlementsUsingGET(params *GetEntitlementsUsingGETParams) (*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 CreateEntitlementUsingPOSTBadRequest

type CreateEntitlementUsingPOSTBadRequest struct {
}

CreateEntitlementUsingPOSTBadRequest handles this case 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

type CreateEntitlementUsingPOSTCreated

type CreateEntitlementUsingPOSTCreated struct {
	Payload *models.Entitlement
}

CreateEntitlementUsingPOSTCreated handles this case 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 {
}

CreateEntitlementUsingPOSTNotFound handles this case 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

type CreateEntitlementUsingPOSTOK

type CreateEntitlementUsingPOSTOK struct {
	Payload *models.Entitlement
}

CreateEntitlementUsingPOSTOK handles this case 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 {

	/*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 values initialized.

func NewCreateEntitlementUsingPOSTParamsWithContext

func NewCreateEntitlementUsingPOSTParamsWithContext(ctx context.Context) *CreateEntitlementUsingPOSTParams

NewCreateEntitlementUsingPOSTParamsWithContext creates a new CreateEntitlementUsingPOSTParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*CreateEntitlementUsingPOSTParams) SetContext

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

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) WithContext

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

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 handles this case 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 handles this case 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 {

	/*ID
	  Entitlement id

	*/
	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 values initialized.

func NewDeleteEntitlementUsingDELETEParamsWithContext

func NewDeleteEntitlementUsingDELETEParamsWithContext(ctx context.Context) *DeleteEntitlementUsingDELETEParams

NewDeleteEntitlementUsingDELETEParamsWithContext creates a new DeleteEntitlementUsingDELETEParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*DeleteEntitlementUsingDELETEParams) SetContext

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

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) WithContext

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

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 handles this case 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 handles this case 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 {

	/*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 values initialized.

func NewGetEntitlementsUsingGETParamsWithContext

func NewGetEntitlementsUsingGETParamsWithContext(ctx context.Context) *GetEntitlementsUsingGETParams

NewGetEntitlementsUsingGETParamsWithContext creates a new GetEntitlementsUsingGETParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*GetEntitlementsUsingGETParams) SetContext

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

SetContext adds the context to the get entitlements using get params

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) WithContext

WithContext adds the context to the get entitlements using get params

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 handles this case 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