Share via


BillingAccountCollection Class

Definition

A class representing a collection of BillingAccountResource and their operations. Each BillingAccountResource in the collection will belong to the same instance of TenantResource. To get a BillingAccountCollection instance call the GetBillingAccounts method from an instance of TenantResource.

public class BillingAccountCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Billing.BillingAccountResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Billing.BillingAccountResource>
type BillingAccountCollection = class
    inherit ArmCollection
    interface seq<BillingAccountResource>
    interface IEnumerable
    interface IAsyncEnumerable<BillingAccountResource>
Public Class BillingAccountCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of BillingAccountResource), IEnumerable(Of BillingAccountResource)
Inheritance
BillingAccountCollection
Implements

Constructors

BillingAccountCollection()

Initializes a new instance of the BillingAccountCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}
  • Operation Id: BillingAccounts_Get
  • Default Api Version: 2024-04-01
  • Resource: BillingAccountResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}
  • Operation Id: BillingAccounts_Get
  • Default Api Version: 2024-04-01
  • Resource: BillingAccountResource
Get(String, CancellationToken)

Gets a billing account by its ID.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}
  • Operation Id: BillingAccounts_Get
  • Default Api Version: 2024-04-01
  • Resource: BillingAccountResource
GetAll(BillingAccountCollectionGetAllOptions, CancellationToken)

Lists the billing accounts that a user has access to.

  • Request Path: /providers/Microsoft.Billing/billingAccounts
  • Operation Id: BillingAccounts_List
  • Default Api Version: 2024-04-01
  • Resource: BillingAccountResource
GetAllAsync(BillingAccountCollectionGetAllOptions, CancellationToken)

Lists the billing accounts that a user has access to.

  • Request Path: /providers/Microsoft.Billing/billingAccounts
  • Operation Id: BillingAccounts_List
  • Default Api Version: 2024-04-01
  • Resource: BillingAccountResource
GetAsync(String, CancellationToken)

Gets a billing account by its ID.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}
  • Operation Id: BillingAccounts_Get
  • Default Api Version: 2024-04-01
  • Resource: BillingAccountResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}
  • Operation Id: BillingAccounts_Get
  • Default Api Version: 2024-04-01
  • Resource: BillingAccountResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}
  • Operation Id: BillingAccounts_Get
  • Default Api Version: 2024-04-01
  • Resource: BillingAccountResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<BillingAccountResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<BillingAccountResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to