Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the
 /// HyperVReplicaAzureReplicationDetails class.
 /// </summary>
 /// <param name="azureVmDiskDetails">Azure VM Disk details.</param>
 /// <param name="recoveryAzureVmName">Recovery Azure given
 /// name.</param>
 /// <param name="recoveryAzureVMSize">The Recovery Azure VM
 /// size.</param>
 /// <param name="recoveryAzureStorageAccount">The recovery Azure
 /// storage account.</param>
 /// <param name="recoveryAzureLogStorageAccountId">The ARM id of the
 /// log storage account used for replication. This will be set to null
 /// if no log storage account was provided during enable
 /// protection.</param>
 /// <param name="lastReplicatedTime">The Last replication time.</param>
 /// <param name="rpoInSeconds">Last RPO value.</param>
 /// <param name="lastRpoCalculatedTime">The last RPO calculated
 /// time.</param>
 /// <param name="vmId">The virtual machine Id.</param>
 /// <param name="vmProtectionState">The protection state for the
 /// vm.</param>
 /// <param name="vmProtectionStateDescription">The protection state
 /// description for the vm.</param>
 /// <param name="initialReplicationDetails">Initial replication
 /// details.</param>
 /// <param name="vmNics">The PE Network details.</param>
 /// <param name="selectedRecoveryAzureNetworkId">The selected recovery
 /// azure network Id.</param>
 /// <param name="selectedSourceNicId">The selected source nic Id which
 /// will be used as the primary nic during failover.</param>
 /// <param name="encryption">The encryption info.</param>
 /// <param name="oSDetails">The operating system info.</param>
 /// <param name="sourceVmRamSizeInMB">The RAM size of the VM on the
 /// primary side.</param>
 /// <param name="sourceVmCpuCount">The CPU count of the VM on the
 /// primary side.</param>
 /// <param name="enableRdpOnTargetOption">The selected option to enable
 /// RDP\SSH on target vm after failover. String value of
 /// {SrsDataContract.EnableRDPOnTargetOption} enum.</param>
 /// <param name="recoveryAzureResourceGroupId">The target resource
 /// group Id.</param>
 /// <param name="recoveryAvailabilitySetId">The recovery availability
 /// set Id.</param>
 /// <param name="useManagedDisks">A value indicating whether managed
 /// disks should be used during failover.</param>
 /// <param name="licenseType">License Type of the VM to be
 /// used.</param>
 public HyperVReplicaAzureReplicationDetails(IList <AzureVmDiskDetails> azureVmDiskDetails = default(IList <AzureVmDiskDetails>), string recoveryAzureVmName = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureStorageAccount = default(string), string recoveryAzureLogStorageAccountId = default(string), System.DateTime?lastReplicatedTime = default(System.DateTime?), long?rpoInSeconds = default(long?), System.DateTime?lastRpoCalculatedTime = default(System.DateTime?), string vmId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), InitialReplicationDetails initialReplicationDetails = default(InitialReplicationDetails), IList <VMNicDetails> vmNics = default(IList <VMNicDetails>), string selectedRecoveryAzureNetworkId = default(string), string selectedSourceNicId = default(string), string encryption = default(string), OSDetails oSDetails = default(OSDetails), int?sourceVmRamSizeInMB = default(int?), int?sourceVmCpuCount = default(int?), string enableRdpOnTargetOption = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryAvailabilitySetId = default(string), string useManagedDisks = default(string), string licenseType = default(string))
 {
     AzureVmDiskDetails               = azureVmDiskDetails;
     RecoveryAzureVmName              = recoveryAzureVmName;
     RecoveryAzureVMSize              = recoveryAzureVMSize;
     RecoveryAzureStorageAccount      = recoveryAzureStorageAccount;
     RecoveryAzureLogStorageAccountId = recoveryAzureLogStorageAccountId;
     LastReplicatedTime               = lastReplicatedTime;
     RpoInSeconds          = rpoInSeconds;
     LastRpoCalculatedTime = lastRpoCalculatedTime;
     VmId = vmId;
     VmProtectionState            = vmProtectionState;
     VmProtectionStateDescription = vmProtectionStateDescription;
     InitialReplicationDetails    = initialReplicationDetails;
     VmNics = vmNics;
     SelectedRecoveryAzureNetworkId = selectedRecoveryAzureNetworkId;
     SelectedSourceNicId            = selectedSourceNicId;
     Encryption                   = encryption;
     OSDetails                    = oSDetails;
     SourceVmRamSizeInMB          = sourceVmRamSizeInMB;
     SourceVmCpuCount             = sourceVmCpuCount;
     EnableRdpOnTargetOption      = enableRdpOnTargetOption;
     RecoveryAzureResourceGroupId = recoveryAzureResourceGroupId;
     RecoveryAvailabilitySetId    = recoveryAvailabilitySetId;
     UseManagedDisks              = useManagedDisks;
     LicenseType                  = licenseType;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the HyperVReplicaReplicationDetails
 /// class.
 /// </summary>
 /// <param name="lastReplicatedTime">The Last replication time.</param>
 /// <param name="vmNics">The PE Network details.</param>
 /// <param name="vmId">The virtual machine Id.</param>
 /// <param name="vmProtectionState">The protection state for the
 /// vm.</param>
 /// <param name="vmProtectionStateDescription">The protection state
 /// description for the vm.</param>
 /// <param name="initialReplicationDetails">Initial replication
 /// details.</param>
 /// <param name="vMDiskDetails">VM disk details.</param>
 public HyperVReplicaReplicationDetails(System.DateTime?lastReplicatedTime = default(System.DateTime?), IList <VMNicDetails> vmNics = default(IList <VMNicDetails>), string vmId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), InitialReplicationDetails initialReplicationDetails = default(InitialReplicationDetails), IList <DiskDetails> vMDiskDetails = default(IList <DiskDetails>))
 {
     LastReplicatedTime = lastReplicatedTime;
     VmNics             = vmNics;
     VmId = vmId;
     VmProtectionState            = vmProtectionState;
     VmProtectionStateDescription = vmProtectionStateDescription;
     InitialReplicationDetails    = initialReplicationDetails;
     VMDiskDetails = vMDiskDetails;
     CustomInit();
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the InMageReplicationDetails class.
 /// </summary>
 /// <param name="activeSiteType">The active location of the VM. If the
 /// VM is being protected from Azure, this field will take values from
 /// { Azure, OnPrem }. If the VM is being protected between two
 /// data-centers, this field will be OnPrem always.</param>
 /// <param name="sourceVmCpuCount">The CPU count of the VM on the
 /// primary side.</param>
 /// <param name="sourceVmRamSizeInMB">The RAM size of the VM on the
 /// primary side.</param>
 /// <param name="osDetails">The OS details.</param>
 /// <param name="protectionStage">The protection stage.</param>
 /// <param name="vmId">The virtual machine Id.</param>
 /// <param name="vmProtectionState">The protection state for the
 /// vm.</param>
 /// <param name="vmProtectionStateDescription">The protection state
 /// description for the vm.</param>
 /// <param name="resyncDetails">The resync details of the
 /// machine.</param>
 /// <param name="retentionWindowStart">The retention window start
 /// time.</param>
 /// <param name="retentionWindowEnd">The retention window end
 /// time.</param>
 /// <param name="compressedDataRateInMB">The compressed data change
 /// rate in MB.</param>
 /// <param name="uncompressedDataRateInMB">The uncompressed data change
 /// rate in MB.</param>
 /// <param name="rpoInSeconds">The RPO in seconds.</param>
 /// <param name="protectedDisks">The list of protected disks.</param>
 /// <param name="ipAddress">The source IP address.</param>
 /// <param name="lastHeartbeat">The last heartbeat received from the
 /// source server.</param>
 /// <param name="processServerId">The process server Id.</param>
 /// <param name="masterTargetId">The master target Id.</param>
 /// <param name="consistencyPoints">The collection of Consistency
 /// points.</param>
 /// <param name="diskResized">A value indicating whether any disk is
 /// resized for this VM.</param>
 /// <param name="rebootAfterUpdateStatus">A value indicating whether
 /// the source server requires a restart after update.</param>
 /// <param name="multiVmGroupId">The multi vm group Id, if any.</param>
 /// <param name="multiVmGroupName">The multi vm group name, if
 /// any.</param>
 /// <param name="multiVmSyncStatus">A value indicating whether the
 /// multi vm sync is enabled or disabled.</param>
 /// <param name="agentDetails">The agent details.</param>
 /// <param name="vCenterInfrastructureId">The vCenter infrastructure
 /// Id.</param>
 /// <param name="infrastructureVmId">The infrastructure VM Id.</param>
 /// <param name="vmNics">The PE Network details.</param>
 /// <param name="discoveryType">A value indicating the discovery type
 /// of the machine.</param>
 /// <param name="azureStorageAccountId">A value indicating the
 /// underlying Azure storage account. If the VM is not running in
 /// Azure, this value shall be set to null.</param>
 /// <param name="datastores">The datastores of the on-premise machine
 /// Value can be list of strings that contain datastore names.</param>
 /// <param name="validationErrors">The validation errors of the
 /// on-premise machine Value can be list of validation errors.</param>
 /// <param name="lastRpoCalculatedTime">The last RPO calculated
 /// time.</param>
 /// <param name="lastUpdateReceivedTime">The last update time received
 /// from on-prem components.</param>
 /// <param name="replicaId">The replica id of the protected
 /// item.</param>
 /// <param name="osVersion">The OS Version of the protected
 /// item.</param>
 /// <param name="isAdditionalStatsAvailable">A value indicating whether
 /// additional IR stats are available or not.</param>
 /// <param name="totalDataTransferred">The total transferred data in
 /// bytes.</param>
 /// <param name="totalProgressHealth">The progress health.</param>
 public InMageReplicationDetails(string activeSiteType = default(string), int?sourceVmCpuCount = default(int?), int?sourceVmRamSizeInMB = default(int?), OSDiskDetails osDetails = default(OSDiskDetails), string protectionStage = default(string), string vmId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), InitialReplicationDetails resyncDetails = default(InitialReplicationDetails), System.DateTime?retentionWindowStart = default(System.DateTime?), System.DateTime?retentionWindowEnd = default(System.DateTime?), double?compressedDataRateInMB = default(double?), double?uncompressedDataRateInMB = default(double?), long?rpoInSeconds = default(long?), IList <InMageProtectedDiskDetails> protectedDisks = default(IList <InMageProtectedDiskDetails>), string ipAddress = default(string), System.DateTime?lastHeartbeat = default(System.DateTime?), string processServerId = default(string), string masterTargetId = default(string), IDictionary <string, System.DateTime?> consistencyPoints = default(IDictionary <string, System.DateTime?>), string diskResized = default(string), string rebootAfterUpdateStatus = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string multiVmSyncStatus = default(string), InMageAgentDetails agentDetails = default(InMageAgentDetails), string vCenterInfrastructureId = default(string), string infrastructureVmId = default(string), IList <VMNicDetails> vmNics = default(IList <VMNicDetails>), string discoveryType = default(string), string azureStorageAccountId = default(string), IList <string> datastores = default(IList <string>), IList <HealthError> validationErrors = default(IList <HealthError>), System.DateTime?lastRpoCalculatedTime = default(System.DateTime?), System.DateTime?lastUpdateReceivedTime = default(System.DateTime?), string replicaId = default(string), string osVersion = default(string), bool?isAdditionalStatsAvailable = default(bool?), long?totalDataTransferred = default(long?), string totalProgressHealth = default(string))
 {
     ActiveSiteType      = activeSiteType;
     SourceVmCpuCount    = sourceVmCpuCount;
     SourceVmRamSizeInMB = sourceVmRamSizeInMB;
     OsDetails           = osDetails;
     ProtectionStage     = protectionStage;
     VmId = vmId;
     VmProtectionState            = vmProtectionState;
     VmProtectionStateDescription = vmProtectionStateDescription;
     ResyncDetails            = resyncDetails;
     RetentionWindowStart     = retentionWindowStart;
     RetentionWindowEnd       = retentionWindowEnd;
     CompressedDataRateInMB   = compressedDataRateInMB;
     UncompressedDataRateInMB = uncompressedDataRateInMB;
     RpoInSeconds             = rpoInSeconds;
     ProtectedDisks           = protectedDisks;
     IpAddress               = ipAddress;
     LastHeartbeat           = lastHeartbeat;
     ProcessServerId         = processServerId;
     MasterTargetId          = masterTargetId;
     ConsistencyPoints       = consistencyPoints;
     DiskResized             = diskResized;
     RebootAfterUpdateStatus = rebootAfterUpdateStatus;
     MultiVmGroupId          = multiVmGroupId;
     MultiVmGroupName        = multiVmGroupName;
     MultiVmSyncStatus       = multiVmSyncStatus;
     AgentDetails            = agentDetails;
     VCenterInfrastructureId = vCenterInfrastructureId;
     InfrastructureVmId      = infrastructureVmId;
     VmNics                     = vmNics;
     DiscoveryType              = discoveryType;
     AzureStorageAccountId      = azureStorageAccountId;
     Datastores                 = datastores;
     ValidationErrors           = validationErrors;
     LastRpoCalculatedTime      = lastRpoCalculatedTime;
     LastUpdateReceivedTime     = lastUpdateReceivedTime;
     ReplicaId                  = replicaId;
     OsVersion                  = osVersion;
     IsAdditionalStatsAvailable = isAdditionalStatsAvailable;
     TotalDataTransferred       = totalDataTransferred;
     TotalProgressHealth        = totalProgressHealth;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the
 /// HyperVReplicaAzureReplicationDetails class.
 /// </summary>
 /// <param name="azureVmDiskDetails">Azure VM Disk details.</param>
 /// <param name="recoveryAzureVmName">Recovery Azure given
 /// name.</param>
 /// <param name="recoveryAzureVMSize">The Recovery Azure VM
 /// size.</param>
 /// <param name="recoveryAzureStorageAccount">The recovery Azure
 /// storage account.</param>
 /// <param name="recoveryAzureLogStorageAccountId">The ARM id of the
 /// log storage account used for replication. This will be set to null
 /// if no log storage account was provided during enable
 /// protection.</param>
 /// <param name="lastReplicatedTime">The Last replication time.</param>
 /// <param name="rpoInSeconds">Last RPO value.</param>
 /// <param name="lastRpoCalculatedTime">The last RPO calculated
 /// time.</param>
 /// <param name="vmId">The virtual machine Id.</param>
 /// <param name="vmProtectionState">The protection state for the
 /// vm.</param>
 /// <param name="vmProtectionStateDescription">The protection state
 /// description for the vm.</param>
 /// <param name="initialReplicationDetails">Initial replication
 /// details.</param>
 /// <param name="vmNics">The PE Network details.</param>
 /// <param name="selectedRecoveryAzureNetworkId">The selected recovery
 /// azure network Id.</param>
 /// <param name="selectedSourceNicId">The selected source nic Id which
 /// will be used as the primary nic during failover.</param>
 /// <param name="encryption">The encryption info.</param>
 /// <param name="oSDetails">The operating system info.</param>
 /// <param name="sourceVmRamSizeInMB">The RAM size of the VM on the
 /// primary side.</param>
 /// <param name="sourceVmCpuCount">The CPU count of the VM on the
 /// primary side.</param>
 /// <param name="enableRdpOnTargetOption">The selected option to enable
 /// RDP\SSH on target vm after failover. String value of
 /// SrsDataContract.EnableRDPOnTargetOption enum.</param>
 /// <param name="recoveryAzureResourceGroupId">The target resource
 /// group Id.</param>
 /// <param name="recoveryAvailabilitySetId">The recovery availability
 /// set Id.</param>
 /// <param name="targetAvailabilityZone">The target availability
 /// zone.</param>
 /// <param name="targetProximityPlacementGroupId">The target proximity
 /// placement group Id.</param>
 /// <param name="useManagedDisks">A value indicating whether managed
 /// disks should be used during failover.</param>
 /// <param name="licenseType">License Type of the VM to be
 /// used.</param>
 /// <param name="sqlServerLicenseType">The SQL Server license
 /// type.</param>
 /// <param name="lastRecoveryPointReceived">The last recovery point
 /// received time.</param>
 /// <param name="targetVmTags">The target VM tags.</param>
 /// <param name="seedManagedDiskTags">The tags for the seed managed
 /// disks.</param>
 /// <param name="targetManagedDiskTags">The tags for the target managed
 /// disks.</param>
 /// <param name="targetNicTags">The tags for the target NICs.</param>
 /// <param name="protectedManagedDisks">The list of protected managed
 /// disks.</param>
 public HyperVReplicaAzureReplicationDetails(IList <AzureVmDiskDetails> azureVmDiskDetails = default(IList <AzureVmDiskDetails>), string recoveryAzureVmName = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureStorageAccount = default(string), string recoveryAzureLogStorageAccountId = default(string), System.DateTime?lastReplicatedTime = default(System.DateTime?), long?rpoInSeconds = default(long?), System.DateTime?lastRpoCalculatedTime = default(System.DateTime?), string vmId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), InitialReplicationDetails initialReplicationDetails = default(InitialReplicationDetails), IList <VMNicDetails> vmNics = default(IList <VMNicDetails>), string selectedRecoveryAzureNetworkId = default(string), string selectedSourceNicId = default(string), string encryption = default(string), OSDetails oSDetails = default(OSDetails), int?sourceVmRamSizeInMB = default(int?), int?sourceVmCpuCount = default(int?), string enableRdpOnTargetOption = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryAvailabilitySetId = default(string), string targetAvailabilityZone = default(string), string targetProximityPlacementGroupId = default(string), string useManagedDisks = default(string), string licenseType = default(string), string sqlServerLicenseType = default(string), System.DateTime?lastRecoveryPointReceived = default(System.DateTime?), IDictionary <string, string> targetVmTags = default(IDictionary <string, string>), IDictionary <string, string> seedManagedDiskTags = default(IDictionary <string, string>), IDictionary <string, string> targetManagedDiskTags = default(IDictionary <string, string>), IDictionary <string, string> targetNicTags = default(IDictionary <string, string>), IList <HyperVReplicaAzureManagedDiskDetails> protectedManagedDisks = default(IList <HyperVReplicaAzureManagedDiskDetails>))
 {
     AzureVmDiskDetails               = azureVmDiskDetails;
     RecoveryAzureVmName              = recoveryAzureVmName;
     RecoveryAzureVMSize              = recoveryAzureVMSize;
     RecoveryAzureStorageAccount      = recoveryAzureStorageAccount;
     RecoveryAzureLogStorageAccountId = recoveryAzureLogStorageAccountId;
     LastReplicatedTime               = lastReplicatedTime;
     RpoInSeconds          = rpoInSeconds;
     LastRpoCalculatedTime = lastRpoCalculatedTime;
     VmId = vmId;
     VmProtectionState            = vmProtectionState;
     VmProtectionStateDescription = vmProtectionStateDescription;
     InitialReplicationDetails    = initialReplicationDetails;
     VmNics = vmNics;
     SelectedRecoveryAzureNetworkId = selectedRecoveryAzureNetworkId;
     SelectedSourceNicId            = selectedSourceNicId;
     Encryption                      = encryption;
     OSDetails                       = oSDetails;
     SourceVmRamSizeInMB             = sourceVmRamSizeInMB;
     SourceVmCpuCount                = sourceVmCpuCount;
     EnableRdpOnTargetOption         = enableRdpOnTargetOption;
     RecoveryAzureResourceGroupId    = recoveryAzureResourceGroupId;
     RecoveryAvailabilitySetId       = recoveryAvailabilitySetId;
     TargetAvailabilityZone          = targetAvailabilityZone;
     TargetProximityPlacementGroupId = targetProximityPlacementGroupId;
     UseManagedDisks                 = useManagedDisks;
     LicenseType                     = licenseType;
     SqlServerLicenseType            = sqlServerLicenseType;
     LastRecoveryPointReceived       = lastRecoveryPointReceived;
     TargetVmTags                    = targetVmTags;
     SeedManagedDiskTags             = seedManagedDiskTags;
     TargetManagedDiskTags           = targetManagedDiskTags;
     TargetNicTags                   = targetNicTags;
     ProtectedManagedDisks           = protectedManagedDisks;
     CustomInit();
 }