예제 #1
0
 /// <summary>
 /// Gets the list of migration items in the vault.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='skipToken'>
 /// The pagination token.
 /// </param>
 /// <param name='takeToken'>
 /// The page size.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <MigrationItem> > ListAsync(this IReplicationMigrationItemsOperations operations, ODataQuery <MigrationItemsQueryParameter> odataQuery = default(ODataQuery <MigrationItemsQueryParameter>), string skipToken = default(string), string takeToken = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(odataQuery, skipToken, takeToken, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #2
0
 /// <summary>
 /// Test migrate cleanup.
 /// </summary>
 /// <remarks>
 /// The operation to initiate test migrate cleanup.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Fabric name.
 /// </param>
 /// <param name='protectionContainerName'>
 /// Protection container name.
 /// </param>
 /// <param name='migrationItemName'>
 /// Migration item name.
 /// </param>
 /// <param name='testMigrateCleanupInput'>
 /// Test migrate cleanup input.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <MigrationItem> BeginTestMigrateCleanupAsync(this IReplicationMigrationItemsOperations operations, string fabricName, string protectionContainerName, string migrationItemName, TestMigrateCleanupInput testMigrateCleanupInput, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginTestMigrateCleanupWithHttpMessagesAsync(fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #3
0
 /// <summary>
 /// Enables migration.
 /// </summary>
 /// <remarks>
 /// The operation to create an ASR migration item (enable migration).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Fabric name.
 /// </param>
 /// <param name='protectionContainerName'>
 /// Protection container name.
 /// </param>
 /// <param name='migrationItemName'>
 /// Migration item name.
 /// </param>
 /// <param name='input'>
 /// Enable migration input.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <MigrationItem> CreateAsync(this IReplicationMigrationItemsOperations operations, string fabricName, string protectionContainerName, string migrationItemName, EnableMigrationInput input, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(fabricName, protectionContainerName, migrationItemName, input, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #4
0
 /// <summary>
 /// Gets the list of migration items in the vault.
 /// </summary>
 /// <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 <MigrationItem> > ListNextAsync(this IReplicationMigrationItemsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #5
