/// <summary> /// Show the event feed of all mutations done on all the Azure Cosmos DB /// Tables. This helps in scenario where table 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='startTime'> /// Restorable Tables event feed start time. /// </param> /// <param name='endTime'> /// Restorable Tables event feed end time. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IEnumerable <RestorableTableGetResult> > ListAsync(this IRestorableTablesOperations operations, string location, string instanceId, string startTime = default(string), string endTime = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(location, instanceId, startTime, endTime, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Show the event feed of all mutations done on all the Azure Cosmos DB /// Tables. This helps in scenario where table 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='startTime'> /// Restorable Tables event feed start time. /// </param> /// <param name='endTime'> /// Restorable Tables event feed end time. /// </param> public static IEnumerable <RestorableTableGetResult> List(this IRestorableTablesOperations operations, string location, string instanceId, string startTime = default(string), string endTime = default(string)) { return(operations.ListAsync(location, instanceId, startTime, endTime).GetAwaiter().GetResult()); }