usage_cost

package
v0.0.0-...-4ac4f36 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for usage cost API

func (*Client) GetForCategory

func (a *Client) GetForCategory(params *GetForCategoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetForCategoryOK, error)

GetForCategory get for category API

func (*Client) GetForOrganization

func (a *Client) GetForOrganization(params *GetForOrganizationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetForOrganizationOK, error)

GetForOrganization get for organization API

func (*Client) GetForSubcategory

func (a *Client) GetForSubcategory(params *GetForSubcategoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetForSubcategoryOK, error)

GetForSubcategory get for subcategory API

func (*Client) GetForSubscription

func (a *Client) GetForSubscription(params *GetForSubscriptionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetForSubscriptionOK, error)

GetForSubscription get for subscription API

func (*Client) PostForResourceGroup

func (a *Client) PostForResourceGroup(params *PostForResourceGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostForResourceGroupOK, error)

PostForResourceGroup post for resource group API

func (*Client) PostForSubscriptionWithResourceGroups

func (a *Client) PostForSubscriptionWithResourceGroups(params *PostForSubscriptionWithResourceGroupsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostForSubscriptionWithResourceGroupsOK, error)

PostForSubscriptionWithResourceGroups post for subscription with resource groups API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetForCategory(params *GetForCategoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetForCategoryOK, error)

	GetForOrganization(params *GetForOrganizationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetForOrganizationOK, error)

	GetForSubcategory(params *GetForSubcategoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetForSubcategoryOK, error)

	GetForSubscription(params *GetForSubscriptionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetForSubscriptionOK, error)

	PostForResourceGroup(params *PostForResourceGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostForResourceGroupOK, error)

	PostForSubscriptionWithResourceGroups(params *PostForSubscriptionWithResourceGroupsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostForSubscriptionWithResourceGroupsOK, 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 usage cost API client.

type GetForCategoryOK

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

Success

func NewGetForCategoryOK

func NewGetForCategoryOK() *GetForCategoryOK

NewGetForCategoryOK creates a GetForCategoryOK with default headers values

func (*GetForCategoryOK) Error

func (o *GetForCategoryOK) Error() string

func (*GetForCategoryOK) GetPayload

type GetForCategoryParams

type GetForCategoryParams struct {

	// Model.
	Model *models.CategoryUsageCostRequest

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

GetForCategoryParams contains all the parameters to send to the API endpoint

for the get for category operation.

Typically these are written to a http.Request.

func NewGetForCategoryParams

func NewGetForCategoryParams() *GetForCategoryParams

NewGetForCategoryParams creates a new GetForCategoryParams 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 NewGetForCategoryParamsWithContext

func NewGetForCategoryParamsWithContext(ctx context.Context) *GetForCategoryParams

NewGetForCategoryParamsWithContext creates a new GetForCategoryParams object with the ability to set a context for a request.

func NewGetForCategoryParamsWithHTTPClient

func NewGetForCategoryParamsWithHTTPClient(client *http.Client) *GetForCategoryParams

NewGetForCategoryParamsWithHTTPClient creates a new GetForCategoryParams object with the ability to set a custom HTTPClient for a request.

func NewGetForCategoryParamsWithTimeout

func NewGetForCategoryParamsWithTimeout(timeout time.Duration) *GetForCategoryParams

NewGetForCategoryParamsWithTimeout creates a new GetForCategoryParams object with the ability to set a timeout on a request.

func (*GetForCategoryParams) SetContext

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

SetContext adds the context to the get for category params

func (*GetForCategoryParams) SetDefaults

func (o *GetForCategoryParams) SetDefaults()

SetDefaults hydrates default values in the get for category params (not the query body).

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

func (*GetForCategoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get for category params

func (*GetForCategoryParams) SetModel

SetModel adds the model to the get for category params

func (*GetForCategoryParams) SetTimeout

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

SetTimeout adds the timeout to the get for category params

func (*GetForCategoryParams) WithContext

WithContext adds the context to the get for category params

func (*GetForCategoryParams) WithDefaults

func (o *GetForCategoryParams) WithDefaults() *GetForCategoryParams

WithDefaults hydrates default values in the get for category params (not the query body).

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

func (*GetForCategoryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get for category params

func (*GetForCategoryParams) WithModel

WithModel adds the model to the get for category params

func (*GetForCategoryParams) WithTimeout

func (o *GetForCategoryParams) WithTimeout(timeout time.Duration) *GetForCategoryParams

WithTimeout adds the timeout to the get for category params

func (*GetForCategoryParams) WriteToRequest

func (o *GetForCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetForCategoryReader

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

GetForCategoryReader is a Reader for the GetForCategory structure.

func (*GetForCategoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetForOrganizationOK

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

Success

func NewGetForOrganizationOK

func NewGetForOrganizationOK() *GetForOrganizationOK

NewGetForOrganizationOK creates a GetForOrganizationOK with default headers values

func (*GetForOrganizationOK) Error

func (o *GetForOrganizationOK) Error() string

func (*GetForOrganizationOK) GetPayload

type GetForOrganizationParams

type GetForOrganizationParams struct {

	// From.
	//
	// Format: date-time
	From *strfmt.DateTime

	// OrganizationID.
	//
	// Format: int32
	OrganizationID int32

	// To.
	//
	// Format: date-time
	To *strfmt.DateTime

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

GetForOrganizationParams contains all the parameters to send to the API endpoint

for the get for organization operation.

Typically these are written to a http.Request.

func NewGetForOrganizationParams

func NewGetForOrganizationParams() *GetForOrganizationParams

NewGetForOrganizationParams creates a new GetForOrganizationParams 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 NewGetForOrganizationParamsWithContext

func NewGetForOrganizationParamsWithContext(ctx context.Context) *GetForOrganizationParams

NewGetForOrganizationParamsWithContext creates a new GetForOrganizationParams object with the ability to set a context for a request.

func NewGetForOrganizationParamsWithHTTPClient

func NewGetForOrganizationParamsWithHTTPClient(client *http.Client) *GetForOrganizationParams

NewGetForOrganizationParamsWithHTTPClient creates a new GetForOrganizationParams object with the ability to set a custom HTTPClient for a request.

func NewGetForOrganizationParamsWithTimeout

func NewGetForOrganizationParamsWithTimeout(timeout time.Duration) *GetForOrganizationParams

NewGetForOrganizationParamsWithTimeout creates a new GetForOrganizationParams object with the ability to set a timeout on a request.

func (*GetForOrganizationParams) SetContext

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

SetContext adds the context to the get for organization params

func (*GetForOrganizationParams) SetDefaults

func (o *GetForOrganizationParams) SetDefaults()

SetDefaults hydrates default values in the get for organization params (not the query body).

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

func (*GetForOrganizationParams) SetFrom

func (o *GetForOrganizationParams) SetFrom(from *strfmt.DateTime)

SetFrom adds the from to the get for organization params

func (*GetForOrganizationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get for organization params

func (*GetForOrganizationParams) SetOrganizationID

func (o *GetForOrganizationParams) SetOrganizationID(organizationID int32)

SetOrganizationID adds the organizationId to the get for organization params

func (*GetForOrganizationParams) SetTimeout

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

SetTimeout adds the timeout to the get for organization params

func (*GetForOrganizationParams) SetTo

SetTo adds the to to the get for organization params

func (*GetForOrganizationParams) WithContext

WithContext adds the context to the get for organization params

func (*GetForOrganizationParams) WithDefaults

WithDefaults hydrates default values in the get for organization params (not the query body).

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

func (*GetForOrganizationParams) WithFrom

WithFrom adds the from to the get for organization params

func (*GetForOrganizationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get for organization params

func (*GetForOrganizationParams) WithOrganizationID

func (o *GetForOrganizationParams) WithOrganizationID(organizationID int32) *GetForOrganizationParams

WithOrganizationID adds the organizationID to the get for organization params

func (*GetForOrganizationParams) WithTimeout

WithTimeout adds the timeout to the get for organization params

func (*GetForOrganizationParams) WithTo

WithTo adds the to to the get for organization params

func (*GetForOrganizationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetForOrganizationReader

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

GetForOrganizationReader is a Reader for the GetForOrganization structure.

func (*GetForOrganizationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetForSubcategoryOK

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

Success

func NewGetForSubcategoryOK

func NewGetForSubcategoryOK() *GetForSubcategoryOK

NewGetForSubcategoryOK creates a GetForSubcategoryOK with default headers values

func (*GetForSubcategoryOK) Error

func (o *GetForSubcategoryOK) Error() string

func (*GetForSubcategoryOK) GetPayload

type GetForSubcategoryParams

type GetForSubcategoryParams struct {

	// Model.
	Model *models.SubcategoryUsageCostRequest

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

GetForSubcategoryParams contains all the parameters to send to the API endpoint

for the get for subcategory operation.

Typically these are written to a http.Request.

func NewGetForSubcategoryParams

func NewGetForSubcategoryParams() *GetForSubcategoryParams

NewGetForSubcategoryParams creates a new GetForSubcategoryParams 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 NewGetForSubcategoryParamsWithContext

func NewGetForSubcategoryParamsWithContext(ctx context.Context) *GetForSubcategoryParams

NewGetForSubcategoryParamsWithContext creates a new GetForSubcategoryParams object with the ability to set a context for a request.

func NewGetForSubcategoryParamsWithHTTPClient

func NewGetForSubcategoryParamsWithHTTPClient(client *http.Client) *GetForSubcategoryParams

NewGetForSubcategoryParamsWithHTTPClient creates a new GetForSubcategoryParams object with the ability to set a custom HTTPClient for a request.

func NewGetForSubcategoryParamsWithTimeout

func NewGetForSubcategoryParamsWithTimeout(timeout time.Duration) *GetForSubcategoryParams

NewGetForSubcategoryParamsWithTimeout creates a new GetForSubcategoryParams object with the ability to set a timeout on a request.

func (*GetForSubcategoryParams) SetContext

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

SetContext adds the context to the get for subcategory params

func (*GetForSubcategoryParams) SetDefaults

func (o *GetForSubcategoryParams) SetDefaults()

SetDefaults hydrates default values in the get for subcategory params (not the query body).

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

func (*GetForSubcategoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get for subcategory params

func (*GetForSubcategoryParams) SetModel

SetModel adds the model to the get for subcategory params

func (*GetForSubcategoryParams) SetTimeout

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

SetTimeout adds the timeout to the get for subcategory params

func (*GetForSubcategoryParams) WithContext

WithContext adds the context to the get for subcategory params

func (*GetForSubcategoryParams) WithDefaults

WithDefaults hydrates default values in the get for subcategory params (not the query body).

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

func (*GetForSubcategoryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get for subcategory params

func (*GetForSubcategoryParams) WithModel

WithModel adds the model to the get for subcategory params

func (*GetForSubcategoryParams) WithTimeout

WithTimeout adds the timeout to the get for subcategory params

func (*GetForSubcategoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetForSubcategoryReader

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

GetForSubcategoryReader is a Reader for the GetForSubcategory structure.

func (*GetForSubcategoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetForSubscriptionOK

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

Success

func NewGetForSubscriptionOK

func NewGetForSubscriptionOK() *GetForSubscriptionOK

NewGetForSubscriptionOK creates a GetForSubscriptionOK with default headers values

func (*GetForSubscriptionOK) Error

func (o *GetForSubscriptionOK) Error() string

func (*GetForSubscriptionOK) GetPayload

type GetForSubscriptionParams

type GetForSubscriptionParams struct {

	// Model.
	Model *models.SubscriptionUsageCostRequest

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

GetForSubscriptionParams contains all the parameters to send to the API endpoint

for the get for subscription operation.

Typically these are written to a http.Request.

func NewGetForSubscriptionParams

func NewGetForSubscriptionParams() *GetForSubscriptionParams

NewGetForSubscriptionParams creates a new GetForSubscriptionParams 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 NewGetForSubscriptionParamsWithContext

func NewGetForSubscriptionParamsWithContext(ctx context.Context) *GetForSubscriptionParams

NewGetForSubscriptionParamsWithContext creates a new GetForSubscriptionParams object with the ability to set a context for a request.

func NewGetForSubscriptionParamsWithHTTPClient

func NewGetForSubscriptionParamsWithHTTPClient(client *http.Client) *GetForSubscriptionParams

NewGetForSubscriptionParamsWithHTTPClient creates a new GetForSubscriptionParams object with the ability to set a custom HTTPClient for a request.

func NewGetForSubscriptionParamsWithTimeout

func NewGetForSubscriptionParamsWithTimeout(timeout time.Duration) *GetForSubscriptionParams

NewGetForSubscriptionParamsWithTimeout creates a new GetForSubscriptionParams object with the ability to set a timeout on a request.

func (*GetForSubscriptionParams) SetContext

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

SetContext adds the context to the get for subscription params

func (*GetForSubscriptionParams) SetDefaults

func (o *GetForSubscriptionParams) SetDefaults()

SetDefaults hydrates default values in the get for subscription params (not the query body).

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

func (*GetForSubscriptionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get for subscription params

func (*GetForSubscriptionParams) SetModel

SetModel adds the model to the get for subscription params

func (*GetForSubscriptionParams) SetTimeout

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

SetTimeout adds the timeout to the get for subscription params

func (*GetForSubscriptionParams) WithContext

WithContext adds the context to the get for subscription params

func (*GetForSubscriptionParams) WithDefaults

WithDefaults hydrates default values in the get for subscription params (not the query body).

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

func (*GetForSubscriptionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get for subscription params

func (*GetForSubscriptionParams) WithModel

WithModel adds the model to the get for subscription params

func (*GetForSubscriptionParams) WithTimeout

WithTimeout adds the timeout to the get for subscription params

func (*GetForSubscriptionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetForSubscriptionReader

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

GetForSubscriptionReader is a Reader for the GetForSubscription structure.

func (*GetForSubscriptionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostForResourceGroupOK

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

Success

func NewPostForResourceGroupOK

func NewPostForResourceGroupOK() *PostForResourceGroupOK

NewPostForResourceGroupOK creates a PostForResourceGroupOK with default headers values

func (*PostForResourceGroupOK) Error

func (o *PostForResourceGroupOK) Error() string

func (*PostForResourceGroupOK) GetPayload

type PostForResourceGroupParams

type PostForResourceGroupParams struct {

	// Model.
	Model *models.ResourceGroupUsageCostRequest

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

PostForResourceGroupParams contains all the parameters to send to the API endpoint

for the post for resource group operation.

Typically these are written to a http.Request.

func NewPostForResourceGroupParams

func NewPostForResourceGroupParams() *PostForResourceGroupParams

NewPostForResourceGroupParams creates a new PostForResourceGroupParams 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 NewPostForResourceGroupParamsWithContext

func NewPostForResourceGroupParamsWithContext(ctx context.Context) *PostForResourceGroupParams

NewPostForResourceGroupParamsWithContext creates a new PostForResourceGroupParams object with the ability to set a context for a request.

func NewPostForResourceGroupParamsWithHTTPClient

func NewPostForResourceGroupParamsWithHTTPClient(client *http.Client) *PostForResourceGroupParams

NewPostForResourceGroupParamsWithHTTPClient creates a new PostForResourceGroupParams object with the ability to set a custom HTTPClient for a request.

func NewPostForResourceGroupParamsWithTimeout

func NewPostForResourceGroupParamsWithTimeout(timeout time.Duration) *PostForResourceGroupParams

NewPostForResourceGroupParamsWithTimeout creates a new PostForResourceGroupParams object with the ability to set a timeout on a request.

func (*PostForResourceGroupParams) SetContext

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

SetContext adds the context to the post for resource group params

func (*PostForResourceGroupParams) SetDefaults

func (o *PostForResourceGroupParams) SetDefaults()

SetDefaults hydrates default values in the post for resource group params (not the query body).

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

func (*PostForResourceGroupParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post for resource group params

func (*PostForResourceGroupParams) SetModel

SetModel adds the model to the post for resource group params

func (*PostForResourceGroupParams) SetTimeout

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

SetTimeout adds the timeout to the post for resource group params

func (*PostForResourceGroupParams) WithContext

WithContext adds the context to the post for resource group params

func (*PostForResourceGroupParams) WithDefaults

WithDefaults hydrates default values in the post for resource group params (not the query body).

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

func (*PostForResourceGroupParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post for resource group params

func (*PostForResourceGroupParams) WithModel

WithModel adds the model to the post for resource group params

func (*PostForResourceGroupParams) WithTimeout

WithTimeout adds the timeout to the post for resource group params

func (*PostForResourceGroupParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostForResourceGroupReader

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

PostForResourceGroupReader is a Reader for the PostForResourceGroup structure.

func (*PostForResourceGroupReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostForSubscriptionWithResourceGroupsOK

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

Success

func NewPostForSubscriptionWithResourceGroupsOK

func NewPostForSubscriptionWithResourceGroupsOK() *PostForSubscriptionWithResourceGroupsOK

NewPostForSubscriptionWithResourceGroupsOK creates a PostForSubscriptionWithResourceGroupsOK with default headers values

func (*PostForSubscriptionWithResourceGroupsOK) Error

func (*PostForSubscriptionWithResourceGroupsOK) GetPayload

type PostForSubscriptionWithResourceGroupsParams

type PostForSubscriptionWithResourceGroupsParams struct {

	// Model.
	Model *models.SubscriptionUsageCostRequest

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

PostForSubscriptionWithResourceGroupsParams contains all the parameters to send to the API endpoint

for the post for subscription with resource groups operation.

Typically these are written to a http.Request.

func NewPostForSubscriptionWithResourceGroupsParams

func NewPostForSubscriptionWithResourceGroupsParams() *PostForSubscriptionWithResourceGroupsParams

NewPostForSubscriptionWithResourceGroupsParams creates a new PostForSubscriptionWithResourceGroupsParams 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 NewPostForSubscriptionWithResourceGroupsParamsWithContext

func NewPostForSubscriptionWithResourceGroupsParamsWithContext(ctx context.Context) *PostForSubscriptionWithResourceGroupsParams

NewPostForSubscriptionWithResourceGroupsParamsWithContext creates a new PostForSubscriptionWithResourceGroupsParams object with the ability to set a context for a request.

func NewPostForSubscriptionWithResourceGroupsParamsWithHTTPClient

func NewPostForSubscriptionWithResourceGroupsParamsWithHTTPClient(client *http.Client) *PostForSubscriptionWithResourceGroupsParams

NewPostForSubscriptionWithResourceGroupsParamsWithHTTPClient creates a new PostForSubscriptionWithResourceGroupsParams object with the ability to set a custom HTTPClient for a request.

func NewPostForSubscriptionWithResourceGroupsParamsWithTimeout

func NewPostForSubscriptionWithResourceGroupsParamsWithTimeout(timeout time.Duration) *PostForSubscriptionWithResourceGroupsParams

NewPostForSubscriptionWithResourceGroupsParamsWithTimeout creates a new PostForSubscriptionWithResourceGroupsParams object with the ability to set a timeout on a request.

func (*PostForSubscriptionWithResourceGroupsParams) SetContext

SetContext adds the context to the post for subscription with resource groups params

func (*PostForSubscriptionWithResourceGroupsParams) SetDefaults

SetDefaults hydrates default values in the post for subscription with resource groups params (not the query body).

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

func (*PostForSubscriptionWithResourceGroupsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post for subscription with resource groups params

func (*PostForSubscriptionWithResourceGroupsParams) SetModel

SetModel adds the model to the post for subscription with resource groups params

func (*PostForSubscriptionWithResourceGroupsParams) SetTimeout

SetTimeout adds the timeout to the post for subscription with resource groups params

func (*PostForSubscriptionWithResourceGroupsParams) WithContext

WithContext adds the context to the post for subscription with resource groups params

func (*PostForSubscriptionWithResourceGroupsParams) WithDefaults

WithDefaults hydrates default values in the post for subscription with resource groups params (not the query body).

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

func (*PostForSubscriptionWithResourceGroupsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post for subscription with resource groups params

func (*PostForSubscriptionWithResourceGroupsParams) WithModel

WithModel adds the model to the post for subscription with resource groups params

func (*PostForSubscriptionWithResourceGroupsParams) WithTimeout

WithTimeout adds the timeout to the post for subscription with resource groups params

func (*PostForSubscriptionWithResourceGroupsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostForSubscriptionWithResourceGroupsReader

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

PostForSubscriptionWithResourceGroupsReader is a Reader for the PostForSubscriptionWithResourceGroups structure.

func (*PostForSubscriptionWithResourceGroupsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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