/// <summary>
 /// Show the event feed of all mutations done on all the Azure Cosmos DB SQL
 /// databases under the restorable account.  This helps in scenario where
 /// database was accidentally deleted to get the deletion time.  This API
 /// requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/*/read'
 /// permission
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// Cosmos DB region, with spaces between words and each word capitalized.
 /// </param>
 /// <param name='instanceId'>
 /// The instanceId GUID of a restorable database account.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IEnumerable <RestorableSqlDatabaseGetResult> > ListAsync(this IRestorableSqlDatabasesOperations operations, string location, string instanceId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(location, instanceId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Show the event feed of all mutations done on all the Azure Cosmos DB SQL
 /// databases under the restorable account.  This helps in scenario where
 /// database was accidentally deleted to get the deletion time.  This API
 /// requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/*/read'
 /// permission
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// Cosmos DB region, with spaces between words and each word capitalized.
 /// </param>
 /// <param name='instanceId'>
 /// The instanceId GUID of a restorable database account.
 /// </param>
 public static IEnumerable <RestorableSqlDatabaseGetResult> List(this IRestorableSqlDatabasesOperations operations, string location, string instanceId)
 {
     return(operations.ListAsync(location, instanceId).GetAwaiter().GetResult());
 }