Exemple #1
0
 /// <summary>
 /// Gets the list of storage classification objects under a vault.
 /// </summary>
 /// <remarks>
 /// Lists the storage classifications in the vault.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <StorageClassification> > ListNextAsync(this IReplicationStorageClassificationsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #2
0
 /// <summary>
 /// Gets the details of a storage classification.
 /// </summary>
 /// <remarks>
 /// Gets the details of the specified storage classification.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Fabric name.
 /// </param>
 /// <param name='storageClassificationName'>
 /// Storage classification name.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <StorageClassification> GetAsync(this IReplicationStorageClassificationsOperations operations, string fabricName, string storageClassificationName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(fabricName, storageClassificationName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #3
0
 /// <summary>
 /// Gets the details of a storage classification.
 /// </summary>
 /// <remarks>
 /// Gets the details of the specified storage classification.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Fabric name.
 /// </param>
 /// <param name='storageClassificationName'>
 /// Storage classification name.
 /// </param>
 public static StorageClassification Get(this IReplicationStorageClassificationsOperations operations, string fabricName, string storageClassificationName)
 {
     return(operations.GetAsync(fabricName, storageClassificationName).GetAwaiter().GetResult());
 }
Exemple #4
0
 /// <summary>
 /// Gets the list of storage classification objects under a fabric.
 /// </summary>
 /// <remarks>
 /// Lists the storage classifications available in the specified fabric.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Site name of interest.
 /// </param>
 public static IPage <StorageClassification> ListByReplicationFabrics(this IReplicationStorageClassificationsOperations operations, string fabricName)
 {
     return(operations.ListByReplicationFabricsAsync(fabricName).GetAwaiter().GetResult());
 }
Exemple #5
0
 /// <summary>
 /// Gets the list of storage classification objects under a vault.
 /// </summary>
 /// <remarks>
 /// Lists the storage classifications in the vault.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <StorageClassification> ListNext(this IReplicationStorageClassificationsOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Exemple #6
0
 /// <summary>
 /// Gets the list of storage classification objects under a vault.
 /// </summary>
 /// <remarks>
 /// Lists the storage classifications in the vault.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <StorageClassification> List(this IReplicationStorageClassificationsOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }