/// <summary> /// Lists all the restorable Azure Cosmos DB SQL containers available for a /// specific database. /// </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='restorableSqlDatabaseRid'> /// The resource id of the restorable SQL database. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IEnumerable <RestorableSqlContainerGetResult> > ListAsync(this IRestorableSqlContainersOperations operations, string location, string instanceId, string restorableSqlDatabaseRid = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(location, instanceId, restorableSqlDatabaseRid, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all the restorable Azure Cosmos DB SQL containers available for a /// specific database. /// </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='restorableSqlDatabaseRid'> /// The resource id of the restorable SQL database. /// </param> public static IEnumerable <RestorableSqlContainerGetResult> List(this IRestorableSqlContainersOperations operations, string location, string instanceId, string restorableSqlDatabaseRid = default(string)) { return(operations.ListAsync(location, instanceId, restorableSqlDatabaseRid).GetAwaiter().GetResult()); }