Categorygithub.com/hashicorp/go-azure-sdk/resource-managerbilling2019-10-01-previewenrollmentaccounts
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/2019-10-01-preview/enrollmentaccounts
Documentation
The enrollmentaccounts
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/enrollmentaccounts"
Client Initialization
client := enrollmentaccounts.NewEnrollmentAccountsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: EnrollmentAccountsClient.GetByEnrollmentAccountId
ctx := context.TODO()
id := enrollmentaccounts.NewEnrollmentAccountID("billingAccountValue", "enrollmentAccountValue")
read, err := client.GetByEnrollmentAccountId(ctx, id, enrollmentaccounts.DefaultGetByEnrollmentAccountIdOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: EnrollmentAccountsClient.ListByBillingAccountName
ctx := context.TODO()
id := enrollmentaccounts.NewBillingAccountID("billingAccountValue")
// alternatively `client.ListByBillingAccountName(ctx, id, enrollmentaccounts.DefaultListByBillingAccountNameOperationOptions())` can be used to do batched pagination
items, err := client.ListByBillingAccountNameComplete(ctx, id, enrollmentaccounts.DefaultListByBillingAccountNameOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
# Functions
No description provided by the author
No description provided by the author
NewBillingAccountID returns a new BillingAccountId struct.
NewEnrollmentAccountID returns a new EnrollmentAccountId struct.
No description provided by the author
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.
ParseEnrollmentAccountID parses 'input' into a EnrollmentAccountId.
ParseEnrollmentAccountIDInsensitively parses 'input' case-insensitively into a EnrollmentAccountId 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.
ValidateEnrollmentAccountID checks that 'input' can be parsed as a Enrollment Account 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
EnrollmentAccountId is a struct representing the Resource ID for a Enrollment Account.
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