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/billingroleassignments Documentation

The billingroleassignments 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/billingroleassignments"

Client Initialization

client := billingroleassignments.NewBillingRoleAssignmentsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: BillingRoleAssignmentsClient.DeleteByBillingAccount

ctx := context.TODO()
id := billingroleassignments.NewBillingRoleAssignmentID("billingAccountValue", "billingRoleAssignmentValue")

read, err := client.DeleteByBillingAccount(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: BillingRoleAssignmentsClient.DeleteByBillingProfile

ctx := context.TODO()
id := billingroleassignments.NewBillingProfileBillingRoleAssignmentID("billingAccountValue", "billingProfileValue", "billingRoleAssignmentValue")

read, err := client.DeleteByBillingProfile(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: BillingRoleAssignmentsClient.DeleteByInvoiceSection

ctx := context.TODO()
id := billingroleassignments.NewInvoiceSectionBillingRoleAssignmentID("billingAccountValue", "billingProfileValue", "invoiceSectionValue", "billingRoleAssignmentValue")

read, err := client.DeleteByInvoiceSection(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: BillingRoleAssignmentsClient.GetByBillingAccount

ctx := context.TODO()
id := billingroleassignments.NewBillingRoleAssignmentID("billingAccountValue", "billingRoleAssignmentValue")

read, err := client.GetByBillingAccount(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: BillingRoleAssignmentsClient.GetByBillingProfile

ctx := context.TODO()
id := billingroleassignments.NewBillingProfileBillingRoleAssignmentID("billingAccountValue", "billingProfileValue", "billingRoleAssignmentValue")

read, err := client.GetByBillingProfile(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: BillingRoleAssignmentsClient.GetByInvoiceSection

ctx := context.TODO()
id := billingroleassignments.NewInvoiceSectionBillingRoleAssignmentID("billingAccountValue", "billingProfileValue", "invoiceSectionValue", "billingRoleAssignmentValue")

read, err := client.GetByInvoiceSection(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: BillingRoleAssignmentsClient.ListByBillingAccount

ctx := context.TODO()
id := billingroleassignments.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: BillingRoleAssignmentsClient.ListByBillingProfile

ctx := context.TODO()
id := billingroleassignments.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: BillingRoleAssignmentsClient.ListByInvoiceSection

ctx := context.TODO()
id := billingroleassignments.NewInvoiceSectionID("billingAccountValue", "billingProfileValue", "invoiceSectionValue")

// alternatively `client.ListByInvoiceSection(ctx, id)` can be used to do batched pagination
items, err := client.ListByInvoiceSectionComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

# Functions

NewBillingAccountID returns a new BillingAccountId struct.
NewBillingProfileBillingRoleAssignmentID returns a new BillingProfileBillingRoleAssignmentId struct.
NewBillingProfileID returns a new BillingProfileId struct.
NewBillingRoleAssignmentID returns a new BillingRoleAssignmentId struct.
No description provided by the author
NewInvoiceSectionBillingRoleAssignmentID returns a new InvoiceSectionBillingRoleAssignmentId 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.
ParseBillingProfileBillingRoleAssignmentID parses 'input' into a BillingProfileBillingRoleAssignmentId.
ParseBillingProfileBillingRoleAssignmentIDInsensitively parses 'input' case-insensitively into a BillingProfileBillingRoleAssignmentId 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.
ParseBillingRoleAssignmentID parses 'input' into a BillingRoleAssignmentId.
ParseBillingRoleAssignmentIDInsensitively parses 'input' case-insensitively into a BillingRoleAssignmentId note: this method should only be used for API response data and not user input.
ParseInvoiceSectionBillingRoleAssignmentID parses 'input' into a InvoiceSectionBillingRoleAssignmentId.
ParseInvoiceSectionBillingRoleAssignmentIDInsensitively parses 'input' case-insensitively into a InvoiceSectionBillingRoleAssignmentId 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.
ValidateBillingProfileBillingRoleAssignmentID checks that 'input' can be parsed as a Billing Profile Billing Role Assignment ID.
ValidateBillingProfileID checks that 'input' can be parsed as a Billing Profile ID.
ValidateBillingRoleAssignmentID checks that 'input' can be parsed as a Billing Role Assignment ID.
ValidateInvoiceSectionBillingRoleAssignmentID checks that 'input' can be parsed as a Invoice Section Billing Role Assignment 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.
BillingProfileBillingRoleAssignmentId is a struct representing the Resource ID for a Billing Profile Billing Role Assignment.
BillingProfileId is a struct representing the Resource ID for a Billing Profile.
No description provided by the author
BillingRoleAssignmentId is a struct representing the Resource ID for a Billing Role Assignment.
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
InvoiceSectionBillingRoleAssignmentId is a struct representing the Resource ID for a Invoice Section Billing Role Assignment.
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