Documentation
¶
Index ¶
- type Client
- func (a *Client) CreatePolicyUsingPOST(params *CreatePolicyUsingPOSTParams) (*CreatePolicyUsingPOSTOK, *CreatePolicyUsingPOSTCreated, error)
- func (a *Client) DeletePolicyUsingDELETE(params *DeletePolicyUsingDELETEParams) (*DeletePolicyUsingDELETEOK, *DeletePolicyUsingDELETENoContent, error)
- func (a *Client) GetPoliciesUsingGET(params *GetPoliciesUsingGETParams) (*GetPoliciesUsingGETOK, error)
- func (a *Client) GetPolicyUsingGET(params *GetPolicyUsingGETParams) (*GetPolicyUsingGETOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdatePolicyUsingPUT(params *UpdatePolicyUsingPUTParams) (*UpdatePolicyUsingPUTOK, error)
- type CreatePolicyUsingPOSTCreated
- type CreatePolicyUsingPOSTOK
- type CreatePolicyUsingPOSTParams
- func NewCreatePolicyUsingPOSTParams() *CreatePolicyUsingPOSTParams
- func NewCreatePolicyUsingPOSTParamsWithContext(ctx context.Context) *CreatePolicyUsingPOSTParams
- func NewCreatePolicyUsingPOSTParamsWithHTTPClient(client *http.Client) *CreatePolicyUsingPOSTParams
- func NewCreatePolicyUsingPOSTParamsWithTimeout(timeout time.Duration) *CreatePolicyUsingPOSTParams
- func (o *CreatePolicyUsingPOSTParams) SetAPIVersion(aPIVersion *string)
- func (o *CreatePolicyUsingPOSTParams) SetContext(ctx context.Context)
- func (o *CreatePolicyUsingPOSTParams) SetHTTPClient(client *http.Client)
- func (o *CreatePolicyUsingPOSTParams) SetMeteringPolicy(meteringPolicy *models.MeteringPolicy)
- func (o *CreatePolicyUsingPOSTParams) SetTimeout(timeout time.Duration)
- func (o *CreatePolicyUsingPOSTParams) WithAPIVersion(aPIVersion *string) *CreatePolicyUsingPOSTParams
- func (o *CreatePolicyUsingPOSTParams) WithContext(ctx context.Context) *CreatePolicyUsingPOSTParams
- func (o *CreatePolicyUsingPOSTParams) WithHTTPClient(client *http.Client) *CreatePolicyUsingPOSTParams
- func (o *CreatePolicyUsingPOSTParams) WithMeteringPolicy(meteringPolicy *models.MeteringPolicy) *CreatePolicyUsingPOSTParams
- func (o *CreatePolicyUsingPOSTParams) WithTimeout(timeout time.Duration) *CreatePolicyUsingPOSTParams
- func (o *CreatePolicyUsingPOSTParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePolicyUsingPOSTReader
- type CreatePolicyUsingPOSTUnauthorized
- type DeletePolicyUsingDELETENoContent
- type DeletePolicyUsingDELETENotFound
- type DeletePolicyUsingDELETEOK
- type DeletePolicyUsingDELETEParams
- func NewDeletePolicyUsingDELETEParams() *DeletePolicyUsingDELETEParams
- func NewDeletePolicyUsingDELETEParamsWithContext(ctx context.Context) *DeletePolicyUsingDELETEParams
- func NewDeletePolicyUsingDELETEParamsWithHTTPClient(client *http.Client) *DeletePolicyUsingDELETEParams
- func NewDeletePolicyUsingDELETEParamsWithTimeout(timeout time.Duration) *DeletePolicyUsingDELETEParams
- func (o *DeletePolicyUsingDELETEParams) SetAPIVersion(aPIVersion *string)
- func (o *DeletePolicyUsingDELETEParams) SetContext(ctx context.Context)
- func (o *DeletePolicyUsingDELETEParams) SetHTTPClient(client *http.Client)
- func (o *DeletePolicyUsingDELETEParams) SetID(id strfmt.UUID)
- func (o *DeletePolicyUsingDELETEParams) SetTimeout(timeout time.Duration)
- func (o *DeletePolicyUsingDELETEParams) WithAPIVersion(aPIVersion *string) *DeletePolicyUsingDELETEParams
- func (o *DeletePolicyUsingDELETEParams) WithContext(ctx context.Context) *DeletePolicyUsingDELETEParams
- func (o *DeletePolicyUsingDELETEParams) WithHTTPClient(client *http.Client) *DeletePolicyUsingDELETEParams
- func (o *DeletePolicyUsingDELETEParams) WithID(id strfmt.UUID) *DeletePolicyUsingDELETEParams
- func (o *DeletePolicyUsingDELETEParams) WithTimeout(timeout time.Duration) *DeletePolicyUsingDELETEParams
- func (o *DeletePolicyUsingDELETEParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePolicyUsingDELETEReader
- type DeletePolicyUsingDELETEUnauthorized
- type GetPoliciesUsingGETOK
- type GetPoliciesUsingGETParams
- func NewGetPoliciesUsingGETParams() *GetPoliciesUsingGETParams
- func NewGetPoliciesUsingGETParamsWithContext(ctx context.Context) *GetPoliciesUsingGETParams
- func NewGetPoliciesUsingGETParamsWithHTTPClient(client *http.Client) *GetPoliciesUsingGETParams
- func NewGetPoliciesUsingGETParamsWithTimeout(timeout time.Duration) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) SetAPIVersion(aPIVersion *string)
- func (o *GetPoliciesUsingGETParams) SetContext(ctx context.Context)
- func (o *GetPoliciesUsingGETParams) SetDollarOrderby(dollarOrderby []string)
- func (o *GetPoliciesUsingGETParams) SetDollarSkip(dollarSkip *int32)
- func (o *GetPoliciesUsingGETParams) SetDollarTop(dollarTop *int32)
- func (o *GetPoliciesUsingGETParams) SetExpandAssignmentInfo(expandAssignmentInfo *bool)
- func (o *GetPoliciesUsingGETParams) SetExpandPricingCard(expandPricingCard *bool)
- func (o *GetPoliciesUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *GetPoliciesUsingGETParams) SetSearch(search *string)
- func (o *GetPoliciesUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *GetPoliciesUsingGETParams) WithAPIVersion(aPIVersion *string) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) WithContext(ctx context.Context) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) WithDollarOrderby(dollarOrderby []string) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) WithDollarSkip(dollarSkip *int32) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) WithDollarTop(dollarTop *int32) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) WithExpandAssignmentInfo(expandAssignmentInfo *bool) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) WithExpandPricingCard(expandPricingCard *bool) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) WithHTTPClient(client *http.Client) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) WithSearch(search *string) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) WithTimeout(timeout time.Duration) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPoliciesUsingGETReader
- type GetPoliciesUsingGETUnauthorized
- type GetPolicyUsingGETNotFound
- type GetPolicyUsingGETOK
- type GetPolicyUsingGETParams
- func NewGetPolicyUsingGETParams() *GetPolicyUsingGETParams
- func NewGetPolicyUsingGETParamsWithContext(ctx context.Context) *GetPolicyUsingGETParams
- func NewGetPolicyUsingGETParamsWithHTTPClient(client *http.Client) *GetPolicyUsingGETParams
- func NewGetPolicyUsingGETParamsWithTimeout(timeout time.Duration) *GetPolicyUsingGETParams
- func (o *GetPolicyUsingGETParams) SetAPIVersion(aPIVersion *string)
- func (o *GetPolicyUsingGETParams) SetContext(ctx context.Context)
- func (o *GetPolicyUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *GetPolicyUsingGETParams) SetID(id strfmt.UUID)
- func (o *GetPolicyUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *GetPolicyUsingGETParams) WithAPIVersion(aPIVersion *string) *GetPolicyUsingGETParams
- func (o *GetPolicyUsingGETParams) WithContext(ctx context.Context) *GetPolicyUsingGETParams
- func (o *GetPolicyUsingGETParams) WithHTTPClient(client *http.Client) *GetPolicyUsingGETParams
- func (o *GetPolicyUsingGETParams) WithID(id strfmt.UUID) *GetPolicyUsingGETParams
- func (o *GetPolicyUsingGETParams) WithTimeout(timeout time.Duration) *GetPolicyUsingGETParams
- func (o *GetPolicyUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPolicyUsingGETReader
- type GetPolicyUsingGETUnauthorized
- type UpdatePolicyUsingPUTNotFound
- type UpdatePolicyUsingPUTOK
- type UpdatePolicyUsingPUTParams
- func NewUpdatePolicyUsingPUTParams() *UpdatePolicyUsingPUTParams
- func NewUpdatePolicyUsingPUTParamsWithContext(ctx context.Context) *UpdatePolicyUsingPUTParams
- func NewUpdatePolicyUsingPUTParamsWithHTTPClient(client *http.Client) *UpdatePolicyUsingPUTParams
- func NewUpdatePolicyUsingPUTParamsWithTimeout(timeout time.Duration) *UpdatePolicyUsingPUTParams
- func (o *UpdatePolicyUsingPUTParams) SetAPIVersion(aPIVersion *string)
- func (o *UpdatePolicyUsingPUTParams) SetContext(ctx context.Context)
- func (o *UpdatePolicyUsingPUTParams) SetHTTPClient(client *http.Client)
- func (o *UpdatePolicyUsingPUTParams) SetID(id strfmt.UUID)
- func (o *UpdatePolicyUsingPUTParams) SetMeteringPolicy(meteringPolicy *models.MeteringPolicy)
- func (o *UpdatePolicyUsingPUTParams) SetTimeout(timeout time.Duration)
- func (o *UpdatePolicyUsingPUTParams) WithAPIVersion(aPIVersion *string) *UpdatePolicyUsingPUTParams
- func (o *UpdatePolicyUsingPUTParams) WithContext(ctx context.Context) *UpdatePolicyUsingPUTParams
- func (o *UpdatePolicyUsingPUTParams) WithHTTPClient(client *http.Client) *UpdatePolicyUsingPUTParams
- func (o *UpdatePolicyUsingPUTParams) WithID(id strfmt.UUID) *UpdatePolicyUsingPUTParams
- func (o *UpdatePolicyUsingPUTParams) WithMeteringPolicy(meteringPolicy *models.MeteringPolicy) *UpdatePolicyUsingPUTParams
- func (o *UpdatePolicyUsingPUTParams) WithTimeout(timeout time.Duration) *UpdatePolicyUsingPUTParams
- func (o *UpdatePolicyUsingPUTParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdatePolicyUsingPUTReader
- type UpdatePolicyUsingPUTUnauthorized
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 ¶
func (a *Client) CreatePolicyUsingPOST(params *CreatePolicyUsingPOSTParams) (*CreatePolicyUsingPOSTOK, *CreatePolicyUsingPOSTCreated, error)
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 ¶
func (a *Client) DeletePolicyUsingDELETE(params *DeletePolicyUsingDELETEParams) (*DeletePolicyUsingDELETEOK, *DeletePolicyUsingDELETENoContent, error)
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 (o *CreatePolicyUsingPOSTCreated) Error() string
func (*CreatePolicyUsingPOSTCreated) GetPayload ¶
func (o *CreatePolicyUsingPOSTCreated) GetPayload() *models.MeteringPolicy
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 ¶
func (o *CreatePolicyUsingPOSTOK) GetPayload() *models.MeteringPolicy
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 ¶
func (o *CreatePolicyUsingPOSTParams) WithContext(ctx context.Context) *CreatePolicyUsingPOSTParams
WithContext adds the context to the create policy using p o s t params
func (*CreatePolicyUsingPOSTParams) WithHTTPClient ¶
func (o *CreatePolicyUsingPOSTParams) WithHTTPClient(client *http.Client) *CreatePolicyUsingPOSTParams
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 ¶
func (o *CreatePolicyUsingPOSTParams) WithTimeout(timeout time.Duration) *CreatePolicyUsingPOSTParams
WithTimeout adds the timeout to the create policy using p o s t params
func (*CreatePolicyUsingPOSTParams) WriteToRequest ¶
func (o *CreatePolicyUsingPOSTParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CreatePolicyUsingPOSTUnauthorized) Error() string
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 ¶
func (o *DeletePolicyUsingDELETENoContent) Error() string
type DeletePolicyUsingDELETENotFound ¶
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 (o *DeletePolicyUsingDELETENotFound) Error() string
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 ¶
func (o *DeletePolicyUsingDELETEParams) SetID(id strfmt.UUID)
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 ¶
func (o *DeletePolicyUsingDELETEParams) WithContext(ctx context.Context) *DeletePolicyUsingDELETEParams
WithContext adds the context to the delete policy using d e l e t e params
func (*DeletePolicyUsingDELETEParams) WithHTTPClient ¶
func (o *DeletePolicyUsingDELETEParams) WithHTTPClient(client *http.Client) *DeletePolicyUsingDELETEParams
WithHTTPClient adds the HTTPClient to the delete policy using d e l e t e params
func (*DeletePolicyUsingDELETEParams) WithID ¶
func (o *DeletePolicyUsingDELETEParams) WithID(id strfmt.UUID) *DeletePolicyUsingDELETEParams
WithID adds the id to the delete policy using d e l e t e params
func (*DeletePolicyUsingDELETEParams) WithTimeout ¶
func (o *DeletePolicyUsingDELETEParams) WithTimeout(timeout time.Duration) *DeletePolicyUsingDELETEParams
WithTimeout adds the timeout to the delete policy using d e l e t e params
func (*DeletePolicyUsingDELETEParams) WriteToRequest ¶
func (o *DeletePolicyUsingDELETEParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DeletePolicyUsingDELETEUnauthorized) Error() string
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 ¶
func (o *GetPoliciesUsingGETOK) GetPayload() *models.PageOfMeteringPolicy
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 ¶
func (o *GetPoliciesUsingGETParams) WithContext(ctx context.Context) *GetPoliciesUsingGETParams
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 ¶
func (o *GetPoliciesUsingGETParams) WithSearch(search *string) *GetPoliciesUsingGETParams
WithSearch adds the search to the get policies using get params
func (*GetPoliciesUsingGETParams) WithTimeout ¶
func (o *GetPoliciesUsingGETParams) WithTimeout(timeout time.Duration) *GetPoliciesUsingGETParams
WithTimeout adds the timeout to the get policies using get params
func (*GetPoliciesUsingGETParams) WriteToRequest ¶
func (o *GetPoliciesUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetPoliciesUsingGETUnauthorized) Error() string
type GetPolicyUsingGETNotFound ¶
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 ¶
func (o *GetPolicyUsingGETParams) WithContext(ctx context.Context) *GetPolicyUsingGETParams
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 ¶
func (o *GetPolicyUsingGETParams) WithID(id strfmt.UUID) *GetPolicyUsingGETParams
WithID adds the id to the get policy using get params
func (*GetPolicyUsingGETParams) WithTimeout ¶
func (o *GetPolicyUsingGETParams) WithTimeout(timeout time.Duration) *GetPolicyUsingGETParams
WithTimeout adds the timeout to the get policy using get params
func (*GetPolicyUsingGETParams) WriteToRequest ¶
func (o *GetPolicyUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetPolicyUsingGETUnauthorized) Error() string
type UpdatePolicyUsingPUTNotFound ¶
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 (o *UpdatePolicyUsingPUTNotFound) Error() string
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 ¶
func (o *UpdatePolicyUsingPUTParams) WithContext(ctx context.Context) *UpdatePolicyUsingPUTParams
WithContext adds the context to the update policy using p u t params
func (*UpdatePolicyUsingPUTParams) WithHTTPClient ¶
func (o *UpdatePolicyUsingPUTParams) WithHTTPClient(client *http.Client) *UpdatePolicyUsingPUTParams
WithHTTPClient adds the HTTPClient to the update policy using p u t params
func (*UpdatePolicyUsingPUTParams) WithID ¶
func (o *UpdatePolicyUsingPUTParams) WithID(id strfmt.UUID) *UpdatePolicyUsingPUTParams
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 ¶
func (o *UpdatePolicyUsingPUTParams) WithTimeout(timeout time.Duration) *UpdatePolicyUsingPUTParams
WithTimeout adds the timeout to the update policy using p u t params
func (*UpdatePolicyUsingPUTParams) WriteToRequest ¶
func (o *UpdatePolicyUsingPUTParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *UpdatePolicyUsingPUTUnauthorized) Error() string
Source Files
¶
- create_policy_using_post_parameters.go
- create_policy_using_post_responses.go
- delete_policy_using_delete_parameters.go
- delete_policy_using_delete_responses.go
- get_policies_using_get_parameters.go
- get_policies_using_get_responses.go
- get_policy_using_get_parameters.go
- get_policy_using_get_responses.go
- pricing_cards_client.go
- update_policy_using_put_parameters.go
- update_policy_using_put_responses.go