/// <summary>
 /// Gets the account keys for the specified Batch account.
 /// </summary>
 /// <remarks>
 /// This operation applies only to Batch accounts created with a
 /// poolAllocationMode of 'BatchService'. If the Batch account was created with
 /// a poolAllocationMode of 'UserSubscription', clients cannot use access to
 /// keys to authenticate, and must use Azure Active Directory instead. In this
 /// case, getting the keys will fail.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the Batch account.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Batch account.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <BatchAccountKeys> GetKeysAsync(this IBatchAccountOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetKeysWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }