package
0.20240715.1103416
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev
# README
github.com/hashicorp/go-azure-sdk/resource-manager/billing/2020-05-01/billingpermissions
Documentation
The billingpermissions
SDK allows for interaction with the Azure Resource Manager Service billing
(API Version 2020-05-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/billing/2020-05-01/billingpermissions"
Client Initialization
client := billingpermissions.NewBillingPermissionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: BillingPermissionsClient.ListByBillingAccount
ctx := context.TODO()
id := billingpermissions.NewBillingAccountID("billingAccountValue")
// alternatively `client.ListByBillingAccount(ctx, id)` can be used to do batched pagination
items, err := client.ListByBillingAccountComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: BillingPermissionsClient.ListByBillingProfile
ctx := context.TODO()
id := billingpermissions.NewBillingProfileID("billingAccountValue", "billingProfileValue")
// alternatively `client.ListByBillingProfile(ctx, id)` can be used to do batched pagination
items, err := client.ListByBillingProfileComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: BillingPermissionsClient.ListByCustomer
ctx := context.TODO()
id := billingpermissions.NewCustomerID("billingAccountValue", "customerValue")
// alternatively `client.ListByCustomer(ctx, id)` can be used to do batched pagination
items, err := client.ListByCustomerComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: BillingPermissionsClient.ListByInvoiceSections
ctx := context.TODO()
id := billingpermissions.NewInvoiceSectionID("billingAccountValue", "billingProfileValue", "invoiceSectionValue")
// alternatively `client.ListByInvoiceSections(ctx, id)` can be used to do batched pagination
items, err := client.ListByInvoiceSectionsComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
# Functions
NewBillingAccountID returns a new BillingAccountId struct.
No description provided by the author
NewBillingProfileID returns a new BillingProfileId struct.
NewCustomerID returns a new CustomerId struct.
NewInvoiceSectionID returns a new InvoiceSectionId struct.
ParseBillingAccountID parses 'input' into a BillingAccountId.
ParseBillingAccountIDInsensitively parses 'input' case-insensitively into a BillingAccountId note: this method should only be used for API response data and not user input.
ParseBillingProfileID parses 'input' into a BillingProfileId.
ParseBillingProfileIDInsensitively parses 'input' case-insensitively into a BillingProfileId note: this method should only be used for API response data and not user input.
ParseCustomerID parses 'input' into a CustomerId.
ParseCustomerIDInsensitively parses 'input' case-insensitively into a CustomerId note: this method should only be used for API response data and not user input.
ParseInvoiceSectionID parses 'input' into a InvoiceSectionId.
ParseInvoiceSectionIDInsensitively parses 'input' case-insensitively into a InvoiceSectionId note: this method should only be used for API response data and not user input.
ValidateBillingAccountID checks that 'input' can be parsed as a Billing Account ID.
ValidateBillingProfileID checks that 'input' can be parsed as a Billing Profile ID.
ValidateCustomerID checks that 'input' can be parsed as a Customer ID.
ValidateInvoiceSectionID checks that 'input' can be parsed as a Invoice Section ID.
# Structs
BillingAccountId is a struct representing the Resource ID for a Billing Account.
No description provided by the author
No description provided by the author
No description provided by the author
BillingProfileId is a struct representing the Resource ID for a Billing Profile.
CustomerId is a struct representing the Resource ID for a Customer.
InvoiceSectionId is a struct representing the Resource ID for a Invoice Section.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author