Exemplo n.º 1
0
 /// <summary>
 /// Lists the collection of subscriptions to the specified product.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='productId'>
 /// Product identifier. Must be unique in the current API Management service
 /// instance.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 public static IPage <SubscriptionContract> List(this IProductSubscriptionsOperations operations, string resourceGroupName, string serviceName, string productId, ODataQuery <SubscriptionContract> odataQuery = default(ODataQuery <SubscriptionContract>))
 {
     return(operations.ListAsync(resourceGroupName, serviceName, productId, odataQuery).GetAwaiter().GetResult());
 }
Exemplo n.º 2
0
 /// <summary>
 /// List all Product APIs.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiManagement.IProductSubscriptionsOperations.
 /// </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>
 /// <param name='query'>
 /// Optional.
 /// </param>
 /// <returns>
 /// List Subscriptions operation response details.
 /// </returns>
 public static Task <SubscriptionListResponse> ListAsync(this IProductSubscriptionsOperations operations, string resourceGroupName, string serviceName, string pid, QueryParameters query)
 {
     return(operations.ListAsync(resourceGroupName, serviceName, pid, query, CancellationToken.None));
 }