pricing_cards

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for pricing cards API

func (*Client) CreatePolicyUsingPOST

CreatePolicyUsingPOST creates a new pricing card

Create a new pricing card based on request body and validate its field according to business rules.

func (*Client) DeletePolicyUsingDELETE

DeletePolicyUsingDELETE deletes the pricing card with specified Id

Deletes the pricing card with the specified id

func (*Client) GetPoliciesUsingGET

func (a *Client) GetPoliciesUsingGET(params *GetPoliciesUsingGETParams, opts ...ClientOption) (*GetPoliciesUsingGETOK, error)

GetPoliciesUsingGET fetches all pricing cards for private policy cloud

Returns a paginated list of pricing cards

func (*Client) GetPolicyUsingGET

func (a *Client) GetPolicyUsingGET(params *GetPolicyUsingGETParams, opts ...ClientOption) (*GetPolicyUsingGETOK, error)

GetPolicyUsingGET finds the pricing card with specified Id

Returns the pricing card with the specified id

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdatePolicyUsingPUT

func (a *Client) UpdatePolicyUsingPUT(params *UpdatePolicyUsingPUTParams, opts ...ClientOption) (*UpdatePolicyUsingPUTOK, error)

UpdatePolicyUsingPUT updates the pricing card

Updates the pricing card with the specified Id

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 {
	CreatePolicyUsingPOST(params *CreatePolicyUsingPOSTParams, opts ...ClientOption) (*CreatePolicyUsingPOSTOK, *CreatePolicyUsingPOSTCreated, error)

	DeletePolicyUsingDELETE(params *DeletePolicyUsingDELETEParams, opts ...ClientOption) (*DeletePolicyUsingDELETEOK, *DeletePolicyUsingDELETENoContent, error)

	GetPoliciesUsingGET(params *GetPoliciesUsingGETParams, opts ...ClientOption) (*GetPoliciesUsingGETOK, error)

	GetPolicyUsingGET(params *GetPolicyUsingGETParams, opts ...ClientOption) (*GetPolicyUsingGETOK, error)

	UpdatePolicyUsingPUT(params *UpdatePolicyUsingPUTParams, opts ...ClientOption) (*UpdatePolicyUsingPUTOK, 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 pricing cards API client.

type CreatePolicyUsingPOSTCreated

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

Created

func NewCreatePolicyUsingPOSTCreated

func NewCreatePolicyUsingPOSTCreated() *CreatePolicyUsingPOSTCreated

NewCreatePolicyUsingPOSTCreated creates a CreatePolicyUsingPOSTCreated with default headers values

func (*CreatePolicyUsingPOSTCreated) Error

func (*CreatePolicyUsingPOSTCreated) GetPayload

type CreatePolicyUsingPOSTOK

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

OK

func NewCreatePolicyUsingPOSTOK

func NewCreatePolicyUsingPOSTOK() *CreatePolicyUsingPOSTOK

NewCreatePolicyUsingPOSTOK creates a CreatePolicyUsingPOSTOK with default headers values

func (*CreatePolicyUsingPOSTOK) Error

func (o *CreatePolicyUsingPOSTOK) Error() string

func (*CreatePolicyUsingPOSTOK) GetPayload

type CreatePolicyUsingPOSTParams

type CreatePolicyUsingPOSTParams 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

	/* MeteringPolicy.

	   The pricing card to be created
	*/
	MeteringPolicy *models.MeteringPolicy

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

CreatePolicyUsingPOSTParams contains all the parameters to send to the API endpoint

for the create policy using p o s t operation.

Typically these are written to a http.Request.

func NewCreatePolicyUsingPOSTParams

func NewCreatePolicyUsingPOSTParams() *CreatePolicyUsingPOSTParams

NewCreatePolicyUsingPOSTParams creates a new CreatePolicyUsingPOSTParams 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 NewCreatePolicyUsingPOSTParamsWithContext

func NewCreatePolicyUsingPOSTParamsWithContext(ctx context.Context) *CreatePolicyUsingPOSTParams

NewCreatePolicyUsingPOSTParamsWithContext creates a new CreatePolicyUsingPOSTParams object with the ability to set a context for a request.

func NewCreatePolicyUsingPOSTParamsWithHTTPClient

func NewCreatePolicyUsingPOSTParamsWithHTTPClient(client *http.Client) *CreatePolicyUsingPOSTParams

NewCreatePolicyUsingPOSTParamsWithHTTPClient creates a new CreatePolicyUsingPOSTParams object with the ability to set a custom HTTPClient for a request.

func NewCreatePolicyUsingPOSTParamsWithTimeout

func NewCreatePolicyUsingPOSTParamsWithTimeout(timeout time.Duration) *CreatePolicyUsingPOSTParams

NewCreatePolicyUsingPOSTParamsWithTimeout creates a new CreatePolicyUsingPOSTParams object with the ability to set a timeout on a request.

func (*CreatePolicyUsingPOSTParams) SetAPIVersion added in v0.2.9

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

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

func (*CreatePolicyUsingPOSTParams) SetContext

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

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

func (*CreatePolicyUsingPOSTParams) SetDefaults added in v0.2.20

func (o *CreatePolicyUsingPOSTParams) SetDefaults()

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

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

func (*CreatePolicyUsingPOSTParams) SetHTTPClient

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

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

func (*CreatePolicyUsingPOSTParams) SetMeteringPolicy

func (o *CreatePolicyUsingPOSTParams) SetMeteringPolicy(meteringPolicy *models.MeteringPolicy)

SetMeteringPolicy adds the meteringPolicy to the create policy using p o s t params

func (*CreatePolicyUsingPOSTParams) SetTimeout

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

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

func (*CreatePolicyUsingPOSTParams) WithAPIVersion added in v0.2.9

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

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

func (*CreatePolicyUsingPOSTParams) WithContext

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

func (*CreatePolicyUsingPOSTParams) WithDefaults added in v0.2.20

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

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

func (*CreatePolicyUsingPOSTParams) WithHTTPClient

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

func (*CreatePolicyUsingPOSTParams) WithMeteringPolicy

func (o *CreatePolicyUsingPOSTParams) WithMeteringPolicy(meteringPolicy *models.MeteringPolicy) *CreatePolicyUsingPOSTParams

WithMeteringPolicy adds the meteringPolicy to the create policy using p o s t params

func (*CreatePolicyUsingPOSTParams) WithTimeout

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

func (*CreatePolicyUsingPOSTParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreatePolicyUsingPOSTReader

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

CreatePolicyUsingPOSTReader is a Reader for the CreatePolicyUsingPOST structure.

func (*CreatePolicyUsingPOSTReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreatePolicyUsingPOSTUnauthorized

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

Unauthorized

func NewCreatePolicyUsingPOSTUnauthorized

func NewCreatePolicyUsingPOSTUnauthorized() *CreatePolicyUsingPOSTUnauthorized

NewCreatePolicyUsingPOSTUnauthorized creates a CreatePolicyUsingPOSTUnauthorized with default headers values

func (*CreatePolicyUsingPOSTUnauthorized) Error

type DeletePolicyUsingDELETENoContent

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

No Content

func NewDeletePolicyUsingDELETENoContent

func NewDeletePolicyUsingDELETENoContent() *DeletePolicyUsingDELETENoContent

NewDeletePolicyUsingDELETENoContent creates a DeletePolicyUsingDELETENoContent with default headers values

func (*DeletePolicyUsingDELETENoContent) Error

type DeletePolicyUsingDELETENotFound

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

Not Found

func NewDeletePolicyUsingDELETENotFound

func NewDeletePolicyUsingDELETENotFound() *DeletePolicyUsingDELETENotFound

NewDeletePolicyUsingDELETENotFound creates a DeletePolicyUsingDELETENotFound with default headers values

func (*DeletePolicyUsingDELETENotFound) Error

func (*DeletePolicyUsingDELETENotFound) GetPayload added in v0.2.9

func (o *DeletePolicyUsingDELETENotFound) GetPayload() *models.Error

type DeletePolicyUsingDELETEOK

type DeletePolicyUsingDELETEOK struct {
}
DeletePolicyUsingDELETEOK describes a response with status code 200, with default header values.

OK

func NewDeletePolicyUsingDELETEOK

func NewDeletePolicyUsingDELETEOK() *DeletePolicyUsingDELETEOK

NewDeletePolicyUsingDELETEOK creates a DeletePolicyUsingDELETEOK with default headers values

func (*DeletePolicyUsingDELETEOK) Error

func (o *DeletePolicyUsingDELETEOK) Error() string

type DeletePolicyUsingDELETEParams

type DeletePolicyUsingDELETEParams 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.

	   pricing card Id

	   Format: uuid
	*/
	ID strfmt.UUID

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

DeletePolicyUsingDELETEParams contains all the parameters to send to the API endpoint

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

Typically these are written to a http.Request.

func NewDeletePolicyUsingDELETEParams

func NewDeletePolicyUsingDELETEParams() *DeletePolicyUsingDELETEParams

NewDeletePolicyUsingDELETEParams creates a new DeletePolicyUsingDELETEParams 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 NewDeletePolicyUsingDELETEParamsWithContext

func NewDeletePolicyUsingDELETEParamsWithContext(ctx context.Context) *DeletePolicyUsingDELETEParams

NewDeletePolicyUsingDELETEParamsWithContext creates a new DeletePolicyUsingDELETEParams object with the ability to set a context for a request.

func NewDeletePolicyUsingDELETEParamsWithHTTPClient

func NewDeletePolicyUsingDELETEParamsWithHTTPClient(client *http.Client) *DeletePolicyUsingDELETEParams

NewDeletePolicyUsingDELETEParamsWithHTTPClient creates a new DeletePolicyUsingDELETEParams object with the ability to set a custom HTTPClient for a request.

func NewDeletePolicyUsingDELETEParamsWithTimeout

func NewDeletePolicyUsingDELETEParamsWithTimeout(timeout time.Duration) *DeletePolicyUsingDELETEParams

NewDeletePolicyUsingDELETEParamsWithTimeout creates a new DeletePolicyUsingDELETEParams object with the ability to set a timeout on a request.

func (*DeletePolicyUsingDELETEParams) SetAPIVersion added in v0.2.9

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

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

func (*DeletePolicyUsingDELETEParams) SetContext

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

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

func (*DeletePolicyUsingDELETEParams) SetDefaults added in v0.2.20

func (o *DeletePolicyUsingDELETEParams) SetDefaults()

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

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

func (*DeletePolicyUsingDELETEParams) SetHTTPClient

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

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

func (*DeletePolicyUsingDELETEParams) SetID

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

func (*DeletePolicyUsingDELETEParams) SetTimeout

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

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

func (*DeletePolicyUsingDELETEParams) WithAPIVersion added in v0.2.9

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

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

func (*DeletePolicyUsingDELETEParams) WithContext

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

func (*DeletePolicyUsingDELETEParams) WithDefaults added in v0.2.20

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

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

func (*DeletePolicyUsingDELETEParams) WithHTTPClient

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

func (*DeletePolicyUsingDELETEParams) WithID

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

func (*DeletePolicyUsingDELETEParams) WithTimeout

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

func (*DeletePolicyUsingDELETEParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeletePolicyUsingDELETEReader

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

DeletePolicyUsingDELETEReader is a Reader for the DeletePolicyUsingDELETE structure.

func (*DeletePolicyUsingDELETEReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeletePolicyUsingDELETEUnauthorized

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

Unauthorized

func NewDeletePolicyUsingDELETEUnauthorized

func NewDeletePolicyUsingDELETEUnauthorized() *DeletePolicyUsingDELETEUnauthorized

NewDeletePolicyUsingDELETEUnauthorized creates a DeletePolicyUsingDELETEUnauthorized with default headers values

func (*DeletePolicyUsingDELETEUnauthorized) Error

type GetPoliciesUsingGETOK

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

OK

func NewGetPoliciesUsingGETOK

func NewGetPoliciesUsingGETOK() *GetPoliciesUsingGETOK

NewGetPoliciesUsingGETOK creates a GetPoliciesUsingGETOK with default headers values

func (*GetPoliciesUsingGETOK) Error

func (o *GetPoliciesUsingGETOK) Error() string

func (*GetPoliciesUsingGETOK) GetPayload

type GetPoliciesUsingGETParams

type GetPoliciesUsingGETParams struct {

	/* DollarOrderby.

	   Sorting criteria in the format: property (asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
	*/
	DollarOrderby []string

	/* DollarSkip.

	   Number of records you want to skip

	   Format: int32
	*/
	DollarSkip *int32

	/* DollarTop.

	   Number of records you want

	   Format: int32
	*/
	DollarTop *int32

	/* 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

	/* ExpandAssignmentInfo.

	   Whether or not returns count of assignments.
	*/
	ExpandAssignmentInfo *bool

	/* ExpandPricingCard.

	   Whether or not returns detailed pricing card for each result.
	*/
	ExpandPricingCard *bool

	/* Search.

	   Search by name and description
	*/
	Search *string

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

GetPoliciesUsingGETParams contains all the parameters to send to the API endpoint

for the get policies using g e t operation.

Typically these are written to a http.Request.

func NewGetPoliciesUsingGETParams

func NewGetPoliciesUsingGETParams() *GetPoliciesUsingGETParams

NewGetPoliciesUsingGETParams creates a new GetPoliciesUsingGETParams 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 NewGetPoliciesUsingGETParamsWithContext

func NewGetPoliciesUsingGETParamsWithContext(ctx context.Context) *GetPoliciesUsingGETParams

NewGetPoliciesUsingGETParamsWithContext creates a new GetPoliciesUsingGETParams object with the ability to set a context for a request.

func NewGetPoliciesUsingGETParamsWithHTTPClient

func NewGetPoliciesUsingGETParamsWithHTTPClient(client *http.Client) *GetPoliciesUsingGETParams

NewGetPoliciesUsingGETParamsWithHTTPClient creates a new GetPoliciesUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewGetPoliciesUsingGETParamsWithTimeout

func NewGetPoliciesUsingGETParamsWithTimeout(timeout time.Duration) *GetPoliciesUsingGETParams

NewGetPoliciesUsingGETParamsWithTimeout creates a new GetPoliciesUsingGETParams object with the ability to set a timeout on a request.

func (*GetPoliciesUsingGETParams) SetAPIVersion added in v0.2.9

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

SetAPIVersion adds the apiVersion to the get policies using get params

func (*GetPoliciesUsingGETParams) SetContext

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

SetContext adds the context to the get policies using get params

func (*GetPoliciesUsingGETParams) SetDefaults added in v0.2.20

func (o *GetPoliciesUsingGETParams) SetDefaults()

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

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

func (*GetPoliciesUsingGETParams) SetDollarOrderby

func (o *GetPoliciesUsingGETParams) SetDollarOrderby(dollarOrderby []string)

SetDollarOrderby adds the dollarOrderby to the get policies using get params

func (*GetPoliciesUsingGETParams) SetDollarSkip

func (o *GetPoliciesUsingGETParams) SetDollarSkip(dollarSkip *int32)

SetDollarSkip adds the dollarSkip to the get policies using get params

func (*GetPoliciesUsingGETParams) SetDollarTop

func (o *GetPoliciesUsingGETParams) SetDollarTop(dollarTop *int32)

SetDollarTop adds the dollarTop to the get policies using get params

func (*GetPoliciesUsingGETParams) SetExpandAssignmentInfo

func (o *GetPoliciesUsingGETParams) SetExpandAssignmentInfo(expandAssignmentInfo *bool)

SetExpandAssignmentInfo adds the expandAssignmentInfo to the get policies using get params

func (*GetPoliciesUsingGETParams) SetExpandPricingCard

func (o *GetPoliciesUsingGETParams) SetExpandPricingCard(expandPricingCard *bool)

SetExpandPricingCard adds the expandPricingCard to the get policies using get params

func (*GetPoliciesUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get policies using get params

func (*GetPoliciesUsingGETParams) SetSearch

func (o *GetPoliciesUsingGETParams) SetSearch(search *string)

SetSearch adds the search to the get policies using get params

func (*GetPoliciesUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the get policies using get params

func (*GetPoliciesUsingGETParams) WithAPIVersion added in v0.2.9

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

WithAPIVersion adds the aPIVersion to the get policies using get params

func (*GetPoliciesUsingGETParams) WithContext

WithContext adds the context to the get policies using get params

func (*GetPoliciesUsingGETParams) WithDefaults added in v0.2.20

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

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

func (*GetPoliciesUsingGETParams) WithDollarOrderby

func (o *GetPoliciesUsingGETParams) WithDollarOrderby(dollarOrderby []string) *GetPoliciesUsingGETParams

WithDollarOrderby adds the dollarOrderby to the get policies using get params

func (*GetPoliciesUsingGETParams) WithDollarSkip

func (o *GetPoliciesUsingGETParams) WithDollarSkip(dollarSkip *int32) *GetPoliciesUsingGETParams

WithDollarSkip adds the dollarSkip to the get policies using get params

func (*GetPoliciesUsingGETParams) WithDollarTop

func (o *GetPoliciesUsingGETParams) WithDollarTop(dollarTop *int32) *GetPoliciesUsingGETParams

WithDollarTop adds the dollarTop to the get policies using get params

func (*GetPoliciesUsingGETParams) WithExpandAssignmentInfo

func (o *GetPoliciesUsingGETParams) WithExpandAssignmentInfo(expandAssignmentInfo *bool) *GetPoliciesUsingGETParams

WithExpandAssignmentInfo adds the expandAssignmentInfo to the get policies using get params

func (*GetPoliciesUsingGETParams) WithExpandPricingCard

func (o *GetPoliciesUsingGETParams) WithExpandPricingCard(expandPricingCard *bool) *GetPoliciesUsingGETParams

WithExpandPricingCard adds the expandPricingCard to the get policies using get params

func (*GetPoliciesUsingGETParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get policies using get params

func (*GetPoliciesUsingGETParams) WithSearch

WithSearch adds the search to the get policies using get params

func (*GetPoliciesUsingGETParams) WithTimeout

WithTimeout adds the timeout to the get policies using get params

func (*GetPoliciesUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPoliciesUsingGETReader

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

GetPoliciesUsingGETReader is a Reader for the GetPoliciesUsingGET structure.

func (*GetPoliciesUsingGETReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPoliciesUsingGETUnauthorized

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

Unauthorized

func NewGetPoliciesUsingGETUnauthorized

func NewGetPoliciesUsingGETUnauthorized() *GetPoliciesUsingGETUnauthorized

NewGetPoliciesUsingGETUnauthorized creates a GetPoliciesUsingGETUnauthorized with default headers values

func (*GetPoliciesUsingGETUnauthorized) Error

type GetPolicyUsingGETNotFound

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

Not Found

func NewGetPolicyUsingGETNotFound

func NewGetPolicyUsingGETNotFound() *GetPolicyUsingGETNotFound

NewGetPolicyUsingGETNotFound creates a GetPolicyUsingGETNotFound with default headers values

func (*GetPolicyUsingGETNotFound) Error

func (o *GetPolicyUsingGETNotFound) Error() string

func (*GetPolicyUsingGETNotFound) GetPayload added in v0.2.9

func (o *GetPolicyUsingGETNotFound) GetPayload() *models.Error

type GetPolicyUsingGETOK

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

OK

func NewGetPolicyUsingGETOK

func NewGetPolicyUsingGETOK() *GetPolicyUsingGETOK

NewGetPolicyUsingGETOK creates a GetPolicyUsingGETOK with default headers values

func (*GetPolicyUsingGETOK) Error

func (o *GetPolicyUsingGETOK) Error() string

func (*GetPolicyUsingGETOK) GetPayload

func (o *GetPolicyUsingGETOK) GetPayload() *models.MeteringPolicy

type GetPolicyUsingGETParams

type GetPolicyUsingGETParams 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.

	   pricing card Id

	   Format: uuid
	*/
	ID strfmt.UUID

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

GetPolicyUsingGETParams contains all the parameters to send to the API endpoint

for the get policy using g e t operation.

Typically these are written to a http.Request.

func NewGetPolicyUsingGETParams

func NewGetPolicyUsingGETParams() *GetPolicyUsingGETParams

NewGetPolicyUsingGETParams creates a new GetPolicyUsingGETParams 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 NewGetPolicyUsingGETParamsWithContext

func NewGetPolicyUsingGETParamsWithContext(ctx context.Context) *GetPolicyUsingGETParams

NewGetPolicyUsingGETParamsWithContext creates a new GetPolicyUsingGETParams object with the ability to set a context for a request.

func NewGetPolicyUsingGETParamsWithHTTPClient

func NewGetPolicyUsingGETParamsWithHTTPClient(client *http.Client) *GetPolicyUsingGETParams

NewGetPolicyUsingGETParamsWithHTTPClient creates a new GetPolicyUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewGetPolicyUsingGETParamsWithTimeout

func NewGetPolicyUsingGETParamsWithTimeout(timeout time.Duration) *GetPolicyUsingGETParams

NewGetPolicyUsingGETParamsWithTimeout creates a new GetPolicyUsingGETParams object with the ability to set a timeout on a request.

func (*GetPolicyUsingGETParams) SetAPIVersion added in v0.2.9

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

SetAPIVersion adds the apiVersion to the get policy using get params

func (*GetPolicyUsingGETParams) SetContext

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

SetContext adds the context to the get policy using get params

func (*GetPolicyUsingGETParams) SetDefaults added in v0.2.20

func (o *GetPolicyUsingGETParams) SetDefaults()

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

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

func (*GetPolicyUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get policy using get params

func (*GetPolicyUsingGETParams) SetID

func (o *GetPolicyUsingGETParams) SetID(id strfmt.UUID)

SetID adds the id to the get policy using get params

func (*GetPolicyUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the get policy using get params

func (*GetPolicyUsingGETParams) WithAPIVersion added in v0.2.9

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

WithAPIVersion adds the aPIVersion to the get policy using get params

func (*GetPolicyUsingGETParams) WithContext

WithContext adds the context to the get policy using get params

func (*GetPolicyUsingGETParams) WithDefaults added in v0.2.20

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

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

func (*GetPolicyUsingGETParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get policy using get params

func (*GetPolicyUsingGETParams) WithID

WithID adds the id to the get policy using get params

func (*GetPolicyUsingGETParams) WithTimeout

WithTimeout adds the timeout to the get policy using get params

func (*GetPolicyUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPolicyUsingGETReader

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

GetPolicyUsingGETReader is a Reader for the GetPolicyUsingGET structure.

func (*GetPolicyUsingGETReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPolicyUsingGETUnauthorized

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

Unauthorized

func NewGetPolicyUsingGETUnauthorized

func NewGetPolicyUsingGETUnauthorized() *GetPolicyUsingGETUnauthorized

NewGetPolicyUsingGETUnauthorized creates a GetPolicyUsingGETUnauthorized with default headers values

func (*GetPolicyUsingGETUnauthorized) Error

type UpdatePolicyUsingPUTNotFound

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

Not Found

func NewUpdatePolicyUsingPUTNotFound

func NewUpdatePolicyUsingPUTNotFound() *UpdatePolicyUsingPUTNotFound

NewUpdatePolicyUsingPUTNotFound creates a UpdatePolicyUsingPUTNotFound with default headers values

func (*UpdatePolicyUsingPUTNotFound) Error

func (*UpdatePolicyUsingPUTNotFound) GetPayload added in v0.2.9

func (o *UpdatePolicyUsingPUTNotFound) GetPayload() *models.Error

type UpdatePolicyUsingPUTOK

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

OK

func NewUpdatePolicyUsingPUTOK

func NewUpdatePolicyUsingPUTOK() *UpdatePolicyUsingPUTOK

NewUpdatePolicyUsingPUTOK creates a UpdatePolicyUsingPUTOK with default headers values

func (*UpdatePolicyUsingPUTOK) Error

func (o *UpdatePolicyUsingPUTOK) Error() string

func (*UpdatePolicyUsingPUTOK) GetPayload

func (o *UpdatePolicyUsingPUTOK) GetPayload() *models.MeteringPolicy

type UpdatePolicyUsingPUTParams

type UpdatePolicyUsingPUTParams 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.

	   pricing card Id

	   Format: uuid
	*/
	ID strfmt.UUID

	/* MeteringPolicy.

	   A set of pricing card fields to be updated.
	*/
	MeteringPolicy *models.MeteringPolicy

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

UpdatePolicyUsingPUTParams contains all the parameters to send to the API endpoint

for the update policy using p u t operation.

Typically these are written to a http.Request.

func NewUpdatePolicyUsingPUTParams

func NewUpdatePolicyUsingPUTParams() *UpdatePolicyUsingPUTParams

NewUpdatePolicyUsingPUTParams creates a new UpdatePolicyUsingPUTParams 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 NewUpdatePolicyUsingPUTParamsWithContext

func NewUpdatePolicyUsingPUTParamsWithContext(ctx context.Context) *UpdatePolicyUsingPUTParams

NewUpdatePolicyUsingPUTParamsWithContext creates a new UpdatePolicyUsingPUTParams object with the ability to set a context for a request.

func NewUpdatePolicyUsingPUTParamsWithHTTPClient

func NewUpdatePolicyUsingPUTParamsWithHTTPClient(client *http.Client) *UpdatePolicyUsingPUTParams

NewUpdatePolicyUsingPUTParamsWithHTTPClient creates a new UpdatePolicyUsingPUTParams object with the ability to set a custom HTTPClient for a request.

func NewUpdatePolicyUsingPUTParamsWithTimeout

func NewUpdatePolicyUsingPUTParamsWithTimeout(timeout time.Duration) *UpdatePolicyUsingPUTParams

NewUpdatePolicyUsingPUTParamsWithTimeout creates a new UpdatePolicyUsingPUTParams object with the ability to set a timeout on a request.

func (*UpdatePolicyUsingPUTParams) SetAPIVersion added in v0.2.9

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

SetAPIVersion adds the apiVersion to the update policy using p u t params

func (*UpdatePolicyUsingPUTParams) SetContext

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

SetContext adds the context to the update policy using p u t params

func (*UpdatePolicyUsingPUTParams) SetDefaults added in v0.2.20

func (o *UpdatePolicyUsingPUTParams) SetDefaults()

SetDefaults hydrates default values in the update policy using p u t params (not the query body).

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

func (*UpdatePolicyUsingPUTParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update policy using p u t params

func (*UpdatePolicyUsingPUTParams) SetID

func (o *UpdatePolicyUsingPUTParams) SetID(id strfmt.UUID)

SetID adds the id to the update policy using p u t params

func (*UpdatePolicyUsingPUTParams) SetMeteringPolicy

func (o *UpdatePolicyUsingPUTParams) SetMeteringPolicy(meteringPolicy *models.MeteringPolicy)

SetMeteringPolicy adds the meteringPolicy to the update policy using p u t params

func (*UpdatePolicyUsingPUTParams) SetTimeout

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

SetTimeout adds the timeout to the update policy using p u t params

func (*UpdatePolicyUsingPUTParams) WithAPIVersion added in v0.2.9

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

WithAPIVersion adds the aPIVersion to the update policy using p u t params

func (*UpdatePolicyUsingPUTParams) WithContext

WithContext adds the context to the update policy using p u t params

func (*UpdatePolicyUsingPUTParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the update policy using p u t params (not the query body).

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

func (*UpdatePolicyUsingPUTParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update policy using p u t params

func (*UpdatePolicyUsingPUTParams) WithID

WithID adds the id to the update policy using p u t params

func (*UpdatePolicyUsingPUTParams) WithMeteringPolicy

func (o *UpdatePolicyUsingPUTParams) WithMeteringPolicy(meteringPolicy *models.MeteringPolicy) *UpdatePolicyUsingPUTParams

WithMeteringPolicy adds the meteringPolicy to the update policy using p u t params

func (*UpdatePolicyUsingPUTParams) WithTimeout

WithTimeout adds the timeout to the update policy using p u t params

func (*UpdatePolicyUsingPUTParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdatePolicyUsingPUTReader

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

UpdatePolicyUsingPUTReader is a Reader for the UpdatePolicyUsingPUT structure.

func (*UpdatePolicyUsingPUTReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdatePolicyUsingPUTUnauthorized

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

Unauthorized

func NewUpdatePolicyUsingPUTUnauthorized

func NewUpdatePolicyUsingPUTUnauthorized() *UpdatePolicyUsingPUTUnauthorized

NewUpdatePolicyUsingPUTUnauthorized creates a UpdatePolicyUsingPUTUnauthorized with default headers values

func (*UpdatePolicyUsingPUTUnauthorized) Error

Jump to

Keyboard shortcuts

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