Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateEntitlementUsingPOST(params *CreateEntitlementUsingPOSTParams, opts ...ClientOption) (*CreateEntitlementUsingPOSTOK, *CreateEntitlementUsingPOSTCreated, error)
- func (a *Client) DeleteEntitlementUsingDELETE(params *DeleteEntitlementUsingDELETEParams, opts ...ClientOption) (*DeleteEntitlementUsingDELETENoContent, error)
- func (a *Client) GetEntitlementsUsingGET(params *GetEntitlementsUsingGETParams, opts ...ClientOption) (*GetEntitlementsUsingGETOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateEntitlementUsingPOSTBadRequest
- type CreateEntitlementUsingPOSTCreated
- type CreateEntitlementUsingPOSTNotFound
- type CreateEntitlementUsingPOSTOK
- type CreateEntitlementUsingPOSTParams
- func NewCreateEntitlementUsingPOSTParams() *CreateEntitlementUsingPOSTParams
- func NewCreateEntitlementUsingPOSTParamsWithContext(ctx context.Context) *CreateEntitlementUsingPOSTParams
- func NewCreateEntitlementUsingPOSTParamsWithHTTPClient(client *http.Client) *CreateEntitlementUsingPOSTParams
- func NewCreateEntitlementUsingPOSTParamsWithTimeout(timeout time.Duration) *CreateEntitlementUsingPOSTParams
- func (o *CreateEntitlementUsingPOSTParams) SetAPIVersion(aPIVersion *string)
- func (o *CreateEntitlementUsingPOSTParams) SetContext(ctx context.Context)
- func (o *CreateEntitlementUsingPOSTParams) SetDefaults()
- func (o *CreateEntitlementUsingPOSTParams) SetEntitlement(entitlement *models.Entitlement)
- func (o *CreateEntitlementUsingPOSTParams) SetHTTPClient(client *http.Client)
- func (o *CreateEntitlementUsingPOSTParams) SetTimeout(timeout time.Duration)
- func (o *CreateEntitlementUsingPOSTParams) WithAPIVersion(aPIVersion *string) *CreateEntitlementUsingPOSTParams
- func (o *CreateEntitlementUsingPOSTParams) WithContext(ctx context.Context) *CreateEntitlementUsingPOSTParams
- func (o *CreateEntitlementUsingPOSTParams) WithDefaults() *CreateEntitlementUsingPOSTParams
- func (o *CreateEntitlementUsingPOSTParams) WithEntitlement(entitlement *models.Entitlement) *CreateEntitlementUsingPOSTParams
- func (o *CreateEntitlementUsingPOSTParams) WithHTTPClient(client *http.Client) *CreateEntitlementUsingPOSTParams
- func (o *CreateEntitlementUsingPOSTParams) WithTimeout(timeout time.Duration) *CreateEntitlementUsingPOSTParams
- func (o *CreateEntitlementUsingPOSTParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateEntitlementUsingPOSTReader
- type CreateEntitlementUsingPOSTUnauthorized
- type DeleteEntitlementUsingDELETENoContent
- type DeleteEntitlementUsingDELETEParams
- func NewDeleteEntitlementUsingDELETEParams() *DeleteEntitlementUsingDELETEParams
- func NewDeleteEntitlementUsingDELETEParamsWithContext(ctx context.Context) *DeleteEntitlementUsingDELETEParams
- func NewDeleteEntitlementUsingDELETEParamsWithHTTPClient(client *http.Client) *DeleteEntitlementUsingDELETEParams
- func NewDeleteEntitlementUsingDELETEParamsWithTimeout(timeout time.Duration) *DeleteEntitlementUsingDELETEParams
- func (o *DeleteEntitlementUsingDELETEParams) SetAPIVersion(aPIVersion *string)
- func (o *DeleteEntitlementUsingDELETEParams) SetContext(ctx context.Context)
- func (o *DeleteEntitlementUsingDELETEParams) SetDefaults()
- func (o *DeleteEntitlementUsingDELETEParams) SetHTTPClient(client *http.Client)
- func (o *DeleteEntitlementUsingDELETEParams) SetID(id strfmt.UUID)
- func (o *DeleteEntitlementUsingDELETEParams) SetTimeout(timeout time.Duration)
- func (o *DeleteEntitlementUsingDELETEParams) WithAPIVersion(aPIVersion *string) *DeleteEntitlementUsingDELETEParams
- func (o *DeleteEntitlementUsingDELETEParams) WithContext(ctx context.Context) *DeleteEntitlementUsingDELETEParams
- func (o *DeleteEntitlementUsingDELETEParams) WithDefaults() *DeleteEntitlementUsingDELETEParams
- func (o *DeleteEntitlementUsingDELETEParams) WithHTTPClient(client *http.Client) *DeleteEntitlementUsingDELETEParams
- func (o *DeleteEntitlementUsingDELETEParams) WithID(id strfmt.UUID) *DeleteEntitlementUsingDELETEParams
- func (o *DeleteEntitlementUsingDELETEParams) WithTimeout(timeout time.Duration) *DeleteEntitlementUsingDELETEParams
- func (o *DeleteEntitlementUsingDELETEParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteEntitlementUsingDELETEReader
- type DeleteEntitlementUsingDELETEUnauthorized
- type GetEntitlementsUsingGETOK
- type GetEntitlementsUsingGETParams
- func NewGetEntitlementsUsingGETParams() *GetEntitlementsUsingGETParams
- func NewGetEntitlementsUsingGETParamsWithContext(ctx context.Context) *GetEntitlementsUsingGETParams
- func NewGetEntitlementsUsingGETParamsWithHTTPClient(client *http.Client) *GetEntitlementsUsingGETParams
- func NewGetEntitlementsUsingGETParamsWithTimeout(timeout time.Duration) *GetEntitlementsUsingGETParams
- func (o *GetEntitlementsUsingGETParams) SetAPIVersion(aPIVersion *string)
- func (o *GetEntitlementsUsingGETParams) SetContext(ctx context.Context)
- func (o *GetEntitlementsUsingGETParams) SetDefaults()
- func (o *GetEntitlementsUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *GetEntitlementsUsingGETParams) SetProjectID(projectID *string)
- func (o *GetEntitlementsUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *GetEntitlementsUsingGETParams) WithAPIVersion(aPIVersion *string) *GetEntitlementsUsingGETParams
- func (o *GetEntitlementsUsingGETParams) WithContext(ctx context.Context) *GetEntitlementsUsingGETParams
- func (o *GetEntitlementsUsingGETParams) WithDefaults() *GetEntitlementsUsingGETParams
- func (o *GetEntitlementsUsingGETParams) WithHTTPClient(client *http.Client) *GetEntitlementsUsingGETParams
- func (o *GetEntitlementsUsingGETParams) WithProjectID(projectID *string) *GetEntitlementsUsingGETParams
- func (o *GetEntitlementsUsingGETParams) WithTimeout(timeout time.Duration) *GetEntitlementsUsingGETParams
- func (o *GetEntitlementsUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetEntitlementsUsingGETReader
- type GetEntitlementsUsingGETUnauthorized
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 ¶
func (a *Client) CreateEntitlementUsingPOST(params *CreateEntitlementUsingPOSTParams, opts ...ClientOption) (*CreateEntitlementUsingPOSTOK, *CreateEntitlementUsingPOSTCreated, error)
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 ¶
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 (o *CreateEntitlementUsingPOSTBadRequest) Error() string
func (*CreateEntitlementUsingPOSTBadRequest) GetPayload ¶ added in v0.2.9
func (o *CreateEntitlementUsingPOSTBadRequest) GetPayload() *models.Error
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 (o *CreateEntitlementUsingPOSTCreated) Error() string
func (*CreateEntitlementUsingPOSTCreated) GetPayload ¶
func (o *CreateEntitlementUsingPOSTCreated) GetPayload() *models.Entitlement
type CreateEntitlementUsingPOSTNotFound ¶
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 (o *CreateEntitlementUsingPOSTNotFound) Error() string
func (*CreateEntitlementUsingPOSTNotFound) GetPayload ¶ added in v0.2.9
func (o *CreateEntitlementUsingPOSTNotFound) GetPayload() *models.Error
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 (o *CreateEntitlementUsingPOSTOK) Error() string
func (*CreateEntitlementUsingPOSTOK) GetPayload ¶
func (o *CreateEntitlementUsingPOSTOK) GetPayload() *models.Entitlement
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 ¶
func (o *CreateEntitlementUsingPOSTParams) SetContext(ctx context.Context)
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
func (o *CreateEntitlementUsingPOSTParams) WithAPIVersion(aPIVersion *string) *CreateEntitlementUsingPOSTParams
WithAPIVersion adds the aPIVersion to the create entitlement using p o s t params
func (*CreateEntitlementUsingPOSTParams) WithContext ¶
func (o *CreateEntitlementUsingPOSTParams) WithContext(ctx context.Context) *CreateEntitlementUsingPOSTParams
WithContext adds the context to the create entitlement using p o s t params
func (*CreateEntitlementUsingPOSTParams) WithDefaults ¶ added in v0.2.20
func (o *CreateEntitlementUsingPOSTParams) WithDefaults() *CreateEntitlementUsingPOSTParams
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 ¶
func (o *CreateEntitlementUsingPOSTParams) WithEntitlement(entitlement *models.Entitlement) *CreateEntitlementUsingPOSTParams
WithEntitlement adds the entitlement to the create entitlement using p o s t params
func (*CreateEntitlementUsingPOSTParams) WithHTTPClient ¶
func (o *CreateEntitlementUsingPOSTParams) WithHTTPClient(client *http.Client) *CreateEntitlementUsingPOSTParams
WithHTTPClient adds the HTTPClient to the create entitlement using p o s t params
func (*CreateEntitlementUsingPOSTParams) WithTimeout ¶
func (o *CreateEntitlementUsingPOSTParams) WithTimeout(timeout time.Duration) *CreateEntitlementUsingPOSTParams
WithTimeout adds the timeout to the create entitlement using p o s t params
func (*CreateEntitlementUsingPOSTParams) WriteToRequest ¶
func (o *CreateEntitlementUsingPOSTParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CreateEntitlementUsingPOSTUnauthorized) Error() string
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 ¶
func (o *DeleteEntitlementUsingDELETENoContent) Error() string
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 ¶
func (o *DeleteEntitlementUsingDELETEParams) SetContext(ctx context.Context)
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 ¶
func (o *DeleteEntitlementUsingDELETEParams) SetID(id strfmt.UUID)
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
func (o *DeleteEntitlementUsingDELETEParams) WithAPIVersion(aPIVersion *string) *DeleteEntitlementUsingDELETEParams
WithAPIVersion adds the aPIVersion to the delete entitlement using d e l e t e params
func (*DeleteEntitlementUsingDELETEParams) WithContext ¶
func (o *DeleteEntitlementUsingDELETEParams) WithContext(ctx context.Context) *DeleteEntitlementUsingDELETEParams
WithContext adds the context to the delete entitlement using d e l e t e params
func (*DeleteEntitlementUsingDELETEParams) WithDefaults ¶ added in v0.2.20
func (o *DeleteEntitlementUsingDELETEParams) WithDefaults() *DeleteEntitlementUsingDELETEParams
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 ¶
func (o *DeleteEntitlementUsingDELETEParams) WithHTTPClient(client *http.Client) *DeleteEntitlementUsingDELETEParams
WithHTTPClient adds the HTTPClient to the delete entitlement using d e l e t e params
func (*DeleteEntitlementUsingDELETEParams) WithID ¶
func (o *DeleteEntitlementUsingDELETEParams) WithID(id strfmt.UUID) *DeleteEntitlementUsingDELETEParams
WithID adds the id to the delete entitlement using d e l e t e params
func (*DeleteEntitlementUsingDELETEParams) WithTimeout ¶
func (o *DeleteEntitlementUsingDELETEParams) WithTimeout(timeout time.Duration) *DeleteEntitlementUsingDELETEParams
WithTimeout adds the timeout to the delete entitlement using d e l e t e params
func (*DeleteEntitlementUsingDELETEParams) WriteToRequest ¶
func (o *DeleteEntitlementUsingDELETEParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DeleteEntitlementUsingDELETEUnauthorized) Error() string
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 ¶
func (o *GetEntitlementsUsingGETParams) WithContext(ctx context.Context) *GetEntitlementsUsingGETParams
WithContext adds the context to the get entitlements using get params
func (*GetEntitlementsUsingGETParams) WithDefaults ¶ added in v0.2.20
func (o *GetEntitlementsUsingGETParams) WithDefaults() *GetEntitlementsUsingGETParams
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 ¶
func (o *GetEntitlementsUsingGETParams) WithHTTPClient(client *http.Client) *GetEntitlementsUsingGETParams
WithHTTPClient adds the HTTPClient to the get entitlements using get params
func (*GetEntitlementsUsingGETParams) WithProjectID ¶
func (o *GetEntitlementsUsingGETParams) WithProjectID(projectID *string) *GetEntitlementsUsingGETParams
WithProjectID adds the projectID to the get entitlements using get params
func (*GetEntitlementsUsingGETParams) WithTimeout ¶
func (o *GetEntitlementsUsingGETParams) WithTimeout(timeout time.Duration) *GetEntitlementsUsingGETParams
WithTimeout adds the timeout to the get entitlements using get params
func (*GetEntitlementsUsingGETParams) WriteToRequest ¶
func (o *GetEntitlementsUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetEntitlementsUsingGETUnauthorized) Error() string