billingproperties

package
v0.20240122.1052955 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/billing/2019-10-01-preview/billingproperties Documentation

The billingproperties SDK allows for interaction with the Azure Resource Manager Service billing (API Version 2019-10-01-preview).

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/billing/2019-10-01-preview/billingproperties"

Client Initialization

client := billingproperties.NewBillingPropertiesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: BillingPropertiesClient.BillingPropertyGet

ctx := context.TODO()
id := billingproperties.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

read, err := client.BillingPropertyGet(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

func PossibleValuesForBillingProfileSpendingLimit

func PossibleValuesForBillingProfileSpendingLimit() []string

func PossibleValuesForBillingProfileStatus

func PossibleValuesForBillingProfileStatus() []string

func PossibleValuesForBillingProfileStatusReasonCode

func PossibleValuesForBillingProfileStatusReasonCode() []string

Types

type BillingProfileSpendingLimit

type BillingProfileSpendingLimit string
const (
	BillingProfileSpendingLimitOff BillingProfileSpendingLimit = "Off"
	BillingProfileSpendingLimitOn  BillingProfileSpendingLimit = "On"
)

func (*BillingProfileSpendingLimit) UnmarshalJSON

func (s *BillingProfileSpendingLimit) UnmarshalJSON(bytes []byte) error

type BillingProfileStatus

type BillingProfileStatus string
const (
	BillingProfileStatusActive   BillingProfileStatus = "Active"
	BillingProfileStatusDisabled BillingProfileStatus = "Disabled"
	BillingProfileStatusWarned   BillingProfileStatus = "Warned"
)

func (*BillingProfileStatus) UnmarshalJSON

func (s *BillingProfileStatus) UnmarshalJSON(bytes []byte) error

type BillingProfileStatusReasonCode

type BillingProfileStatusReasonCode string
const (
	BillingProfileStatusReasonCodePastDue              BillingProfileStatusReasonCode = "PastDue"
	BillingProfileStatusReasonCodeSpendingLimitExpired BillingProfileStatusReasonCode = "SpendingLimitExpired"
	BillingProfileStatusReasonCodeSpendingLimitReached BillingProfileStatusReasonCode = "SpendingLimitReached"
)

func (*BillingProfileStatusReasonCode) UnmarshalJSON

func (s *BillingProfileStatusReasonCode) UnmarshalJSON(bytes []byte) error

type BillingPropertiesClient

type BillingPropertiesClient struct {
	Client *resourcemanager.Client
}

func NewBillingPropertiesClientWithBaseURI

func NewBillingPropertiesClientWithBaseURI(sdkApi sdkEnv.Api) (*BillingPropertiesClient, error)

func (BillingPropertiesClient) BillingPropertyGet

BillingPropertyGet ...

type BillingProperty

type BillingProperty struct {
	Id         *string                    `json:"id,omitempty"`
	Name       *string                    `json:"name,omitempty"`
	Properties *BillingPropertyProperties `json:"properties,omitempty"`
	Type       *string                    `json:"type,omitempty"`
}

type BillingPropertyGetOperationResponse

type BillingPropertyGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BillingProperty
}

type BillingPropertyProperties

type BillingPropertyProperties struct {
	BillingAccountDisplayName      *string                         `json:"billingAccountDisplayName,omitempty"`
	BillingAccountId               *string                         `json:"billingAccountId,omitempty"`
	BillingProfileDisplayName      *string                         `json:"billingProfileDisplayName,omitempty"`
	BillingProfileId               *string                         `json:"billingProfileId,omitempty"`
	BillingProfileSpendingLimit    *BillingProfileSpendingLimit    `json:"billingProfileSpendingLimit,omitempty"`
	BillingProfileStatus           *BillingProfileStatus           `json:"billingProfileStatus,omitempty"`
	BillingProfileStatusReasonCode *BillingProfileStatusReasonCode `json:"billingProfileStatusReasonCode,omitempty"`
	BillingTenantId                *string                         `json:"billingTenantId,omitempty"`
	CostCenter                     *string                         `json:"costCenter,omitempty"`
	InvoiceSectionDisplayName      *string                         `json:"invoiceSectionDisplayName,omitempty"`
	InvoiceSectionId               *string                         `json:"invoiceSectionId,omitempty"`
	ProductId                      *string                         `json:"productId,omitempty"`
	ProductName                    *string                         `json:"productName,omitempty"`
	SkuDescription                 *string                         `json:"skuDescription,omitempty"`
	SkuId                          *string                         `json:"skuId,omitempty"`
}

Jump to

Keyboard shortcuts

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