Пример #1
0
 /// <summary>
 /// Return a list of gremlin database and graphs combo that exist on the
 /// account at the given timestamp and location. This helps in scenarios to
 /// validate what resources exist at given timestamp and location. 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='restoreLocation'>
 /// The location where the restorable resources are located.
 /// </param>
 /// <param name='restoreTimestampInUtc'>
 /// The timestamp when the restorable resources existed.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IEnumerable <GremlinDatabaseRestoreResource> > ListAsync(this IRestorableGremlinResourcesOperations operations, string location, string instanceId, string restoreLocation = default(string), string restoreTimestampInUtc = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(location, instanceId, restoreLocation, restoreTimestampInUtc, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #2
0
 /// <summary>
 /// Return a list of gremlin database and graphs combo that exist on the
 /// account at the given timestamp and location. This helps in scenarios to
 /// validate what resources exist at given timestamp and location. 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='restoreLocation'>
 /// The location where the restorable resources are located.
 /// </param>
 /// <param name='restoreTimestampInUtc'>
 /// The timestamp when the restorable resources existed.
 /// </param>
 public static IEnumerable <GremlinDatabaseRestoreResource> List(this IRestorableGremlinResourcesOperations operations, string location, string instanceId, string restoreLocation = default(string), string restoreTimestampInUtc = default(string))
 {
     return(operations.ListAsync(location, instanceId, restoreLocation, restoreTimestampInUtc).GetAwaiter().GetResult());
 }