/// <summary>
 /// Show the event feed of all mutations done on all the Azure Cosmos DB
 /// MongoDB collections under a specific database.  This helps in scenario
 /// where container was accidentally deleted.  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='restorableMongodbDatabaseRid'>
 /// The resource ID of the MongoDB database.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IEnumerable <RestorableMongodbCollectionGetResult> > ListAsync(this IRestorableMongodbCollectionsOperations operations, string location, string instanceId, string restorableMongodbDatabaseRid = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(location, instanceId, restorableMongodbDatabaseRid, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Show the event feed of all mutations done on all the Azure Cosmos DB
 /// MongoDB collections under a specific database.  This helps in scenario
 /// where container was accidentally deleted.  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='restorableMongodbDatabaseRid'>
 /// The resource ID of the MongoDB database.
 /// </param>
 public static IEnumerable <RestorableMongodbCollectionGetResult> List(this IRestorableMongodbCollectionsOperations operations, string location, string instanceId, string restorableMongodbDatabaseRid = default(string))
 {
     return(operations.ListAsync(location, instanceId, restorableMongodbDatabaseRid).GetAwaiter().GetResult());
 }