/// <summary>
 /// Gets the list of Microsoft.CognitiveServices SKUs available for your
 /// Subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ResourceSku> > ListAsync(this IResourceSkusOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Gets the list of Microsoft.Compute SKUs available for your Subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='filter'>
 /// The filter to apply on the operation. Only **location** filter is supported
 /// currently.
 /// </param>
 /// <param name='includeExtendedLocations'>
 /// To Include Extended Locations information or not in the response.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ResourceSku> > ListAsync(this IResourceSkusOperations operations, string filter = default(string), string includeExtendedLocations = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(filter, includeExtendedLocations, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }