From f50d58366f64d9d1fb52852d5a76108d4d273b72 Mon Sep 17 00:00:00 2001 From: anmolbhatia289 <53425990+anmolbhatia289@users.noreply.github.com> Date: Tue, 10 Mar 2020 11:23:44 +0530 Subject: [PATCH] unused changes in 2018_07_10 --- .../IReplicationProtectedItemsOperations.cs | 206 ---- .../ISiteRecoveryManagementClient.cs | 15 - .../Models/A2AEnableProtectionInput.cs | 28 +- .../Models/A2AProtectedDiskDetails.cs | 21 +- .../Models/A2AProtectedManagedDiskDetails.cs | 48 +- .../Models/A2ARecoveryPointDetails.cs | 13 +- .../Generated/Models/A2AReplicationDetails.cs | 66 +- .../A2AUpdateReplicationProtectedItemInput.cs | 11 +- .../Models/A2AVmManagedDiskInputDetails.cs | 21 +- .../Models/A2AVmManagedDiskUpdateDetails.cs | 30 +- .../AzureToAzureVmSyncedConfigDetails.cs | 10 +- .../Generated/Models/AzureVmDiskDetails.cs | 19 +- .../src/Generated/Models/EventProperties.cs | 11 +- .../Generated/Models/EventQueryParameter.cs | 12 +- .../src/Generated/Models/HealthError.cs | 21 +- ...zureUpdateReplicationProtectedItemInput.cs | 14 +- .../InMageAzureV2EnableProtectionInput.cs | 39 +- .../Models/InMageAzureV2ReplicationDetails.cs | 7 - .../Generated/Models/ResourceHealthSummary.cs | 11 +- ...ReplicationProtectedItemInputProperties.cs | 11 +- .../src/Generated/Models/VMNicDetails.cs | 79 +- .../src/Generated/Models/VMNicInputDetails.cs | 70 +- .../Models/VMwareV2FabricCreationInput.cs | 17 +- .../Models/VMwareV2FabricSpecificDetails.cs | 11 +- .../ReplicationProtectedItemsOperations.cs | 969 ++---------------- ...ationProtectedItemsOperationsExtensions.cs | 348 ------- .../Generated/SiteRecoveryManagementClient.cs | 26 +- 27 files changed, 190 insertions(+), 1944 deletions(-) diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectedItemsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectedItemsOperations.cs index cae8f52a553e..5021bee819b1 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectedItemsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectedItemsOperations.cs @@ -186,40 +186,6 @@ public partial interface IReplicationProtectedItemsOperations /// Task> UpdateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Add disk(s) for protection. - /// - /// - /// Operation to add disks(s) to the replication protected item. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Add disks input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> AddDisksWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, AddDisksInput addDisksInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// /// Change or apply recovery point. /// /// @@ -353,40 +319,6 @@ public partial interface IReplicationProtectedItemsOperations /// Task DeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Removes disk(s). - /// - /// - /// Operation to remove disk(s) from the replication protected item. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Remove disks input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> RemoveDisksWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, RemoveDisksInput removeDisksInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// /// Resynchronize or repair replication. /// /// @@ -454,41 +386,6 @@ public partial interface IReplicationProtectedItemsOperations /// Task> ReprotectWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Resolve health errors. - /// - /// - /// Operation to resolve health issues of the replication protected - /// item. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Health issue input object. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> ResolveHealthErrorsWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ResolveHealthInput resolveHealthInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// /// Execute test failover /// /// @@ -759,40 +656,6 @@ public partial interface IReplicationProtectedItemsOperations /// Task> BeginUpdateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Add disk(s) for protection. - /// - /// - /// Operation to add disks(s) to the replication protected item. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Add disks input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> BeginAddDisksWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, AddDisksInput addDisksInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// /// Change or apply recovery point. /// /// @@ -926,40 +789,6 @@ public partial interface IReplicationProtectedItemsOperations /// Task BeginDeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Removes disk(s). - /// - /// - /// Operation to remove disk(s) from the replication protected item. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Remove disks input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> BeginRemoveDisksWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, RemoveDisksInput removeDisksInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// /// Resynchronize or repair replication. /// /// @@ -1027,41 +856,6 @@ public partial interface IReplicationProtectedItemsOperations /// Task> BeginReprotectWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Resolve health errors. - /// - /// - /// Operation to resolve health issues of the replication protected - /// item. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Health issue input object. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> BeginResolveHealthErrorsWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ResolveHealthInput resolveHealthInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// /// Execute test failover /// /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISiteRecoveryManagementClient.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISiteRecoveryManagementClient.cs index 25b5858aade8..5458b3897731 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISiteRecoveryManagementClient.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISiteRecoveryManagementClient.cs @@ -89,11 +89,6 @@ public partial interface ISiteRecoveryManagementClient : System.IDisposable /// IReplicationAlertSettingsOperations ReplicationAlertSettings { get; } - /// - /// Gets the IReplicationEligibilityResultsOperations. - /// - IReplicationEligibilityResultsOperations ReplicationEligibilityResults { get; } - /// /// Gets the IReplicationEventsOperations. /// @@ -194,20 +189,10 @@ public partial interface ISiteRecoveryManagementClient : System.IDisposable /// IReplicationRecoveryPlansOperations ReplicationRecoveryPlans { get; } - /// - /// Gets the ISupportedOperatingSystemsOperations. - /// - ISupportedOperatingSystemsOperations SupportedOperatingSystems { get; } - /// /// Gets the IReplicationVaultHealthOperations. /// IReplicationVaultHealthOperations ReplicationVaultHealth { get; } - /// - /// Gets the IReplicationVaultSettingOperations. - /// - IReplicationVaultSettingOperations ReplicationVaultSetting { get; } - } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AEnableProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AEnableProtectionInput.cs index 3e15b0c56707..5bc1f652c08a 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AEnableProtectionInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AEnableProtectionInput.cs @@ -50,12 +50,7 @@ public A2AEnableProtectionInput() /// storage account. /// The recovery disk encryption /// information. - /// The recovery availability - /// zone. - /// The recovery Azure virtual - /// network ARM id. - /// The recovery subnet name. - public A2AEnableProtectionInput(string fabricObjectId = default(string), string recoveryContainerId = default(string), string recoveryResourceGroupId = default(string), string recoveryCloudServiceId = default(string), string recoveryAvailabilitySetId = default(string), IList vmDisks = default(IList), IList vmManagedDisks = default(IList), string multiVmGroupName = default(string), string recoveryBootDiagStorageAccountId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo), string recoveryAvailabilityZone = default(string), string recoveryAzureNetworkId = default(string), string recoverySubnetName = default(string)) + public A2AEnableProtectionInput(string fabricObjectId = default(string), string recoveryContainerId = default(string), string recoveryResourceGroupId = default(string), string recoveryCloudServiceId = default(string), string recoveryAvailabilitySetId = default(string), IList vmDisks = default(IList), IList vmManagedDisks = default(IList), string multiVmGroupName = default(string), string recoveryBootDiagStorageAccountId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo)) { FabricObjectId = fabricObjectId; RecoveryContainerId = recoveryContainerId; @@ -67,9 +62,6 @@ public A2AEnableProtectionInput() MultiVmGroupName = multiVmGroupName; RecoveryBootDiagStorageAccountId = recoveryBootDiagStorageAccountId; DiskEncryptionInfo = diskEncryptionInfo; - RecoveryAvailabilityZone = recoveryAvailabilityZone; - RecoveryAzureNetworkId = recoveryAzureNetworkId; - RecoverySubnetName = recoverySubnetName; CustomInit(); } @@ -139,23 +131,5 @@ public A2AEnableProtectionInput() [JsonProperty(PropertyName = "diskEncryptionInfo")] public DiskEncryptionInfo DiskEncryptionInfo { get; set; } - /// - /// Gets or sets the recovery availability zone. - /// - [JsonProperty(PropertyName = "recoveryAvailabilityZone")] - public string RecoveryAvailabilityZone { get; set; } - - /// - /// Gets or sets the recovery Azure virtual network ARM id. - /// - [JsonProperty(PropertyName = "recoveryAzureNetworkId")] - public string RecoveryAzureNetworkId { get; set; } - - /// - /// Gets or sets the recovery subnet name. - /// - [JsonProperty(PropertyName = "recoverySubnetName")] - public string RecoverySubnetName { get; set; } - } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedDiskDetails.cs index ba81eb50cad4..655afd249945 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedDiskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedDiskDetails.cs @@ -11,8 +11,6 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; using System.Linq; /// @@ -55,9 +53,6 @@ public A2AProtectedDiskDetails() /// pending for replication in MB at staging account. /// The data pending at /// source virtual machine in MB. - /// The disk state. - /// The disk level operations - /// list. /// A value indicating whether vm has /// encrypted os disk or not. /// The secret URL / identifier @@ -69,7 +64,7 @@ public A2AProtectedDiskDetails() /// The key URL / identifier (KEK). /// The KeyVault resource id for key /// (KEK). - public A2AProtectedDiskDetails(string diskUri = default(string), string recoveryAzureStorageAccountId = default(string), string primaryDiskAzureStorageAccountId = default(string), string recoveryDiskUri = default(string), string diskName = default(string), long? diskCapacityInBytes = default(long?), string primaryStagingAzureStorageAccountId = default(string), string diskType = default(string), bool? resyncRequired = default(bool?), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), double? dataPendingInStagingStorageAccountInMB = default(double?), double? dataPendingAtSourceAgentInMB = default(double?), string diskState = default(string), IList allowedDiskLevelOperation = default(IList), bool? isDiskEncrypted = default(bool?), string secretIdentifier = default(string), string dekKeyVaultArmId = default(string), bool? isDiskKeyEncrypted = default(bool?), string keyIdentifier = default(string), string kekKeyVaultArmId = default(string)) + public A2AProtectedDiskDetails(string diskUri = default(string), string recoveryAzureStorageAccountId = default(string), string primaryDiskAzureStorageAccountId = default(string), string recoveryDiskUri = default(string), string diskName = default(string), long? diskCapacityInBytes = default(long?), string primaryStagingAzureStorageAccountId = default(string), string diskType = default(string), bool? resyncRequired = default(bool?), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), double? dataPendingInStagingStorageAccountInMB = default(double?), double? dataPendingAtSourceAgentInMB = default(double?), bool? isDiskEncrypted = default(bool?), string secretIdentifier = default(string), string dekKeyVaultArmId = default(string), bool? isDiskKeyEncrypted = default(bool?), string keyIdentifier = default(string), string kekKeyVaultArmId = default(string)) { DiskUri = diskUri; RecoveryAzureStorageAccountId = recoveryAzureStorageAccountId; @@ -84,8 +79,6 @@ public A2AProtectedDiskDetails() MonitoringJobType = monitoringJobType; DataPendingInStagingStorageAccountInMB = dataPendingInStagingStorageAccountInMB; DataPendingAtSourceAgentInMB = dataPendingAtSourceAgentInMB; - DiskState = diskState; - AllowedDiskLevelOperation = allowedDiskLevelOperation; IsDiskEncrypted = isDiskEncrypted; SecretIdentifier = secretIdentifier; DekKeyVaultArmId = dekKeyVaultArmId; @@ -182,18 +175,6 @@ public A2AProtectedDiskDetails() [JsonProperty(PropertyName = "dataPendingAtSourceAgentInMB")] public double? DataPendingAtSourceAgentInMB { get; set; } - /// - /// Gets or sets the disk state. - /// - [JsonProperty(PropertyName = "diskState")] - public string DiskState { get; set; } - - /// - /// Gets or sets the disk level operations list. - /// - [JsonProperty(PropertyName = "allowedDiskLevelOperation")] - public IList AllowedDiskLevelOperation { get; set; } - /// /// Gets or sets a value indicating whether vm has encrypted os disk or /// not. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedManagedDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedManagedDiskDetails.cs index b774d7a56957..49fa606f0f1c 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedManagedDiskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedManagedDiskDetails.cs @@ -11,8 +11,6 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; using System.Linq; /// @@ -46,8 +44,6 @@ public A2AProtectedManagedDiskDetails() /// The target disk type /// after failover. Its an optional value and will be same as source /// disk type if not user provided. - /// The recovery disk - /// encryption set Id. /// The disk name. /// The disk capacity in /// bytes. @@ -66,9 +62,6 @@ public A2AProtectedManagedDiskDetails() /// pending for replication in MB at staging account. /// The data pending at /// source virtual machine in MB. - /// The disk state. - /// The disk level operations - /// list. /// A value indicating whether vm has /// encrypted os disk or not. /// The secret URL / identifier @@ -80,11 +73,7 @@ public A2AProtectedManagedDiskDetails() /// The key URL / identifier (KEK). /// The KeyVault resource id for key /// (KEK). - /// The failover name for the managed - /// disk. - /// The test failover name for the managed - /// disk. - public A2AProtectedManagedDiskDetails(string diskId = default(string), string recoveryResourceGroupId = default(string), string recoveryTargetDiskId = default(string), string recoveryReplicaDiskId = default(string), string recoveryReplicaDiskAccountType = default(string), string recoveryTargetDiskAccountType = default(string), string recoveryDiskEncryptionSetId = default(string), string diskName = default(string), long? diskCapacityInBytes = default(long?), string primaryStagingAzureStorageAccountId = default(string), string diskType = default(string), bool? resyncRequired = default(bool?), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), double? dataPendingInStagingStorageAccountInMB = default(double?), double? dataPendingAtSourceAgentInMB = default(double?), string diskState = default(string), IList allowedDiskLevelOperation = default(IList), bool? isDiskEncrypted = default(bool?), string secretIdentifier = default(string), string dekKeyVaultArmId = default(string), bool? isDiskKeyEncrypted = default(bool?), string keyIdentifier = default(string), string kekKeyVaultArmId = default(string), string failoverDiskName = default(string), string tfoDiskName = default(string)) + public A2AProtectedManagedDiskDetails(string diskId = default(string), string recoveryResourceGroupId = default(string), string recoveryTargetDiskId = default(string), string recoveryReplicaDiskId = default(string), string recoveryReplicaDiskAccountType = default(string), string recoveryTargetDiskAccountType = default(string), string diskName = default(string), long? diskCapacityInBytes = default(long?), string primaryStagingAzureStorageAccountId = default(string), string diskType = default(string), bool? resyncRequired = default(bool?), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), double? dataPendingInStagingStorageAccountInMB = default(double?), double? dataPendingAtSourceAgentInMB = default(double?), bool? isDiskEncrypted = default(bool?), string secretIdentifier = default(string), string dekKeyVaultArmId = default(string), bool? isDiskKeyEncrypted = default(bool?), string keyIdentifier = default(string), string kekKeyVaultArmId = default(string)) { DiskId = diskId; RecoveryResourceGroupId = recoveryResourceGroupId; @@ -92,7 +81,6 @@ public A2AProtectedManagedDiskDetails() RecoveryReplicaDiskId = recoveryReplicaDiskId; RecoveryReplicaDiskAccountType = recoveryReplicaDiskAccountType; RecoveryTargetDiskAccountType = recoveryTargetDiskAccountType; - RecoveryDiskEncryptionSetId = recoveryDiskEncryptionSetId; DiskName = diskName; DiskCapacityInBytes = diskCapacityInBytes; PrimaryStagingAzureStorageAccountId = primaryStagingAzureStorageAccountId; @@ -102,16 +90,12 @@ public A2AProtectedManagedDiskDetails() MonitoringJobType = monitoringJobType; DataPendingInStagingStorageAccountInMB = dataPendingInStagingStorageAccountInMB; DataPendingAtSourceAgentInMB = dataPendingAtSourceAgentInMB; - DiskState = diskState; - AllowedDiskLevelOperation = allowedDiskLevelOperation; IsDiskEncrypted = isDiskEncrypted; SecretIdentifier = secretIdentifier; DekKeyVaultArmId = dekKeyVaultArmId; IsDiskKeyEncrypted = isDiskKeyEncrypted; KeyIdentifier = keyIdentifier; KekKeyVaultArmId = kekKeyVaultArmId; - FailoverDiskName = failoverDiskName; - TfoDiskName = tfoDiskName; CustomInit(); } @@ -158,12 +142,6 @@ public A2AProtectedManagedDiskDetails() [JsonProperty(PropertyName = "recoveryTargetDiskAccountType")] public string RecoveryTargetDiskAccountType { get; set; } - /// - /// Gets or sets the recovery disk encryption set Id. - /// - [JsonProperty(PropertyName = "recoveryDiskEncryptionSetId")] - public string RecoveryDiskEncryptionSetId { get; set; } - /// /// Gets or sets the disk name. /// @@ -222,18 +200,6 @@ public A2AProtectedManagedDiskDetails() [JsonProperty(PropertyName = "dataPendingAtSourceAgentInMB")] public double? DataPendingAtSourceAgentInMB { get; set; } - /// - /// Gets or sets the disk state. - /// - [JsonProperty(PropertyName = "diskState")] - public string DiskState { get; set; } - - /// - /// Gets or sets the disk level operations list. - /// - [JsonProperty(PropertyName = "allowedDiskLevelOperation")] - public IList AllowedDiskLevelOperation { get; set; } - /// /// Gets or sets a value indicating whether vm has encrypted os disk or /// not. @@ -272,17 +238,5 @@ public A2AProtectedManagedDiskDetails() [JsonProperty(PropertyName = "kekKeyVaultArmId")] public string KekKeyVaultArmId { get; set; } - /// - /// Gets or sets the failover name for the managed disk. - /// - [JsonProperty(PropertyName = "failoverDiskName")] - public string FailoverDiskName { get; set; } - - /// - /// Gets or sets the test failover name for the managed disk. - /// - [JsonProperty(PropertyName = "tfoDiskName")] - public string TfoDiskName { get; set; } - } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ARecoveryPointDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ARecoveryPointDetails.cs index b214b5dc21c6..166468bdf7bd 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ARecoveryPointDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ARecoveryPointDetails.cs @@ -11,8 +11,6 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; using System.Linq; /// @@ -35,12 +33,9 @@ public A2ARecoveryPointDetails() /// A value indicating whether the /// recovery point is multi VM consistent. Possible values include: /// 'MultiVmSyncRecoveryPoint', 'PerVmRecoveryPoint' - /// List of disk ids representing a recovery - /// point. - public A2ARecoveryPointDetails(string recoveryPointSyncType = default(string), IList disks = default(IList)) + public A2ARecoveryPointDetails(string recoveryPointSyncType = default(string)) { RecoveryPointSyncType = recoveryPointSyncType; - Disks = disks; CustomInit(); } @@ -57,11 +52,5 @@ public A2ARecoveryPointDetails() [JsonProperty(PropertyName = "recoveryPointSyncType")] public string RecoveryPointSyncType { get; set; } - /// - /// Gets or sets list of disk ids representing a recovery point. - /// - [JsonProperty(PropertyName = "disks")] - public IList Disks { get; set; } - } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationDetails.cs index d7883e28098f..79cbe8ef07f1 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationDetails.cs @@ -34,10 +34,6 @@ public A2AReplicationDetails() /// /// The fabric specific object Id of the /// virtual machine. - /// The initial primary - /// fabric location. - /// The initial recovery - /// fabric location. /// The multi vm group Id. /// The multi vm group name. /// Whether Multi VM group is @@ -45,8 +41,6 @@ public A2AReplicationDetails() /// 'AutoCreated', 'UserSpecified' /// The management Id. /// The list of protected disks. - /// The list of unprotected - /// disks. /// The list of protected managed /// disks. /// The recovery boot @@ -68,8 +62,6 @@ public A2AReplicationDetails() /// set. /// The recovery virtual /// network. - /// The test failover virtual - /// network. /// The virtual machine nic details. /// The synced configuration /// details. @@ -101,23 +93,14 @@ public A2AReplicationDetails() /// The last RPO value in seconds. /// The time (in UTC) when the last /// RPO value was calculated by Protection Service. - /// The recovery availability - /// zone. - /// The encryption type of the VM. - /// Possible values include: 'NotEncrypted', 'OnePassEncrypted', - /// 'TwoPassEncrypted' - /// The test failover VM name. - public A2AReplicationDetails(string fabricObjectId = default(string), string initialPrimaryFabricLocation = default(string), string initialRecoveryFabricLocation = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string multiVmGroupCreateOption = default(string), string managementId = default(string), IList protectedDisks = default(IList), IList unprotectedDisks = default(IList), IList protectedManagedDisks = default(IList), string recoveryBootDiagStorageAccountId = default(string), string primaryFabricLocation = default(string), string recoveryFabricLocation = default(string), string osType = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureVMName = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryCloudService = default(string), string recoveryAvailabilitySet = default(string), string selectedRecoveryAzureNetworkId = default(string), string selectedTfoAzureNetworkId = default(string), IList vmNics = default(IList), AzureToAzureVmSyncedConfigDetails vmSyncedConfigDetails = default(AzureToAzureVmSyncedConfigDetails), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string agentVersion = default(string), bool? isReplicationAgentUpdateRequired = default(bool?), string recoveryFabricObjectId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), string lifecycleId = default(string), string testFailoverRecoveryFabricObjectId = default(string), long? rpoInSeconds = default(long?), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), string recoveryAvailabilityZone = default(string), string vmEncryptionType = default(string), string tfoAzureVMName = default(string)) + public A2AReplicationDetails(string fabricObjectId = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string multiVmGroupCreateOption = default(string), string managementId = default(string), IList protectedDisks = default(IList), IList protectedManagedDisks = default(IList), string recoveryBootDiagStorageAccountId = default(string), string primaryFabricLocation = default(string), string recoveryFabricLocation = default(string), string osType = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureVMName = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryCloudService = default(string), string recoveryAvailabilitySet = default(string), string selectedRecoveryAzureNetworkId = default(string), IList vmNics = default(IList), AzureToAzureVmSyncedConfigDetails vmSyncedConfigDetails = default(AzureToAzureVmSyncedConfigDetails), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string agentVersion = default(string), bool? isReplicationAgentUpdateRequired = default(bool?), string recoveryFabricObjectId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), string lifecycleId = default(string), string testFailoverRecoveryFabricObjectId = default(string), long? rpoInSeconds = default(long?), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?)) { FabricObjectId = fabricObjectId; - InitialPrimaryFabricLocation = initialPrimaryFabricLocation; - InitialRecoveryFabricLocation = initialRecoveryFabricLocation; MultiVmGroupId = multiVmGroupId; MultiVmGroupName = multiVmGroupName; MultiVmGroupCreateOption = multiVmGroupCreateOption; ManagementId = managementId; ProtectedDisks = protectedDisks; - UnprotectedDisks = unprotectedDisks; ProtectedManagedDisks = protectedManagedDisks; RecoveryBootDiagStorageAccountId = recoveryBootDiagStorageAccountId; PrimaryFabricLocation = primaryFabricLocation; @@ -129,7 +112,6 @@ public A2AReplicationDetails() RecoveryCloudService = recoveryCloudService; RecoveryAvailabilitySet = recoveryAvailabilitySet; SelectedRecoveryAzureNetworkId = selectedRecoveryAzureNetworkId; - SelectedTfoAzureNetworkId = selectedTfoAzureNetworkId; VmNics = vmNics; VmSyncedConfigDetails = vmSyncedConfigDetails; MonitoringPercentageCompletion = monitoringPercentageCompletion; @@ -144,9 +126,6 @@ public A2AReplicationDetails() TestFailoverRecoveryFabricObjectId = testFailoverRecoveryFabricObjectId; RpoInSeconds = rpoInSeconds; LastRpoCalculatedTime = lastRpoCalculatedTime; - RecoveryAvailabilityZone = recoveryAvailabilityZone; - VmEncryptionType = vmEncryptionType; - TfoAzureVMName = tfoAzureVMName; CustomInit(); } @@ -161,18 +140,6 @@ public A2AReplicationDetails() [JsonProperty(PropertyName = "fabricObjectId")] public string FabricObjectId { get; set; } - /// - /// Gets the initial primary fabric location. - /// - [JsonProperty(PropertyName = "initialPrimaryFabricLocation")] - public string InitialPrimaryFabricLocation { get; private set; } - - /// - /// Gets the initial recovery fabric location. - /// - [JsonProperty(PropertyName = "initialRecoveryFabricLocation")] - public string InitialRecoveryFabricLocation { get; private set; } - /// /// Gets or sets the multi vm group Id. /// @@ -204,12 +171,6 @@ public A2AReplicationDetails() [JsonProperty(PropertyName = "protectedDisks")] public IList ProtectedDisks { get; set; } - /// - /// Gets or sets the list of unprotected disks. - /// - [JsonProperty(PropertyName = "unprotectedDisks")] - public IList UnprotectedDisks { get; set; } - /// /// Gets or sets the list of protected managed disks. /// @@ -276,12 +237,6 @@ public A2AReplicationDetails() [JsonProperty(PropertyName = "selectedRecoveryAzureNetworkId")] public string SelectedRecoveryAzureNetworkId { get; set; } - /// - /// Gets or sets the test failover virtual network. - /// - [JsonProperty(PropertyName = "selectedTfoAzureNetworkId")] - public string SelectedTfoAzureNetworkId { get; set; } - /// /// Gets or sets the virtual machine nic details. /// @@ -375,24 +330,5 @@ public A2AReplicationDetails() [JsonProperty(PropertyName = "lastRpoCalculatedTime")] public System.DateTime? LastRpoCalculatedTime { get; set; } - /// - /// Gets or sets the recovery availability zone. - /// - [JsonProperty(PropertyName = "recoveryAvailabilityZone")] - public string RecoveryAvailabilityZone { get; set; } - - /// - /// Gets the encryption type of the VM. Possible values include: - /// 'NotEncrypted', 'OnePassEncrypted', 'TwoPassEncrypted' - /// - [JsonProperty(PropertyName = "vmEncryptionType")] - public string VmEncryptionType { get; private set; } - - /// - /// Gets or sets the test failover VM name. - /// - [JsonProperty(PropertyName = "tfoAzureVMName")] - public string TfoAzureVMName { get; set; } - } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUpdateReplicationProtectedItemInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUpdateReplicationProtectedItemInput.cs index 610f533651dd..ce85ff36d587 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUpdateReplicationProtectedItemInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUpdateReplicationProtectedItemInput.cs @@ -44,16 +44,13 @@ public A2AUpdateReplicationProtectedItemInput() /// storage account. /// The recovery os disk encryption /// information. - /// The user given name for test failover - /// VM. - public A2AUpdateReplicationProtectedItemInput(string recoveryCloudServiceId = default(string), string recoveryResourceGroupId = default(string), IList managedDiskUpdateDetails = default(IList), string recoveryBootDiagStorageAccountId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo), string tfoAzureVMName = default(string)) + public A2AUpdateReplicationProtectedItemInput(string recoveryCloudServiceId = default(string), string recoveryResourceGroupId = default(string), IList managedDiskUpdateDetails = default(IList), string recoveryBootDiagStorageAccountId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo)) { RecoveryCloudServiceId = recoveryCloudServiceId; RecoveryResourceGroupId = recoveryResourceGroupId; ManagedDiskUpdateDetails = managedDiskUpdateDetails; RecoveryBootDiagStorageAccountId = recoveryBootDiagStorageAccountId; DiskEncryptionInfo = diskEncryptionInfo; - TfoAzureVMName = tfoAzureVMName; CustomInit(); } @@ -92,11 +89,5 @@ public A2AUpdateReplicationProtectedItemInput() [JsonProperty(PropertyName = "diskEncryptionInfo")] public DiskEncryptionInfo DiskEncryptionInfo { get; set; } - /// - /// Gets or sets the user given name for test failover VM. - /// - [JsonProperty(PropertyName = "tfoAzureVMName")] - public string TfoAzureVMName { get; set; } - } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskInputDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskInputDetails.cs index e6006fabbafc..8a919c4ab70f 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskInputDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskInputDetails.cs @@ -42,19 +42,13 @@ public A2AVmManagedDiskInputDetails() /// The target disk type /// after failover. Its an optional value and will be same as source /// disk type if not user provided. - /// The recovery disk - /// encryption set Id. - /// The recovery disk encryption - /// information (for one / single pass flows). - public A2AVmManagedDiskInputDetails(string diskId = default(string), string primaryStagingAzureStorageAccountId = default(string), string recoveryResourceGroupId = default(string), string recoveryReplicaDiskAccountType = default(string), string recoveryTargetDiskAccountType = default(string), string recoveryDiskEncryptionSetId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo)) + public A2AVmManagedDiskInputDetails(string diskId = default(string), string primaryStagingAzureStorageAccountId = default(string), string recoveryResourceGroupId = default(string), string recoveryReplicaDiskAccountType = default(string), string recoveryTargetDiskAccountType = default(string)) { DiskId = diskId; PrimaryStagingAzureStorageAccountId = primaryStagingAzureStorageAccountId; RecoveryResourceGroupId = recoveryResourceGroupId; RecoveryReplicaDiskAccountType = recoveryReplicaDiskAccountType; RecoveryTargetDiskAccountType = recoveryTargetDiskAccountType; - RecoveryDiskEncryptionSetId = recoveryDiskEncryptionSetId; - DiskEncryptionInfo = diskEncryptionInfo; CustomInit(); } @@ -95,18 +89,5 @@ public A2AVmManagedDiskInputDetails() [JsonProperty(PropertyName = "recoveryTargetDiskAccountType")] public string RecoveryTargetDiskAccountType { get; set; } - /// - /// Gets or sets the recovery disk encryption set Id. - /// - [JsonProperty(PropertyName = "recoveryDiskEncryptionSetId")] - public string RecoveryDiskEncryptionSetId { get; set; } - - /// - /// Gets or sets the recovery disk encryption information (for one / - /// single pass flows). - /// - [JsonProperty(PropertyName = "diskEncryptionInfo")] - public DiskEncryptionInfo DiskEncryptionInfo { get; set; } - } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskUpdateDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskUpdateDetails.cs index fa03585d2cfd..ff3d90236fdf 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskUpdateDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskUpdateDetails.cs @@ -36,20 +36,11 @@ public A2AVmManagedDiskUpdateDetails() /// before failover. /// The replica disk type /// before failover. - /// The recovery disk encryption - /// information (for one / single pass flows). - /// The target disk name for unplanned - /// failover operation. - /// The target disk name for test failover - /// operation. - public A2AVmManagedDiskUpdateDetails(string diskId = default(string), string recoveryTargetDiskAccountType = default(string), string recoveryReplicaDiskAccountType = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo), string failoverDiskName = default(string), string tfoDiskName = default(string)) + public A2AVmManagedDiskUpdateDetails(string diskId = default(string), string recoveryTargetDiskAccountType = default(string), string recoveryReplicaDiskAccountType = default(string)) { DiskId = diskId; RecoveryTargetDiskAccountType = recoveryTargetDiskAccountType; RecoveryReplicaDiskAccountType = recoveryReplicaDiskAccountType; - DiskEncryptionInfo = diskEncryptionInfo; - FailoverDiskName = failoverDiskName; - TfoDiskName = tfoDiskName; CustomInit(); } @@ -76,24 +67,5 @@ public A2AVmManagedDiskUpdateDetails() [JsonProperty(PropertyName = "recoveryReplicaDiskAccountType")] public string RecoveryReplicaDiskAccountType { get; set; } - /// - /// Gets or sets the recovery disk encryption information (for one / - /// single pass flows). - /// - [JsonProperty(PropertyName = "diskEncryptionInfo")] - public DiskEncryptionInfo DiskEncryptionInfo { get; set; } - - /// - /// Gets or sets the target disk name for unplanned failover operation. - /// - [JsonProperty(PropertyName = "failoverDiskName")] - public string FailoverDiskName { get; set; } - - /// - /// Gets or sets the target disk name for test failover operation. - /// - [JsonProperty(PropertyName = "tfoDiskName")] - public string TfoDiskName { get; set; } - } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureToAzureVmSyncedConfigDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureToAzureVmSyncedConfigDetails.cs index 8adeafd9a2cd..59b85908366f 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureToAzureVmSyncedConfigDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureToAzureVmSyncedConfigDetails.cs @@ -34,10 +34,12 @@ public AzureToAzureVmSyncedConfigDetails() /// class. /// /// The Azure VM tags. + /// The Azure role assignments. /// The Azure VM input endpoints. - public AzureToAzureVmSyncedConfigDetails(IDictionary tags = default(IDictionary), IList inputEndpoints = default(IList)) + public AzureToAzureVmSyncedConfigDetails(IDictionary tags = default(IDictionary), IList roleAssignments = default(IList), IList inputEndpoints = default(IList)) { Tags = tags; + RoleAssignments = roleAssignments; InputEndpoints = inputEndpoints; CustomInit(); } @@ -53,6 +55,12 @@ public AzureToAzureVmSyncedConfigDetails() [JsonProperty(PropertyName = "tags")] public IDictionary Tags { get; set; } + /// + /// Gets or sets the Azure role assignments. + /// + [JsonProperty(PropertyName = "roleAssignments")] + public IList RoleAssignments { get; set; } + /// /// Gets or sets the Azure VM input endpoints. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureVmDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureVmDiskDetails.cs index 818d1e7c16b4..809d1f17ef6a 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureVmDiskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureVmDiskDetails.cs @@ -31,7 +31,6 @@ public AzureVmDiskDetails() /// /// VHD type. /// The VHD id. - /// The disk resource id. /// VHD name. /// Max side in MB. /// Blob uri of the Azure @@ -39,19 +38,15 @@ public AzureVmDiskDetails() /// The target Azure disk name. /// Ordinal\LunId of the disk for the Azure /// VM. - /// The DiskEncryptionSet ARM - /// ID. - public AzureVmDiskDetails(string vhdType = default(string), string vhdId = default(string), string diskId = default(string), string vhdName = default(string), string maxSizeMB = default(string), string targetDiskLocation = default(string), string targetDiskName = default(string), string lunId = default(string), string diskEncryptionSetId = default(string)) + public AzureVmDiskDetails(string vhdType = default(string), string vhdId = default(string), string vhdName = default(string), string maxSizeMB = default(string), string targetDiskLocation = default(string), string targetDiskName = default(string), string lunId = default(string)) { VhdType = vhdType; VhdId = vhdId; - DiskId = diskId; VhdName = vhdName; MaxSizeMB = maxSizeMB; TargetDiskLocation = targetDiskLocation; TargetDiskName = targetDiskName; LunId = lunId; - DiskEncryptionSetId = diskEncryptionSetId; CustomInit(); } @@ -72,12 +67,6 @@ public AzureVmDiskDetails() [JsonProperty(PropertyName = "vhdId")] public string VhdId { get; set; } - /// - /// Gets or sets the disk resource id. - /// - [JsonProperty(PropertyName = "diskId")] - public string DiskId { get; set; } - /// /// Gets or sets VHD name. /// @@ -108,11 +97,5 @@ public AzureVmDiskDetails() [JsonProperty(PropertyName = "lunId")] public string LunId { get; set; } - /// - /// Gets or sets the DiskEncryptionSet ARM ID. - /// - [JsonProperty(PropertyName = "diskEncryptionSetId")] - public string DiskEncryptionSetId { get; set; } - } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventProperties.cs index fcdd2597b959..8bbf9ef9b3da 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventProperties.cs @@ -38,6 +38,8 @@ public EventProperties() /// The friendly name of the /// source of the event on which it is raised (for example, VM, VMM /// etc). + /// The affected object + /// correlationId for the event. /// The severity of the event. /// The time of occurrence of the /// event. @@ -48,12 +50,13 @@ public EventProperties() /// settings. /// The list of errors / warnings capturing /// details associated with the issue(s). - public EventProperties(string eventCode = default(string), string description = default(string), string eventType = default(string), string affectedObjectFriendlyName = default(string), string severity = default(string), System.DateTime? timeOfOccurrence = default(System.DateTime?), string fabricId = default(string), EventProviderSpecificDetails providerSpecificDetails = default(EventProviderSpecificDetails), EventSpecificDetails eventSpecificDetails = default(EventSpecificDetails), IList healthErrors = default(IList)) + public EventProperties(string eventCode = default(string), string description = default(string), string eventType = default(string), string affectedObjectFriendlyName = default(string), string affectedObjectCorrelationId = default(string), string severity = default(string), System.DateTime? timeOfOccurrence = default(System.DateTime?), string fabricId = default(string), EventProviderSpecificDetails providerSpecificDetails = default(EventProviderSpecificDetails), EventSpecificDetails eventSpecificDetails = default(EventSpecificDetails), IList healthErrors = default(IList)) { EventCode = eventCode; Description = description; EventType = eventType; AffectedObjectFriendlyName = affectedObjectFriendlyName; + AffectedObjectCorrelationId = affectedObjectCorrelationId; Severity = severity; TimeOfOccurrence = timeOfOccurrence; FabricId = fabricId; @@ -94,6 +97,12 @@ public EventProperties() [JsonProperty(PropertyName = "affectedObjectFriendlyName")] public string AffectedObjectFriendlyName { get; set; } + /// + /// Gets the affected object correlationId for the event. + /// + [JsonProperty(PropertyName = "affectedObjectCorrelationId")] + public string AffectedObjectCorrelationId { get; private set; } + /// /// Gets or sets the severity of the event. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventQueryParameter.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventQueryParameter.cs index b57897b9c72c..03406a180fee 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventQueryParameter.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventQueryParameter.cs @@ -39,17 +39,20 @@ public EventQueryParameter() /// events to be queried. /// The affected object name /// of the events to be queried. + /// The affected object + /// correlationId for the events to be queried. /// The start time of the time range within /// which the events are to be queried. /// The end time of the time range within which /// the events are to be queried. - public EventQueryParameter(string eventCode = default(string), string severity = default(string), string eventType = default(string), string fabricName = default(string), string affectedObjectFriendlyName = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?)) + public EventQueryParameter(string eventCode = default(string), string severity = default(string), string eventType = default(string), string fabricName = default(string), string affectedObjectFriendlyName = default(string), string affectedObjectCorrelationId = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?)) { EventCode = eventCode; Severity = severity; EventType = eventType; FabricName = fabricName; AffectedObjectFriendlyName = affectedObjectFriendlyName; + AffectedObjectCorrelationId = affectedObjectCorrelationId; StartTime = startTime; EndTime = endTime; CustomInit(); @@ -91,6 +94,13 @@ public EventQueryParameter() [JsonProperty(PropertyName = "affectedObjectFriendlyName")] public string AffectedObjectFriendlyName { get; set; } + /// + /// Gets the affected object correlationId for the events to be + /// queried. + /// + [JsonProperty(PropertyName = "affectedObjectCorrelationId")] + public string AffectedObjectCorrelationId { get; private set; } + /// /// Gets or sets the start time of the time range within which the /// events are to be queried. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthError.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthError.cs index 95e259191e4f..cb2c95df01f6 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthError.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthError.cs @@ -52,11 +52,7 @@ public HealthError() /// DRA error /// message. /// ID of the entity. - /// The health error unique id. - /// Value indicating whether the - /// health error is customer resolvable. Possible values include: - /// 'Allowed', 'NotAllowed' - public HealthError(IList innerHealthErrors = default(IList), string errorSource = default(string), string errorType = default(string), string errorLevel = default(string), string errorCategory = default(string), string errorCode = default(string), string summaryMessage = default(string), string errorMessage = default(string), string possibleCauses = default(string), string recommendedAction = default(string), System.DateTime? creationTimeUtc = default(System.DateTime?), string recoveryProviderErrorMessage = default(string), string entityId = default(string), string errorId = default(string), string customerResolvability = default(string)) + public HealthError(IList innerHealthErrors = default(IList), string errorSource = default(string), string errorType = default(string), string errorLevel = default(string), string errorCategory = default(string), string errorCode = default(string), string summaryMessage = default(string), string errorMessage = default(string), string possibleCauses = default(string), string recommendedAction = default(string), System.DateTime? creationTimeUtc = default(System.DateTime?), string recoveryProviderErrorMessage = default(string), string entityId = default(string)) { InnerHealthErrors = innerHealthErrors; ErrorSource = errorSource; @@ -71,8 +67,6 @@ public HealthError() CreationTimeUtc = creationTimeUtc; RecoveryProviderErrorMessage = recoveryProviderErrorMessage; EntityId = entityId; - ErrorId = errorId; - CustomerResolvability = customerResolvability; CustomInit(); } @@ -165,18 +159,5 @@ public HealthError() [JsonProperty(PropertyName = "entityId")] public string EntityId { get; set; } - /// - /// Gets or sets the health error unique id. - /// - [JsonProperty(PropertyName = "errorId")] - public string ErrorId { get; set; } - - /// - /// Gets or sets value indicating whether the health error is customer - /// resolvable. Possible values include: 'Allowed', 'NotAllowed' - /// - [JsonProperty(PropertyName = "customerResolvability")] - public string CustomerResolvability { get; set; } - } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs index 130e328c5c5c..3aa0740311b9 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs @@ -11,8 +11,6 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; using System.Linq; /// @@ -40,14 +38,11 @@ public HyperVReplicaAzureUpdateReplicationProtectedItemInput() /// resource group Id for resource manager deployment. /// A value indicating whether managed /// disks should be used during failover. - /// The dictionary of disk - /// resource Id to disk encryption set ARM Id. - public HyperVReplicaAzureUpdateReplicationProtectedItemInput(string recoveryAzureV1ResourceGroupId = default(string), string recoveryAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string), IDictionary diskIdToDiskEncryptionMap = default(IDictionary)) + public HyperVReplicaAzureUpdateReplicationProtectedItemInput(string recoveryAzureV1ResourceGroupId = default(string), string recoveryAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string)) { RecoveryAzureV1ResourceGroupId = recoveryAzureV1ResourceGroupId; RecoveryAzureV2ResourceGroupId = recoveryAzureV2ResourceGroupId; UseManagedDisks = useManagedDisks; - DiskIdToDiskEncryptionMap = diskIdToDiskEncryptionMap; CustomInit(); } @@ -77,12 +72,5 @@ public HyperVReplicaAzureUpdateReplicationProtectedItemInput() [JsonProperty(PropertyName = "useManagedDisks")] public string UseManagedDisks { get; set; } - /// - /// Gets or sets the dictionary of disk resource Id to disk encryption - /// set ARM Id. - /// - [JsonProperty(PropertyName = "diskIdToDiskEncryptionMap")] - public IDictionary DiskIdToDiskEncryptionMap { get; set; } - } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2EnableProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2EnableProtectionInput.cs index 4e9e367bfe18..52b7e61510b5 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2EnableProtectionInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2EnableProtectionInput.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -34,9 +35,9 @@ public InMageAzureV2EnableProtectionInput() /// Initializes a new instance of the /// InMageAzureV2EnableProtectionInput class. /// + /// The storage account name. /// The Master target Id. /// The Process Server Id. - /// The storage account name. /// The CS account Id. /// The multi vm group Id. /// The multi vm group name. @@ -57,11 +58,9 @@ public InMageAzureV2EnableProtectionInput() /// The Id of the target /// resource group (for resource manager deployment) in which the /// failover VM is to be created. - /// The DiskType. Possible values include: - /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' - /// The DiskEncryptionSet ARM - /// ID. - public InMageAzureV2EnableProtectionInput(string masterTargetId = default(string), string processServerId = default(string), string storageAccountId = default(string), string runAsAccountId = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), IList disksToInclude = default(IList), string targetAzureNetworkId = default(string), string targetAzureSubnetId = default(string), string enableRdpOnTargetOption = default(string), string targetAzureVmName = default(string), string logStorageAccountId = default(string), string targetAzureV1ResourceGroupId = default(string), string targetAzureV2ResourceGroupId = default(string), string diskType = default(string), string diskEncryptionSetId = default(string)) + /// A value indicating whether managed + /// disks should be used during failover. + public InMageAzureV2EnableProtectionInput(string storageAccountId, string masterTargetId = default(string), string processServerId = default(string), string runAsAccountId = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), IList disksToInclude = default(IList), string targetAzureNetworkId = default(string), string targetAzureSubnetId = default(string), string enableRdpOnTargetOption = default(string), string targetAzureVmName = default(string), string logStorageAccountId = default(string), string targetAzureV1ResourceGroupId = default(string), string targetAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string)) { MasterTargetId = masterTargetId; ProcessServerId = processServerId; @@ -77,8 +76,7 @@ public InMageAzureV2EnableProtectionInput() LogStorageAccountId = logStorageAccountId; TargetAzureV1ResourceGroupId = targetAzureV1ResourceGroupId; TargetAzureV2ResourceGroupId = targetAzureV2ResourceGroupId; - DiskType = diskType; - DiskEncryptionSetId = diskEncryptionSetId; + UseManagedDisks = useManagedDisks; CustomInit(); } @@ -127,7 +125,7 @@ public InMageAzureV2EnableProtectionInput() /// Gets or sets the disks to include list. /// [JsonProperty(PropertyName = "disksToInclude")] - public IList DisksToInclude { get; set; } + public IList DisksToInclude { get; set; } /// /// Gets or sets the selected target Azure network Id. @@ -177,17 +175,24 @@ public InMageAzureV2EnableProtectionInput() public string TargetAzureV2ResourceGroupId { get; set; } /// - /// Gets or sets the DiskType. Possible values include: 'Standard_LRS', - /// 'Premium_LRS', 'StandardSSD_LRS' + /// Gets or sets a value indicating whether managed disks should be + /// used during failover. /// - [JsonProperty(PropertyName = "diskType")] - public string DiskType { get; set; } + [JsonProperty(PropertyName = "useManagedDisks")] + public string UseManagedDisks { get; set; } /// - /// Gets or sets the DiskEncryptionSet ARM ID. + /// Validate the object. /// - [JsonProperty(PropertyName = "diskEncryptionSetId")] - public string DiskEncryptionSetId { get; set; } - + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (StorageAccountId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageAccountId"); + } + } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ReplicationDetails.cs index f46d6b9feaf0..f501addfacec 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ReplicationDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ReplicationDetails.cs @@ -175,7 +175,6 @@ public InMageAzureV2ReplicationDetails() LastUpdateReceivedTime = lastUpdateReceivedTime; ReplicaId = replicaId; OsVersion = osVersion; - ProtectedManagedDisks = protectedManagedDisks; CustomInit(); } @@ -499,11 +498,5 @@ public InMageAzureV2ReplicationDetails() [JsonProperty(PropertyName = "osVersion")] public string OsVersion { get; set; } - /// - /// Gets or sets the list of protected managed disks. - /// - [JsonProperty(PropertyName = "protectedManagedDisks")] - public IList ProtectedManagedDisks { get; set; } - } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ResourceHealthSummary.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ResourceHealthSummary.cs index 9bc4a6c18dfe..ebc60c186ec1 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ResourceHealthSummary.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ResourceHealthSummary.cs @@ -36,10 +36,13 @@ public ResourceHealthSummary() /// container. /// The list of summary of health errors across /// the resources under the container. - public ResourceHealthSummary(int? resourceCount = default(int?), IList issues = default(IList)) + /// The categorized resource + /// counts. + public ResourceHealthSummary(int? resourceCount = default(int?), IList issues = default(IList), IDictionary categorizedResourceCounts = default(IDictionary)) { ResourceCount = resourceCount; Issues = issues; + CategorizedResourceCounts = categorizedResourceCounts; CustomInit(); } @@ -61,5 +64,11 @@ public ResourceHealthSummary() [JsonProperty(PropertyName = "issues")] public IList Issues { get; set; } + /// + /// Gets or sets the categorized resource counts. + /// + [JsonProperty(PropertyName = "categorizedResourceCounts")] + public IDictionary CategorizedResourceCounts { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UpdateReplicationProtectedItemInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UpdateReplicationProtectedItemInputProperties.cs index 12e3f5756750..6254915133e5 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UpdateReplicationProtectedItemInputProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UpdateReplicationProtectedItemInputProperties.cs @@ -38,8 +38,6 @@ public UpdateReplicationProtectedItemInputProperties() /// Target Azure Vm size. /// Target Azure Network /// Id. - /// The Azure Network Id for - /// test failover. /// The selected source nic Id which /// will be used as the primary nic during failover. /// The selected option to enable @@ -52,12 +50,11 @@ public UpdateReplicationProtectedItemInputProperties() /// id. /// The provider specific input /// to update replication protected item. - public UpdateReplicationProtectedItemInputProperties(string recoveryAzureVMName = default(string), string recoveryAzureVMSize = default(string), string selectedRecoveryAzureNetworkId = default(string), string selectedTfoAzureNetworkId = default(string), string selectedSourceNicId = default(string), string enableRdpOnTargetOption = default(string), IList vmNics = default(IList), string licenseType = default(string), string recoveryAvailabilitySetId = default(string), UpdateReplicationProtectedItemProviderInput providerSpecificDetails = default(UpdateReplicationProtectedItemProviderInput)) + public UpdateReplicationProtectedItemInputProperties(string recoveryAzureVMName = default(string), string recoveryAzureVMSize = default(string), string selectedRecoveryAzureNetworkId = default(string), string selectedSourceNicId = default(string), string enableRdpOnTargetOption = default(string), IList vmNics = default(IList), string licenseType = default(string), string recoveryAvailabilitySetId = default(string), UpdateReplicationProtectedItemProviderInput providerSpecificDetails = default(UpdateReplicationProtectedItemProviderInput)) { RecoveryAzureVMName = recoveryAzureVMName; RecoveryAzureVMSize = recoveryAzureVMSize; SelectedRecoveryAzureNetworkId = selectedRecoveryAzureNetworkId; - SelectedTfoAzureNetworkId = selectedTfoAzureNetworkId; SelectedSourceNicId = selectedSourceNicId; EnableRdpOnTargetOption = enableRdpOnTargetOption; VmNics = vmNics; @@ -90,12 +87,6 @@ public UpdateReplicationProtectedItemInputProperties() [JsonProperty(PropertyName = "selectedRecoveryAzureNetworkId")] public string SelectedRecoveryAzureNetworkId { get; set; } - /// - /// Gets or sets the Azure Network Id for test failover. - /// - [JsonProperty(PropertyName = "selectedTfoAzureNetworkId")] - public string SelectedTfoAzureNetworkId { get; set; } - /// /// Gets or sets the selected source nic Id which will be used as the /// primary nic during failover. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicDetails.cs index 68236b3d3721..c6c8ce469fcd 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicDetails.cs @@ -11,8 +11,6 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; using System.Linq; /// @@ -46,26 +44,10 @@ public VMNicDetails() /// Selection type for failover. /// IP allocation type for /// recovery VM. - /// The id of the public IP - /// address resource associated with the NIC. - /// The id of the NSG - /// associated with the NIC. - /// The target backend - /// address pools for the NIC. /// A value /// indicating whether the NIC has accelerated networking /// enabled. - /// The network to be used by NIC during - /// test failover. - /// The subnet to be used by NIC during - /// test failover. - /// The NSG to be used by NIC - /// during test failover. - /// Whether the test - /// failover NIC has accelerated networking enabled. - /// The IP configurations to be used by NIC - /// during test failover. - public VMNicDetails(string nicId = default(string), string replicaNicId = default(string), string sourceNicArmId = default(string), string vMSubnetName = default(string), string vMNetworkName = default(string), string recoveryVMNetworkId = default(string), string recoveryVMSubnetName = default(string), string ipAddressType = default(string), string primaryNicStaticIPAddress = default(string), string replicaNicStaticIPAddress = default(string), string selectionType = default(string), string recoveryNicIpAddressType = default(string), string recoveryPublicIpAddressId = default(string), string recoveryNetworkSecurityGroupId = default(string), IList recoveryLBBackendAddressPoolIds = default(IList), bool? enableAcceleratedNetworkingOnRecovery = default(bool?), string tfoVMNetworkId = default(string), string tfoVMSubnetName = default(string), string tfoNetworkSecurityGroupId = default(string), bool? enableAcceleratedNetworkingOnTfo = default(bool?), IList tfoIPConfigs = default(IList)) + public VMNicDetails(string nicId = default(string), string replicaNicId = default(string), string sourceNicArmId = default(string), string vMSubnetName = default(string), string vMNetworkName = default(string), string recoveryVMNetworkId = default(string), string recoveryVMSubnetName = default(string), string ipAddressType = default(string), string primaryNicStaticIPAddress = default(string), string replicaNicStaticIPAddress = default(string), string selectionType = default(string), string recoveryNicIpAddressType = default(string), bool? enableAcceleratedNetworkingOnRecovery = default(bool?)) { NicId = nicId; ReplicaNicId = replicaNicId; @@ -79,15 +61,7 @@ public VMNicDetails() ReplicaNicStaticIPAddress = replicaNicStaticIPAddress; SelectionType = selectionType; RecoveryNicIpAddressType = recoveryNicIpAddressType; - RecoveryPublicIpAddressId = recoveryPublicIpAddressId; - RecoveryNetworkSecurityGroupId = recoveryNetworkSecurityGroupId; - RecoveryLBBackendAddressPoolIds = recoveryLBBackendAddressPoolIds; EnableAcceleratedNetworkingOnRecovery = enableAcceleratedNetworkingOnRecovery; - TfoVMNetworkId = tfoVMNetworkId; - TfoVMSubnetName = tfoVMSubnetName; - TfoNetworkSecurityGroupId = tfoNetworkSecurityGroupId; - EnableAcceleratedNetworkingOnTfo = enableAcceleratedNetworkingOnTfo; - TfoIPConfigs = tfoIPConfigs; CustomInit(); } @@ -168,25 +142,6 @@ public VMNicDetails() [JsonProperty(PropertyName = "recoveryNicIpAddressType")] public string RecoveryNicIpAddressType { get; set; } - /// - /// Gets or sets the id of the public IP address resource associated - /// with the NIC. - /// - [JsonProperty(PropertyName = "recoveryPublicIpAddressId")] - public string RecoveryPublicIpAddressId { get; set; } - - /// - /// Gets or sets the id of the NSG associated with the NIC. - /// - [JsonProperty(PropertyName = "recoveryNetworkSecurityGroupId")] - public string RecoveryNetworkSecurityGroupId { get; set; } - - /// - /// Gets or sets the target backend address pools for the NIC. - /// - [JsonProperty(PropertyName = "recoveryLBBackendAddressPoolIds")] - public IList RecoveryLBBackendAddressPoolIds { get; set; } - /// /// Gets or sets a value indicating whether the NIC has accelerated /// networking enabled. @@ -194,37 +149,5 @@ public VMNicDetails() [JsonProperty(PropertyName = "enableAcceleratedNetworkingOnRecovery")] public bool? EnableAcceleratedNetworkingOnRecovery { get; set; } - /// - /// Gets or sets the network to be used by NIC during test failover. - /// - [JsonProperty(PropertyName = "tfoVMNetworkId")] - public string TfoVMNetworkId { get; set; } - - /// - /// Gets or sets the subnet to be used by NIC during test failover. - /// - [JsonProperty(PropertyName = "tfoVMSubnetName")] - public string TfoVMSubnetName { get; set; } - - /// - /// Gets or sets the NSG to be used by NIC during test failover. - /// - [JsonProperty(PropertyName = "tfoNetworkSecurityGroupId")] - public string TfoNetworkSecurityGroupId { get; set; } - - /// - /// Gets or sets whether the test failover NIC has accelerated - /// networking enabled. - /// - [JsonProperty(PropertyName = "enableAcceleratedNetworkingOnTfo")] - public bool? EnableAcceleratedNetworkingOnTfo { get; set; } - - /// - /// Gets or sets the IP configurations to be used by NIC during test - /// failover. - /// - [JsonProperty(PropertyName = "tfoIPConfigs")] - public IList TfoIPConfigs { get; set; } - } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicInputDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicInputDetails.cs index 48e9dd508fc2..e14a74f39aef 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicInputDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicInputDetails.cs @@ -11,8 +11,6 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; using System.Linq; /// @@ -36,36 +34,15 @@ public VMNicInputDetails() /// Replica nic static IP /// address. /// Selection type for failover. - /// The id of the public IP - /// address resource associated with the NIC. - /// The id of the NSG - /// associated with the NIC. - /// The target backend - /// address pools for the NIC. /// Whether the NIC /// has accelerated networking enabled. - /// The subnet to be used by NIC during - /// test failover. - /// The NSG to be used by NIC - /// during test failover. - /// Whether the test NIC - /// has accelerated networking enabled. - /// The IP configurations to be used by NIC - /// during test failover. - public VMNicInputDetails(string nicId = default(string), string recoveryVMSubnetName = default(string), string replicaNicStaticIPAddress = default(string), string selectionType = default(string), string recoveryPublicIpAddressId = default(string), string recoveryNetworkSecurityGroupId = default(string), IList recoveryLBBackendAddressPoolIds = default(IList), bool? enableAcceleratedNetworkingOnRecovery = default(bool?), string tfoVMSubnetName = default(string), string tfoNetworkSecurityGroupId = default(string), bool? enableAcceleratedNetworkingOnTfo = default(bool?), IList tfoIPConfigs = default(IList)) + public VMNicInputDetails(string nicId = default(string), string recoveryVMSubnetName = default(string), string replicaNicStaticIPAddress = default(string), string selectionType = default(string), bool? enableAcceleratedNetworkingOnRecovery = default(bool?)) { NicId = nicId; RecoveryVMSubnetName = recoveryVMSubnetName; ReplicaNicStaticIPAddress = replicaNicStaticIPAddress; SelectionType = selectionType; - RecoveryPublicIpAddressId = recoveryPublicIpAddressId; - RecoveryNetworkSecurityGroupId = recoveryNetworkSecurityGroupId; - RecoveryLBBackendAddressPoolIds = recoveryLBBackendAddressPoolIds; EnableAcceleratedNetworkingOnRecovery = enableAcceleratedNetworkingOnRecovery; - TfoVMSubnetName = tfoVMSubnetName; - TfoNetworkSecurityGroupId = tfoNetworkSecurityGroupId; - EnableAcceleratedNetworkingOnTfo = enableAcceleratedNetworkingOnTfo; - TfoIPConfigs = tfoIPConfigs; CustomInit(); } @@ -98,56 +75,11 @@ public VMNicInputDetails() [JsonProperty(PropertyName = "selectionType")] public string SelectionType { get; set; } - /// - /// Gets or sets the id of the public IP address resource associated - /// with the NIC. - /// - [JsonProperty(PropertyName = "recoveryPublicIpAddressId")] - public string RecoveryPublicIpAddressId { get; set; } - - /// - /// Gets or sets the id of the NSG associated with the NIC. - /// - [JsonProperty(PropertyName = "recoveryNetworkSecurityGroupId")] - public string RecoveryNetworkSecurityGroupId { get; set; } - - /// - /// Gets or sets the target backend address pools for the NIC. - /// - [JsonProperty(PropertyName = "recoveryLBBackendAddressPoolIds")] - public IList RecoveryLBBackendAddressPoolIds { get; set; } - /// /// Gets or sets whether the NIC has accelerated networking enabled. /// [JsonProperty(PropertyName = "enableAcceleratedNetworkingOnRecovery")] public bool? EnableAcceleratedNetworkingOnRecovery { get; set; } - /// - /// Gets or sets the subnet to be used by NIC during test failover. - /// - [JsonProperty(PropertyName = "tfoVMSubnetName")] - public string TfoVMSubnetName { get; set; } - - /// - /// Gets or sets the NSG to be used by NIC during test failover. - /// - [JsonProperty(PropertyName = "tfoNetworkSecurityGroupId")] - public string TfoNetworkSecurityGroupId { get; set; } - - /// - /// Gets or sets whether the test NIC has accelerated networking - /// enabled. - /// - [JsonProperty(PropertyName = "enableAcceleratedNetworkingOnTfo")] - public bool? EnableAcceleratedNetworkingOnTfo { get; set; } - - /// - /// Gets or sets the IP configurations to be used by NIC during test - /// failover. - /// - [JsonProperty(PropertyName = "tfoIPConfigs")] - public IList TfoIPConfigs { get; set; } - } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareV2FabricCreationInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareV2FabricCreationInput.cs index 59e48ba8314f..ca5eb6b78585 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareV2FabricCreationInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareV2FabricCreationInput.cs @@ -33,12 +33,15 @@ public VMwareV2FabricCreationInput() /// Initializes a new instance of the VMwareV2FabricCreationInput /// class. /// - /// The ARM Id of the VMware site. /// The ARM Id of the migration /// solution. - public VMwareV2FabricCreationInput(string vmwareSiteId, string migrationSolutionId) + /// The ARM Id of the VMware site. + /// The ARM Id of the physical + /// site. + public VMwareV2FabricCreationInput(string migrationSolutionId, string vmwareSiteId = default(string), string physicalSiteId = default(string)) { VmwareSiteId = vmwareSiteId; + PhysicalSiteId = physicalSiteId; MigrationSolutionId = migrationSolutionId; CustomInit(); } @@ -54,6 +57,12 @@ public VMwareV2FabricCreationInput(string vmwareSiteId, string migrationSolution [JsonProperty(PropertyName = "vmwareSiteId")] public string VmwareSiteId { get; set; } + /// + /// Gets or sets the ARM Id of the physical site. + /// + [JsonProperty(PropertyName = "physicalSiteId")] + public string PhysicalSiteId { get; set; } + /// /// Gets or sets the ARM Id of the migration solution. /// @@ -68,10 +77,6 @@ public VMwareV2FabricCreationInput(string vmwareSiteId, string migrationSolution /// public virtual void Validate() { - if (VmwareSiteId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "VmwareSiteId"); - } if (MigrationSolutionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "MigrationSolutionId"); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareV2FabricSpecificDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareV2FabricSpecificDetails.cs index bedfb8ea76d2..3db4ee308710 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareV2FabricSpecificDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareV2FabricSpecificDetails.cs @@ -33,13 +33,16 @@ public VMwareV2FabricSpecificDetails() /// class. /// /// The ARM Id of the VMware site. + /// The ARM Id of the physical + /// site. /// The Migration solution ARM /// Id. /// The service endpoint. /// The service resource Id. - public VMwareV2FabricSpecificDetails(string vmwareSiteId = default(string), string migrationSolutionId = default(string), string serviceEndpoint = default(string), string serviceResourceId = default(string)) + public VMwareV2FabricSpecificDetails(string vmwareSiteId = default(string), string physicalSiteId = default(string), string migrationSolutionId = default(string), string serviceEndpoint = default(string), string serviceResourceId = default(string)) { VmwareSiteId = vmwareSiteId; + PhysicalSiteId = physicalSiteId; MigrationSolutionId = migrationSolutionId; ServiceEndpoint = serviceEndpoint; ServiceResourceId = serviceResourceId; @@ -57,6 +60,12 @@ public VMwareV2FabricSpecificDetails() [JsonProperty(PropertyName = "vmwareSiteId")] public string VmwareSiteId { get; private set; } + /// + /// Gets the ARM Id of the physical site. + /// + [JsonProperty(PropertyName = "physicalSiteId")] + public string PhysicalSiteId { get; private set; } + /// /// Gets the Migration solution ARM Id. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperations.cs index f36b05bdaec0..5f9aa7685cee 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperations.cs @@ -574,37 +574,6 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } - /// - /// Add disk(s) for protection. - /// - /// - /// Operation to add disks(s) to the replication protected item. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Add disks input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> AddDisksWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, AddDisksInput addDisksInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginAddDisksWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - /// /// Change or apply recovery point. /// @@ -728,37 +697,6 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } - /// - /// Removes disk(s). - /// - /// - /// Operation to remove disk(s) from the replication protected item. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Remove disks input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> RemoveDisksWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, RemoveDisksInput removeDisksInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginRemoveDisksWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - /// /// Resynchronize or repair replication. /// @@ -820,37 +758,6 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } - /// - /// Resolve health errors. - /// - /// - /// Operation to resolve health issues of the replication protected item. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Health issue input object. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> ResolveHealthErrorsWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ResolveHealthInput resolveHealthInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginResolveHealthErrorsWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - /// /// Execute test failover /// @@ -1855,22 +1762,23 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Add disk(s) for protection. + /// Change or apply recovery point. /// /// - /// Operation to add disks(s) to the replication protected item. + /// The operation to change the recovery point of a failed over replication + /// protected item. /// /// - /// Unique fabric name. + /// The ARM fabric name. /// /// - /// Protection container name. + /// The protection container name. /// /// - /// Replication protected item name. + /// The replicated protected item's name. /// - /// - /// Add disks input. + /// + /// The ApplyRecoveryPointInput. /// /// /// Headers that will be added to request. @@ -1893,7 +1801,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// A response object containing the response body and response headers. /// - public async Task> BeginAddDisksWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, AddDisksInput addDisksInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginApplyRecoveryPointWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1923,9 +1831,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); } - if (addDisksInput == null) + if (applyRecoveryPointInput == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "addDisksInput"); + throw new ValidationException(ValidationRules.CannotBeNull, "applyRecoveryPointInput"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -1937,13 +1845,13 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); - tracingParameters.Add("addDisksInput", addDisksInput); + tracingParameters.Add("applyRecoveryPointInput", applyRecoveryPointInput); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginAddDisks", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginApplyRecoveryPoint", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/addDisks").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/applyRecoveryPoint").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1993,9 +1901,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Serialize Request string _requestContent = null; - if(addDisksInput != null) + if(applyRecoveryPointInput != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(addDisksInput, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(applyRecoveryPointInput, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } @@ -2087,23 +1995,19 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Change or apply recovery point. + /// Execute commit failover /// /// - /// The operation to change the recovery point of a failed over replication - /// protected item. + /// Operation to commit the failover of the replication protected item. /// /// - /// The ARM fabric name. + /// Unique fabric name. /// /// - /// The protection container name. + /// Protection container name. /// /// - /// The replicated protected item's name. - /// - /// - /// The ApplyRecoveryPointInput. + /// Replication protected item name. /// /// /// Headers that will be added to request. @@ -2126,7 +2030,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// A response object containing the response body and response headers. /// - public async Task> BeginApplyRecoveryPointWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginFailoverCommitWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -2156,10 +2060,6 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); } - if (applyRecoveryPointInput == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "applyRecoveryPointInput"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2170,13 +2070,12 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); - tracingParameters.Add("applyRecoveryPointInput", applyRecoveryPointInput); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginApplyRecoveryPoint", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginFailoverCommit", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/applyRecoveryPoint").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/failoverCommit").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -2226,12 +2125,6 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Serialize Request string _requestContent = null; - if(applyRecoveryPointInput != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(applyRecoveryPointInput, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials if (Client.Credentials != null) { @@ -2320,10 +2213,10 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Execute commit failover + /// Execute planned failover /// /// - /// Operation to commit the failover of the replication protected item. + /// Operation to initiate a planned failover of the replication protected item. /// /// /// Unique fabric name. @@ -2334,6 +2227,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// Replication protected item name. /// + /// + /// Disable protection input. + /// /// /// Headers that will be added to request. /// @@ -2355,7 +2251,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// A response object containing the response body and response headers. /// - public async Task> BeginFailoverCommitWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginPlannedFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, PlannedFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -2385,6 +2281,10 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); } + if (failoverInput == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "failoverInput"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2395,12 +2295,13 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); + tracingParameters.Add("failoverInput", failoverInput); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginFailoverCommit", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginPlannedFailover", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/failoverCommit").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/plannedFailover").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -2450,6 +2351,12 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Serialize Request string _requestContent = null; + if(failoverInput != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(failoverInput, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } // Set Credentials if (Client.Credentials != null) { @@ -2538,13 +2445,14 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Execute planned failover + /// Disables protection. /// /// - /// Operation to initiate a planned failover of the replication protected item. + /// The operation to disable replication on a replication protected item. This + /// will also remove the item. /// /// - /// Unique fabric name. + /// Fabric name. /// /// /// Protection container name. @@ -2552,7 +2460,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// Replication protected item name. /// - /// + /// /// Disable protection input. /// /// @@ -2564,9 +2472,6 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -2576,7 +2481,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// A response object containing the response body and response headers. /// - public async Task> BeginPlannedFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, PlannedFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginDeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -2606,9 +2511,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); } - if (failoverInput == null) + if (disableProtectionInput == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "failoverInput"); + throw new ValidationException(ValidationRules.CannotBeNull, "disableProtectionInput"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -2620,13 +2525,13 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); - tracingParameters.Add("failoverInput", failoverInput); + tracingParameters.Add("disableProtectionInput", disableProtectionInput); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginPlannedFailover", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/plannedFailover").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/remove").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -2676,9 +2581,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Serialize Request string _requestContent = null; - if(failoverInput != null) + if(disableProtectionInput != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(failoverInput, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(disableProtectionInput, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } @@ -2702,7 +2607,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 202 && (int)_statusCode != 204) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -2737,31 +2642,13 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -2770,23 +2657,20 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Disables protection. + /// Resynchronize or repair replication. /// /// - /// The operation to disable replication on a replication protected item. This - /// will also remove the item. + /// The operation to start resynchronize/repair replication for a replication + /// protected item requiring resynchronization. /// /// - /// Fabric name. + /// The name of the fabric. /// /// - /// Protection container name. + /// The name of the container. /// /// - /// Replication protected item name. - /// - /// - /// Disable protection input. + /// The name of the replication protected item. /// /// /// Headers that will be added to request. @@ -2797,6 +2681,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -2806,7 +2693,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginRepairReplicationWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -2836,10 +2723,6 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); } - if (disableProtectionInput == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "disableProtectionInput"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2850,13 +2733,12 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); - tracingParameters.Add("disableProtectionInput", disableProtectionInput); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginRepairReplication", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/remove").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/repairReplication").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -2906,12 +2788,6 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Serialize Request string _requestContent = null; - if(disableProtectionInput != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(disableProtectionInput, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials if (Client.Credentials != null) { @@ -2932,7 +2808,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 202 && (int)_statusCode != 204) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -2967,463 +2843,30 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Removes disk(s). - /// - /// - /// Operation to remove disk(s) from the replication protected item. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Remove disks input. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> BeginRemoveDisksWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, RemoveDisksInput removeDisksInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (Client.ResourceName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceName"); - } - if (Client.ResourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - if (fabricName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); - } - if (protectionContainerName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "protectionContainerName"); - } - if (replicatedProtectedItemName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); - } - if (removeDisksInput == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "removeDisksInput"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("fabricName", fabricName); - tracingParameters.Add("protectionContainerName", protectionContainerName); - tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); - tracingParameters.Add("removeDisksInput", removeDisksInput); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginRemoveDisks", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/removeDisks").ToString(); - _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{fabricName}", System.Uri.EscapeDataString(fabricName)); - _url = _url.Replace("{protectionContainerName}", System.Uri.EscapeDataString(protectionContainerName)); - _url = _url.Replace("{replicatedProtectedItemName}", System.Uri.EscapeDataString(replicatedProtectedItemName)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(removeDisksInput != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(removeDisksInput, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Resynchronize or repair replication. - /// - /// - /// The operation to start resynchronize/repair replication for a replication - /// protected item requiring resynchronization. - /// - /// - /// The name of the fabric. - /// - /// - /// The name of the container. - /// - /// - /// The name of the replication protected item. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> BeginRepairReplicationWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (Client.ResourceName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceName"); - } - if (Client.ResourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - if (fabricName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); - } - if (protectionContainerName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "protectionContainerName"); - } - if (replicatedProtectedItemName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("fabricName", fabricName); - tracingParameters.Add("protectionContainerName", protectionContainerName); - tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginRepairReplication", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/repairReplication").ToString(); - _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{fabricName}", System.Uri.EscapeDataString(fabricName)); - _url = _url.Replace("{protectionContainerName}", System.Uri.EscapeDataString(protectionContainerName)); - _url = _url.Replace("{replicatedProtectedItemName}", System.Uri.EscapeDataString(replicatedProtectedItemName)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } } if (_shouldTrace) { @@ -3665,238 +3108,6 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client return _result; } - /// - /// Resolve health errors. - /// - /// - /// Operation to resolve health issues of the replication protected item. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Health issue input object. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> BeginResolveHealthErrorsWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ResolveHealthInput resolveHealthInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (Client.ResourceName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceName"); - } - if (Client.ResourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - if (fabricName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); - } - if (protectionContainerName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "protectionContainerName"); - } - if (replicatedProtectedItemName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); - } - if (resolveHealthInput == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resolveHealthInput"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("fabricName", fabricName); - tracingParameters.Add("protectionContainerName", protectionContainerName); - tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); - tracingParameters.Add("resolveHealthInput", resolveHealthInput); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginResolveHealthErrors", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/ResolveHealthErrors").ToString(); - _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{fabricName}", System.Uri.EscapeDataString(fabricName)); - _url = _url.Replace("{protectionContainerName}", System.Uri.EscapeDataString(protectionContainerName)); - _url = _url.Replace("{replicatedProtectedItemName}", System.Uri.EscapeDataString(replicatedProtectedItemName)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(resolveHealthInput != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(resolveHealthInput, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - /// /// Execute test failover /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperationsExtensions.cs index d4fb526124c8..f1e689e693c3 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperationsExtensions.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperationsExtensions.cs @@ -297,64 +297,6 @@ public static ReplicationProtectedItem Update(this IReplicationProtectedItemsOpe } } - /// - /// Add disk(s) for protection. - /// - /// - /// Operation to add disks(s) to the replication protected item. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Add disks input. - /// - public static ReplicationProtectedItem AddDisks(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, AddDisksInput addDisksInput) - { - return operations.AddDisksAsync(fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput).GetAwaiter().GetResult(); - } - - /// - /// Add disk(s) for protection. - /// - /// - /// Operation to add disks(s) to the replication protected item. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Add disks input. - /// - /// - /// The cancellation token. - /// - public static async Task AddDisksAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, AddDisksInput addDisksInput, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.AddDisksWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Change or apply recovery point. /// @@ -582,64 +524,6 @@ public static void Delete(this IReplicationProtectedItemsOperations operations, (await operations.DeleteWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, null, cancellationToken).ConfigureAwait(false)).Dispose(); } - /// - /// Removes disk(s). - /// - /// - /// Operation to remove disk(s) from the replication protected item. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Remove disks input. - /// - public static ReplicationProtectedItem RemoveDisks(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, RemoveDisksInput removeDisksInput) - { - return operations.RemoveDisksAsync(fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput).GetAwaiter().GetResult(); - } - - /// - /// Removes disk(s). - /// - /// - /// Operation to remove disk(s) from the replication protected item. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Remove disks input. - /// - /// - /// The cancellation token. - /// - public static async Task RemoveDisksAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, RemoveDisksInput removeDisksInput, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.RemoveDisksWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Resynchronize or repair replication. /// @@ -754,64 +638,6 @@ public static ReplicationProtectedItem Reprotect(this IReplicationProtectedItems } } - /// - /// Resolve health errors. - /// - /// - /// Operation to resolve health issues of the replication protected item. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Health issue input object. - /// - public static ReplicationProtectedItem ResolveHealthErrors(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ResolveHealthInput resolveHealthInput) - { - return operations.ResolveHealthErrorsAsync(fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput).GetAwaiter().GetResult(); - } - - /// - /// Resolve health errors. - /// - /// - /// Operation to resolve health issues of the replication protected item. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Health issue input object. - /// - /// - /// The cancellation token. - /// - public static async Task ResolveHealthErrorsAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ResolveHealthInput resolveHealthInput, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ResolveHealthErrorsWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Execute test failover /// @@ -1269,64 +1095,6 @@ public static ReplicationProtectedItem BeginUpdate(this IReplicationProtectedIte } } - /// - /// Add disk(s) for protection. - /// - /// - /// Operation to add disks(s) to the replication protected item. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Add disks input. - /// - public static ReplicationProtectedItem BeginAddDisks(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, AddDisksInput addDisksInput) - { - return operations.BeginAddDisksAsync(fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput).GetAwaiter().GetResult(); - } - - /// - /// Add disk(s) for protection. - /// - /// - /// Operation to add disks(s) to the replication protected item. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Add disks input. - /// - /// - /// The cancellation token. - /// - public static async Task BeginAddDisksAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, AddDisksInput addDisksInput, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.BeginAddDisksWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Change or apply recovery point. /// @@ -1554,64 +1322,6 @@ public static void BeginDelete(this IReplicationProtectedItemsOperations operati (await operations.BeginDeleteWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, null, cancellationToken).ConfigureAwait(false)).Dispose(); } - /// - /// Removes disk(s). - /// - /// - /// Operation to remove disk(s) from the replication protected item. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Remove disks input. - /// - public static ReplicationProtectedItem BeginRemoveDisks(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, RemoveDisksInput removeDisksInput) - { - return operations.BeginRemoveDisksAsync(fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput).GetAwaiter().GetResult(); - } - - /// - /// Removes disk(s). - /// - /// - /// Operation to remove disk(s) from the replication protected item. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Remove disks input. - /// - /// - /// The cancellation token. - /// - public static async Task BeginRemoveDisksAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, RemoveDisksInput removeDisksInput, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.BeginRemoveDisksWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Resynchronize or repair replication. /// @@ -1726,64 +1436,6 @@ public static ReplicationProtectedItem BeginReprotect(this IReplicationProtected } } - /// - /// Resolve health errors. - /// - /// - /// Operation to resolve health issues of the replication protected item. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Health issue input object. - /// - public static ReplicationProtectedItem BeginResolveHealthErrors(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ResolveHealthInput resolveHealthInput) - { - return operations.BeginResolveHealthErrorsAsync(fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput).GetAwaiter().GetResult(); - } - - /// - /// Resolve health errors. - /// - /// - /// Operation to resolve health issues of the replication protected item. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Health issue input object. - /// - /// - /// The cancellation token. - /// - public static async Task BeginResolveHealthErrorsAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ResolveHealthInput resolveHealthInput, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.BeginResolveHealthErrorsWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Execute test failover /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SiteRecoveryManagementClient.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SiteRecoveryManagementClient.cs index 5a510b7cbc97..2e99543ccd03 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SiteRecoveryManagementClient.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SiteRecoveryManagementClient.cs @@ -92,11 +92,6 @@ public partial class SiteRecoveryManagementClient : ServiceClient public virtual IReplicationAlertSettingsOperations ReplicationAlertSettings { get; private set; } - /// - /// Gets the IReplicationEligibilityResultsOperations. - /// - public virtual IReplicationEligibilityResultsOperations ReplicationEligibilityResults { get; private set; } - /// /// Gets the IReplicationEventsOperations. /// @@ -197,21 +192,11 @@ public partial class SiteRecoveryManagementClient : ServiceClient public virtual IReplicationRecoveryPlansOperations ReplicationRecoveryPlans { get; private set; } - /// - /// Gets the ISupportedOperatingSystemsOperations. - /// - public virtual ISupportedOperatingSystemsOperations SupportedOperatingSystems { get; private set; } - /// /// Gets the IReplicationVaultHealthOperations. /// public virtual IReplicationVaultHealthOperations ReplicationVaultHealth { get; private set; } - /// - /// Gets the IReplicationVaultSettingOperations. - /// - public virtual IReplicationVaultSettingOperations ReplicationVaultSetting { get; private set; } - /// /// Initializes a new instance of the SiteRecoveryManagementClient class. /// @@ -455,7 +440,6 @@ private void Initialize() { Operations = new Operations(this); ReplicationAlertSettings = new ReplicationAlertSettingsOperations(this); - ReplicationEligibilityResults = new ReplicationEligibilityResultsOperations(this); ReplicationEvents = new ReplicationEventsOperations(this); ReplicationFabrics = new ReplicationFabricsOperations(this); ReplicationLogicalNetworks = new ReplicationLogicalNetworksOperations(this); @@ -476,11 +460,9 @@ private void Initialize() ReplicationJobs = new ReplicationJobsOperations(this); ReplicationPolicies = new ReplicationPoliciesOperations(this); ReplicationRecoveryPlans = new ReplicationRecoveryPlansOperations(this); - SupportedOperatingSystems = new SupportedOperatingSystemsOperations(this); ReplicationVaultHealth = new ReplicationVaultHealthOperations(this); - ReplicationVaultSetting = new ReplicationVaultSettingOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2018-07-10"; + ApiVersion = "2018-01-10"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; @@ -509,8 +491,6 @@ private void Initialize() new Iso8601TimeSpanConverter() } }; - SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); - DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); @@ -563,12 +543,12 @@ private void Initialize() DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); - SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); - DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType"));