/// <summary>
 /// Gets all available service aliases for this subscription in this region.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The location.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <AvailableServiceAlias> > ListAsync(this IAvailableServiceAliasesOperations operations, string location, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(location, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets all available service aliases for this resource group in this region.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='location'>
 /// The location.
 /// </param>
 public static IPage <AvailableServiceAlias> ListByResourceGroup(this IAvailableServiceAliasesOperations operations, string resourceGroupName, string location)
 {
     return(operations.ListByResourceGroupAsync(resourceGroupName, location).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets all available service aliases for this resource group in this region.
 /// </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 <AvailableServiceAlias> ListByResourceGroupNext(this IAvailableServiceAliasesOperations operations, string nextPageLink)
 {
     return(operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets all available service aliases for this subscription in this region.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The location.
 /// </param>
 public static IPage <AvailableServiceAlias> List(this IAvailableServiceAliasesOperations operations, string location)
 {
     return(operations.ListAsync(location).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets all available service aliases for this resource group in this region.
 /// </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 <AvailableServiceAliasInner> > ListByResourceGroupNextAsync(this IAvailableServiceAliasesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }