Documentation ¶
Index ¶
- type Client
- func (a *Client) GetForCategory(params *GetForCategoryParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetForCategoryOK, error)
- func (a *Client) GetForOrganization(params *GetForOrganizationParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetForOrganizationOK, error)
- func (a *Client) GetForSubcategory(params *GetForSubcategoryParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetForSubcategoryOK, error)
- func (a *Client) GetForSubscription(params *GetForSubscriptionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetForSubscriptionOK, error)
- func (a *Client) PostForResourceGroup(params *PostForResourceGroupParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostForResourceGroupOK, error)
- func (a *Client) PostForSubscriptionWithResourceGroups(params *PostForSubscriptionWithResourceGroupsParams, ...) (*PostForSubscriptionWithResourceGroupsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetForCategoryOK
- type GetForCategoryParams
- func NewGetForCategoryParams() *GetForCategoryParams
- func NewGetForCategoryParamsWithContext(ctx context.Context) *GetForCategoryParams
- func NewGetForCategoryParamsWithHTTPClient(client *http.Client) *GetForCategoryParams
- func NewGetForCategoryParamsWithTimeout(timeout time.Duration) *GetForCategoryParams
- func (o *GetForCategoryParams) SetContext(ctx context.Context)
- func (o *GetForCategoryParams) SetDefaults()
- func (o *GetForCategoryParams) SetHTTPClient(client *http.Client)
- func (o *GetForCategoryParams) SetModel(model *models.CategoryUsageCostRequest)
- func (o *GetForCategoryParams) SetTimeout(timeout time.Duration)
- func (o *GetForCategoryParams) WithContext(ctx context.Context) *GetForCategoryParams
- func (o *GetForCategoryParams) WithDefaults() *GetForCategoryParams
- func (o *GetForCategoryParams) WithHTTPClient(client *http.Client) *GetForCategoryParams
- func (o *GetForCategoryParams) WithModel(model *models.CategoryUsageCostRequest) *GetForCategoryParams
- func (o *GetForCategoryParams) WithTimeout(timeout time.Duration) *GetForCategoryParams
- func (o *GetForCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetForCategoryReader
- type GetForOrganizationOK
- type GetForOrganizationParams
- func NewGetForOrganizationParams() *GetForOrganizationParams
- func NewGetForOrganizationParamsWithContext(ctx context.Context) *GetForOrganizationParams
- func NewGetForOrganizationParamsWithHTTPClient(client *http.Client) *GetForOrganizationParams
- func NewGetForOrganizationParamsWithTimeout(timeout time.Duration) *GetForOrganizationParams
- func (o *GetForOrganizationParams) SetContext(ctx context.Context)
- func (o *GetForOrganizationParams) SetDefaults()
- func (o *GetForOrganizationParams) SetFrom(from *strfmt.DateTime)
- func (o *GetForOrganizationParams) SetHTTPClient(client *http.Client)
- func (o *GetForOrganizationParams) SetOrganizationID(organizationID int32)
- func (o *GetForOrganizationParams) SetTimeout(timeout time.Duration)
- func (o *GetForOrganizationParams) SetTo(to *strfmt.DateTime)
- func (o *GetForOrganizationParams) WithContext(ctx context.Context) *GetForOrganizationParams
- func (o *GetForOrganizationParams) WithDefaults() *GetForOrganizationParams
- func (o *GetForOrganizationParams) WithFrom(from *strfmt.DateTime) *GetForOrganizationParams
- func (o *GetForOrganizationParams) WithHTTPClient(client *http.Client) *GetForOrganizationParams
- func (o *GetForOrganizationParams) WithOrganizationID(organizationID int32) *GetForOrganizationParams
- func (o *GetForOrganizationParams) WithTimeout(timeout time.Duration) *GetForOrganizationParams
- func (o *GetForOrganizationParams) WithTo(to *strfmt.DateTime) *GetForOrganizationParams
- func (o *GetForOrganizationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetForOrganizationReader
- type GetForSubcategoryOK
- type GetForSubcategoryParams
- func NewGetForSubcategoryParams() *GetForSubcategoryParams
- func NewGetForSubcategoryParamsWithContext(ctx context.Context) *GetForSubcategoryParams
- func NewGetForSubcategoryParamsWithHTTPClient(client *http.Client) *GetForSubcategoryParams
- func NewGetForSubcategoryParamsWithTimeout(timeout time.Duration) *GetForSubcategoryParams
- func (o *GetForSubcategoryParams) SetContext(ctx context.Context)
- func (o *GetForSubcategoryParams) SetDefaults()
- func (o *GetForSubcategoryParams) SetHTTPClient(client *http.Client)
- func (o *GetForSubcategoryParams) SetModel(model *models.SubcategoryUsageCostRequest)
- func (o *GetForSubcategoryParams) SetTimeout(timeout time.Duration)
- func (o *GetForSubcategoryParams) WithContext(ctx context.Context) *GetForSubcategoryParams
- func (o *GetForSubcategoryParams) WithDefaults() *GetForSubcategoryParams
- func (o *GetForSubcategoryParams) WithHTTPClient(client *http.Client) *GetForSubcategoryParams
- func (o *GetForSubcategoryParams) WithModel(model *models.SubcategoryUsageCostRequest) *GetForSubcategoryParams
- func (o *GetForSubcategoryParams) WithTimeout(timeout time.Duration) *GetForSubcategoryParams
- func (o *GetForSubcategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetForSubcategoryReader
- type GetForSubscriptionOK
- type GetForSubscriptionParams
- func NewGetForSubscriptionParams() *GetForSubscriptionParams
- func NewGetForSubscriptionParamsWithContext(ctx context.Context) *GetForSubscriptionParams
- func NewGetForSubscriptionParamsWithHTTPClient(client *http.Client) *GetForSubscriptionParams
- func NewGetForSubscriptionParamsWithTimeout(timeout time.Duration) *GetForSubscriptionParams
- func (o *GetForSubscriptionParams) SetContext(ctx context.Context)
- func (o *GetForSubscriptionParams) SetDefaults()
- func (o *GetForSubscriptionParams) SetHTTPClient(client *http.Client)
- func (o *GetForSubscriptionParams) SetModel(model *models.SubscriptionUsageCostRequest)
- func (o *GetForSubscriptionParams) SetTimeout(timeout time.Duration)
- func (o *GetForSubscriptionParams) WithContext(ctx context.Context) *GetForSubscriptionParams
- func (o *GetForSubscriptionParams) WithDefaults() *GetForSubscriptionParams
- func (o *GetForSubscriptionParams) WithHTTPClient(client *http.Client) *GetForSubscriptionParams
- func (o *GetForSubscriptionParams) WithModel(model *models.SubscriptionUsageCostRequest) *GetForSubscriptionParams
- func (o *GetForSubscriptionParams) WithTimeout(timeout time.Duration) *GetForSubscriptionParams
- func (o *GetForSubscriptionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetForSubscriptionReader
- type PostForResourceGroupOK
- type PostForResourceGroupParams
- func NewPostForResourceGroupParams() *PostForResourceGroupParams
- func NewPostForResourceGroupParamsWithContext(ctx context.Context) *PostForResourceGroupParams
- func NewPostForResourceGroupParamsWithHTTPClient(client *http.Client) *PostForResourceGroupParams
- func NewPostForResourceGroupParamsWithTimeout(timeout time.Duration) *PostForResourceGroupParams
- func (o *PostForResourceGroupParams) SetContext(ctx context.Context)
- func (o *PostForResourceGroupParams) SetDefaults()
- func (o *PostForResourceGroupParams) SetHTTPClient(client *http.Client)
- func (o *PostForResourceGroupParams) SetModel(model *models.ResourceGroupUsageCostRequest)
- func (o *PostForResourceGroupParams) SetTimeout(timeout time.Duration)
- func (o *PostForResourceGroupParams) WithContext(ctx context.Context) *PostForResourceGroupParams
- func (o *PostForResourceGroupParams) WithDefaults() *PostForResourceGroupParams
- func (o *PostForResourceGroupParams) WithHTTPClient(client *http.Client) *PostForResourceGroupParams
- func (o *PostForResourceGroupParams) WithModel(model *models.ResourceGroupUsageCostRequest) *PostForResourceGroupParams
- func (o *PostForResourceGroupParams) WithTimeout(timeout time.Duration) *PostForResourceGroupParams
- func (o *PostForResourceGroupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostForResourceGroupReader
- type PostForSubscriptionWithResourceGroupsOK
- type PostForSubscriptionWithResourceGroupsParams
- func NewPostForSubscriptionWithResourceGroupsParams() *PostForSubscriptionWithResourceGroupsParams
- func NewPostForSubscriptionWithResourceGroupsParamsWithContext(ctx context.Context) *PostForSubscriptionWithResourceGroupsParams
- func NewPostForSubscriptionWithResourceGroupsParamsWithHTTPClient(client *http.Client) *PostForSubscriptionWithResourceGroupsParams
- func NewPostForSubscriptionWithResourceGroupsParamsWithTimeout(timeout time.Duration) *PostForSubscriptionWithResourceGroupsParams
- func (o *PostForSubscriptionWithResourceGroupsParams) SetContext(ctx context.Context)
- func (o *PostForSubscriptionWithResourceGroupsParams) SetDefaults()
- func (o *PostForSubscriptionWithResourceGroupsParams) SetHTTPClient(client *http.Client)
- func (o *PostForSubscriptionWithResourceGroupsParams) SetModel(model *models.SubscriptionUsageCostRequest)
- func (o *PostForSubscriptionWithResourceGroupsParams) SetTimeout(timeout time.Duration)
- func (o *PostForSubscriptionWithResourceGroupsParams) WithContext(ctx context.Context) *PostForSubscriptionWithResourceGroupsParams
- func (o *PostForSubscriptionWithResourceGroupsParams) WithDefaults() *PostForSubscriptionWithResourceGroupsParams
- func (o *PostForSubscriptionWithResourceGroupsParams) WithHTTPClient(client *http.Client) *PostForSubscriptionWithResourceGroupsParams
- func (o *PostForSubscriptionWithResourceGroupsParams) WithModel(model *models.SubscriptionUsageCostRequest) *PostForSubscriptionWithResourceGroupsParams
- func (o *PostForSubscriptionWithResourceGroupsParams) WithTimeout(timeout time.Duration) *PostForSubscriptionWithResourceGroupsParams
- func (o *PostForSubscriptionWithResourceGroupsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostForSubscriptionWithResourceGroupsReader
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 ¶
func (o *GetForCategoryOK) GetPayload() *models.APICollectionOfCategoryUsageCost
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 ¶
func (o *GetForCategoryParams) SetModel(model *models.CategoryUsageCostRequest)
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 ¶
func (o *GetForCategoryParams) WithContext(ctx context.Context) *GetForCategoryParams
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 ¶
func (o *GetForCategoryParams) WithModel(model *models.CategoryUsageCostRequest) *GetForCategoryParams
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 ¶
func (o *GetForOrganizationOK) GetPayload() *models.APICollectionOfOrganizationUsageCost
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 ¶
func (o *GetForOrganizationParams) SetTo(to *strfmt.DateTime)
SetTo adds the to to the get for organization params
func (*GetForOrganizationParams) WithContext ¶
func (o *GetForOrganizationParams) WithContext(ctx context.Context) *GetForOrganizationParams
WithContext adds the context to the get for organization params
func (*GetForOrganizationParams) WithDefaults ¶
func (o *GetForOrganizationParams) WithDefaults() *GetForOrganizationParams
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 ¶
func (o *GetForOrganizationParams) WithFrom(from *strfmt.DateTime) *GetForOrganizationParams
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 ¶
func (o *GetForOrganizationParams) WithTimeout(timeout time.Duration) *GetForOrganizationParams
WithTimeout adds the timeout to the get for organization params
func (*GetForOrganizationParams) WithTo ¶
func (o *GetForOrganizationParams) WithTo(to *strfmt.DateTime) *GetForOrganizationParams
WithTo adds the to to the get for organization params
func (*GetForOrganizationParams) WriteToRequest ¶
func (o *GetForOrganizationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetForSubcategoryOK) GetPayload() *models.APICollectionOfSubcategoryUsageCost
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 ¶
func (o *GetForSubcategoryParams) SetModel(model *models.SubcategoryUsageCostRequest)
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 ¶
func (o *GetForSubcategoryParams) WithContext(ctx context.Context) *GetForSubcategoryParams
WithContext adds the context to the get for subcategory params
func (*GetForSubcategoryParams) WithDefaults ¶
func (o *GetForSubcategoryParams) WithDefaults() *GetForSubcategoryParams
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 ¶
func (o *GetForSubcategoryParams) WithModel(model *models.SubcategoryUsageCostRequest) *GetForSubcategoryParams
WithModel adds the model to the get for subcategory params
func (*GetForSubcategoryParams) WithTimeout ¶
func (o *GetForSubcategoryParams) WithTimeout(timeout time.Duration) *GetForSubcategoryParams
WithTimeout adds the timeout to the get for subcategory params
func (*GetForSubcategoryParams) WriteToRequest ¶
func (o *GetForSubcategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetForSubscriptionOK) GetPayload() *models.APICollectionOfSubscriptionUsageCost
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 ¶
func (o *GetForSubscriptionParams) SetModel(model *models.SubscriptionUsageCostRequest)
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 ¶
func (o *GetForSubscriptionParams) WithContext(ctx context.Context) *GetForSubscriptionParams
WithContext adds the context to the get for subscription params
func (*GetForSubscriptionParams) WithDefaults ¶
func (o *GetForSubscriptionParams) WithDefaults() *GetForSubscriptionParams
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 ¶
func (o *GetForSubscriptionParams) WithModel(model *models.SubscriptionUsageCostRequest) *GetForSubscriptionParams
WithModel adds the model to the get for subscription params
func (*GetForSubscriptionParams) WithTimeout ¶
func (o *GetForSubscriptionParams) WithTimeout(timeout time.Duration) *GetForSubscriptionParams
WithTimeout adds the timeout to the get for subscription params
func (*GetForSubscriptionParams) WriteToRequest ¶
func (o *GetForSubscriptionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *PostForResourceGroupOK) GetPayload() *models.APICollectionOfResourceGroupUsageCost
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 ¶
func (o *PostForResourceGroupParams) SetModel(model *models.ResourceGroupUsageCostRequest)
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 ¶
func (o *PostForResourceGroupParams) WithContext(ctx context.Context) *PostForResourceGroupParams
WithContext adds the context to the post for resource group params
func (*PostForResourceGroupParams) WithDefaults ¶
func (o *PostForResourceGroupParams) WithDefaults() *PostForResourceGroupParams
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 ¶
func (o *PostForResourceGroupParams) WithHTTPClient(client *http.Client) *PostForResourceGroupParams
WithHTTPClient adds the HTTPClient to the post for resource group params
func (*PostForResourceGroupParams) WithModel ¶
func (o *PostForResourceGroupParams) WithModel(model *models.ResourceGroupUsageCostRequest) *PostForResourceGroupParams
WithModel adds the model to the post for resource group params
func (*PostForResourceGroupParams) WithTimeout ¶
func (o *PostForResourceGroupParams) WithTimeout(timeout time.Duration) *PostForResourceGroupParams
WithTimeout adds the timeout to the post for resource group params
func (*PostForResourceGroupParams) WriteToRequest ¶
func (o *PostForResourceGroupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *PostForSubscriptionWithResourceGroupsOK) Error() string
func (*PostForSubscriptionWithResourceGroupsOK) GetPayload ¶
func (o *PostForSubscriptionWithResourceGroupsOK) GetPayload() *models.APICollectionOfSubscriptionResourceGroupUsageCost
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 ¶
func (o *PostForSubscriptionWithResourceGroupsParams) SetContext(ctx context.Context)
SetContext adds the context to the post for subscription with resource groups params
func (*PostForSubscriptionWithResourceGroupsParams) SetDefaults ¶
func (o *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 ¶
func (o *PostForSubscriptionWithResourceGroupsParams) SetModel(model *models.SubscriptionUsageCostRequest)
SetModel adds the model to the post for subscription with resource groups params
func (*PostForSubscriptionWithResourceGroupsParams) SetTimeout ¶
func (o *PostForSubscriptionWithResourceGroupsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post for subscription with resource groups params
func (*PostForSubscriptionWithResourceGroupsParams) WithContext ¶
func (o *PostForSubscriptionWithResourceGroupsParams) WithContext(ctx context.Context) *PostForSubscriptionWithResourceGroupsParams
WithContext adds the context to the post for subscription with resource groups params
func (*PostForSubscriptionWithResourceGroupsParams) WithDefaults ¶
func (o *PostForSubscriptionWithResourceGroupsParams) WithDefaults() *PostForSubscriptionWithResourceGroupsParams
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 ¶
func (o *PostForSubscriptionWithResourceGroupsParams) WithHTTPClient(client *http.Client) *PostForSubscriptionWithResourceGroupsParams
WithHTTPClient adds the HTTPClient to the post for subscription with resource groups params
func (*PostForSubscriptionWithResourceGroupsParams) WithModel ¶
func (o *PostForSubscriptionWithResourceGroupsParams) WithModel(model *models.SubscriptionUsageCostRequest) *PostForSubscriptionWithResourceGroupsParams
WithModel adds the model to the post for subscription with resource groups params
func (*PostForSubscriptionWithResourceGroupsParams) WithTimeout ¶
func (o *PostForSubscriptionWithResourceGroupsParams) WithTimeout(timeout time.Duration) *PostForSubscriptionWithResourceGroupsParams
WithTimeout adds the timeout to the post for subscription with resource groups params
func (*PostForSubscriptionWithResourceGroupsParams) WriteToRequest ¶
func (o *PostForSubscriptionWithResourceGroupsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- get_for_category_parameters.go
- get_for_category_responses.go
- get_for_organization_parameters.go
- get_for_organization_responses.go
- get_for_subcategory_parameters.go
- get_for_subcategory_responses.go
- get_for_subscription_parameters.go
- get_for_subscription_responses.go
- post_for_resource_group_parameters.go
- post_for_resource_group_responses.go
- post_for_subscription_with_resource_groups_parameters.go
- post_for_subscription_with_resource_groups_responses.go
- usage_cost_client.go