/// <summary>
 /// Lists the Automation Accounts within an Azure subscription.
 /// </summary>
 /// <remarks>
 /// Retrieve a list of accounts within a given subscription.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <AutomationAccount> List(this IAutomationAccountOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Retrieve a list of accounts.  (see
 /// http://aka.ms/azureautomationsdk/automationaccountoperations for
 /// more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IAutomationAccountOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Optional. The name of the resource group
 /// </param>
 /// <returns>
 /// The response model for the list account operation.
 /// </returns>
 public static Task <AutomationAccountListResponse> ListAsync(this IAutomationAccountOperations operations, string resourceGroupName)
 {
     return(operations.ListAsync(resourceGroupName, CancellationToken.None));
 }