Share via


BillingAssociatedTenantCollection Class

Definition

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

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

Constructors

BillingAssociatedTenantCollection()

Initializes a new instance of the BillingAssociatedTenantCollection 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

CreateOrUpdate(WaitUntil, String, BillingAssociatedTenantData, CancellationToken)

Create or update an associated tenant for the billing account.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/associatedTenants/{associatedTenantName}
  • Operation Id: AssociatedTenants_CreateOrUpdate
  • Default Api Version: 2024-04-01
  • Resource: BillingAssociatedTenantResource
CreateOrUpdateAsync(WaitUntil, String, BillingAssociatedTenantData, CancellationToken)

Create or update an associated tenant for the billing account.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/associatedTenants/{associatedTenantName}
  • Operation Id: AssociatedTenants_CreateOrUpdate
  • Default Api Version: 2024-04-01
  • Resource: BillingAssociatedTenantResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

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

Checks to see if the resource exists in azure.

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

Gets an associated tenant by ID.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/associatedTenants/{associatedTenantName}
  • Operation Id: AssociatedTenants_Get
  • Default Api Version: 2024-04-01
  • Resource: BillingAssociatedTenantResource
GetAll(BillingAssociatedTenantCollectionGetAllOptions, CancellationToken)

Lists the associated tenants that can collaborate with the billing account on commerce activities like viewing and downloading invoices, managing payments, making purchases, and managing or provisioning licenses.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/associatedTenants
  • Operation Id: AssociatedTenants_ListByBillingAccount
  • Default Api Version: 2024-04-01
  • Resource: BillingAssociatedTenantResource
GetAllAsync(BillingAssociatedTenantCollectionGetAllOptions, CancellationToken)

Lists the associated tenants that can collaborate with the billing account on commerce activities like viewing and downloading invoices, managing payments, making purchases, and managing or provisioning licenses.

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

Gets an associated tenant by ID.

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

Tries to get details for this resource from the service.

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

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/associatedTenants/{associatedTenantName}
  • Operation Id: AssociatedTenants_Get
  • Default Api Version: 2024-04-01
  • Resource: BillingAssociatedTenantResource
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<BillingAssociatedTenantResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<BillingAssociatedTenantResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to