0
 /// <summary>
 /// Gets the list of migration items in the protection container.
 /// </summary>
 /// <remarks>
 /// Gets the list of ASR migration items in the protection container.
 /// </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 <MigrationItem> ListByReplicationProtectionContainersNext(this IReplicationMigrationItemsOperations operations, string nextPageLink)
 {
     return(operations.ListByReplicationProtectionContainersNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
예제 #6
0
 /// <summary>
 /// Test migrate cleanup.
 /// </summary>
 /// <remarks>
 /// The operation to initiate test migrate cleanup.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Fabric name.
 /// </param>
 /// <param name='protectionContainerName'>
 /// Protection container name.
 /// </param>
 /// <param name='migrationItemName'>
 /// Migration item name.
 /// </param>
 /// <param name='testMigrateCleanupInput'>
 /// Test migrate cleanup input.
 /// </param>
 public static MigrationItem BeginTestMigrateCleanup(this IReplicationMigrationItemsOperations operations, string fabricName, string protectionContainerName, string migrationItemName, TestMigrateCleanupInput testMigrateCleanupInput)
 {
     return(operations.BeginTestMigrateCleanupAsync(fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput).GetAwaiter().GetResult());
 }
예제 #7
0
 /// <summary>
 /// Resynchronizes replication.
 /// </summary>
 /// <remarks>
 /// The operation to resynchronize replication of an ASR migration item.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Fabric name.
 /// </param>
 /// <param name='protectionContainerName'>
 /// Protection container name.
 /// </param>
 /// <param name='migrationItemName'>
 /// Migration item name.
 /// </param>
 /// <param name='input'>
 /// Resync input.
 /// </param>
 public static MigrationItem BeginResync(this IReplicationMigrationItemsOperations operations, string fabricName, string protectionContainerName, string migrationItemName, ResyncInput input)
 {
     return(operations.BeginResyncAsync(fabricName, protectionContainerName, migrationItemName, input).GetAwaiter().GetResult());
 }
예제 #8
0
 /// <summary>
 /// Delete the migration item.
 /// </summary>
 /// <remarks>
 /// The operation to delete an ASR migration item.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Fabric name.
 /// </param>
 /// <param name='protectionContainerName'>
 /// Protection container name.
 /// </param>
 /// <param name='migrationItemName'>
 /// Migration item name.
 /// </param>
 /// <param name='deleteOption'>
 /// The delete option.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IReplicationMigrationItemsOperations operations, string fabricName, string protectionContainerName, string migrationItemName, string deleteOption = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(fabricName, protectionContainerName, migrationItemName, deleteOption, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
예제 #9
0
 /// <summary>
 /// Delete the migration item.
 /// </summary>
 /// <remarks>
 /// The operation to delete an ASR migration item.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Fabric name.
 /// </param>
 /// <param name='protectionContainerName'>
 /// Protection container name.
 /// </param>
 /// <param name='migrationItemName'>
 /// Migration item name.
 /// </param>
 /// <param name='deleteOption'>
 /// The delete option.
 /// </param>
 public static void BeginDelete(this IReplicationMigrationItemsOperations operations, string fabricName, string protectionContainerName, string migrationItemName, string deleteOption = default(string))
 {
     operations.BeginDeleteAsync(fabricName, protectionContainerName, migrationItemName, deleteOption).GetAwaiter().GetResult();
 }
예제 #10
0
 /// <summary>
 /// Gets the list of migration items in the vault.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='skipToken'>
 /// The pagination token.
 /// </param>
 /// <param name='takeToken'>
 /// The page size.
 /// </param>
 public static IPage <MigrationItem> List(this IReplicationMigrationItemsOperations operations, ODataQuery <MigrationItemsQueryParameter> odataQuery = default(ODataQuery <MigrationItemsQueryParameter>), string skipToken = default(string), string takeToken = default(string))
 {
     return(operations.ListAsync(odataQuery, skipToken, takeToken).GetAwaiter().GetResult());
 }
예제 #11
0
 /// <summary>
 /// Gets the list of migration items in the protection container.
 /// </summary>
 /// <remarks>
 /// Gets the list of ASR migration items in the protection container.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Fabric name.
 /// </param>
 /// <param name='protectionContainerName'>
 /// Protection container name.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='skipToken'>
 /// The pagination token.
 /// </param>
 /// <param name='takeToken'>
 /// The page size.
 /// </param>
 public static IPage <MigrationItem> ListByReplicationProtectionContainers(this IReplicationMigrationItemsOperations operations, string fabricName, string protectionContainerName, ODataQuery <MigrationItemsQueryParameter> odataQuery = default(ODataQuery <MigrationItemsQueryParameter>), string skipToken = default(string), string takeToken = default(string))
 {
     return(operations.ListByReplicationProtectionContainersAsync(fabricName, protectionContainerName, odataQuery, skipToken, takeToken).GetAwaiter().GetResult());
 }
예제 #12
0
 /// <summary>
 /// Migrate item.
 /// </summary>
 /// <remarks>
 /// The operation to initiate migration of the item.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Fabric name.
 /// </param>
 /// <param name='protectionContainerName'>
 /// Protection container name.
 /// </param>
 /// <param name='migrationItemName'>
 /// Migration item name.
 /// </param>
 /// <param name='migrateInput'>
 /// Migrate input.
 /// </param>
 public static MigrationItem Migrate(this IReplicationMigrationItemsOperations operations, string fabricName, string protectionContainerName, string migrationItemName, MigrateInput migrateInput)
 {
     return(operations.MigrateAsync(fabricName, protectionContainerName, migrationItemName, migrateInput).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets the list of migration items in the protection container.
 /// </summary>
 /// <remarks>
 /// Gets the list of ASR migration items in the protection container.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Fabric name.
 /// </param>
 /// <param name='protectionContainerName'>
 /// Protection container name.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <MigrationItem> > ListByReplicationProtectionContainersAsync(this IReplicationMigrationItemsOperations operations, string fabricName, string protectionContainerName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByReplicationProtectionContainersWithHttpMessagesAsync(fabricName, protectionContainerName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets the list of migration items in the protection container.
 /// </summary>
 /// <remarks>
 /// Gets the list of ASR migration items in the protection container.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Fabric name.
 /// </param>
 /// <param name='protectionContainerName'>
 /// Protection container name.
 /// </param>
 public static IPage <MigrationItem> ListByReplicationProtectionContainers(this IReplicationMigrationItemsOperations operations, string fabricName, string protectionContainerName)
 {
     return(operations.ListByReplicationProtectionContainersAsync(fabricName, protectionContainerName).GetAwaiter().GetResult());
 }