/// <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='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ResourceSku> > ListNextAsync(this IResourceSkusOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <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.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ResourceSkuInner> > ListAsync(this IResourceSkusOperations operations, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(filter, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <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='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <ResourceSku> ListNext(this IResourceSkusOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets the list of Microsoft.CognitiveServices SKUs available for your
 /// Subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <ResourceSku> List(this IResourceSkusOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }
Example #5
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>
 public static IPage <ResourceSku> List(this IResourceSkusOperations operations, string filter = default(string))
 {
     return(operations.ListAsync(filter).GetAwaiter().GetResult());
 }
Example #6
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>
 public static IPage <ResourceSku> List(this IResourceSkusOperations operations, string filter = default(string), string includeExtendedLocations = default(string))
 {
     return(operations.ListAsync(filter, includeExtendedLocations).GetAwaiter().GetResult());
 }