共用方式為


BillingDepartmentEnrollmentAccountCollection Class

Definition

A class representing a collection of BillingDepartmentEnrollmentAccountResource and their operations. Each BillingDepartmentEnrollmentAccountResource in the collection will belong to the same instance of BillingDepartmentResource. To get a BillingDepartmentEnrollmentAccountCollection instance call the GetBillingDepartmentEnrollmentAccounts method from an instance of BillingDepartmentResource.

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

Constructors

BillingDepartmentEnrollmentAccountCollection()

Initializes a new instance of the BillingDepartmentEnrollmentAccountCollection 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}/departments/{departmentName}/enrollmentAccounts/{enrollmentAccountName}
  • Operation Id: EnrollmentAccounts_GetByDepartment
  • Default Api Version: 2024-04-01
  • Resource: BillingDepartmentEnrollmentAccountResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/{departmentName}/enrollmentAccounts/{enrollmentAccountName}
  • Operation Id: EnrollmentAccounts_GetByDepartment
  • Default Api Version: 2024-04-01
  • Resource: BillingDepartmentEnrollmentAccountResource
Get(String, CancellationToken)

Gets an enrollment account by department. The operation is supported only for billing accounts with agreement type Enterprise Agreement.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/{departmentName}/enrollmentAccounts/{enrollmentAccountName}
  • Operation Id: EnrollmentAccounts_GetByDepartment
  • Default Api Version: 2024-04-01
  • Resource: BillingDepartmentEnrollmentAccountResource
GetAll(BillingDepartmentEnrollmentAccountCollectionGetAllOptions, CancellationToken)

Lists the enrollment accounts for a department. The operation is supported only for billing accounts with agreement type Enterprise Agreement.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/{departmentName}/enrollmentAccounts
  • Operation Id: EnrollmentAccounts_ListByDepartment
  • Default Api Version: 2024-04-01
  • Resource: BillingDepartmentEnrollmentAccountResource
GetAllAsync(BillingDepartmentEnrollmentAccountCollectionGetAllOptions, CancellationToken)

Lists the enrollment accounts for a department. The operation is supported only for billing accounts with agreement type Enterprise Agreement.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/{departmentName}/enrollmentAccounts
  • Operation Id: EnrollmentAccounts_ListByDepartment
  • Default Api Version: 2024-04-01
  • Resource: BillingDepartmentEnrollmentAccountResource
GetAsync(String, CancellationToken)

Gets an enrollment account by department. The operation is supported only for billing accounts with agreement type Enterprise Agreement.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/{departmentName}/enrollmentAccounts/{enrollmentAccountName}
  • Operation Id: EnrollmentAccounts_GetByDepartment
  • Default Api Version: 2024-04-01
  • Resource: BillingDepartmentEnrollmentAccountResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/{departmentName}/enrollmentAccounts/{enrollmentAccountName}
  • Operation Id: EnrollmentAccounts_GetByDepartment
  • Default Api Version: 2024-04-01
  • Resource: BillingDepartmentEnrollmentAccountResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/{departmentName}/enrollmentAccounts/{enrollmentAccountName}
  • Operation Id: EnrollmentAccounts_GetByDepartment
  • Default Api Version: 2024-04-01
  • Resource: BillingDepartmentEnrollmentAccountResource
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<BillingDepartmentEnrollmentAccountResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<BillingDepartmentEnrollmentAccountResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to