pricing_cards

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 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 New

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

New creates a new pricing cards API client.

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) (*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) (*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) (*UpdatePolicyUsingPUTOK, error)

UpdatePolicyUsingPUT updates the pricing card

Updates the pricing card with the specified Id

type CreatePolicyUsingPOSTCreated

type CreatePolicyUsingPOSTCreated struct {
	Payload *models.MeteringPolicy
}

CreatePolicyUsingPOSTCreated handles this case 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 handles this case 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). For versioning information please refer to /catalog/api/about

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

func NewCreatePolicyUsingPOSTParamsWithContext

func NewCreatePolicyUsingPOSTParamsWithContext(ctx context.Context) *CreatePolicyUsingPOSTParams

NewCreatePolicyUsingPOSTParamsWithContext creates a new CreatePolicyUsingPOSTParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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 handles this case 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 handles this case 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 handles this case 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). For versioning information please refer to /catalog/api/about

	*/
	APIVersion *string
	/*ID
	  pricing card Id

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

func NewDeletePolicyUsingDELETEParamsWithContext

func NewDeletePolicyUsingDELETEParamsWithContext(ctx context.Context) *DeletePolicyUsingDELETEParams

NewDeletePolicyUsingDELETEParamsWithContext creates a new DeletePolicyUsingDELETEParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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 handles this case 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

	*/
	DollarSkip *int32
	/*DollarTop
	  Number of records you want

	*/
	DollarTop *int32
	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /catalog/api/about

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

func NewGetPoliciesUsingGETParamsWithContext

func NewGetPoliciesUsingGETParamsWithContext(ctx context.Context) *GetPoliciesUsingGETParams

NewGetPoliciesUsingGETParamsWithContext creates a new GetPoliciesUsingGETParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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 handles this case 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 handles this case 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). For versioning information please refer to /catalog/api/about

	*/
	APIVersion *string
	/*ID
	  pricing card Id

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

func NewGetPolicyUsingGETParamsWithContext

func NewGetPolicyUsingGETParamsWithContext(ctx context.Context) *GetPolicyUsingGETParams

NewGetPolicyUsingGETParamsWithContext creates a new GetPolicyUsingGETParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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 handles this case 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 handles this case 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). For versioning information please refer to /catalog/api/about

	*/
	APIVersion *string
	/*ID
	  pricing card Id

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

func NewUpdatePolicyUsingPUTParamsWithContext

func NewUpdatePolicyUsingPUTParamsWithContext(ctx context.Context) *UpdatePolicyUsingPUTParams

NewUpdatePolicyUsingPUTParamsWithContext creates a new UpdatePolicyUsingPUTParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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