/// <summary> /// Deletes the specified recovery plan. /// </summary> /// <remarks> /// Delete a recovery plan. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='recoveryPlanName'> /// Recovery plan name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginDeleteAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(recoveryPlanName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Creates a recovery plan with the given details. /// </summary> /// <remarks> /// The operation to create a recovery plan. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='recoveryPlanName'> /// Recovery plan name. /// </param> /// <param name='input'> /// Recovery Plan creation input. /// </param> public static RecoveryPlan BeginCreate(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CreateRecoveryPlanInput input) { return(operations.BeginCreateAsync(recoveryPlanName, input).GetAwaiter().GetResult()); }
/// <summary> /// Deletes the specified recovery plan. /// </summary> /// <remarks> /// Delete a recovery plan. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='recoveryPlanName'> /// Recovery plan name. /// </param> public static void BeginDelete(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName) { operations.BeginDeleteAsync(recoveryPlanName).GetAwaiter().GetResult(); }
/// <summary> /// Execute unplanned failover of the recovery plan. /// </summary> /// <remarks> /// The operation to start the failover of a recovery plan. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='recoveryPlanName'> /// Recovery plan name. /// </param> /// <param name='input'> /// Failover input. /// </param> public static RecoveryPlan UnplannedFailover(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanUnplannedFailoverInput input) { return(operations.UnplannedFailoverAsync(recoveryPlanName, input).GetAwaiter().GetResult()); }
/// <summary> /// Execute test failover cleanup of the recovery plan. /// </summary> /// <remarks> /// The operation to cleanup test failover of a recovery plan. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='recoveryPlanName'> /// Recovery plan name. /// </param> /// <param name='input'> /// Test failover cleanup input. /// </param> public static RecoveryPlan TestFailoverCleanup(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input) { return(operations.TestFailoverCleanupAsync(recoveryPlanName, input).GetAwaiter().GetResult()); }
/// <summary> /// Execute reprotect of the recovery plan. /// </summary> /// <remarks> /// The operation to reprotect(reverse replicate) a recovery plan. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='recoveryPlanName'> /// Recovery plan name. /// </param> public static RecoveryPlan Reprotect(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName) { return(operations.ReprotectAsync(recoveryPlanName).GetAwaiter().GetResult()); }
/// <summary> /// Gets the list of recovery plans. /// </summary> /// <remarks> /// Lists the recovery plans in the vault. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IPage <RecoveryPlan> List(this IReplicationRecoveryPlansOperations operations) { return(operations.ListAsync().GetAwaiter().GetResult()); }
/// <summary> /// Execute commit failover of the recovery plan. /// </summary> /// <remarks> /// The operation to commit the fail over of a recovery plan. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='recoveryPlanName'> /// Recovery plan name. /// </param> public static RecoveryPlan FailoverCommit(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName) { return(operations.FailoverCommitAsync(recoveryPlanName).GetAwaiter().GetResult()); }