credits

package
v0.20230508.1085248 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: MPL-2.0 Imports: 8 Imported by: 1

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 Amount

type Amount struct {
	Currency *string  `json:"currency,omitempty"`
	Value    *float64 `json:"value,omitempty"`
}

type AmountWithExchangeRate

type AmountWithExchangeRate struct {
	Currency          *string  `json:"currency,omitempty"`
	ExchangeRate      *float64 `json:"exchangeRate,omitempty"`
	ExchangeRateMonth *float64 `json:"exchangeRateMonth,omitempty"`
	Value             *float64 `json:"value,omitempty"`
}

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(api environments.Api) (*CreditsClient, error)

func (CreditsClient) Get

Get ...

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CreditSummary
}

type Reseller

type Reseller struct {
	ResellerDescription *string `json:"resellerDescription,omitempty"`
	ResellerId          *string `json:"resellerId,omitempty"`
}

Jump to

Keyboard shortcuts

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