README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/usagedetails
Documentation
The usagedetails
SDK allows for interaction with the Azure Resource Manager Service costmanagement
(API Version 2021-10-01
).
This readme covers example usages, but further information on using this SDK can be found in the project root.
Import Path
import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/usagedetails"
Client Initialization
client := usagedetails.NewUsageDetailsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: UsageDetailsClient.GenerateDetailedCostReportCreateOperation
ctx := context.TODO()
id := usagedetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")
payload := usagedetails.GenerateDetailedCostReportDefinition{
// ...
}
if err := client.GenerateDetailedCostReportCreateOperationThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Documentation ¶
Index ¶
- func PossibleValuesForGenerateDetailedCostReportMetricType() []string
- type DownloadURL
- type GenerateDetailedCostReportCreateOperationOperationResponse
- type GenerateDetailedCostReportDefinition
- type GenerateDetailedCostReportMetricType
- type GenerateDetailedCostReportOperationResult
- type GenerateDetailedCostReportTimePeriod
- type UsageDetailsClient
- func (c UsageDetailsClient) GenerateDetailedCostReportCreateOperation(ctx context.Context, id commonids.ScopeId, ...) (result GenerateDetailedCostReportCreateOperationOperationResponse, err error)
- func (c UsageDetailsClient) GenerateDetailedCostReportCreateOperationThenPoll(ctx context.Context, id commonids.ScopeId, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForGenerateDetailedCostReportMetricType ¶
func PossibleValuesForGenerateDetailedCostReportMetricType() []string
Types ¶
type DownloadURL ¶
type DownloadURL struct { DownloadUrl *string `json:"downloadUrl,omitempty"` ValidTill *string `json:"validTill,omitempty"` }
func (*DownloadURL) GetValidTillAsTime ¶
func (o *DownloadURL) GetValidTillAsTime() (*time.Time, error)
func (*DownloadURL) SetValidTillAsTime ¶
func (o *DownloadURL) SetValidTillAsTime(input time.Time)
type GenerateDetailedCostReportCreateOperationOperationResponse ¶
type GenerateDetailedCostReportCreateOperationOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type GenerateDetailedCostReportDefinition ¶
type GenerateDetailedCostReportDefinition struct { BillingPeriod *string `json:"billingPeriod,omitempty"` CustomerId *string `json:"customerId,omitempty"` InvoiceId *string `json:"invoiceId,omitempty"` Metric *GenerateDetailedCostReportMetricType `json:"metric,omitempty"` TimePeriod *GenerateDetailedCostReportTimePeriod `json:"timePeriod,omitempty"` }
type GenerateDetailedCostReportMetricType ¶
type GenerateDetailedCostReportMetricType string
const ( GenerateDetailedCostReportMetricTypeActualCost GenerateDetailedCostReportMetricType = "ActualCost" GenerateDetailedCostReportMetricTypeAmortizedCost GenerateDetailedCostReportMetricType = "AmortizedCost" )
type GenerateDetailedCostReportOperationResult ¶
type GenerateDetailedCostReportOperationResult struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *DownloadURL `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type UsageDetailsClient ¶
func NewUsageDetailsClientWithBaseURI ¶
func NewUsageDetailsClientWithBaseURI(endpoint string) UsageDetailsClient
func (UsageDetailsClient) GenerateDetailedCostReportCreateOperation ¶
func (c UsageDetailsClient) GenerateDetailedCostReportCreateOperation(ctx context.Context, id commonids.ScopeId, input GenerateDetailedCostReportDefinition) (result GenerateDetailedCostReportCreateOperationOperationResponse, err error)
GenerateDetailedCostReportCreateOperation ...
func (UsageDetailsClient) GenerateDetailedCostReportCreateOperationThenPoll ¶
func (c UsageDetailsClient) GenerateDetailedCostReportCreateOperationThenPoll(ctx context.Context, id commonids.ScopeId, input GenerateDetailedCostReportDefinition) error
GenerateDetailedCostReportCreateOperationThenPoll performs GenerateDetailedCostReportCreateOperation then polls until it's completed
Click to show internal directories.
Click to hide internal directories.