Udostępnij za pośrednictwem


BillingProfileSubscriptionCollection Class

Definition

A class representing a collection of BillingProfileSubscriptionResource and their operations. Each BillingProfileSubscriptionResource in the collection will belong to the same instance of BillingProfileResource. To get a BillingProfileSubscriptionCollection instance call the GetBillingProfileSubscriptions method from an instance of BillingProfileResource.

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

Constructors

BillingProfileSubscriptionCollection()

Initializes a new instance of the BillingProfileSubscriptionCollection 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, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingSubscriptions/{billingSubscriptionName}
  • Operation Id: BillingSubscriptions_GetByBillingProfile
  • Default Api Version: 2024-04-01
  • Resource: BillingProfileSubscriptionResource
ExistsAsync(String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingSubscriptions/{billingSubscriptionName}
  • Operation Id: BillingSubscriptions_GetByBillingProfile
  • Default Api Version: 2024-04-01
  • Resource: BillingProfileSubscriptionResource
Get(String, String, CancellationToken)

Gets a subscription by its billing profile and ID. The operation is supported for billing accounts with agreement type Enterprise Agreement.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingSubscriptions/{billingSubscriptionName}
  • Operation Id: BillingSubscriptions_GetByBillingProfile
  • Default Api Version: 2024-04-01
  • Resource: BillingProfileSubscriptionResource
GetAll(BillingProfileSubscriptionCollectionGetAllOptions, CancellationToken)

Lists the subscriptions that are billed to a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingSubscriptions
  • Operation Id: BillingSubscriptions_ListByBillingProfile
  • Default Api Version: 2024-04-01
  • Resource: BillingProfileSubscriptionResource
GetAllAsync(BillingProfileSubscriptionCollectionGetAllOptions, CancellationToken)

Lists the subscriptions that are billed to a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingSubscriptions
  • Operation Id: BillingSubscriptions_ListByBillingProfile
  • Default Api Version: 2024-04-01
  • Resource: BillingProfileSubscriptionResource
GetAsync(String, String, CancellationToken)

Gets a subscription by its billing profile and ID. The operation is supported for billing accounts with agreement type Enterprise Agreement.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingSubscriptions/{billingSubscriptionName}
  • Operation Id: BillingSubscriptions_GetByBillingProfile
  • Default Api Version: 2024-04-01
  • Resource: BillingProfileSubscriptionResource
GetIfExists(String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingSubscriptions/{billingSubscriptionName}
  • Operation Id: BillingSubscriptions_GetByBillingProfile
  • Default Api Version: 2024-04-01
  • Resource: BillingProfileSubscriptionResource
GetIfExistsAsync(String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingSubscriptions/{billingSubscriptionName}
  • Operation Id: BillingSubscriptions_GetByBillingProfile
  • Default Api Version: 2024-04-01
  • Resource: BillingProfileSubscriptionResource
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<BillingProfileSubscriptionResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<BillingProfileSubscriptionResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to