コード例 #1
0
 /// <summary>
 /// Gets a subscription by its ID. The operation is supported for billing
 /// accounts with agreement type Microsoft Customer Agreement and Microsoft
 /// Partner Agreement.
 /// <see href="https://docs.microsoft.com/en-us/rest/api/billing/" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='billingAccountName'>
 /// The ID that uniquely identifies a billing account.
 /// </param>
 public static BillingSubscription Get(this IBillingSubscriptionsOperations operations, string billingAccountName)
 {
     return(operations.GetAsync(billingAccountName).GetAwaiter().GetResult());
 }
コード例 #2
0
 /// <summary>
 /// Get a single billing subscription by name.
 /// <see href="https://docs.microsoft.com/en-us/rest/api/consumption/" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='billingAccountName'>
 /// billing Account Id.
 /// </param>
 /// <param name='invoiceSectionName'>
 /// InvoiceSection Id.
 /// </param>
 /// <param name='billingSubscriptionName'>
 /// Billing Subscription Id.
 /// </param>
 public static BillingSubscriptionSummary Get(this IBillingSubscriptionsOperations operations, string billingAccountName, string invoiceSectionName, string billingSubscriptionName)
 {
     return(operations.GetAsync(billingAccountName, invoiceSectionName, billingSubscriptionName).GetAwaiter().GetResult());
 }