/// <summary>
 /// Regenerates the RedisEnterprise database's access keys.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the RedisEnterprise cluster.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the database.
 /// </param>
 /// <param name='keyType'>
 /// Which access key to regenerate. Possible values include: 'Primary',
 /// 'Secondary'
 /// </param>
 public static AccessKeys BeginRegenerateKey(this IDatabasesOperations operations, string resourceGroupName, string clusterName, string databaseName, AccessKeyType keyType)
 {
     return(operations.BeginRegenerateKeyAsync(resourceGroupName, clusterName, databaseName, keyType).GetAwaiter().GetResult());
 }