BillingExtensions Class

Definition

A class to add extension methods to Azure.ResourceManager.Billing.

public static class BillingExtensions
type BillingExtensions = class
Public Module BillingExtensions
Inheritance
BillingExtensions

Methods

GetBillingAccountPaymentMethod(TenantResource, String, String, CancellationToken)

Gets a payment method available for a billing account. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/paymentMethods/{paymentMethodName}
  • Operation Id: PaymentMethods_GetByBillingAccount
GetBillingAccountPaymentMethodAsync(TenantResource, String, String, CancellationToken)

Gets a payment method available for a billing account. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/paymentMethods/{paymentMethodName}
  • Operation Id: PaymentMethods_GetByBillingAccount
GetBillingAccountPaymentMethodResource(ArmClient, ResourceIdentifier)

Gets an object representing a BillingAccountPaymentMethodResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String) to create a BillingAccountPaymentMethodResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetBillingAccountPaymentMethodResource(ResourceIdentifier) instead.

GetBillingAccountPaymentMethods(TenantResource, String)

Gets a collection of BillingAccountPaymentMethodResources in the TenantResource. MockingTo mock this method, please mock GetBillingAccountPaymentMethods(String) instead.

GetBillingPaymentMethod(TenantResource, String, CancellationToken)

Gets a payment method owned by the caller.

  • Request Path: /providers/Microsoft.Billing/paymentMethods/{paymentMethodName}
  • Operation Id: PaymentMethods_GetByUser
GetBillingPaymentMethodAsync(TenantResource, String, CancellationToken)

Gets a payment method owned by the caller.

  • Request Path: /providers/Microsoft.Billing/paymentMethods/{paymentMethodName}
  • Operation Id: PaymentMethods_GetByUser
GetBillingPaymentMethodLink(TenantResource, String, String, String, CancellationToken)

Gets a payment method linked with a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethodLinks/{paymentMethodName}
  • Operation Id: PaymentMethods_GetByBillingProfile
GetBillingPaymentMethodLinkAsync(TenantResource, String, String, String, CancellationToken)

Gets a payment method linked with a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethodLinks/{paymentMethodName}
  • Operation Id: PaymentMethods_GetByBillingProfile
GetBillingPaymentMethodLinkResource(ArmClient, ResourceIdentifier)

Gets an object representing a BillingPaymentMethodLinkResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a BillingPaymentMethodLinkResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetBillingPaymentMethodLinkResource(ResourceIdentifier) instead.

GetBillingPaymentMethodLinks(TenantResource, String, String)

Gets a collection of BillingPaymentMethodLinkResources in the TenantResource. MockingTo mock this method, please mock GetBillingPaymentMethodLinks(String, String) instead.

GetBillingPaymentMethodResource(ArmClient, ResourceIdentifier)

Gets an object representing a BillingPaymentMethodResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String) to create a BillingPaymentMethodResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetBillingPaymentMethodResource(ResourceIdentifier) instead.

GetBillingPaymentMethods(TenantResource)

Gets a collection of BillingPaymentMethodResources in the TenantResource. MockingTo mock this method, please mock GetBillingPaymentMethods() instead.

GetBillingSubscription(TenantResource, String, String, CancellationToken)

Gets a subscription by its ID. The operation is currently supported for billing accounts with agreement type Microsoft Customer Agreement, Microsoft Partner Agreement and Microsoft Online Services Program.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions/{billingSubscriptionName}
  • Operation Id: BillingSubscriptions_Get
GetBillingSubscriptionAlias(TenantResource, String, String, CancellationToken)

Gets a subscription by its alias ID. The operation is supported for seat based billing subscriptions.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptionAliases/{aliasName}
  • Operation Id: BillingSubscriptionsAliases_Get
GetBillingSubscriptionAliasAsync(TenantResource, String, String, CancellationToken)

Gets a subscription by its alias ID. The operation is supported for seat based billing subscriptions.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptionAliases/{aliasName}
  • Operation Id: BillingSubscriptionsAliases_Get
GetBillingSubscriptionAliases(TenantResource, String)

Gets a collection of BillingSubscriptionAliasResources in the TenantResource. MockingTo mock this method, please mock GetBillingSubscriptionAliases(String) instead.

GetBillingSubscriptionAliasResource(ArmClient, ResourceIdentifier)

Gets an object representing a BillingSubscriptionAliasResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String) to create a BillingSubscriptionAliasResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetBillingSubscriptionAliasResource(ResourceIdentifier) instead.

GetBillingSubscriptionAsync(TenantResource, String, String, CancellationToken)

Gets a subscription by its ID. The operation is currently supported for billing accounts with agreement type Microsoft Customer Agreement, Microsoft Partner Agreement and Microsoft Online Services Program.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions/{billingSubscriptionName}
  • Operation Id: BillingSubscriptions_Get
GetBillingSubscriptionResource(ArmClient, ResourceIdentifier)

Gets an object representing a BillingSubscriptionResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String) to create a BillingSubscriptionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetBillingSubscriptionResource(ResourceIdentifier) instead.

GetBillingSubscriptions(TenantResource, String)

Gets a collection of BillingSubscriptionResources in the TenantResource. MockingTo mock this method, please mock GetBillingSubscriptions(String) instead.

Applies to