pricing_cards

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 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) CreatePolicyUsingPOST2 added in v0.4.0

CreatePolicyUsingPOST2 creates a new pricing card

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

func (*Client) DeletePolicyUsingDELETE4 added in v0.4.0

DeletePolicyUsingDELETE4 deletes the pricing card with specified Id

Deletes the pricing card with the specified id

func (*Client) GetPoliciesUsingGET4 added in v0.4.0

func (a *Client) GetPoliciesUsingGET4(params *GetPoliciesUsingGET4Params, opts ...ClientOption) (*GetPoliciesUsingGET4OK, error)

GetPoliciesUsingGET4 fetches all pricing cards for private policy cloud

Returns a paginated list of pricing cards

func (*Client) GetPolicyUsingGET4 added in v0.4.0

func (a *Client) GetPolicyUsingGET4(params *GetPolicyUsingGET4Params, opts ...ClientOption) (*GetPolicyUsingGET4OK, error)

GetPolicyUsingGET4 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) UpdatePolicyUsingPUT2 added in v0.4.0

func (a *Client) UpdatePolicyUsingPUT2(params *UpdatePolicyUsingPUT2Params, opts ...ClientOption) (*UpdatePolicyUsingPUT2OK, error)

UpdatePolicyUsingPUT2 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 {
	CreatePolicyUsingPOST2(params *CreatePolicyUsingPOST2Params, opts ...ClientOption) (*CreatePolicyUsingPOST2OK, *CreatePolicyUsingPOST2Created, error)

	DeletePolicyUsingDELETE4(params *DeletePolicyUsingDELETE4Params, opts ...ClientOption) (*DeletePolicyUsingDELETE4OK, *DeletePolicyUsingDELETE4NoContent, error)

	GetPoliciesUsingGET4(params *GetPoliciesUsingGET4Params, opts ...ClientOption) (*GetPoliciesUsingGET4OK, error)

	GetPolicyUsingGET4(params *GetPolicyUsingGET4Params, opts ...ClientOption) (*GetPolicyUsingGET4OK, error)

	UpdatePolicyUsingPUT2(params *UpdatePolicyUsingPUT2Params, opts ...ClientOption) (*UpdatePolicyUsingPUT2OK, 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 CreatePolicyUsingPOST2Created added in v0.4.0

type CreatePolicyUsingPOST2Created struct {
	Payload *models.MeteringPolicy
}

CreatePolicyUsingPOST2Created describes a response with status code 201, with default header values.

Created

func NewCreatePolicyUsingPOST2Created added in v0.4.0

func NewCreatePolicyUsingPOST2Created() *CreatePolicyUsingPOST2Created

NewCreatePolicyUsingPOST2Created creates a CreatePolicyUsingPOST2Created with default headers values

func (*CreatePolicyUsingPOST2Created) Error added in v0.4.0

func (*CreatePolicyUsingPOST2Created) GetPayload added in v0.4.0

func (*CreatePolicyUsingPOST2Created) IsClientError added in v0.6.0

func (o *CreatePolicyUsingPOST2Created) IsClientError() bool

IsClientError returns true when this create policy using p o s t2 created response has a 4xx status code

func (*CreatePolicyUsingPOST2Created) IsCode added in v0.6.0

func (o *CreatePolicyUsingPOST2Created) IsCode(code int) bool

IsCode returns true when this create policy using p o s t2 created response a status code equal to that given

func (*CreatePolicyUsingPOST2Created) IsRedirect added in v0.6.0

func (o *CreatePolicyUsingPOST2Created) IsRedirect() bool

IsRedirect returns true when this create policy using p o s t2 created response has a 3xx status code

func (*CreatePolicyUsingPOST2Created) IsServerError added in v0.6.0

func (o *CreatePolicyUsingPOST2Created) IsServerError() bool

IsServerError returns true when this create policy using p o s t2 created response has a 5xx status code

func (*CreatePolicyUsingPOST2Created) IsSuccess added in v0.6.0

func (o *CreatePolicyUsingPOST2Created) IsSuccess() bool

IsSuccess returns true when this create policy using p o s t2 created response has a 2xx status code

func (*CreatePolicyUsingPOST2Created) String added in v0.6.0

type CreatePolicyUsingPOST2OK added in v0.4.0

type CreatePolicyUsingPOST2OK struct {
	Payload *models.MeteringPolicy
}

CreatePolicyUsingPOST2OK describes a response with status code 200, with default header values.

OK

func NewCreatePolicyUsingPOST2OK added in v0.4.0

func NewCreatePolicyUsingPOST2OK() *CreatePolicyUsingPOST2OK

NewCreatePolicyUsingPOST2OK creates a CreatePolicyUsingPOST2OK with default headers values

func (*CreatePolicyUsingPOST2OK) Error added in v0.4.0

func (o *CreatePolicyUsingPOST2OK) Error() string

func (*CreatePolicyUsingPOST2OK) GetPayload added in v0.4.0

func (*CreatePolicyUsingPOST2OK) IsClientError added in v0.6.0

func (o *CreatePolicyUsingPOST2OK) IsClientError() bool

IsClientError returns true when this create policy using p o s t2 o k response has a 4xx status code

func (*CreatePolicyUsingPOST2OK) IsCode added in v0.6.0

func (o *CreatePolicyUsingPOST2OK) IsCode(code int) bool

IsCode returns true when this create policy using p o s t2 o k response a status code equal to that given

func (*CreatePolicyUsingPOST2OK) IsRedirect added in v0.6.0

func (o *CreatePolicyUsingPOST2OK) IsRedirect() bool

IsRedirect returns true when this create policy using p o s t2 o k response has a 3xx status code

func (*CreatePolicyUsingPOST2OK) IsServerError added in v0.6.0

func (o *CreatePolicyUsingPOST2OK) IsServerError() bool

IsServerError returns true when this create policy using p o s t2 o k response has a 5xx status code

func (*CreatePolicyUsingPOST2OK) IsSuccess added in v0.6.0

func (o *CreatePolicyUsingPOST2OK) IsSuccess() bool

IsSuccess returns true when this create policy using p o s t2 o k response has a 2xx status code

func (*CreatePolicyUsingPOST2OK) String added in v0.6.0

func (o *CreatePolicyUsingPOST2OK) String() string

type CreatePolicyUsingPOST2Params added in v0.4.0

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

CreatePolicyUsingPOST2Params contains all the parameters to send to the API endpoint

for the create policy using p o s t 2 operation.

Typically these are written to a http.Request.

func NewCreatePolicyUsingPOST2Params added in v0.4.0

func NewCreatePolicyUsingPOST2Params() *CreatePolicyUsingPOST2Params

NewCreatePolicyUsingPOST2Params creates a new CreatePolicyUsingPOST2Params 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 NewCreatePolicyUsingPOST2ParamsWithContext added in v0.4.0

func NewCreatePolicyUsingPOST2ParamsWithContext(ctx context.Context) *CreatePolicyUsingPOST2Params

NewCreatePolicyUsingPOST2ParamsWithContext creates a new CreatePolicyUsingPOST2Params object with the ability to set a context for a request.

func NewCreatePolicyUsingPOST2ParamsWithHTTPClient added in v0.4.0

func NewCreatePolicyUsingPOST2ParamsWithHTTPClient(client *http.Client) *CreatePolicyUsingPOST2Params

NewCreatePolicyUsingPOST2ParamsWithHTTPClient creates a new CreatePolicyUsingPOST2Params object with the ability to set a custom HTTPClient for a request.

func NewCreatePolicyUsingPOST2ParamsWithTimeout added in v0.4.0

func NewCreatePolicyUsingPOST2ParamsWithTimeout(timeout time.Duration) *CreatePolicyUsingPOST2Params

NewCreatePolicyUsingPOST2ParamsWithTimeout creates a new CreatePolicyUsingPOST2Params object with the ability to set a timeout on a request.

func (*CreatePolicyUsingPOST2Params) SetAPIVersion added in v0.4.0

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

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

func (*CreatePolicyUsingPOST2Params) SetContext added in v0.4.0

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

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

func (*CreatePolicyUsingPOST2Params) SetDefaults added in v0.4.0

func (o *CreatePolicyUsingPOST2Params) SetDefaults()

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

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

func (*CreatePolicyUsingPOST2Params) SetHTTPClient added in v0.4.0

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

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

func (*CreatePolicyUsingPOST2Params) SetMeteringPolicy added in v0.4.0

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

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

func (*CreatePolicyUsingPOST2Params) SetTimeout added in v0.4.0

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

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

func (*CreatePolicyUsingPOST2Params) WithAPIVersion added in v0.4.0

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

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

func (*CreatePolicyUsingPOST2Params) WithContext added in v0.4.0

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

func (*CreatePolicyUsingPOST2Params) WithDefaults added in v0.4.0

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

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

func (*CreatePolicyUsingPOST2Params) WithHTTPClient added in v0.4.0

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

func (*CreatePolicyUsingPOST2Params) WithMeteringPolicy added in v0.4.0

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

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

func (*CreatePolicyUsingPOST2Params) WithTimeout added in v0.4.0

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

func (*CreatePolicyUsingPOST2Params) WriteToRequest added in v0.4.0

WriteToRequest writes these params to a swagger request

type CreatePolicyUsingPOST2Reader added in v0.4.0

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

CreatePolicyUsingPOST2Reader is a Reader for the CreatePolicyUsingPOST2 structure.

func (*CreatePolicyUsingPOST2Reader) ReadResponse added in v0.4.0

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

ReadResponse reads a server response into the received o.

type CreatePolicyUsingPOST2Unauthorized added in v0.4.0

type CreatePolicyUsingPOST2Unauthorized struct {
}

CreatePolicyUsingPOST2Unauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewCreatePolicyUsingPOST2Unauthorized added in v0.4.0

func NewCreatePolicyUsingPOST2Unauthorized() *CreatePolicyUsingPOST2Unauthorized

NewCreatePolicyUsingPOST2Unauthorized creates a CreatePolicyUsingPOST2Unauthorized with default headers values

func (*CreatePolicyUsingPOST2Unauthorized) Error added in v0.4.0

func (*CreatePolicyUsingPOST2Unauthorized) IsClientError added in v0.6.0

func (o *CreatePolicyUsingPOST2Unauthorized) IsClientError() bool

IsClientError returns true when this create policy using p o s t2 unauthorized response has a 4xx status code

func (*CreatePolicyUsingPOST2Unauthorized) IsCode added in v0.6.0

IsCode returns true when this create policy using p o s t2 unauthorized response a status code equal to that given

func (*CreatePolicyUsingPOST2Unauthorized) IsRedirect added in v0.6.0

func (o *CreatePolicyUsingPOST2Unauthorized) IsRedirect() bool

IsRedirect returns true when this create policy using p o s t2 unauthorized response has a 3xx status code

func (*CreatePolicyUsingPOST2Unauthorized) IsServerError added in v0.6.0

func (o *CreatePolicyUsingPOST2Unauthorized) IsServerError() bool

IsServerError returns true when this create policy using p o s t2 unauthorized response has a 5xx status code

func (*CreatePolicyUsingPOST2Unauthorized) IsSuccess added in v0.6.0

IsSuccess returns true when this create policy using p o s t2 unauthorized response has a 2xx status code

func (*CreatePolicyUsingPOST2Unauthorized) String added in v0.6.0

type DeletePolicyUsingDELETE4NoContent added in v0.4.0

type DeletePolicyUsingDELETE4NoContent struct {
}

DeletePolicyUsingDELETE4NoContent describes a response with status code 204, with default header values.

No Content

func NewDeletePolicyUsingDELETE4NoContent added in v0.4.0

func NewDeletePolicyUsingDELETE4NoContent() *DeletePolicyUsingDELETE4NoContent

NewDeletePolicyUsingDELETE4NoContent creates a DeletePolicyUsingDELETE4NoContent with default headers values

func (*DeletePolicyUsingDELETE4NoContent) Error added in v0.4.0

func (*DeletePolicyUsingDELETE4NoContent) IsClientError added in v0.5.0

func (o *DeletePolicyUsingDELETE4NoContent) IsClientError() bool

IsClientError returns true when this delete policy using d e l e t e4 no content response has a 4xx status code

func (*DeletePolicyUsingDELETE4NoContent) IsCode added in v0.5.0

func (o *DeletePolicyUsingDELETE4NoContent) IsCode(code int) bool

IsCode returns true when this delete policy using d e l e t e4 no content response a status code equal to that given

func (*DeletePolicyUsingDELETE4NoContent) IsRedirect added in v0.5.0

func (o *DeletePolicyUsingDELETE4NoContent) IsRedirect() bool

IsRedirect returns true when this delete policy using d e l e t e4 no content response has a 3xx status code

func (*DeletePolicyUsingDELETE4NoContent) IsServerError added in v0.5.0

func (o *DeletePolicyUsingDELETE4NoContent) IsServerError() bool

IsServerError returns true when this delete policy using d e l e t e4 no content response has a 5xx status code

func (*DeletePolicyUsingDELETE4NoContent) IsSuccess added in v0.5.0

func (o *DeletePolicyUsingDELETE4NoContent) IsSuccess() bool

IsSuccess returns true when this delete policy using d e l e t e4 no content response has a 2xx status code

func (*DeletePolicyUsingDELETE4NoContent) String added in v0.5.0

type DeletePolicyUsingDELETE4NotFound added in v0.4.0

type DeletePolicyUsingDELETE4NotFound struct {
	Payload *models.Error
}

DeletePolicyUsingDELETE4NotFound describes a response with status code 404, with default header values.

Not Found

func NewDeletePolicyUsingDELETE4NotFound added in v0.4.0

func NewDeletePolicyUsingDELETE4NotFound() *DeletePolicyUsingDELETE4NotFound

NewDeletePolicyUsingDELETE4NotFound creates a DeletePolicyUsingDELETE4NotFound with default headers values

func (*DeletePolicyUsingDELETE4NotFound) Error added in v0.4.0

func (*DeletePolicyUsingDELETE4NotFound) GetPayload added in v0.4.0

func (*DeletePolicyUsingDELETE4NotFound) IsClientError added in v0.5.0

func (o *DeletePolicyUsingDELETE4NotFound) IsClientError() bool

IsClientError returns true when this delete policy using d e l e t e4 not found response has a 4xx status code

func (*DeletePolicyUsingDELETE4NotFound) IsCode added in v0.5.0

func (o *DeletePolicyUsingDELETE4NotFound) IsCode(code int) bool

IsCode returns true when this delete policy using d e l e t e4 not found response a status code equal to that given

func (*DeletePolicyUsingDELETE4NotFound) IsRedirect added in v0.5.0

func (o *DeletePolicyUsingDELETE4NotFound) IsRedirect() bool

IsRedirect returns true when this delete policy using d e l e t e4 not found response has a 3xx status code

func (*DeletePolicyUsingDELETE4NotFound) IsServerError added in v0.5.0

func (o *DeletePolicyUsingDELETE4NotFound) IsServerError() bool

IsServerError returns true when this delete policy using d e l e t e4 not found response has a 5xx status code

func (*DeletePolicyUsingDELETE4NotFound) IsSuccess added in v0.5.0

func (o *DeletePolicyUsingDELETE4NotFound) IsSuccess() bool

IsSuccess returns true when this delete policy using d e l e t e4 not found response has a 2xx status code

func (*DeletePolicyUsingDELETE4NotFound) String added in v0.5.0

type DeletePolicyUsingDELETE4OK added in v0.4.0

type DeletePolicyUsingDELETE4OK struct {
}

DeletePolicyUsingDELETE4OK describes a response with status code 200, with default header values.

OK

func NewDeletePolicyUsingDELETE4OK added in v0.4.0

func NewDeletePolicyUsingDELETE4OK() *DeletePolicyUsingDELETE4OK

NewDeletePolicyUsingDELETE4OK creates a DeletePolicyUsingDELETE4OK with default headers values

func (*DeletePolicyUsingDELETE4OK) Error added in v0.4.0

func (*DeletePolicyUsingDELETE4OK) IsClientError added in v0.5.0

func (o *DeletePolicyUsingDELETE4OK) IsClientError() bool

IsClientError returns true when this delete policy using d e l e t e4 o k response has a 4xx status code

func (*DeletePolicyUsingDELETE4OK) IsCode added in v0.5.0

func (o *DeletePolicyUsingDELETE4OK) IsCode(code int) bool

IsCode returns true when this delete policy using d e l e t e4 o k response a status code equal to that given

func (*DeletePolicyUsingDELETE4OK) IsRedirect added in v0.5.0

func (o *DeletePolicyUsingDELETE4OK) IsRedirect() bool

IsRedirect returns true when this delete policy using d e l e t e4 o k response has a 3xx status code

func (*DeletePolicyUsingDELETE4OK) IsServerError added in v0.5.0

func (o *DeletePolicyUsingDELETE4OK) IsServerError() bool

IsServerError returns true when this delete policy using d e l e t e4 o k response has a 5xx status code

func (*DeletePolicyUsingDELETE4OK) IsSuccess added in v0.5.0

func (o *DeletePolicyUsingDELETE4OK) IsSuccess() bool

IsSuccess returns true when this delete policy using d e l e t e4 o k response has a 2xx status code

func (*DeletePolicyUsingDELETE4OK) String added in v0.5.0

func (o *DeletePolicyUsingDELETE4OK) String() string

type DeletePolicyUsingDELETE4Params added in v0.4.0

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

DeletePolicyUsingDELETE4Params contains all the parameters to send to the API endpoint

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

Typically these are written to a http.Request.

func NewDeletePolicyUsingDELETE4Params added in v0.4.0

func NewDeletePolicyUsingDELETE4Params() *DeletePolicyUsingDELETE4Params

NewDeletePolicyUsingDELETE4Params creates a new DeletePolicyUsingDELETE4Params 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 NewDeletePolicyUsingDELETE4ParamsWithContext added in v0.4.0

func NewDeletePolicyUsingDELETE4ParamsWithContext(ctx context.Context) *DeletePolicyUsingDELETE4Params

NewDeletePolicyUsingDELETE4ParamsWithContext creates a new DeletePolicyUsingDELETE4Params object with the ability to set a context for a request.

func NewDeletePolicyUsingDELETE4ParamsWithHTTPClient added in v0.4.0

func NewDeletePolicyUsingDELETE4ParamsWithHTTPClient(client *http.Client) *DeletePolicyUsingDELETE4Params

NewDeletePolicyUsingDELETE4ParamsWithHTTPClient creates a new DeletePolicyUsingDELETE4Params object with the ability to set a custom HTTPClient for a request.

func NewDeletePolicyUsingDELETE4ParamsWithTimeout added in v0.4.0

func NewDeletePolicyUsingDELETE4ParamsWithTimeout(timeout time.Duration) *DeletePolicyUsingDELETE4Params

NewDeletePolicyUsingDELETE4ParamsWithTimeout creates a new DeletePolicyUsingDELETE4Params object with the ability to set a timeout on a request.

func (*DeletePolicyUsingDELETE4Params) SetAPIVersion added in v0.4.0

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

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

func (*DeletePolicyUsingDELETE4Params) SetContext added in v0.4.0

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

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

func (*DeletePolicyUsingDELETE4Params) SetDefaults added in v0.4.0

func (o *DeletePolicyUsingDELETE4Params) SetDefaults()

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

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

func (*DeletePolicyUsingDELETE4Params) SetHTTPClient added in v0.4.0

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

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

func (*DeletePolicyUsingDELETE4Params) SetID added in v0.4.0

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

func (*DeletePolicyUsingDELETE4Params) SetTimeout added in v0.4.0

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

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

func (*DeletePolicyUsingDELETE4Params) WithAPIVersion added in v0.4.0

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

func (*DeletePolicyUsingDELETE4Params) WithContext added in v0.4.0

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

func (*DeletePolicyUsingDELETE4Params) WithDefaults added in v0.4.0

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

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

func (*DeletePolicyUsingDELETE4Params) WithHTTPClient added in v0.4.0

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

func (*DeletePolicyUsingDELETE4Params) WithID added in v0.4.0

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

func (*DeletePolicyUsingDELETE4Params) WithTimeout added in v0.4.0

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

func (*DeletePolicyUsingDELETE4Params) WriteToRequest added in v0.4.0

WriteToRequest writes these params to a swagger request

type DeletePolicyUsingDELETE4Reader added in v0.4.0

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

DeletePolicyUsingDELETE4Reader is a Reader for the DeletePolicyUsingDELETE4 structure.

func (*DeletePolicyUsingDELETE4Reader) ReadResponse added in v0.4.0

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

ReadResponse reads a server response into the received o.

type DeletePolicyUsingDELETE4Unauthorized added in v0.4.0

type DeletePolicyUsingDELETE4Unauthorized struct {
}

DeletePolicyUsingDELETE4Unauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewDeletePolicyUsingDELETE4Unauthorized added in v0.4.0

func NewDeletePolicyUsingDELETE4Unauthorized() *DeletePolicyUsingDELETE4Unauthorized

NewDeletePolicyUsingDELETE4Unauthorized creates a DeletePolicyUsingDELETE4Unauthorized with default headers values

func (*DeletePolicyUsingDELETE4Unauthorized) Error added in v0.4.0

func (*DeletePolicyUsingDELETE4Unauthorized) IsClientError added in v0.5.0

func (o *DeletePolicyUsingDELETE4Unauthorized) IsClientError() bool

IsClientError returns true when this delete policy using d e l e t e4 unauthorized response has a 4xx status code

func (*DeletePolicyUsingDELETE4Unauthorized) IsCode added in v0.5.0

IsCode returns true when this delete policy using d e l e t e4 unauthorized response a status code equal to that given

func (*DeletePolicyUsingDELETE4Unauthorized) IsRedirect added in v0.5.0

IsRedirect returns true when this delete policy using d e l e t e4 unauthorized response has a 3xx status code

func (*DeletePolicyUsingDELETE4Unauthorized) IsServerError added in v0.5.0

func (o *DeletePolicyUsingDELETE4Unauthorized) IsServerError() bool

IsServerError returns true when this delete policy using d e l e t e4 unauthorized response has a 5xx status code

func (*DeletePolicyUsingDELETE4Unauthorized) IsSuccess added in v0.5.0

IsSuccess returns true when this delete policy using d e l e t e4 unauthorized response has a 2xx status code

func (*DeletePolicyUsingDELETE4Unauthorized) String added in v0.5.0

type GetPoliciesUsingGET4OK added in v0.4.0

type GetPoliciesUsingGET4OK struct {
	Payload *models.PageOfMeteringPolicy
}

GetPoliciesUsingGET4OK describes a response with status code 200, with default header values.

OK

func NewGetPoliciesUsingGET4OK added in v0.4.0

func NewGetPoliciesUsingGET4OK() *GetPoliciesUsingGET4OK

NewGetPoliciesUsingGET4OK creates a GetPoliciesUsingGET4OK with default headers values

func (*GetPoliciesUsingGET4OK) Error added in v0.4.0

func (o *GetPoliciesUsingGET4OK) Error() string

func (*GetPoliciesUsingGET4OK) GetPayload added in v0.4.0

func (*GetPoliciesUsingGET4OK) IsClientError added in v0.5.0

func (o *GetPoliciesUsingGET4OK) IsClientError() bool

IsClientError returns true when this get policies using g e t4 o k response has a 4xx status code

func (*GetPoliciesUsingGET4OK) IsCode added in v0.5.0

func (o *GetPoliciesUsingGET4OK) IsCode(code int) bool

IsCode returns true when this get policies using g e t4 o k response a status code equal to that given

func (*GetPoliciesUsingGET4OK) IsRedirect added in v0.5.0

func (o *GetPoliciesUsingGET4OK) IsRedirect() bool

IsRedirect returns true when this get policies using g e t4 o k response has a 3xx status code

func (*GetPoliciesUsingGET4OK) IsServerError added in v0.5.0

func (o *GetPoliciesUsingGET4OK) IsServerError() bool

IsServerError returns true when this get policies using g e t4 o k response has a 5xx status code

func (*GetPoliciesUsingGET4OK) IsSuccess added in v0.5.0

func (o *GetPoliciesUsingGET4OK) IsSuccess() bool

IsSuccess returns true when this get policies using g e t4 o k response has a 2xx status code

func (*GetPoliciesUsingGET4OK) String added in v0.5.0

func (o *GetPoliciesUsingGET4OK) String() string

type GetPoliciesUsingGET4Params added in v0.4.0

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

GetPoliciesUsingGET4Params contains all the parameters to send to the API endpoint

for the get policies using g e t 4 operation.

Typically these are written to a http.Request.

func NewGetPoliciesUsingGET4Params added in v0.4.0

func NewGetPoliciesUsingGET4Params() *GetPoliciesUsingGET4Params

NewGetPoliciesUsingGET4Params creates a new GetPoliciesUsingGET4Params 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 NewGetPoliciesUsingGET4ParamsWithContext added in v0.4.0

func NewGetPoliciesUsingGET4ParamsWithContext(ctx context.Context) *GetPoliciesUsingGET4Params

NewGetPoliciesUsingGET4ParamsWithContext creates a new GetPoliciesUsingGET4Params object with the ability to set a context for a request.

func NewGetPoliciesUsingGET4ParamsWithHTTPClient added in v0.4.0

func NewGetPoliciesUsingGET4ParamsWithHTTPClient(client *http.Client) *GetPoliciesUsingGET4Params

NewGetPoliciesUsingGET4ParamsWithHTTPClient creates a new GetPoliciesUsingGET4Params object with the ability to set a custom HTTPClient for a request.

func NewGetPoliciesUsingGET4ParamsWithTimeout added in v0.4.0

func NewGetPoliciesUsingGET4ParamsWithTimeout(timeout time.Duration) *GetPoliciesUsingGET4Params

NewGetPoliciesUsingGET4ParamsWithTimeout creates a new GetPoliciesUsingGET4Params object with the ability to set a timeout on a request.

func (*GetPoliciesUsingGET4Params) SetAPIVersion added in v0.4.0

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

SetAPIVersion adds the apiVersion to the get policies using g e t 4 params

func (*GetPoliciesUsingGET4Params) SetContext added in v0.4.0

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

SetContext adds the context to the get policies using g e t 4 params

func (*GetPoliciesUsingGET4Params) SetDefaults added in v0.4.0

func (o *GetPoliciesUsingGET4Params) SetDefaults()

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

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

func (*GetPoliciesUsingGET4Params) SetDollarOrderby added in v0.4.0

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

SetDollarOrderby adds the dollarOrderby to the get policies using g e t 4 params

func (*GetPoliciesUsingGET4Params) SetDollarSkip added in v0.4.0

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

SetDollarSkip adds the dollarSkip to the get policies using g e t 4 params

func (*GetPoliciesUsingGET4Params) SetDollarTop added in v0.4.0

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

SetDollarTop adds the dollarTop to the get policies using g e t 4 params

func (*GetPoliciesUsingGET4Params) SetExpandAssignmentInfo added in v0.4.0

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

SetExpandAssignmentInfo adds the expandAssignmentInfo to the get policies using g e t 4 params

func (*GetPoliciesUsingGET4Params) SetExpandPricingCard added in v0.4.0

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

SetExpandPricingCard adds the expandPricingCard to the get policies using g e t 4 params

func (*GetPoliciesUsingGET4Params) SetHTTPClient added in v0.4.0

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

SetHTTPClient adds the HTTPClient to the get policies using g e t 4 params

func (*GetPoliciesUsingGET4Params) SetSearch added in v0.4.0

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

SetSearch adds the search to the get policies using g e t 4 params

func (*GetPoliciesUsingGET4Params) SetTimeout added in v0.4.0

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

SetTimeout adds the timeout to the get policies using g e t 4 params

func (*GetPoliciesUsingGET4Params) WithAPIVersion added in v0.4.0

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

WithAPIVersion adds the aPIVersion to the get policies using g e t 4 params

func (*GetPoliciesUsingGET4Params) WithContext added in v0.4.0

WithContext adds the context to the get policies using g e t 4 params

func (*GetPoliciesUsingGET4Params) WithDefaults added in v0.4.0

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

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

func (*GetPoliciesUsingGET4Params) WithDollarOrderby added in v0.4.0

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

WithDollarOrderby adds the dollarOrderby to the get policies using g e t 4 params

func (*GetPoliciesUsingGET4Params) WithDollarSkip added in v0.4.0

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

WithDollarSkip adds the dollarSkip to the get policies using g e t 4 params

func (*GetPoliciesUsingGET4Params) WithDollarTop added in v0.4.0

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

WithDollarTop adds the dollarTop to the get policies using g e t 4 params

func (*GetPoliciesUsingGET4Params) WithExpandAssignmentInfo added in v0.4.0

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

WithExpandAssignmentInfo adds the expandAssignmentInfo to the get policies using g e t 4 params

func (*GetPoliciesUsingGET4Params) WithExpandPricingCard added in v0.4.0

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

WithExpandPricingCard adds the expandPricingCard to the get policies using g e t 4 params

func (*GetPoliciesUsingGET4Params) WithHTTPClient added in v0.4.0

WithHTTPClient adds the HTTPClient to the get policies using g e t 4 params

func (*GetPoliciesUsingGET4Params) WithSearch added in v0.4.0

WithSearch adds the search to the get policies using g e t 4 params

func (*GetPoliciesUsingGET4Params) WithTimeout added in v0.4.0

WithTimeout adds the timeout to the get policies using g e t 4 params

func (*GetPoliciesUsingGET4Params) WriteToRequest added in v0.4.0

WriteToRequest writes these params to a swagger request

type GetPoliciesUsingGET4Reader added in v0.4.0

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

GetPoliciesUsingGET4Reader is a Reader for the GetPoliciesUsingGET4 structure.

func (*GetPoliciesUsingGET4Reader) ReadResponse added in v0.4.0

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

ReadResponse reads a server response into the received o.

type GetPoliciesUsingGET4Unauthorized added in v0.4.0

type GetPoliciesUsingGET4Unauthorized struct {
}

GetPoliciesUsingGET4Unauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetPoliciesUsingGET4Unauthorized added in v0.4.0

func NewGetPoliciesUsingGET4Unauthorized() *GetPoliciesUsingGET4Unauthorized

NewGetPoliciesUsingGET4Unauthorized creates a GetPoliciesUsingGET4Unauthorized with default headers values

func (*GetPoliciesUsingGET4Unauthorized) Error added in v0.4.0

func (*GetPoliciesUsingGET4Unauthorized) IsClientError added in v0.5.0

func (o *GetPoliciesUsingGET4Unauthorized) IsClientError() bool

IsClientError returns true when this get policies using g e t4 unauthorized response has a 4xx status code

func (*GetPoliciesUsingGET4Unauthorized) IsCode added in v0.5.0

func (o *GetPoliciesUsingGET4Unauthorized) IsCode(code int) bool

IsCode returns true when this get policies using g e t4 unauthorized response a status code equal to that given

func (*GetPoliciesUsingGET4Unauthorized) IsRedirect added in v0.5.0

func (o *GetPoliciesUsingGET4Unauthorized) IsRedirect() bool

IsRedirect returns true when this get policies using g e t4 unauthorized response has a 3xx status code

func (*GetPoliciesUsingGET4Unauthorized) IsServerError added in v0.5.0

func (o *GetPoliciesUsingGET4Unauthorized) IsServerError() bool

IsServerError returns true when this get policies using g e t4 unauthorized response has a 5xx status code

func (*GetPoliciesUsingGET4Unauthorized) IsSuccess added in v0.5.0

func (o *GetPoliciesUsingGET4Unauthorized) IsSuccess() bool

IsSuccess returns true when this get policies using g e t4 unauthorized response has a 2xx status code

func (*GetPoliciesUsingGET4Unauthorized) String added in v0.5.0

type GetPolicyUsingGET4NotFound added in v0.4.0

type GetPolicyUsingGET4NotFound struct {
	Payload *models.Error
}

GetPolicyUsingGET4NotFound describes a response with status code 404, with default header values.

Not Found

func NewGetPolicyUsingGET4NotFound added in v0.4.0

func NewGetPolicyUsingGET4NotFound() *GetPolicyUsingGET4NotFound

NewGetPolicyUsingGET4NotFound creates a GetPolicyUsingGET4NotFound with default headers values

func (*GetPolicyUsingGET4NotFound) Error added in v0.4.0

func (*GetPolicyUsingGET4NotFound) GetPayload added in v0.4.0

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

func (*GetPolicyUsingGET4NotFound) IsClientError added in v0.5.0

func (o *GetPolicyUsingGET4NotFound) IsClientError() bool

IsClientError returns true when this get policy using g e t4 not found response has a 4xx status code

func (*GetPolicyUsingGET4NotFound) IsCode added in v0.5.0

func (o *GetPolicyUsingGET4NotFound) IsCode(code int) bool

IsCode returns true when this get policy using g e t4 not found response a status code equal to that given

func (*GetPolicyUsingGET4NotFound) IsRedirect added in v0.5.0

func (o *GetPolicyUsingGET4NotFound) IsRedirect() bool

IsRedirect returns true when this get policy using g e t4 not found response has a 3xx status code

func (*GetPolicyUsingGET4NotFound) IsServerError added in v0.5.0

func (o *GetPolicyUsingGET4NotFound) IsServerError() bool

IsServerError returns true when this get policy using g e t4 not found response has a 5xx status code

func (*GetPolicyUsingGET4NotFound) IsSuccess added in v0.5.0

func (o *GetPolicyUsingGET4NotFound) IsSuccess() bool

IsSuccess returns true when this get policy using g e t4 not found response has a 2xx status code

func (*GetPolicyUsingGET4NotFound) String added in v0.5.0

func (o *GetPolicyUsingGET4NotFound) String() string

type GetPolicyUsingGET4OK added in v0.4.0

type GetPolicyUsingGET4OK struct {
	Payload *models.MeteringPolicy
}

GetPolicyUsingGET4OK describes a response with status code 200, with default header values.

OK

func NewGetPolicyUsingGET4OK added in v0.4.0

func NewGetPolicyUsingGET4OK() *GetPolicyUsingGET4OK

NewGetPolicyUsingGET4OK creates a GetPolicyUsingGET4OK with default headers values

func (*GetPolicyUsingGET4OK) Error added in v0.4.0

func (o *GetPolicyUsingGET4OK) Error() string

func (*GetPolicyUsingGET4OK) GetPayload added in v0.4.0

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

func (*GetPolicyUsingGET4OK) IsClientError added in v0.5.0

func (o *GetPolicyUsingGET4OK) IsClientError() bool

IsClientError returns true when this get policy using g e t4 o k response has a 4xx status code

func (*GetPolicyUsingGET4OK) IsCode added in v0.5.0

func (o *GetPolicyUsingGET4OK) IsCode(code int) bool

IsCode returns true when this get policy using g e t4 o k response a status code equal to that given

func (*GetPolicyUsingGET4OK) IsRedirect added in v0.5.0

func (o *GetPolicyUsingGET4OK) IsRedirect() bool

IsRedirect returns true when this get policy using g e t4 o k response has a 3xx status code

func (*GetPolicyUsingGET4OK) IsServerError added in v0.5.0

func (o *GetPolicyUsingGET4OK) IsServerError() bool

IsServerError returns true when this get policy using g e t4 o k response has a 5xx status code

func (*GetPolicyUsingGET4OK) IsSuccess added in v0.5.0

func (o *GetPolicyUsingGET4OK) IsSuccess() bool

IsSuccess returns true when this get policy using g e t4 o k response has a 2xx status code

func (*GetPolicyUsingGET4OK) String added in v0.5.0

func (o *GetPolicyUsingGET4OK) String() string

type GetPolicyUsingGET4Params added in v0.4.0

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

GetPolicyUsingGET4Params contains all the parameters to send to the API endpoint

for the get policy using g e t 4 operation.

Typically these are written to a http.Request.

func NewGetPolicyUsingGET4Params added in v0.4.0

func NewGetPolicyUsingGET4Params() *GetPolicyUsingGET4Params

NewGetPolicyUsingGET4Params creates a new GetPolicyUsingGET4Params 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 NewGetPolicyUsingGET4ParamsWithContext added in v0.4.0

func NewGetPolicyUsingGET4ParamsWithContext(ctx context.Context) *GetPolicyUsingGET4Params

NewGetPolicyUsingGET4ParamsWithContext creates a new GetPolicyUsingGET4Params object with the ability to set a context for a request.

func NewGetPolicyUsingGET4ParamsWithHTTPClient added in v0.4.0

func NewGetPolicyUsingGET4ParamsWithHTTPClient(client *http.Client) *GetPolicyUsingGET4Params

NewGetPolicyUsingGET4ParamsWithHTTPClient creates a new GetPolicyUsingGET4Params object with the ability to set a custom HTTPClient for a request.

func NewGetPolicyUsingGET4ParamsWithTimeout added in v0.4.0

func NewGetPolicyUsingGET4ParamsWithTimeout(timeout time.Duration) *GetPolicyUsingGET4Params

NewGetPolicyUsingGET4ParamsWithTimeout creates a new GetPolicyUsingGET4Params object with the ability to set a timeout on a request.

func (*GetPolicyUsingGET4Params) SetAPIVersion added in v0.4.0

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

SetAPIVersion adds the apiVersion to the get policy using g e t 4 params

func (*GetPolicyUsingGET4Params) SetContext added in v0.4.0

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

SetContext adds the context to the get policy using g e t 4 params

func (*GetPolicyUsingGET4Params) SetDefaults added in v0.4.0

func (o *GetPolicyUsingGET4Params) SetDefaults()

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

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

func (*GetPolicyUsingGET4Params) SetHTTPClient added in v0.4.0

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

SetHTTPClient adds the HTTPClient to the get policy using g e t 4 params

func (*GetPolicyUsingGET4Params) SetID added in v0.4.0

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

SetID adds the id to the get policy using g e t 4 params

func (*GetPolicyUsingGET4Params) SetTimeout added in v0.4.0

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

SetTimeout adds the timeout to the get policy using g e t 4 params

func (*GetPolicyUsingGET4Params) WithAPIVersion added in v0.4.0

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

WithAPIVersion adds the aPIVersion to the get policy using g e t 4 params

func (*GetPolicyUsingGET4Params) WithContext added in v0.4.0

WithContext adds the context to the get policy using g e t 4 params

func (*GetPolicyUsingGET4Params) WithDefaults added in v0.4.0

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

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

func (*GetPolicyUsingGET4Params) WithHTTPClient added in v0.4.0

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

WithHTTPClient adds the HTTPClient to the get policy using g e t 4 params

func (*GetPolicyUsingGET4Params) WithID added in v0.4.0

WithID adds the id to the get policy using g e t 4 params

func (*GetPolicyUsingGET4Params) WithTimeout added in v0.4.0

WithTimeout adds the timeout to the get policy using g e t 4 params

func (*GetPolicyUsingGET4Params) WriteToRequest added in v0.4.0

WriteToRequest writes these params to a swagger request

type GetPolicyUsingGET4Reader added in v0.4.0

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

GetPolicyUsingGET4Reader is a Reader for the GetPolicyUsingGET4 structure.

func (*GetPolicyUsingGET4Reader) ReadResponse added in v0.4.0

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

ReadResponse reads a server response into the received o.

type GetPolicyUsingGET4Unauthorized added in v0.4.0

type GetPolicyUsingGET4Unauthorized struct {
}

GetPolicyUsingGET4Unauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetPolicyUsingGET4Unauthorized added in v0.4.0

func NewGetPolicyUsingGET4Unauthorized() *GetPolicyUsingGET4Unauthorized

NewGetPolicyUsingGET4Unauthorized creates a GetPolicyUsingGET4Unauthorized with default headers values

func (*GetPolicyUsingGET4Unauthorized) Error added in v0.4.0

func (*GetPolicyUsingGET4Unauthorized) IsClientError added in v0.5.0

func (o *GetPolicyUsingGET4Unauthorized) IsClientError() bool

IsClientError returns true when this get policy using g e t4 unauthorized response has a 4xx status code

func (*GetPolicyUsingGET4Unauthorized) IsCode added in v0.5.0

func (o *GetPolicyUsingGET4Unauthorized) IsCode(code int) bool

IsCode returns true when this get policy using g e t4 unauthorized response a status code equal to that given

func (*GetPolicyUsingGET4Unauthorized) IsRedirect added in v0.5.0

func (o *GetPolicyUsingGET4Unauthorized) IsRedirect() bool

IsRedirect returns true when this get policy using g e t4 unauthorized response has a 3xx status code

func (*GetPolicyUsingGET4Unauthorized) IsServerError added in v0.5.0

func (o *GetPolicyUsingGET4Unauthorized) IsServerError() bool

IsServerError returns true when this get policy using g e t4 unauthorized response has a 5xx status code

func (*GetPolicyUsingGET4Unauthorized) IsSuccess added in v0.5.0

func (o *GetPolicyUsingGET4Unauthorized) IsSuccess() bool

IsSuccess returns true when this get policy using g e t4 unauthorized response has a 2xx status code

func (*GetPolicyUsingGET4Unauthorized) String added in v0.5.0

type UpdatePolicyUsingPUT2NotFound added in v0.4.0

type UpdatePolicyUsingPUT2NotFound struct {
	Payload *models.Error
}

UpdatePolicyUsingPUT2NotFound describes a response with status code 404, with default header values.

Not Found

func NewUpdatePolicyUsingPUT2NotFound added in v0.4.0

func NewUpdatePolicyUsingPUT2NotFound() *UpdatePolicyUsingPUT2NotFound

NewUpdatePolicyUsingPUT2NotFound creates a UpdatePolicyUsingPUT2NotFound with default headers values

func (*UpdatePolicyUsingPUT2NotFound) Error added in v0.4.0

func (*UpdatePolicyUsingPUT2NotFound) GetPayload added in v0.4.0

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

func (*UpdatePolicyUsingPUT2NotFound) IsClientError added in v0.5.0

func (o *UpdatePolicyUsingPUT2NotFound) IsClientError() bool

IsClientError returns true when this update policy using p u t2 not found response has a 4xx status code

func (*UpdatePolicyUsingPUT2NotFound) IsCode added in v0.5.0

func (o *UpdatePolicyUsingPUT2NotFound) IsCode(code int) bool

IsCode returns true when this update policy using p u t2 not found response a status code equal to that given

func (*UpdatePolicyUsingPUT2NotFound) IsRedirect added in v0.5.0

func (o *UpdatePolicyUsingPUT2NotFound) IsRedirect() bool

IsRedirect returns true when this update policy using p u t2 not found response has a 3xx status code

func (*UpdatePolicyUsingPUT2NotFound) IsServerError added in v0.5.0

func (o *UpdatePolicyUsingPUT2NotFound) IsServerError() bool

IsServerError returns true when this update policy using p u t2 not found response has a 5xx status code

func (*UpdatePolicyUsingPUT2NotFound) IsSuccess added in v0.5.0

func (o *UpdatePolicyUsingPUT2NotFound) IsSuccess() bool

IsSuccess returns true when this update policy using p u t2 not found response has a 2xx status code

func (*UpdatePolicyUsingPUT2NotFound) String added in v0.5.0

type UpdatePolicyUsingPUT2OK added in v0.4.0

type UpdatePolicyUsingPUT2OK struct {
	Payload *models.MeteringPolicy
}

UpdatePolicyUsingPUT2OK describes a response with status code 200, with default header values.

OK

func NewUpdatePolicyUsingPUT2OK added in v0.4.0

func NewUpdatePolicyUsingPUT2OK() *UpdatePolicyUsingPUT2OK

NewUpdatePolicyUsingPUT2OK creates a UpdatePolicyUsingPUT2OK with default headers values

func (*UpdatePolicyUsingPUT2OK) Error added in v0.4.0

func (o *UpdatePolicyUsingPUT2OK) Error() string

func (*UpdatePolicyUsingPUT2OK) GetPayload added in v0.4.0

func (*UpdatePolicyUsingPUT2OK) IsClientError added in v0.5.0

func (o *UpdatePolicyUsingPUT2OK) IsClientError() bool

IsClientError returns true when this update policy using p u t2 o k response has a 4xx status code

func (*UpdatePolicyUsingPUT2OK) IsCode added in v0.5.0

func (o *UpdatePolicyUsingPUT2OK) IsCode(code int) bool

IsCode returns true when this update policy using p u t2 o k response a status code equal to that given

func (*UpdatePolicyUsingPUT2OK) IsRedirect added in v0.5.0

func (o *UpdatePolicyUsingPUT2OK) IsRedirect() bool

IsRedirect returns true when this update policy using p u t2 o k response has a 3xx status code

func (*UpdatePolicyUsingPUT2OK) IsServerError added in v0.5.0

func (o *UpdatePolicyUsingPUT2OK) IsServerError() bool

IsServerError returns true when this update policy using p u t2 o k response has a 5xx status code

func (*UpdatePolicyUsingPUT2OK) IsSuccess added in v0.5.0

func (o *UpdatePolicyUsingPUT2OK) IsSuccess() bool

IsSuccess returns true when this update policy using p u t2 o k response has a 2xx status code

func (*UpdatePolicyUsingPUT2OK) String added in v0.5.0

func (o *UpdatePolicyUsingPUT2OK) String() string

type UpdatePolicyUsingPUT2Params added in v0.4.0

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

UpdatePolicyUsingPUT2Params contains all the parameters to send to the API endpoint

for the update policy using p u t 2 operation.

Typically these are written to a http.Request.

func NewUpdatePolicyUsingPUT2Params added in v0.4.0

func NewUpdatePolicyUsingPUT2Params() *UpdatePolicyUsingPUT2Params

NewUpdatePolicyUsingPUT2Params creates a new UpdatePolicyUsingPUT2Params 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 NewUpdatePolicyUsingPUT2ParamsWithContext added in v0.4.0

func NewUpdatePolicyUsingPUT2ParamsWithContext(ctx context.Context) *UpdatePolicyUsingPUT2Params

NewUpdatePolicyUsingPUT2ParamsWithContext creates a new UpdatePolicyUsingPUT2Params object with the ability to set a context for a request.

func NewUpdatePolicyUsingPUT2ParamsWithHTTPClient added in v0.4.0

func NewUpdatePolicyUsingPUT2ParamsWithHTTPClient(client *http.Client) *UpdatePolicyUsingPUT2Params

NewUpdatePolicyUsingPUT2ParamsWithHTTPClient creates a new UpdatePolicyUsingPUT2Params object with the ability to set a custom HTTPClient for a request.

func NewUpdatePolicyUsingPUT2ParamsWithTimeout added in v0.4.0

func NewUpdatePolicyUsingPUT2ParamsWithTimeout(timeout time.Duration) *UpdatePolicyUsingPUT2Params

NewUpdatePolicyUsingPUT2ParamsWithTimeout creates a new UpdatePolicyUsingPUT2Params object with the ability to set a timeout on a request.

func (*UpdatePolicyUsingPUT2Params) SetAPIVersion added in v0.4.0

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

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

func (*UpdatePolicyUsingPUT2Params) SetContext added in v0.4.0

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

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

func (*UpdatePolicyUsingPUT2Params) SetDefaults added in v0.4.0

func (o *UpdatePolicyUsingPUT2Params) SetDefaults()

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

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

func (*UpdatePolicyUsingPUT2Params) SetHTTPClient added in v0.4.0

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

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

func (*UpdatePolicyUsingPUT2Params) SetID added in v0.4.0

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

func (*UpdatePolicyUsingPUT2Params) SetMeteringPolicy added in v0.4.0

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

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

func (*UpdatePolicyUsingPUT2Params) SetTimeout added in v0.4.0

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

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

func (*UpdatePolicyUsingPUT2Params) WithAPIVersion added in v0.4.0

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

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

func (*UpdatePolicyUsingPUT2Params) WithContext added in v0.4.0

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

func (*UpdatePolicyUsingPUT2Params) WithDefaults added in v0.4.0

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

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

func (*UpdatePolicyUsingPUT2Params) WithHTTPClient added in v0.4.0

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

func (*UpdatePolicyUsingPUT2Params) WithID added in v0.4.0

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

func (*UpdatePolicyUsingPUT2Params) WithMeteringPolicy added in v0.4.0

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

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

func (*UpdatePolicyUsingPUT2Params) WithTimeout added in v0.4.0

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

func (*UpdatePolicyUsingPUT2Params) WriteToRequest added in v0.4.0

WriteToRequest writes these params to a swagger request

type UpdatePolicyUsingPUT2Reader added in v0.4.0

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

UpdatePolicyUsingPUT2Reader is a Reader for the UpdatePolicyUsingPUT2 structure.

func (*UpdatePolicyUsingPUT2Reader) ReadResponse added in v0.4.0

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

ReadResponse reads a server response into the received o.

type UpdatePolicyUsingPUT2Unauthorized added in v0.4.0

type UpdatePolicyUsingPUT2Unauthorized struct {
}

UpdatePolicyUsingPUT2Unauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewUpdatePolicyUsingPUT2Unauthorized added in v0.4.0

func NewUpdatePolicyUsingPUT2Unauthorized() *UpdatePolicyUsingPUT2Unauthorized

NewUpdatePolicyUsingPUT2Unauthorized creates a UpdatePolicyUsingPUT2Unauthorized with default headers values

func (*UpdatePolicyUsingPUT2Unauthorized) Error added in v0.4.0

func (*UpdatePolicyUsingPUT2Unauthorized) IsClientError added in v0.5.0

func (o *UpdatePolicyUsingPUT2Unauthorized) IsClientError() bool

IsClientError returns true when this update policy using p u t2 unauthorized response has a 4xx status code

func (*UpdatePolicyUsingPUT2Unauthorized) IsCode added in v0.5.0

func (o *UpdatePolicyUsingPUT2Unauthorized) IsCode(code int) bool

IsCode returns true when this update policy using p u t2 unauthorized response a status code equal to that given

func (*UpdatePolicyUsingPUT2Unauthorized) IsRedirect added in v0.5.0

func (o *UpdatePolicyUsingPUT2Unauthorized) IsRedirect() bool

IsRedirect returns true when this update policy using p u t2 unauthorized response has a 3xx status code

func (*UpdatePolicyUsingPUT2Unauthorized) IsServerError added in v0.5.0

func (o *UpdatePolicyUsingPUT2Unauthorized) IsServerError() bool

IsServerError returns true when this update policy using p u t2 unauthorized response has a 5xx status code

func (*UpdatePolicyUsingPUT2Unauthorized) IsSuccess added in v0.5.0

func (o *UpdatePolicyUsingPUT2Unauthorized) IsSuccess() bool

IsSuccess returns true when this update policy using p u t2 unauthorized response has a 2xx status code

func (*UpdatePolicyUsingPUT2Unauthorized) String added in v0.5.0

Jump to

Keyboard shortcuts

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