/// <summary>
 /// Get specific product.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiManagement.IProductsOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// Required. The name of the Api Management service.
 /// </param>
 /// <param name='pid'>
 /// Required. Identifier of the product.
 /// </param>
 /// <returns>
 /// Get Product operation response details.
 /// </returns>
 public static Task <ProductGetResponse> GetAsync(this IProductsOperations operations, string resourceGroupName, string serviceName, string pid)
 {
     return(operations.GetAsync(resourceGroupName, serviceName, pid, CancellationToken.None));
 }
 /// <summary>
 /// Get a single product 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='productName'>
 /// Invoice Id.
 /// </param>
 public static ProductSummary Get(this IProductsOperations operations, string billingAccountName, string invoiceSectionName, string productName)
 {
     return(operations.GetAsync(billingAccountName, invoiceSectionName, productName).GetAwaiter().GetResult());
 }
Exemple #3
0
 /// <summary>
 /// Returns the specified product.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroup'>
 /// Name of the resource group.
 /// </param>
 /// <param name='registrationName'>
 /// Name of the Azure Stack registration.
 /// </param>
 /// <param name='productName'>
 /// Name of the product.
 /// </param>
 public static Product Get(this IProductsOperations operations, string resourceGroup, string registrationName, string productName)
 {
     return(operations.GetAsync(resourceGroup, registrationName, productName).GetAwaiter().GetResult());
 }