README
¶
github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/credits
Documentation
The credits
SDK allows for interaction with the Azure Resource Manager Service consumption
(API Version 2019-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/consumption/2019-10-01/credits"
Client Initialization
client := credits.NewCreditsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: CreditsClient.Get
ctx := context.TODO()
id := credits.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")
read, err := client.Get(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmountWithExchangeRate ¶
type CreditBalanceSummary ¶
type CreditBalanceSummary struct { CurrentBalance *Amount `json:"currentBalance,omitempty"` CurrentBalanceInBillingCurrency *AmountWithExchangeRate `json:"currentBalanceInBillingCurrency,omitempty"` EstimatedBalance *Amount `json:"estimatedBalance,omitempty"` EstimatedBalanceInBillingCurrency *AmountWithExchangeRate `json:"estimatedBalanceInBillingCurrency,omitempty"` }
type CreditSummary ¶
type CreditSummary struct { ETag *string `json:"eTag,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *CreditSummaryProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type CreditSummaryProperties ¶
type CreditSummaryProperties struct { BalanceSummary *CreditBalanceSummary `json:"balanceSummary,omitempty"` BillingCurrency *string `json:"billingCurrency,omitempty"` CreditCurrency *string `json:"creditCurrency,omitempty"` ExpiredCredit *Amount `json:"expiredCredit,omitempty"` PendingCreditAdjustments *Amount `json:"pendingCreditAdjustments,omitempty"` PendingEligibleCharges *Amount `json:"pendingEligibleCharges,omitempty"` Reseller *Reseller `json:"reseller,omitempty"` }
type CreditsClient ¶
type CreditsClient struct {
Client *resourcemanager.Client
}
func NewCreditsClientWithBaseURI ¶
func NewCreditsClientWithBaseURI(sdkApi sdkEnv.Api) (*CreditsClient, error)
func (CreditsClient) Get ¶
func (c CreditsClient) Get(ctx context.Context, id commonids.ScopeId) (result GetOperationResponse, err error)
Get ...
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CreditSummary }
Click to show internal directories.
Click to hide internal directories.