Exemple #1
0
        /// <summary>
        /// Constructs ConfirmMigrationStatusMsg to be returned as an output of Get-AzureStorSimpleVolumeContainerConfirmStatus cmdlet
        /// </summary>
        /// <param name="configID">config id</param>
        /// <param name="overallStatus">overall status of migration</param>
        public ConfirmMigrationStatusMsg(string configID, MigrationConfirmStatus overallStatus)
        {
            this.LegacyConfigId             = configID;
            this.CommitOrRollbackNotStarted =
                new ConfirmMigrationStatus(
                    ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.CommitOrRollbackNotStarted,
                    overallStatus);

            this.CommitInProgress =
                new ConfirmMigrationStatus(
                    ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.CommitInProgress, overallStatus);
            this.CommitFailed =
                new ConfirmMigrationStatus(ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.CommitFailed,
                                           overallStatus);
            this.CommitComplete =
                new ConfirmMigrationStatus(ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.CommitComplete,
                                           overallStatus);

            this.RollbackInProgress =
                new ConfirmMigrationStatus(
                    ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.RollbackInProgress, overallStatus);
            this.RollbackFailed =
                new ConfirmMigrationStatus(ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.RollbackFailed,
                                           overallStatus);
            this.RollbackComplete =
                new ConfirmMigrationStatus(
                    ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.RollbackComplete, overallStatus);
        }
        /// <summary>
        /// Constructs ConfirmMigrationStatusMsg to be returned as an output of Get-AzureStorSimpleVolumeContainerConfirmStatus cmdlet
        /// </summary>
        /// <param name="configID">config id</param>
        /// <param name="overallStatus">overall status of migration</param>
        public ConfirmMigrationStatusMsg(string configID, MigrationConfirmStatus overallStatus)
        {
            this.LegacyConfigId = configID;
            this.CommitOrRollbackNotStarted =
                new ConfirmMigrationStatus(
                    ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.CommitOrRollbackNotStarted,
                    overallStatus);

            this.CommitInProgress =
                new ConfirmMigrationStatus(
                    ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.CommitInProgress, overallStatus);
            this.CommitFailed =
                new ConfirmMigrationStatus(ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.CommitFailed,
                    overallStatus);
            this.CommitComplete =
                new ConfirmMigrationStatus(ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.CommitComplete,
                    overallStatus);

            this.RollbackInProgress =
                new ConfirmMigrationStatus(
                    ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.RollbackInProgress, overallStatus);
            this.RollbackFailed =
                new ConfirmMigrationStatus(ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.RollbackFailed,
                    overallStatus);
            this.RollbackComplete =
                new ConfirmMigrationStatus(
                    ConfirmMigrationStatus.MigrationVolumeContainerConfirmStatus.RollbackComplete, overallStatus);
        }