From f074b5cd015003b0fe247d9faf56fd4a854cb54a Mon Sep 17 00:00:00 2001 From: Avneesh Rai Date: Thu, 22 Feb 2018 23:31:10 +0530 Subject: [PATCH] Changes corresponding to new swagger PR for API:2018-01-10 (#4075) * Changes corresponding to new swagger PR for API:2018-01-10 * Fixin tests and updating test jsons * Updating nuget version to 2.0.0 * Regenerating changes corresponding to comments on swagger PR. * Updating metadata files as per review comment. * Addressing review comments --- .../AzSdk.RP.props | 2 +- .../Generated/IRecoveryPointsOperations.cs | 20 +- .../IReplicationAlertSettingsOperations.cs | 38 +- .../Generated/IReplicationEventsOperations.cs | 20 +- .../IReplicationFabricsOperations.cs | 200 ++-- .../Generated/IReplicationJobsOperations.cs | 76 +- .../IReplicationNetworkMappingsOperations.cs | 56 +- .../IReplicationNetworksOperations.cs | 44 +- .../IReplicationPoliciesOperations.cs | 56 +- .../IReplicationProtectableItemsOperations.cs | 18 +- .../IReplicationProtectedItemsOperations.cs | 438 ++++---- ...onProtectionContainerMappingsOperations.cs | 66 +- ...plicationProtectionContainersOperations.cs | 152 +-- .../IReplicationRecoveryPlansOperations.cs | 184 ++-- ...tionRecoveryServicesProvidersOperations.cs | 112 +-- ...StorageClassificationMappingsOperations.cs | 48 +- ...icationStorageClassificationsOperations.cs | 24 +- .../IReplicationVaultHealthOperations.cs | 38 + .../IReplicationvCentersOperations.cs | 50 +- .../ISiteRecoveryManagementClient.cs | 77 +- .../ITargetComputeSizesOperations.cs | 87 ++ .../Models/A2AEnableProtectionInput.cs | 19 +- .../Models/A2AProtectedManagedDiskDetails.cs | 54 +- .../Models/A2ARecoveryPointDetails.cs | 56 ++ .../Generated/Models/A2AReplicationDetails.cs | 22 +- .../Models/A2ASwitchProtectionInput.cs | 11 +- .../A2AUpdateReplicationProtectedItemInput.cs | 22 +- .../Models/A2AVmManagedDiskInputDetails.cs | 24 +- .../Models/A2AVmManagedDiskUpdateDetails.cs | 71 ++ .../Generated/Models/AgentVersionStatus.cs | 78 ++ .../Models/ComputeSizeErrorDetails.cs | 60 ++ .../Generated/Models/CreatePolicyInput.cs | 2 +- ...otectionContainerMappingInputProperties.cs | 2 +- .../Generated/Models/EventQueryParameter.cs | 14 +- .../Generated/Models/HealthError.cs | 46 +- .../Generated/Models/HealthErrorCategory.cs | 20 +- .../Generated/Models/HealthErrorSummary.cs | 7 +- ...HyperVReplicaAzureEnableProtectionInput.cs | 10 +- .../Models/HyperVReplicaAzurePolicyInput.cs | 12 +- .../HyperVReplicaAzureReplicationDetails.cs | 69 +- .../Models/HyperVReplicaPolicyInput.cs | 2 +- .../Models/HyperVVirtualMachineDetails.cs | 34 +- .../Generated/Models/IdentityInformation.cs | 5 +- .../Generated/Models/IdentityProviderType.cs | 8 +- .../Generated/Models/InMageAgentDetails.cs | 10 +- .../Models/InMageAgentVersionDetails.cs | 81 ++ .../InMageAzureV2EnableProtectionInput.cs | 10 +- .../Models/InMageAzureV2PolicyInput.cs | 2 +- .../InMageAzureV2RecoveryPointDetails.cs | 13 +- .../Models/InMageAzureV2ReplicationDetails.cs | 44 +- .../Models/InMageReplicationDetails.cs | 18 +- .../Models/InMageVolumeExclusionOptions.cs | 2 +- .../Generated/Models/InnerHealthError.cs | 146 +++ .../Generated/Models/Job.cs | 39 +- .../Generated/Models/MasterTargetServer.cs | 51 +- .../Models/MultiVmGroupCreateOption.cs | 60 ++ .../Models/MultiVmSyncPointOption.cs | 60 ++ .../Generated/Models/ProcessServer.cs | 27 +- .../Models/ProtectedItemsQueryParameter.cs | 21 +- .../ProviderSpecificRecoveryPointDetails.cs | 17 - .../Models/RecoveryPlanA2AFailoverInput.cs | 15 +- .../Generated/Models/RecoveryPointSyncType.cs | 60 ++ .../RecoveryServicesProviderProperties.cs | 17 +- .../ReplicationProtectedItemProperties.cs | 31 +- .../Generated/Models/TargetComputeSize.cs | 75 ++ .../Models/TargetComputeSizeProperties.cs | 124 +++ .../Generated/Models/UpdatePolicyInput.cs | 2 +- ...ReplicationProtectedItemInputProperties.cs | 20 +- .../Generated/Models/VCenterProperties.cs | 13 +- .../Generated/Models/VMwareDetails.cs | 19 +- .../Models/VMwareV2FabricCreationInput.cs | 24 + .../Models/VMwareV2FabricSpecificDetails.cs | 18 +- .../Generated/Models/VersionDetails.cs | 71 ++ .../Models/VmmVirtualMachineDetails.cs | 109 ++ .../Generated/RecoveryPointsOperations.cs | 46 +- .../RecoveryPointsOperationsExtensions.cs | 44 +- .../ReplicationAlertSettingsOperations.cs | 88 +- ...cationAlertSettingsOperationsExtensions.cs | 68 +- .../Generated/ReplicationEventsOperations.cs | 66 +- .../ReplicationEventsOperationsExtensions.cs | 48 +- .../Generated/ReplicationFabricsOperations.cs | 696 ++++++------- .../ReplicationFabricsOperationsExtensions.cs | 424 ++++---- .../Generated/ReplicationJobsOperations.cs | 290 +++--- .../ReplicationJobsOperationsExtensions.cs | 180 ++-- .../ReplicationNetworkMappingsOperations.cs | 270 ++--- ...tionNetworkMappingsOperationsExtensions.cs | 100 +- .../ReplicationNetworksOperations.cs | 92 +- ...ReplicationNetworksOperationsExtensions.cs | 88 +- .../ReplicationPoliciesOperations.cs | 190 ++-- ...ReplicationPoliciesOperationsExtensions.cs | 92 +- .../ReplicationProtectableItemsOperations.cs | 46 +- ...ionProtectableItemsOperationsExtensions.cs | 44 +- .../ReplicationProtectedItemsOperations.cs | 946 +++++++++--------- ...ationProtectedItemsOperationsExtensions.cs | 926 ++++++++--------- ...onProtectionContainerMappingsOperations.cs | 348 +++---- ...onContainerMappingsOperationsExtensions.cs | 136 +-- ...plicationProtectionContainersOperations.cs | 440 ++++---- ...rotectionContainersOperationsExtensions.cs | 332 +++--- .../ReplicationRecoveryPlansOperations.cs | 712 ++++++------- ...cationRecoveryPlansOperationsExtensions.cs | 436 ++++---- ...tionRecoveryServicesProvidersOperations.cs | 302 +++--- ...ryServicesProvidersOperationsExtensions.cs | 222 ++-- ...StorageClassificationMappingsOperations.cs | 160 +-- ...ssificationMappingsOperationsExtensions.cs | 92 +- ...icationStorageClassificationsOperations.cs | 50 +- ...rageClassificationsOperationsExtensions.cs | 52 +- .../ReplicationVaultHealthOperations.cs | 204 ++++ ...licationVaultHealthOperationsExtensions.cs | 56 ++ .../ReplicationvCentersOperations.cs | 204 ++-- ...ReplicationvCentersOperationsExtensions.cs | 80 +- .../SdkInfo_SiteRecoveryManagementClient.cs | 41 +- .../Generated/SiteRecoveryManagementClient.cs | 170 ++-- .../Generated/TargetComputeSizesOperations.cs | 448 +++++++++ .../TargetComputeSizesOperationsExtensions.cs | 117 +++ ...ement.RecoveryServices.SiteRecovery.csproj | 9 +- .../Properties/AssemblyInfo.cs | 2 +- .../ScenarioTests/ASRTests.cs | 2 - .../ApplyRecoveryPoint.json | 78 +- .../CheckConsistency.json | 22 +- .../CommitFailover.json | 18 +- .../CreateAlertSettings.json | 10 +- .../CreateNetworkMapping.json | 26 +- .../CreatePCMapping.json | 58 +- .../CreatePolicy.json | 22 +- .../CreateProtectedItem.json | 44 +- .../CreateRecoveryPlan.json | 34 +- .../CreateSite.json | 22 +- .../DeleteNetworkMapping.json | 14 +- .../DeletePCMapping.json | 26 +- .../DeletePolicy.json | 14 +- .../DeleteProtectedItem.json | 18 +- .../DeleteRecoveryPlan.json | 14 +- .../DeleteRsp.json | 18 +- .../DeleteSite.json | 14 +- .../EnumerateContainer.json | 10 +- .../EnumerateNetworkMapping.json | 6 +- .../EnumerateNetworks.json | 6 +- .../EnumeratePCMapping.json | 14 +- .../EnumerateProtectableItem.json | 20 +- .../EnumerateProtectedItem.json | 10 +- .../GetAlertSettings.json | 6 +- .../GetContainer.json | 14 +- .../GetHealthDetails.json | 6 +- .../GetNetworkMapping.json | 6 +- .../GetNetworks.json | 6 +- .../GetPCMapping.json | 18 +- .../GetPolicy.json | 6 +- .../GetProtectableItem.json | 20 +- .../GetProtectedItem.json | 14 +- .../GetRSP.json | 10 +- .../GetRecoveryPlan.json | 6 +- .../GetRecoveryPoints.json | 14 +- .../GetReplicationEvent.json | 10 +- .../GetSite.json | 6 +- .../ListAlertSettings.json | 6 +- .../ListAllContainers.json | 10 +- .../ListAllPCMapping.json | 6 +- .../ListAllProtectedItem.json | 6 +- .../ListEventByQuery.json | 6 +- .../ListNetworkMapping.json | 6 +- .../ListNetworks.json | 6 +- .../ListPolicy.json | 6 +- .../ListRecoveryPoints.json | 10 +- .../ListReplicationEvent.json | 6 +- .../ListRsp.json | 6 +- .../ListRspByFabric.json | 10 +- .../ListSite.json | 6 +- .../MigrateToAad.json | 14 +- .../PlannedFailover.json | 58 +- .../PurgePCMapping.json | 22 +- .../PurgeProtectedItem.json | 18 +- .../PurgeRsp.json | 18 +- .../PurgeSite.json | 14 +- .../RPFailback.json | 58 +- .../RPFailoverCommit.json | 18 +- .../RPPlannedFailover.json | 54 +- .../RPReprotect.json | 38 +- .../RPTestFailover.json | 42 +- .../RPTestFailoverCleanup.json | 42 +- .../RPUnplannedFailover.json | 42 +- .../RefreshRsp.json | 30 +- .../RenewCertificate.json | 26 +- .../RepairReplication.json | 30 +- .../Reprotect.json | 32 +- .../TestFailover.json | 42 +- .../TestFailoverCleanup.json | 42 +- .../UnplannedFailover.json | 46 +- .../UpdateNetworkMapping.json | 22 +- .../UpdatePolicy.json | 22 +- .../UpdateProtectedItem.json | 30 +- .../UpdateRecoveryPlan.json | 34 +- ...yservicessiterecovery_resource-manager.txt | 6 +- 192 files changed, 8471 insertions(+), 6091 deletions(-) create mode 100644 src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ITargetComputeSizesOperations.cs create mode 100644 src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2ARecoveryPointDetails.cs create mode 100644 src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AVmManagedDiskUpdateDetails.cs create mode 100644 src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/AgentVersionStatus.cs create mode 100644 src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ComputeSizeErrorDetails.cs create mode 100644 src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAgentVersionDetails.cs create mode 100644 src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InnerHealthError.cs create mode 100644 src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/MultiVmGroupCreateOption.cs create mode 100644 src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/MultiVmSyncPointOption.cs create mode 100644 src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPointSyncType.cs create mode 100644 src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/TargetComputeSize.cs create mode 100644 src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/TargetComputeSizeProperties.cs create mode 100644 src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VersionDetails.cs create mode 100644 src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmmVirtualMachineDetails.cs create mode 100644 src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/TargetComputeSizesOperations.cs create mode 100644 src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/TargetComputeSizesOperationsExtensions.cs diff --git a/src/SDKs/RecoveryServices.SiteRecovery/AzSdk.RP.props b/src/SDKs/RecoveryServices.SiteRecovery/AzSdk.RP.props index 4e8c8e050307..25a7e0b8eb95 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/AzSdk.RP.props +++ b/src/SDKs/RecoveryServices.SiteRecovery/AzSdk.RP.props @@ -1,7 +1,7 @@  - RecoveryServices_2016-08-10; + RecoveryServices_2018-01-10; $(PackageTags);$(CommonTags);$(AzureApiTag); \ No newline at end of file diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IRecoveryPointsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IRecoveryPointsOperations.cs index c5501d85c377..0a7be56ab715 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IRecoveryPointsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IRecoveryPointsOperations.cs @@ -24,10 +24,11 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public partial interface IRecoveryPointsOperations { /// - /// Get a recovery point. + /// Get recovery points for a replication protected item. /// /// - /// Get the details of specified recovery point. + /// Lists the available recovery points for a replication protected + /// item. /// /// /// The fabric name. @@ -38,9 +39,6 @@ public partial interface IRecoveryPointsOperations /// /// The replication protected item's name. /// - /// - /// The recovery point name. - /// /// /// The headers that will be added to request. /// @@ -56,13 +54,12 @@ public partial interface IRecoveryPointsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, string recoveryPointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByReplicationProtectedItemsWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get recovery points for a replication protected item. + /// Get a recovery point. /// /// - /// Lists the available recovery points for a replication protected - /// item. + /// Get the details of specified recovery point. /// /// /// The fabric name. @@ -73,6 +70,9 @@ public partial interface IRecoveryPointsOperations /// /// The replication protected item's name. /// + /// + /// The recovery point name. + /// /// /// The headers that will be added to request. /// @@ -88,7 +88,7 @@ public partial interface IRecoveryPointsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByReplicationProtectedItemsWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, string recoveryPointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get recovery points for a replication protected item. /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationAlertSettingsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationAlertSettingsOperations.cs index 1f196e4f1189..da98a7a1403a 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationAlertSettingsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationAlertSettingsOperations.cs @@ -24,15 +24,13 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public partial interface IReplicationAlertSettingsOperations { /// - /// Gets an email notification(alert) configuration. + /// Gets the list of configured email notification(alert) + /// configurations. /// /// - /// Gets the details of the specified email notification(alert) - /// configuration. + /// Gets the list of email notification(alert) configurations for the + /// vault. /// - /// - /// The name of the email notification configuration. - /// /// /// The headers that will be added to request. /// @@ -48,18 +46,16 @@ public partial interface IReplicationAlertSettingsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string alertSettingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Configures email notifications for this vault. + /// Gets an email notification(alert) configuration. /// /// - /// Create or update an email notification(alert) configuration. + /// Gets the details of the specified email notification(alert) + /// configuration. /// /// - /// The name of the email notification(alert) configuration. - /// - /// - /// The input to configure the email notification(alert). + /// The name of the email notification configuration. /// /// /// The headers that will be added to request. @@ -76,15 +72,19 @@ public partial interface IReplicationAlertSettingsOperations /// /// Thrown when a required parameter is null /// - Task> CreateWithHttpMessagesAsync(string alertSettingName, ConfigureAlertRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string alertSettingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the list of configured email notification(alert) - /// configurations. + /// Configures email notifications for this vault. /// /// - /// Gets the list of email notification(alert) configurations for the - /// vault. + /// Create or update an email notification(alert) configuration. /// + /// + /// The name of the email notification(alert) configuration. + /// + /// + /// The input to configure the email notification(alert). + /// /// /// The headers that will be added to request. /// @@ -100,7 +100,7 @@ public partial interface IReplicationAlertSettingsOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateWithHttpMessagesAsync(string alertSettingName, ConfigureAlertRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the list of configured email notification(alert) /// configurations. diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationEventsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationEventsOperations.cs index 303df6eed232..a3ea3fb30284 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationEventsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationEventsOperations.cs @@ -25,13 +25,13 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public partial interface IReplicationEventsOperations { /// - /// Get the details of an Azure Site recovery event. + /// Gets the list of Azure Site Recovery events. /// /// - /// The operation to get the details of an Azure Site recovery event. + /// Gets the list of Azure Site Recovery events for the vault. /// - /// - /// The name of the Azure Site Recovery event. + /// + /// OData parameters to apply to the operation. /// /// /// The headers that will be added to request. @@ -48,15 +48,15 @@ public partial interface IReplicationEventsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string eventName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the list of Azure Site Recovery events. + /// Get the details of an Azure Site recovery event. /// /// - /// Gets the list of Azure Site Recovery events for the vault. + /// The operation to get the details of an Azure Site recovery event. /// - /// - /// OData parameters to apply to the operation. + /// + /// The name of the Azure Site Recovery event. /// /// /// The headers that will be added to request. @@ -73,7 +73,7 @@ public partial interface IReplicationEventsOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string eventName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the list of Azure Site Recovery events. /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationFabricsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationFabricsOperations.cs index 3144feb326fa..3e2da5975552 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationFabricsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationFabricsOperations.cs @@ -24,14 +24,11 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public partial interface IReplicationFabricsOperations { /// - /// Migrates the site to AAD. + /// Gets the list of ASR fabrics /// /// - /// The operation to migrate an Azure Site Recovery fabric to AAD. + /// Gets a list of the Azure Site Recovery fabrics in the vault. /// - /// - /// ASR fabric to migrate. - /// /// /// The headers that will be added to request. /// @@ -41,21 +38,21 @@ public partial interface IReplicationFabricsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task MigrateToAadWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Renews certificate for the fabric. + /// Gets the details of an ASR fabric. /// /// - /// Renews the connection certificate for the ASR replication fabric. + /// Gets the details of an Azure Site Recovery fabric. /// /// - /// fabric name to renew certs for. - /// - /// - /// Renew certificate input. + /// Fabric name. /// /// /// The headers that will be added to request. @@ -72,19 +69,19 @@ public partial interface IReplicationFabricsOperations /// /// Thrown when a required parameter is null /// - Task> RenewCertificateWithHttpMessagesAsync(string fabricName, RenewCertificateInput renewCertificate, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Perform failover of the process server. + /// Creates an Azure Site Recovery fabric. /// /// - /// The operation to move replications from a process server to another - /// process server. + /// The operation to create an Azure Site Recovery fabric (for e.g. + /// Hyper-V site) /// /// - /// The name of the fabric containing the process server. + /// Name of the ASR fabric. /// - /// - /// The input to the failover process server operation. + /// + /// Fabric creation input. /// /// /// The headers that will be added to request. @@ -101,15 +98,15 @@ public partial interface IReplicationFabricsOperations /// /// Thrown when a required parameter is null /// - Task> ReassociateGatewayWithHttpMessagesAsync(string fabricName, FailoverProcessServerRequest failoverProcessServerRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateWithHttpMessagesAsync(string fabricName, FabricCreationInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Checks the consistency of the ASR fabric. + /// Purges the site. /// /// - /// The operation to perform a consistency check on the fabric. + /// The operation to purge(force delete) an Azure Site Recovery fabric. /// /// - /// Fabric name. + /// ASR fabric to purge. /// /// /// The headers that will be added to request. @@ -120,21 +117,18 @@ public partial interface IReplicationFabricsOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> CheckConsistencyWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task PurgeWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes the site. + /// Checks the consistency of the ASR fabric. /// /// - /// The operation to delete or remove an Azure Site Recovery fabric. + /// The operation to perform a consistency check on the fabric. /// /// - /// ASR fabric to delete + /// Fabric name. /// /// /// The headers that will be added to request. @@ -145,18 +139,21 @@ public partial interface IReplicationFabricsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CheckConsistencyWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the details of an ASR fabric. + /// Migrates the site to AAD. /// /// - /// Gets the details of an Azure Site Recovery fabric. + /// The operation to migrate an Azure Site Recovery fabric to AAD. /// /// - /// Fabric name. + /// ASR fabric to migrate. /// /// /// The headers that will be added to request. @@ -167,25 +164,22 @@ public partial interface IReplicationFabricsOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task MigrateToAadWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Creates an Azure Site Recoery fabric. + /// Perform failover of the process server. /// /// - /// The operation to create an Azure Site Recovery fabric (for e.g. - /// Hyper-V site) + /// The operation to move replications from a process server to another + /// process server. /// /// - /// Name of the ASR fabric. + /// The name of the fabric containing the process server. /// - /// - /// Fabric creation input. + /// + /// The input to the failover process server operation. /// /// /// The headers that will be added to request. @@ -202,15 +196,15 @@ public partial interface IReplicationFabricsOperations /// /// Thrown when a required parameter is null /// - Task> CreateWithHttpMessagesAsync(string fabricName, FabricCreationInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ReassociateGatewayWithHttpMessagesAsync(string fabricName, FailoverProcessServerRequest failoverProcessServerRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Purges the site. + /// Deletes the site. /// /// - /// The operation to purge(force delete) an Azure Site Recovery fabric. + /// The operation to delete or remove an Azure Site Recovery fabric. /// /// - /// ASR fabric to purge. + /// ASR fabric to delete /// /// /// The headers that will be added to request. @@ -224,13 +218,19 @@ public partial interface IReplicationFabricsOperations /// /// Thrown when a required parameter is null /// - Task PurgeWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the list of ASR fabrics + /// Renews certificate for the fabric. /// /// - /// Gets a list of the Azure Site Recovery fabrics in the vault. + /// Renews the connection certificate for the ASR replication fabric. /// + /// + /// fabric name to renew certs for. + /// + /// + /// Renew certificate input. + /// /// /// The headers that will be added to request. /// @@ -246,15 +246,19 @@ public partial interface IReplicationFabricsOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> RenewCertificateWithHttpMessagesAsync(string fabricName, RenewCertificateInput renewCertificate, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Migrates the site to AAD. + /// Creates an Azure Site Recovery fabric. /// /// - /// The operation to migrate an Azure Site Recovery fabric to AAD. + /// The operation to create an Azure Site Recovery fabric (for e.g. + /// Hyper-V site) /// /// - /// ASR fabric to migrate. + /// Name of the ASR fabric. + /// + /// + /// Fabric creation input. /// /// /// The headers that will be added to request. @@ -265,21 +269,21 @@ public partial interface IReplicationFabricsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task BeginMigrateToAadWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginCreateWithHttpMessagesAsync(string fabricName, FabricCreationInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Renews certificate for the fabric. + /// Purges the site. /// /// - /// Renews the connection certificate for the ASR replication fabric. + /// The operation to purge(force delete) an Azure Site Recovery fabric. /// /// - /// fabric name to renew certs for. - /// - /// - /// Renew certificate input. + /// ASR fabric to purge. /// /// /// The headers that will be added to request. @@ -290,25 +294,18 @@ public partial interface IReplicationFabricsOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> BeginRenewCertificateWithHttpMessagesAsync(string fabricName, RenewCertificateInput renewCertificate, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginPurgeWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Perform failover of the process server. + /// Checks the consistency of the ASR fabric. /// /// - /// The operation to move replications from a process server to another - /// process server. + /// The operation to perform a consistency check on the fabric. /// /// - /// The name of the fabric containing the process server. - /// - /// - /// The input to the failover process server operation. + /// Fabric name. /// /// /// The headers that will be added to request. @@ -325,15 +322,15 @@ public partial interface IReplicationFabricsOperations /// /// Thrown when a required parameter is null /// - Task> BeginReassociateGatewayWithHttpMessagesAsync(string fabricName, FailoverProcessServerRequest failoverProcessServerRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginCheckConsistencyWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Checks the consistency of the ASR fabric. + /// Migrates the site to AAD. /// /// - /// The operation to perform a consistency check on the fabric. + /// The operation to migrate an Azure Site Recovery fabric to AAD. /// /// - /// Fabric name. + /// ASR fabric to migrate. /// /// /// The headers that will be added to request. @@ -344,21 +341,22 @@ public partial interface IReplicationFabricsOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> BeginCheckConsistencyWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginMigrateToAadWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes the site. + /// Perform failover of the process server. /// /// - /// The operation to delete or remove an Azure Site Recovery fabric. + /// The operation to move replications from a process server to another + /// process server. /// /// - /// ASR fabric to delete + /// The name of the fabric containing the process server. + /// + /// + /// The input to the failover process server operation. /// /// /// The headers that will be added to request. @@ -369,22 +367,21 @@ public partial interface IReplicationFabricsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task BeginDeleteWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginReassociateGatewayWithHttpMessagesAsync(string fabricName, FailoverProcessServerRequest failoverProcessServerRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Creates an Azure Site Recoery fabric. + /// Deletes the site. /// /// - /// The operation to create an Azure Site Recovery fabric (for e.g. - /// Hyper-V site) + /// The operation to delete or remove an Azure Site Recovery fabric. /// /// - /// Name of the ASR fabric. - /// - /// - /// Fabric creation input. + /// ASR fabric to delete /// /// /// The headers that will be added to request. @@ -395,21 +392,21 @@ public partial interface IReplicationFabricsOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> BeginCreateWithHttpMessagesAsync(string fabricName, FabricCreationInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginDeleteWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Purges the site. + /// Renews certificate for the fabric. /// /// - /// The operation to purge(force delete) an Azure Site Recovery fabric. + /// Renews the connection certificate for the ASR replication fabric. /// /// - /// ASR fabric to purge. + /// fabric name to renew certs for. + /// + /// + /// Renew certificate input. /// /// /// The headers that will be added to request. @@ -420,10 +417,13 @@ public partial interface IReplicationFabricsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task BeginPurgeWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginRenewCertificateWithHttpMessagesAsync(string fabricName, RenewCertificateInput renewCertificate, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the list of ASR fabrics /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationJobsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationJobsOperations.cs index e5633a934838..bfcc4d68c5d3 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationJobsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationJobsOperations.cs @@ -25,16 +25,13 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public partial interface IReplicationJobsOperations { /// - /// Resumes the specified job. + /// Gets the list of jobs. /// /// - /// The operation to resume an Azure Site Recovery job + /// Gets the list of Azure Site Recovery Jobs for the vault. /// - /// - /// Job identifier. - /// - /// - /// Resume rob comments. + /// + /// OData parameters to apply to the operation. /// /// /// The headers that will be added to request. @@ -51,15 +48,15 @@ public partial interface IReplicationJobsOperations /// /// Thrown when a required parameter is null /// - Task> ResumeWithHttpMessagesAsync(string jobName, ResumeJobParams resumeJobParams, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Restarts the specified job. + /// Gets the job details. /// /// - /// The operation to restart an Azure Site Recovery job. + /// Get the details of an Azure Site Recovery job. /// /// - /// Job identifier. + /// Job identifier /// /// /// The headers that will be added to request. @@ -76,7 +73,7 @@ public partial interface IReplicationJobsOperations /// /// Thrown when a required parameter is null /// - Task> RestartWithHttpMessagesAsync(string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Cancels the specified job. /// @@ -103,13 +100,13 @@ public partial interface IReplicationJobsOperations /// Task> CancelWithHttpMessagesAsync(string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the job details. + /// Restarts the specified job. /// /// - /// Get the details of an Azure Site Recovery job. + /// The operation to restart an Azure Site Recovery job. /// /// - /// Job identifier + /// Job identifier. /// /// /// The headers that will be added to request. @@ -126,16 +123,18 @@ public partial interface IReplicationJobsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> RestartWithHttpMessagesAsync(string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Exports the details of the Azure Site Recovery jobs of the vault. + /// Resumes the specified job. /// /// - /// The operation to export the details of the Azure Site Recovery jobs - /// of the vault. + /// The operation to resume an Azure Site Recovery job /// - /// - /// job query filter. + /// + /// Job identifier. + /// + /// + /// Resume rob comments. /// /// /// The headers that will be added to request. @@ -152,15 +151,16 @@ public partial interface IReplicationJobsOperations /// /// Thrown when a required parameter is null /// - Task> ExportWithHttpMessagesAsync(JobQueryParameter jobQueryParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ResumeWithHttpMessagesAsync(string jobName, ResumeJobParams resumeJobParams, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the list of jobs. + /// Exports the details of the Azure Site Recovery jobs of the vault. /// /// - /// Gets the list of Azure Site Recovery Jobs for the vault. + /// The operation to export the details of the Azure Site Recovery jobs + /// of the vault. /// - /// - /// OData parameters to apply to the operation. + /// + /// job query filter. /// /// /// The headers that will be added to request. @@ -177,18 +177,15 @@ public partial interface IReplicationJobsOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ExportWithHttpMessagesAsync(JobQueryParameter jobQueryParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Resumes the specified job. + /// Cancels the specified job. /// /// - /// The operation to resume an Azure Site Recovery job + /// The operation to cancel an Azure Site Recovery job. /// /// - /// Job identifier. - /// - /// - /// Resume rob comments. + /// Job indentifier. /// /// /// The headers that will be added to request. @@ -205,7 +202,7 @@ public partial interface IReplicationJobsOperations /// /// Thrown when a required parameter is null /// - Task> BeginResumeWithHttpMessagesAsync(string jobName, ResumeJobParams resumeJobParams, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginCancelWithHttpMessagesAsync(string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Restarts the specified job. /// @@ -232,13 +229,16 @@ public partial interface IReplicationJobsOperations /// Task> BeginRestartWithHttpMessagesAsync(string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Cancels the specified job. + /// Resumes the specified job. /// /// - /// The operation to cancel an Azure Site Recovery job. + /// The operation to resume an Azure Site Recovery job /// /// - /// Job indentifier. + /// Job identifier. + /// + /// + /// Resume rob comments. /// /// /// The headers that will be added to request. @@ -255,7 +255,7 @@ public partial interface IReplicationJobsOperations /// /// Thrown when a required parameter is null /// - Task> BeginCancelWithHttpMessagesAsync(string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginResumeWithHttpMessagesAsync(string jobName, ResumeJobParams resumeJobParams, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Exports the details of the Azure Site Recovery jobs of the vault. /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationNetworkMappingsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationNetworkMappingsOperations.cs index 748539c76a2f..47f696e21ce9 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationNetworkMappingsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationNetworkMappingsOperations.cs @@ -23,28 +23,6 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery /// public partial interface IReplicationNetworkMappingsOperations { - /// - /// Gets all the network mappings under a vault. - /// - /// - /// Lists all ASR network mappings in the vault. - /// - /// - /// 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>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets all the network mappings under a network. /// @@ -201,6 +179,28 @@ public partial interface IReplicationNetworkMappingsOperations /// Task> UpdateWithHttpMessagesAsync(string fabricName, string networkName, string networkMappingName, UpdateNetworkMappingInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Gets all the network mappings under a vault. + /// + /// + /// Lists all ASR network mappings in the vault. + /// + /// + /// 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>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Creates network mapping. /// /// @@ -297,10 +297,10 @@ public partial interface IReplicationNetworkMappingsOperations /// Task> BeginUpdateWithHttpMessagesAsync(string fabricName, string networkName, string networkMappingName, UpdateNetworkMappingInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets all the network mappings under a vault. + /// Gets all the network mappings under a network. /// /// - /// Lists all ASR network mappings in the vault. + /// Lists all ASR network mappings for the specified network. /// /// /// The NextLink from the previous successful call to List operation. @@ -320,12 +320,12 @@ public partial interface IReplicationNetworkMappingsOperations /// /// Thrown when a required parameter is null /// - Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByReplicationNetworksNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets all the network mappings under a network. + /// Gets all the network mappings under a vault. /// /// - /// Lists all ASR network mappings for the specified network. + /// Lists all ASR network mappings in the vault. /// /// /// The NextLink from the previous successful call to List operation. @@ -345,6 +345,6 @@ public partial interface IReplicationNetworkMappingsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByReplicationNetworksNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationNetworksOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationNetworksOperations.cs index c570443dd8cf..fbe4773a1bbe 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationNetworksOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationNetworksOperations.cs @@ -24,11 +24,14 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public partial interface IReplicationNetworksOperations { /// - /// Gets the list of networks. View-only API. + /// Gets the list of networks under a fabric. /// /// - /// Lists the networks available in a vault + /// Lists the networks available for a fabric. /// + /// + /// Fabric name + /// /// /// The headers that will be added to request. /// @@ -44,15 +47,18 @@ public partial interface IReplicationNetworksOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the list of networks under a fabric. + /// Gets a network with specified server id and network name. /// /// - /// Lists the networks available for a fabric. + /// Gets the details of a network. /// /// - /// Fabric name + /// Server Id. + /// + /// + /// Primary network name. /// /// /// The headers that will be added to request. @@ -69,19 +75,13 @@ public partial interface IReplicationNetworksOperations /// /// Thrown when a required parameter is null /// - Task>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string fabricName, string networkName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets a network with specified server id and network name. + /// Gets the list of networks. View-only API. /// /// - /// Gets the details of a network. + /// Lists the networks available in a vault /// - /// - /// Server Id. - /// - /// - /// Primary network name. - /// /// /// The headers that will be added to request. /// @@ -97,12 +97,12 @@ public partial interface IReplicationNetworksOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string fabricName, string networkName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the list of networks. View-only API. + /// Gets the list of networks under a fabric. /// /// - /// Lists the networks available in a vault + /// Lists the networks available for a fabric. /// /// /// The NextLink from the previous successful call to List operation. @@ -122,12 +122,12 @@ public partial interface IReplicationNetworksOperations /// /// Thrown when a required parameter is null /// - Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByReplicationFabricsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the list of networks under a fabric. + /// Gets the list of networks. View-only API. /// /// - /// Lists the networks available for a fabric. + /// Lists the networks available in a vault /// /// /// The NextLink from the previous successful call to List operation. @@ -147,6 +147,6 @@ public partial interface IReplicationNetworksOperations /// /// Thrown when a required parameter is null /// - Task>> ListByReplicationFabricsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationPoliciesOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationPoliciesOperations.cs index 7d5405659c97..7433ff25f6f2 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationPoliciesOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationPoliciesOperations.cs @@ -23,6 +23,28 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery /// public partial interface IReplicationPoliciesOperations { + /// + /// Gets the list of replication policies + /// + /// + /// Lists the replication policies for a vault. + /// + /// + /// 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>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the requested policy. /// @@ -99,16 +121,16 @@ public partial interface IReplicationPoliciesOperations /// Task DeleteWithHttpMessagesAsync(string policyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates the protection profile. + /// Updates the policy. /// /// /// The operation to update a replication policy. /// /// - /// Protection profile Id. + /// Policy Id. /// /// - /// Update Protection Profile Input + /// Update Policy Input /// /// /// The headers that will be added to request. @@ -127,28 +149,6 @@ public partial interface IReplicationPoliciesOperations /// Task> UpdateWithHttpMessagesAsync(string policyName, UpdatePolicyInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the list of replication policies - /// - /// - /// Lists the replication policies for a vault. - /// - /// - /// 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>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// /// Creates the policy. /// /// @@ -199,16 +199,16 @@ public partial interface IReplicationPoliciesOperations /// Task BeginDeleteWithHttpMessagesAsync(string policyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates the protection profile. + /// Updates the policy. /// /// /// The operation to update a replication policy. /// /// - /// Protection profile Id. + /// Policy Id. /// /// - /// Update Protection Profile Input + /// Update Policy Input /// /// /// The headers that will be added to request. diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectableItemsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectableItemsOperations.cs index 8a6bba5da9c5..6aadb959f1f0 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectableItemsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectableItemsOperations.cs @@ -24,10 +24,10 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public partial interface IReplicationProtectableItemsOperations { /// - /// Gets the details of a protectable item. + /// Gets the list of protectable items. /// /// - /// The operation to get the details of a protectable item. + /// Lists the protectable items in a protection container. /// /// /// Fabric name. @@ -35,9 +35,6 @@ public partial interface IReplicationProtectableItemsOperations /// /// Protection container name. /// - /// - /// Protectable item name. - /// /// /// The headers that will be added to request. /// @@ -53,12 +50,12 @@ public partial interface IReplicationProtectableItemsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string fabricName, string protectionContainerName, string protectableItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the list of protectable items. + /// Gets the details of a protectable item. /// /// - /// Lists the protectable items in a protection container. + /// The operation to get the details of a protectable item. /// /// /// Fabric name. @@ -66,6 +63,9 @@ public partial interface IReplicationProtectableItemsOperations /// /// Protection container name. /// + /// + /// Protectable item name. + /// /// /// The headers that will be added to request. /// @@ -81,7 +81,7 @@ public partial interface IReplicationProtectableItemsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string fabricName, string protectionContainerName, string protectableItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the list of protectable items. /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectedItemsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectedItemsOperations.cs index bea7e64b489a..5021bee819b1 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectedItemsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectedItemsOperations.cs @@ -54,17 +54,19 @@ public partial interface IReplicationProtectedItemsOperations /// Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the list of replication protected items. + /// Gets the details of a Replication protected item. /// /// - /// Gets the list of ASR replication protected items in the vault. + /// Gets the details of an ASR replication protected item. /// - /// - /// OData parameters to apply to the operation. + /// + /// Fabric unique name. /// - /// - /// The pagination token. Possible values: "FabricId" or - /// "FabricId_CloudId" or null + /// + /// Protection container name. + /// + /// + /// Replication protected item name. /// /// /// The headers that will be added to request. @@ -81,25 +83,25 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Change or apply recovery point. + /// Enables protection. /// /// - /// The operation to change the recovery point of a failed over - /// replication protected item. + /// The operation to create an ASR replication protected item (Enable + /// replication). /// /// - /// The ARM fabric name. + /// Name of the fabric. /// /// - /// The protection container name. + /// Protection container name. /// /// - /// The replicated protected item's name. + /// A name for the replication protected item. /// - /// - /// The ApplyRecoveryPointInput. + /// + /// Enable Protection Input. /// /// /// The headers that will be added to request. @@ -116,22 +118,24 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> ApplyRecoveryPointWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, EnableProtectionInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Resynchronize or repair replication. + /// Purges protection. /// /// - /// The operation to start resynchronize/repair replication for a - /// replication protected item requiring resynchronization. + /// The operation to delete or purge a replication protected item. This + /// operation will force delete the replication protected item. Use the + /// remove operation on replication protected item to perform a clean + /// disable replication for the item. /// /// - /// The name of the fabric. + /// Fabric name. /// /// - /// The name of the container. + /// Protection container name. /// /// - /// The name of the replication protected item. + /// Replication protected item name. /// /// /// The headers that will be added to request. @@ -142,32 +146,28 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> RepairReplicationWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task PurgeWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Update the mobility service on a protected item. + /// Updates protection. /// /// - /// The operation to update(push update) the installed mobility service - /// software on a replication protected item to the latest available - /// version. + /// The operation to update the recovery settings of an ASR replication + /// protected item. /// /// - /// The name of the fabric containing the protected item. + /// Fabric name. /// /// - /// The name of the container containing the protected item. + /// Protection container name. /// - /// - /// The name of the protected item on which the agent is to be updated. + /// + /// Replication protected item name. /// - /// - /// Request to update the mobility service on the protected item. + /// + /// Update protection input. /// /// /// The headers that will be added to request. @@ -184,25 +184,25 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> UpdateMobilityServiceWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicationProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute Reverse Replication\Reprotect + /// Change or apply recovery point. /// /// - /// Operation to reprotect or reverse replicate a failed over + /// 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. /// - /// - /// Disable protection input. + /// + /// The ApplyRecoveryPointInput. /// /// /// The headers that will be added to request. @@ -219,7 +219,7 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> ReprotectWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ApplyRecoveryPointWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Execute commit failover /// @@ -252,11 +252,11 @@ public partial interface IReplicationProtectedItemsOperations /// Task> FailoverCommitWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute test failover cleanup. + /// Execute planned failover /// /// - /// Operation to clean up the test failover of a replication protected - /// item. + /// Operation to initiate a planned failover of the replication + /// protected item. /// /// /// Unique fabric name. @@ -267,8 +267,8 @@ public partial interface IReplicationProtectedItemsOperations /// /// Replication protected item name. /// - /// - /// Test failover cleanup input. + /// + /// Disable protection input. /// /// /// The headers that will be added to request. @@ -285,16 +285,16 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> TestFailoverCleanupWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> PlannedFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, PlannedFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute test failover + /// Disables protection. /// /// - /// Operation to perform a test 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. @@ -302,8 +302,8 @@ public partial interface IReplicationProtectedItemsOperations /// /// Replication protected item name. /// - /// - /// Test failover input. + /// + /// Disable protection input. /// /// /// The headers that will be added to request. @@ -314,30 +314,25 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> TestFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute unplanned failover + /// Resynchronize or repair replication. /// /// - /// Operation to initiate a failover of the replication protected item. + /// The operation to start resynchronize/repair replication for a + /// replication protected item requiring resynchronization. /// /// - /// Unique 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. /// /// /// The headers that will be added to request. @@ -354,13 +349,13 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> UnplannedFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> RepairReplicationWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute planned failover + /// Execute Reverse Replication\Reprotect /// /// - /// Operation to initiate a planned failover of the replication - /// protected item. + /// Operation to reprotect or reverse replicate a failed over + /// replication protected item. /// /// /// Unique fabric name. @@ -371,7 +366,7 @@ public partial interface IReplicationProtectedItemsOperations /// /// Replication protected item name. /// - /// + /// /// Disable protection input. /// /// @@ -389,16 +384,16 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> PlannedFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, PlannedFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ReprotectWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Disables protection. + /// Execute test failover /// /// - /// The operation to disable replication on a replication protected - /// item. This will also remove the item. + /// Operation to perform a test failover of the replication protected + /// item. /// /// - /// Fabric name. + /// Unique fabric name. /// /// /// Protection container name. @@ -406,8 +401,8 @@ public partial interface IReplicationProtectedItemsOperations /// /// Replication protected item name. /// - /// - /// Disable protection input. + /// + /// Test failover input. /// /// /// The headers that will be added to request. @@ -418,18 +413,22 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> TestFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the details of a Replication protected item. + /// Execute test failover cleanup. /// /// - /// Gets the details of an ASR replication protected item. + /// Operation to clean up the test failover of a replication protected + /// item. /// /// - /// Fabric unique name. + /// Unique fabric name. /// /// /// Protection container name. @@ -437,6 +436,9 @@ public partial interface IReplicationProtectedItemsOperations /// /// Replication protected item name. /// + /// + /// Test failover cleanup input. + /// /// /// The headers that will be added to request. /// @@ -452,25 +454,24 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> TestFailoverCleanupWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Enables protection. + /// Execute unplanned failover /// /// - /// The operation to create an ASR replication protected item (Enable - /// replication). + /// Operation to initiate a failover of the replication protected item. /// /// - /// Name of the fabric. + /// Unique fabric name. /// /// /// Protection container name. /// /// - /// A name for the replication protected item. + /// Replication protected item name. /// - /// - /// Enable Protection Input. + /// + /// Disable protection input. /// /// /// The headers that will be added to request. @@ -487,24 +488,26 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> CreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, EnableProtectionInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UnplannedFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Purges protection. + /// Update the mobility service on a protected item. /// /// - /// The operation to delete or purge a replication protected item. This - /// operation will force delete the replication protected item. Use the - /// remove operation on replication protected item to perform a clean - /// disable replication for the item. + /// The operation to update(push update) the installed mobility service + /// software on a replication protected item to the latest available + /// version. /// /// - /// Fabric name. + /// The name of the fabric containing the protected item. /// /// - /// Protection container name. + /// The name of the container containing the protected item. /// - /// - /// Replication protected item name. + /// + /// The name of the protected item on which the agent is to be updated. + /// + /// + /// Request to update the mobility service on the protected item. /// /// /// The headers that will be added to request. @@ -515,28 +518,25 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task PurgeWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateMobilityServiceWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicationProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates protection. + /// Gets the list of replication protected items. /// /// - /// The operation to update the recovery settings of an ASR replication - /// protected item. + /// Gets the list of ASR replication protected items in the vault. /// - /// - /// Fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. + /// + /// OData parameters to apply to the operation. /// - /// - /// Update protection input. + /// + /// The pagination token. Possible values: "FabricId" or + /// "FabricId_CloudId" or null /// /// /// The headers that will be added to request. @@ -553,25 +553,25 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Change or apply recovery point. + /// Enables protection. /// /// - /// The operation to change the recovery point of a failed over - /// replication protected item. + /// The operation to create an ASR replication protected item (Enable + /// replication). /// /// - /// The ARM fabric name. + /// Name of the fabric. /// /// - /// The protection container name. + /// Protection container name. /// /// - /// The replicated protected item's name. + /// A name for the replication protected item. /// - /// - /// The ApplyRecoveryPointInput. + /// + /// Enable Protection Input. /// /// /// The headers that will be added to request. @@ -588,22 +588,24 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> BeginApplyRecoveryPointWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginCreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, EnableProtectionInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Resynchronize or repair replication. + /// Purges protection. /// /// - /// The operation to start resynchronize/repair replication for a - /// replication protected item requiring resynchronization. + /// The operation to delete or purge a replication protected item. This + /// operation will force delete the replication protected item. Use the + /// remove operation on replication protected item to perform a clean + /// disable replication for the item. /// /// - /// The name of the fabric. + /// Fabric name. /// /// - /// The name of the container. + /// Protection container name. /// /// - /// The name of the replication protected item. + /// Replication protected item name. /// /// /// The headers that will be added to request. @@ -614,32 +616,28 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> BeginRepairReplicationWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginPurgeWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Update the mobility service on a protected item. + /// Updates protection. /// /// - /// The operation to update(push update) the installed mobility service - /// software on a replication protected item to the latest available - /// version. + /// The operation to update the recovery settings of an ASR replication + /// protected item. /// /// - /// The name of the fabric containing the protected item. + /// Fabric name. /// /// - /// The name of the container containing the protected item. + /// Protection container name. /// - /// - /// The name of the protected item on which the agent is to be updated. + /// + /// Replication protected item name. /// - /// - /// Request to update the mobility service on the protected item. + /// + /// Update protection input. /// /// /// The headers that will be added to request. @@ -656,25 +654,25 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> BeginUpdateMobilityServiceWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicationProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginUpdateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute Reverse Replication\Reprotect + /// Change or apply recovery point. /// /// - /// Operation to reprotect or reverse replicate a failed over + /// 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. /// - /// - /// Disable protection input. + /// + /// The ApplyRecoveryPointInput. /// /// /// The headers that will be added to request. @@ -691,7 +689,7 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> BeginReprotectWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginApplyRecoveryPointWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Execute commit failover /// @@ -724,11 +722,11 @@ public partial interface IReplicationProtectedItemsOperations /// Task> BeginFailoverCommitWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute test failover cleanup. + /// Execute planned failover /// /// - /// Operation to clean up the test failover of a replication protected - /// item. + /// Operation to initiate a planned failover of the replication + /// protected item. /// /// /// Unique fabric name. @@ -739,8 +737,8 @@ public partial interface IReplicationProtectedItemsOperations /// /// Replication protected item name. /// - /// - /// Test failover cleanup input. + /// + /// Disable protection input. /// /// /// The headers that will be added to request. @@ -757,16 +755,16 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> BeginTestFailoverCleanupWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginPlannedFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, PlannedFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute test failover + /// Disables protection. /// /// - /// Operation to perform a test 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. @@ -774,8 +772,8 @@ public partial interface IReplicationProtectedItemsOperations /// /// Replication protected item name. /// - /// - /// Test failover input. + /// + /// Disable protection input. /// /// /// The headers that will be added to request. @@ -786,30 +784,25 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> BeginTestFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginDeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute unplanned failover + /// Resynchronize or repair replication. /// /// - /// Operation to initiate a failover of the replication protected item. + /// The operation to start resynchronize/repair replication for a + /// replication protected item requiring resynchronization. /// /// - /// Unique 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. /// /// /// The headers that will be added to request. @@ -826,13 +819,13 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> BeginUnplannedFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginRepairReplicationWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute planned failover + /// Execute Reverse Replication\Reprotect /// /// - /// Operation to initiate a planned failover of the replication - /// protected item. + /// Operation to reprotect or reverse replicate a failed over + /// replication protected item. /// /// /// Unique fabric name. @@ -843,7 +836,7 @@ public partial interface IReplicationProtectedItemsOperations /// /// Replication protected item name. /// - /// + /// /// Disable protection input. /// /// @@ -861,16 +854,16 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> BeginPlannedFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, PlannedFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginReprotectWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Disables protection. + /// Execute test failover /// /// - /// The operation to disable replication on a replication protected - /// item. This will also remove the item. + /// Operation to perform a test failover of the replication protected + /// item. /// /// - /// Fabric name. + /// Unique fabric name. /// /// /// Protection container name. @@ -878,8 +871,8 @@ public partial interface IReplicationProtectedItemsOperations /// /// Replication protected item name. /// - /// - /// Disable protection input. + /// + /// Test failover input. /// /// /// The headers that will be added to request. @@ -890,28 +883,31 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task BeginDeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginTestFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Enables protection. + /// Execute test failover cleanup. /// /// - /// The operation to create an ASR replication protected item (Enable - /// replication). + /// Operation to clean up the test failover of a replication protected + /// item. /// /// - /// Name of the fabric. + /// Unique fabric name. /// /// /// Protection container name. /// /// - /// A name for the replication protected item. + /// Replication protected item name. /// - /// - /// Enable Protection Input. + /// + /// Test failover cleanup input. /// /// /// The headers that will be added to request. @@ -928,18 +924,15 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> BeginCreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, EnableProtectionInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginTestFailoverCleanupWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Purges protection. + /// Execute unplanned failover /// /// - /// The operation to delete or purge a replication protected item. This - /// operation will force delete the replication protected item. Use the - /// remove operation on replication protected item to perform a clean - /// disable replication for the item. + /// Operation to initiate a failover of the replication protected item. /// /// - /// Fabric name. + /// Unique fabric name. /// /// /// Protection container name. @@ -947,6 +940,9 @@ public partial interface IReplicationProtectedItemsOperations /// /// Replication protected item name. /// + /// + /// Disable protection input. + /// /// /// The headers that will be added to request. /// @@ -956,28 +952,32 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task BeginPurgeWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginUnplannedFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates protection. + /// Update the mobility service on a protected item. /// /// - /// The operation to update the recovery settings of an ASR replication - /// protected item. + /// The operation to update(push update) the installed mobility service + /// software on a replication protected item to the latest available + /// version. /// /// - /// Fabric name. + /// The name of the fabric containing the protected item. /// /// - /// Protection container name. + /// The name of the container containing the protected item. /// - /// - /// Replication protected item name. + /// + /// The name of the protected item on which the agent is to be updated. /// - /// - /// Update protection input. + /// + /// Request to update the mobility service on the protected item. /// /// /// The headers that will be added to request. @@ -994,7 +994,7 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> BeginUpdateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginUpdateMobilityServiceWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicationProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the list of Replication protected items. /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectionContainerMappingsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectionContainerMappingsOperations.cs index 8442e888d117..ca3506d62af3 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectionContainerMappingsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectionContainerMappingsOperations.cs @@ -24,10 +24,11 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public partial interface IReplicationProtectionContainerMappingsOperations { /// - /// Remove protection container mapping. + /// Gets the list of protection container mappings for a protection + /// container. /// /// - /// The operation to delete or remove a protection container mapping. + /// Lists the protection container mappings for a protection container. /// /// /// Fabric name. @@ -35,12 +36,6 @@ public partial interface IReplicationProtectionContainerMappingsOperations /// /// Protection container name. /// - /// - /// Protection container mapping name. - /// - /// - /// Removal input. - /// /// /// The headers that will be added to request. /// @@ -50,10 +45,13 @@ public partial interface IReplicationProtectionContainerMappingsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, RemoveProtectionContainerMappingInput removalInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a protection container mapping/ /// @@ -148,11 +146,10 @@ public partial interface IReplicationProtectionContainerMappingsOperations /// Task PurgeWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the list of protection container mappings for a protection - /// container. + /// Remove protection container mapping. /// /// - /// Lists the protection container mappings for a protection container. + /// The operation to delete or remove a protection container mapping. /// /// /// Fabric name. @@ -160,6 +157,12 @@ public partial interface IReplicationProtectionContainerMappingsOperations /// /// Protection container name. /// + /// + /// Protection container mapping name. + /// + /// + /// Removal input. + /// /// /// The headers that will be added to request. /// @@ -169,13 +172,10 @@ public partial interface IReplicationProtectionContainerMappingsOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, RemoveProtectionContainerMappingInput removalInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the list of all protection container mappings in a vault. /// @@ -199,10 +199,10 @@ public partial interface IReplicationProtectionContainerMappingsOperations /// Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Remove protection container mapping. + /// Create protection container mapping. /// /// - /// The operation to delete or remove a protection container mapping. + /// The operation to create a protection container mapping. /// /// /// Fabric name. @@ -213,8 +213,8 @@ public partial interface IReplicationProtectionContainerMappingsOperations /// /// Protection container mapping name. /// - /// - /// Removal input. + /// + /// Mapping creation input. /// /// /// The headers that will be added to request. @@ -225,15 +225,18 @@ public partial interface IReplicationProtectionContainerMappingsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task BeginDeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, RemoveProtectionContainerMappingInput removalInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginCreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, CreateProtectionContainerMappingInput creationInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Create protection container mapping. + /// Purge protection container mapping. /// /// - /// The operation to create a protection container mapping. + /// The operation to purge(force delete) a protection container mapping /// /// /// Fabric name. @@ -244,9 +247,6 @@ public partial interface IReplicationProtectionContainerMappingsOperations /// /// Protection container mapping name. /// - /// - /// Mapping creation input. - /// /// /// The headers that will be added to request. /// @@ -256,18 +256,15 @@ public partial interface IReplicationProtectionContainerMappingsOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> BeginCreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, CreateProtectionContainerMappingInput creationInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginPurgeWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Purge protection container mapping. + /// Remove protection container mapping. /// /// - /// The operation to purge(force delete) a protection container mapping + /// The operation to delete or remove a protection container mapping. /// /// /// Fabric name. @@ -278,6 +275,9 @@ public partial interface IReplicationProtectionContainerMappingsOperations /// /// Protection container mapping name. /// + /// + /// Removal input. + /// /// /// The headers that will be added to request. /// @@ -290,7 +290,7 @@ public partial interface IReplicationProtectionContainerMappingsOperations /// /// Thrown when a required parameter is null /// - Task BeginPurgeWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginDeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, RemoveProtectionContainerMappingInput removalInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the list of protection container mappings for a protection /// container. diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectionContainersOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectionContainersOperations.cs index d17a969eef19..c41da22e4dd0 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectionContainersOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectionContainersOperations.cs @@ -24,21 +24,13 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public partial interface IReplicationProtectionContainersOperations { /// - /// Switches protection from one container to another or one - /// replication provider to another. + /// Gets the list of protection container for a fabric. /// /// - /// Operation to switch protection from one container to another or one - /// replication provider to another. + /// Lists the protection containers in the specified fabric. /// /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Switch protection input. + /// Fabric name. /// /// /// The headers that will be added to request. @@ -55,18 +47,18 @@ public partial interface IReplicationProtectionContainersOperations /// /// Thrown when a required parameter is null /// - Task> SwitchProtectionWithHttpMessagesAsync(string fabricName, string protectionContainerName, SwitchProtectionInput switchInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Removes a protection container. + /// Gets the protection container details. /// /// - /// Operation to remove a protection container. + /// Gets the details of a protection container. /// /// - /// Unique fabric ARM name. + /// Fabric name. /// /// - /// Unique protection container ARM name. + /// Protection container name. /// /// /// The headers that will be added to request. @@ -77,25 +69,27 @@ public partial interface IReplicationProtectionContainersOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Adds a protectable item to the replication protection container. + /// Create a protection container. /// /// - /// The operation to a add a protectable item to a protection - /// container(Add physical server.) + /// Operation to create a protection container. /// /// - /// The name of the fabric. + /// Unique fabric ARM name. /// /// - /// The name of the protection container. + /// Unique protection container ARM name. /// - /// - /// The request object to add a protectable item. + /// + /// Creation input. /// /// /// The headers that will be added to request. @@ -112,18 +106,22 @@ public partial interface IReplicationProtectionContainersOperations /// /// Thrown when a required parameter is null /// - Task> DiscoverProtectableItemWithHttpMessagesAsync(string fabricName, string protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, CreateProtectionContainerInput creationInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the protection container details. + /// Adds a protectable item to the replication protection container. /// /// - /// Gets the details of a protection container. + /// The operation to a add a protectable item to a protection + /// container(Add physical server.) /// /// - /// Fabric name. + /// The name of the fabric. /// /// - /// Protection container name. + /// The name of the protection container. + /// + /// + /// The request object to add a protectable item. /// /// /// The headers that will be added to request. @@ -140,12 +138,12 @@ public partial interface IReplicationProtectionContainersOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DiscoverProtectableItemWithHttpMessagesAsync(string fabricName, string protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Create a protection container. + /// Removes a protection container. /// /// - /// Operation to create a protection container. + /// Operation to remove a protection container. /// /// /// Unique fabric ARM name. @@ -153,9 +151,6 @@ public partial interface IReplicationProtectionContainersOperations /// /// Unique protection container ARM name. /// - /// - /// Creation input. - /// /// /// The headers that will be added to request. /// @@ -165,21 +160,26 @@ public partial interface IReplicationProtectionContainersOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> CreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, CreateProtectionContainerInput creationInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the list of protection container for a fabric. + /// Switches protection from one container to another or one + /// replication provider to another. /// /// - /// Lists the protection containers in the specified fabric. + /// Operation to switch protection from one container to another or one + /// replication provider to another. /// /// - /// Fabric name. + /// Unique fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Switch protection input. /// /// /// The headers that will be added to request. @@ -196,7 +196,7 @@ public partial interface IReplicationProtectionContainersOperations /// /// Thrown when a required parameter is null /// - Task>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> SwitchProtectionWithHttpMessagesAsync(string fabricName, string protectionContainerName, SwitchProtectionInput switchInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the list of all protection containers in a vault. /// @@ -220,21 +220,19 @@ public partial interface IReplicationProtectionContainersOperations /// Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Switches protection from one container to another or one - /// replication provider to another. + /// Create a protection container. /// /// - /// Operation to switch protection from one container to another or one - /// replication provider to another. + /// Operation to create a protection container. /// /// - /// Unique fabric name. + /// Unique fabric ARM name. /// /// - /// Protection container name. + /// Unique protection container ARM name. /// - /// - /// Switch protection input. + /// + /// Creation input. /// /// /// The headers that will be added to request. @@ -251,18 +249,22 @@ public partial interface IReplicationProtectionContainersOperations /// /// Thrown when a required parameter is null /// - Task> BeginSwitchProtectionWithHttpMessagesAsync(string fabricName, string protectionContainerName, SwitchProtectionInput switchInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginCreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, CreateProtectionContainerInput creationInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Removes a protection container. + /// Adds a protectable item to the replication protection container. /// /// - /// Operation to remove a protection container. + /// The operation to a add a protectable item to a protection + /// container(Add physical server.) /// /// - /// Unique fabric ARM name. + /// The name of the fabric. /// /// - /// Unique protection container ARM name. + /// The name of the protection container. + /// + /// + /// The request object to add a protectable item. /// /// /// The headers that will be added to request. @@ -273,25 +275,24 @@ public partial interface IReplicationProtectionContainersOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task BeginDeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginDiscoverProtectableItemWithHttpMessagesAsync(string fabricName, string protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Adds a protectable item to the replication protection container. + /// Removes a protection container. /// /// - /// The operation to a add a protectable item to a protection - /// container(Add physical server.) + /// Operation to remove a protection container. /// /// - /// The name of the fabric. + /// Unique fabric ARM name. /// /// - /// The name of the protection container. - /// - /// - /// The request object to add a protectable item. + /// Unique protection container ARM name. /// /// /// The headers that will be added to request. @@ -302,27 +303,26 @@ public partial interface IReplicationProtectionContainersOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> BeginDiscoverProtectableItemWithHttpMessagesAsync(string fabricName, string protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginDeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Create a protection container. + /// Switches protection from one container to another or one + /// replication provider to another. /// /// - /// Operation to create a protection container. + /// Operation to switch protection from one container to another or one + /// replication provider to another. /// /// - /// Unique fabric ARM name. + /// Unique fabric name. /// /// - /// Unique protection container ARM name. + /// Protection container name. /// - /// - /// Creation input. + /// + /// Switch protection input. /// /// /// The headers that will be added to request. @@ -339,7 +339,7 @@ public partial interface IReplicationProtectionContainersOperations /// /// Thrown when a required parameter is null /// - Task> BeginCreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, CreateProtectionContainerInput creationInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginSwitchProtectionWithHttpMessagesAsync(string fabricName, string protectionContainerName, SwitchProtectionInput switchInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the list of protection container for a fabric. /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationRecoveryPlansOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationRecoveryPlansOperations.cs index 988d3dbf2bba..a6f740db6a3b 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationRecoveryPlansOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationRecoveryPlansOperations.cs @@ -24,14 +24,11 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public partial interface IReplicationRecoveryPlansOperations { /// - /// Execute reprotect of the recovery plan. + /// Gets the list of recovery plans. /// /// - /// The operation to reprotect(reverse replicate) a recovery plan. + /// Lists the recovery plans in the vault. /// - /// - /// Recovery plan name. - /// /// /// The headers that will be added to request. /// @@ -47,15 +44,15 @@ public partial interface IReplicationRecoveryPlansOperations /// /// Thrown when a required parameter is null /// - Task> ReprotectWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute commit failover of the recovery plan. + /// Gets the requested recovery plan. /// /// - /// The operation to commit the fail over of a recovery plan. + /// Gets the details of the recovery plan. /// /// - /// Recovery plan name. + /// Name of the recovery plan. /// /// /// The headers that will be added to request. @@ -72,18 +69,18 @@ public partial interface IReplicationRecoveryPlansOperations /// /// Thrown when a required parameter is null /// - Task> FailoverCommitWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute test failover cleanup of the recovery plan. + /// Creates a recovery plan with the given details. /// /// - /// The operation to cleanup test failover of a recovery plan. + /// The operation to create a recovery plan. /// /// /// Recovery plan name. /// /// - /// Test failover cleanup input. + /// Recovery Plan creation input. /// /// /// The headers that will be added to request. @@ -100,19 +97,16 @@ public partial interface IReplicationRecoveryPlansOperations /// /// Thrown when a required parameter is null /// - Task> TestFailoverCleanupWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateWithHttpMessagesAsync(string recoveryPlanName, CreateRecoveryPlanInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute test failover of the recovery plan. + /// Deletes the specified recovery plan. /// /// - /// The operation to start the test failover of a recovery plan. + /// Delete a recovery plan. /// /// /// Recovery plan name. /// - /// - /// Failover input. - /// /// /// The headers that will be added to request. /// @@ -122,24 +116,21 @@ public partial interface IReplicationRecoveryPlansOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> TestFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanTestFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute unplanned failover of the recovery plan. + /// Updates the given recovery plan. /// /// - /// The operation to start the failover of a recovery plan. + /// The operation to update a recovery plan. /// /// /// Recovery plan name. /// /// - /// Failover input. + /// Update recovery plan input /// /// /// The headers that will be added to request. @@ -156,19 +147,16 @@ public partial interface IReplicationRecoveryPlansOperations /// /// Thrown when a required parameter is null /// - Task> UnplannedFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string recoveryPlanName, UpdateRecoveryPlanInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute planned failover of the recovery plan. + /// Execute commit failover of the recovery plan. /// /// - /// The operation to start the planned failover of a recovery plan. + /// The operation to commit the fail over of a recovery plan. /// /// /// Recovery plan name. /// - /// - /// Failover input. - /// /// /// The headers that will be added to request. /// @@ -184,15 +172,18 @@ public partial interface IReplicationRecoveryPlansOperations /// /// Thrown when a required parameter is null /// - Task> PlannedFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanPlannedFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> FailoverCommitWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the requested recovery plan. + /// Execute planned failover of the recovery plan. /// /// - /// Gets the details of the recovery plan. + /// The operation to start the planned failover of a recovery plan. /// /// - /// Name of the recovery plan. + /// Recovery plan name. + /// + /// + /// Failover input. /// /// /// The headers that will be added to request. @@ -209,19 +200,16 @@ public partial interface IReplicationRecoveryPlansOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> PlannedFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanPlannedFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Creates a recovery plan with the given details. + /// Execute reprotect of the recovery plan. /// /// - /// The operation to create a recovery plan. + /// The operation to reprotect(reverse replicate) a recovery plan. /// /// /// Recovery plan name. /// - /// - /// Recovery Plan creation input. - /// /// /// The headers that will be added to request. /// @@ -237,16 +225,19 @@ public partial interface IReplicationRecoveryPlansOperations /// /// Thrown when a required parameter is null /// - Task> CreateWithHttpMessagesAsync(string recoveryPlanName, CreateRecoveryPlanInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ReprotectWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes the specified recovery plan. + /// Execute test failover of the recovery plan. /// /// - /// Delete a recovery plan. + /// The operation to start the test failover of a recovery plan. /// /// /// Recovery plan name. /// + /// + /// Failover input. + /// /// /// The headers that will be added to request. /// @@ -256,21 +247,24 @@ public partial interface IReplicationRecoveryPlansOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> TestFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanTestFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates the given recovery plan. + /// Execute test failover cleanup of the recovery plan. /// /// - /// The operation to update a recovery plan. + /// The operation to cleanup test failover of a recovery plan. /// /// /// Recovery plan name. /// /// - /// Update recovery plan input + /// Test failover cleanup input. /// /// /// The headers that will be added to request. @@ -287,13 +281,19 @@ public partial interface IReplicationRecoveryPlansOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string recoveryPlanName, UpdateRecoveryPlanInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> TestFailoverCleanupWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the list of recovery plans. + /// Execute unplanned failover of the recovery plan. /// /// - /// Lists the recovery plans in the vault. + /// The operation to start the failover of a recovery plan. /// + /// + /// Recovery plan name. + /// + /// + /// Failover input. + /// /// /// The headers that will be added to request. /// @@ -309,16 +309,19 @@ public partial interface IReplicationRecoveryPlansOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UnplannedFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute reprotect of the recovery plan. + /// Creates a recovery plan with the given details. /// /// - /// The operation to reprotect(reverse replicate) a recovery plan. + /// The operation to create a recovery plan. /// /// /// Recovery plan name. /// + /// + /// Recovery Plan creation input. + /// /// /// The headers that will be added to request. /// @@ -334,12 +337,12 @@ public partial interface IReplicationRecoveryPlansOperations /// /// Thrown when a required parameter is null /// - Task> BeginReprotectWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginCreateWithHttpMessagesAsync(string recoveryPlanName, CreateRecoveryPlanInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute commit failover of the recovery plan. + /// Deletes the specified recovery plan. /// /// - /// The operation to commit the fail over of a recovery plan. + /// Delete a recovery plan. /// /// /// Recovery plan name. @@ -353,24 +356,21 @@ public partial interface IReplicationRecoveryPlansOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> BeginFailoverCommitWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginDeleteWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute test failover cleanup of the recovery plan. + /// Updates the given recovery plan. /// /// - /// The operation to cleanup test failover of a recovery plan. + /// The operation to update a recovery plan. /// /// /// Recovery plan name. /// /// - /// Test failover cleanup input. + /// Update recovery plan input /// /// /// The headers that will be added to request. @@ -387,19 +387,16 @@ public partial interface IReplicationRecoveryPlansOperations /// /// Thrown when a required parameter is null /// - Task> BeginTestFailoverCleanupWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginUpdateWithHttpMessagesAsync(string recoveryPlanName, UpdateRecoveryPlanInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute test failover of the recovery plan. + /// Execute commit failover of the recovery plan. /// /// - /// The operation to start the test failover of a recovery plan. + /// The operation to commit the fail over of a recovery plan. /// /// /// Recovery plan name. /// - /// - /// Failover input. - /// /// /// The headers that will be added to request. /// @@ -415,12 +412,12 @@ public partial interface IReplicationRecoveryPlansOperations /// /// Thrown when a required parameter is null /// - Task> BeginTestFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanTestFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginFailoverCommitWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute unplanned failover of the recovery plan. + /// Execute planned failover of the recovery plan. /// /// - /// The operation to start the failover of a recovery plan. + /// The operation to start the planned failover of a recovery plan. /// /// /// Recovery plan name. @@ -443,19 +440,16 @@ public partial interface IReplicationRecoveryPlansOperations /// /// Thrown when a required parameter is null /// - Task> BeginUnplannedFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginPlannedFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanPlannedFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute planned failover of the recovery plan. + /// Execute reprotect of the recovery plan. /// /// - /// The operation to start the planned failover of a recovery plan. + /// The operation to reprotect(reverse replicate) a recovery plan. /// /// /// Recovery plan name. /// - /// - /// Failover input. - /// /// /// The headers that will be added to request. /// @@ -471,18 +465,18 @@ public partial interface IReplicationRecoveryPlansOperations /// /// Thrown when a required parameter is null /// - Task> BeginPlannedFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanPlannedFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginReprotectWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Creates a recovery plan with the given details. + /// Execute test failover of the recovery plan. /// /// - /// The operation to create a recovery plan. + /// The operation to start the test failover of a recovery plan. /// /// /// Recovery plan name. /// /// - /// Recovery Plan creation input. + /// Failover input. /// /// /// The headers that will be added to request. @@ -499,16 +493,19 @@ public partial interface IReplicationRecoveryPlansOperations /// /// Thrown when a required parameter is null /// - Task> BeginCreateWithHttpMessagesAsync(string recoveryPlanName, CreateRecoveryPlanInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginTestFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanTestFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes the specified recovery plan. + /// Execute test failover cleanup of the recovery plan. /// /// - /// Delete a recovery plan. + /// The operation to cleanup test failover of a recovery plan. /// /// /// Recovery plan name. /// + /// + /// Test failover cleanup input. + /// /// /// The headers that will be added to request. /// @@ -518,21 +515,24 @@ public partial interface IReplicationRecoveryPlansOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task BeginDeleteWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginTestFailoverCleanupWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates the given recovery plan. + /// Execute unplanned failover of the recovery plan. /// /// - /// The operation to update a recovery plan. + /// The operation to start the failover of a recovery plan. /// /// /// Recovery plan name. /// /// - /// Update recovery plan input + /// Failover input. /// /// /// The headers that will be added to request. @@ -549,7 +549,7 @@ public partial interface IReplicationRecoveryPlansOperations /// /// Thrown when a required parameter is null /// - Task> BeginUpdateWithHttpMessagesAsync(string recoveryPlanName, UpdateRecoveryPlanInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginUnplannedFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the list of recovery plans. /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationRecoveryServicesProvidersOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationRecoveryServicesProvidersOperations.cs index c55f402a025b..93d984597c5b 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationRecoveryServicesProvidersOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationRecoveryServicesProvidersOperations.cs @@ -24,17 +24,15 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public partial interface IReplicationRecoveryServicesProvidersOperations { /// - /// Refresh details from the recovery services provider. + /// Gets the list of registered recovery services providers for the + /// fabric. /// /// - /// The operation to refresh the information from the recovery services - /// provider. + /// Lists the registered recovery services providers for the specified + /// fabric. /// /// - /// Fabric name. - /// - /// - /// Recovery services provider name. + /// Fabric name /// /// /// The headers that will be added to request. @@ -51,23 +49,18 @@ public partial interface IReplicationRecoveryServicesProvidersOperations /// /// Thrown when a required parameter is null /// - Task> RefreshProviderWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes provider from fabric. Note: Deleting provider for any - /// fabric other than SingleHost is unsupported. To maintain backward - /// compatibility for released clients the object "deleteRspInput" is - /// used (if the object is empty we assume that it is old client and - /// continue the old behavior). + /// Gets the details of a recovery services provider. /// /// - /// The operation to removes/delete(unregister) a recovery services - /// provider from the vault + /// Gets the details of registered recovery services provider. /// /// /// Fabric name. /// /// - /// Recovery services provider name. + /// Recovery services provider name /// /// /// The headers that will be added to request. @@ -78,21 +71,25 @@ public partial interface IReplicationRecoveryServicesProvidersOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the details of a recovery services provider. + /// Purges recovery service provider from fabric /// /// - /// Gets the details of registered recovery services provider. + /// The operation to purge(force delete) a recovery services provider + /// from the vault. /// /// /// Fabric name. /// /// - /// Recovery services provider name + /// Recovery services provider name. /// /// /// The headers that will be added to request. @@ -103,19 +100,16 @@ public partial interface IReplicationRecoveryServicesProvidersOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task PurgeWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Purges recovery service provider from fabric + /// Refresh details from the recovery services provider. /// /// - /// The operation to purge(force delete) a recovery services provider - /// from the vault. + /// The operation to refresh the information from the recovery services + /// provider. /// /// /// Fabric name. @@ -132,20 +126,29 @@ public partial interface IReplicationRecoveryServicesProvidersOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task PurgeWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> RefreshProviderWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the list of registered recovery services providers for the - /// fabric. + /// Deletes provider from fabric. Note: Deleting provider for any + /// fabric other than SingleHost is unsupported. To maintain backward + /// compatibility for released clients the object "deleteRspInput" is + /// used (if the object is empty we assume that it is old client and + /// continue the old behavior). /// /// - /// Lists the registered recovery services providers for the specified - /// fabric. + /// The operation to removes/delete(unregister) a recovery services + /// provider from the vault /// /// - /// Fabric name + /// Fabric name. + /// + /// + /// Recovery services provider name. /// /// /// The headers that will be added to request. @@ -156,13 +159,10 @@ public partial interface IReplicationRecoveryServicesProvidersOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the list of registered recovery services providers in the /// vault. This is a view only api. @@ -187,11 +187,11 @@ public partial interface IReplicationRecoveryServicesProvidersOperations /// Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Refresh details from the recovery services provider. + /// Purges recovery service provider from fabric /// /// - /// The operation to refresh the information from the recovery services - /// provider. + /// The operation to purge(force delete) a recovery services provider + /// from the vault. /// /// /// Fabric name. @@ -208,23 +208,16 @@ public partial interface IReplicationRecoveryServicesProvidersOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> BeginRefreshProviderWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginPurgeWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes provider from fabric. Note: Deleting provider for any - /// fabric other than SingleHost is unsupported. To maintain backward - /// compatibility for released clients the object "deleteRspInput" is - /// used (if the object is empty we assume that it is old client and - /// continue the old behavior). + /// Refresh details from the recovery services provider. /// /// - /// The operation to removes/delete(unregister) a recovery services - /// provider from the vault + /// The operation to refresh the information from the recovery services + /// provider. /// /// /// Fabric name. @@ -241,16 +234,23 @@ public partial interface IReplicationRecoveryServicesProvidersOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task BeginDeleteWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginRefreshProviderWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Purges recovery service provider from fabric + /// Deletes provider from fabric. Note: Deleting provider for any + /// fabric other than SingleHost is unsupported. To maintain backward + /// compatibility for released clients the object "deleteRspInput" is + /// used (if the object is empty we assume that it is old client and + /// continue the old behavior). /// /// - /// The operation to purge(force delete) a recovery services provider - /// from the vault. + /// The operation to removes/delete(unregister) a recovery services + /// provider from the vault /// /// /// Fabric name. @@ -270,7 +270,7 @@ public partial interface IReplicationRecoveryServicesProvidersOperations /// /// Thrown when a required parameter is null /// - Task BeginPurgeWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginDeleteWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the list of registered recovery services providers for the /// fabric. diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationStorageClassificationMappingsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationStorageClassificationMappingsOperations.cs index 0af0e8ce7fb3..a1d6c987a299 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationStorageClassificationMappingsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationStorageClassificationMappingsOperations.cs @@ -24,19 +24,17 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public partial interface IReplicationStorageClassificationMappingsOperations { /// - /// Gets the details of a storage classification mapping. + /// Gets the list of storage classification mappings objects under a + /// storage. /// /// - /// Gets the details of the specified storage classification mapping. + /// Lists the storage classification mappings for the fabric. /// /// /// Fabric name. /// /// - /// Storage classification name. - /// - /// - /// Storage classification mapping name. + /// Storage classfication name. /// /// /// The headers that will be added to request. @@ -53,12 +51,12 @@ public partial interface IReplicationStorageClassificationMappingsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string fabricName, string storageClassificationName, string storageClassificationMappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByReplicationStorageClassificationsWithHttpMessagesAsync(string fabricName, string storageClassificationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Create storage classification mapping. + /// Gets the details of a storage classification mapping. /// /// - /// The operation to create a storage classification mapping. + /// Gets the details of the specified storage classification mapping. /// /// /// Fabric name. @@ -69,9 +67,6 @@ public partial interface IReplicationStorageClassificationMappingsOperations /// /// Storage classification mapping name. /// - /// - /// Pairing input. - /// /// /// The headers that will be added to request. /// @@ -87,12 +82,12 @@ public partial interface IReplicationStorageClassificationMappingsOperations /// /// Thrown when a required parameter is null /// - Task> CreateWithHttpMessagesAsync(string fabricName, string storageClassificationName, string storageClassificationMappingName, StorageClassificationMappingInput pairingInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string fabricName, string storageClassificationName, string storageClassificationMappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Delete a storage classification mapping. + /// Create storage classification mapping. /// /// - /// The operation to delete a storage classification mapping. + /// The operation to create a storage classification mapping. /// /// /// Fabric name. @@ -103,6 +98,9 @@ public partial interface IReplicationStorageClassificationMappingsOperations /// /// Storage classification mapping name. /// + /// + /// Pairing input. + /// /// /// The headers that will be added to request. /// @@ -112,22 +110,27 @@ public partial interface IReplicationStorageClassificationMappingsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string fabricName, string storageClassificationName, string storageClassificationMappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateWithHttpMessagesAsync(string fabricName, string storageClassificationName, string storageClassificationMappingName, StorageClassificationMappingInput pairingInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the list of storage classification mappings objects under a - /// storage. + /// Delete a storage classification mapping. /// /// - /// Lists the storage classification mappings for the fabric. + /// The operation to delete a storage classification mapping. /// /// /// Fabric name. /// /// - /// Storage classfication name. + /// Storage classification name. + /// + /// + /// Storage classification mapping name. /// /// /// The headers that will be added to request. @@ -138,13 +141,10 @@ public partial interface IReplicationStorageClassificationMappingsOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task>> ListByReplicationStorageClassificationsWithHttpMessagesAsync(string fabricName, string storageClassificationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string fabricName, string storageClassificationName, string storageClassificationMappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the list of storage classification mappings objects under a /// vault. diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationStorageClassificationsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationStorageClassificationsOperations.cs index 88c1c445294e..6b7e6fd7b75f 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationStorageClassificationsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationStorageClassificationsOperations.cs @@ -24,16 +24,14 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public partial interface IReplicationStorageClassificationsOperations { /// - /// Gets the details of a storage classification. + /// Gets the list of storage classification objects under a fabric. /// /// - /// Gets the details of the specified storage classification. + /// Lists the storage classifications available in the specified + /// fabric. /// /// - /// Fabric name. - /// - /// - /// Storage classification name. + /// Site name of interest. /// /// /// The headers that will be added to request. @@ -50,16 +48,18 @@ public partial interface IReplicationStorageClassificationsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string fabricName, string storageClassificationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the list of storage classification objects under a fabric. + /// Gets the details of a storage classification. /// /// - /// Lists the storage classifications available in the specified - /// fabric. + /// Gets the details of the specified storage classification. /// /// - /// Site name of interest. + /// Fabric name. + /// + /// + /// Storage classification name. /// /// /// The headers that will be added to request. @@ -76,7 +76,7 @@ public partial interface IReplicationStorageClassificationsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string fabricName, string storageClassificationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the list of storage classification objects under a vault. /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationVaultHealthOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationVaultHealthOperations.cs index 8b1088132363..2a48db7164a1 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationVaultHealthOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationVaultHealthOperations.cs @@ -45,5 +45,43 @@ public partial interface IReplicationVaultHealthOperations /// Thrown when a required parameter is null /// Task> GetWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Refreshes health summary of the vault. + /// + /// + /// 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> RefreshWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Refreshes health summary of the vault. + /// + /// + /// 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> BeginRefreshWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationvCentersOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationvCentersOperations.cs index 2475c85afda8..913feceeef47 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationvCentersOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationvCentersOperations.cs @@ -23,6 +23,31 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery /// public partial interface IReplicationvCentersOperations { + /// + /// Gets the list of vCenter registered under a fabric. + /// + /// + /// Lists the vCenter servers registered in a fabric. + /// + /// + /// Fabric name. + /// + /// + /// 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>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the details of a vCenter. /// @@ -141,31 +166,6 @@ public partial interface IReplicationvCentersOperations /// Task> UpdateWithHttpMessagesAsync(string fabricName, string vCenterName, UpdateVCenterRequest updateVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the list of vCenter registered under a fabric. - /// - /// - /// Lists the vCenter servers registered in a fabric. - /// - /// - /// Fabric name. - /// - /// - /// 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>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// /// Gets the list of vCenter registered under the vault. /// /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ISiteRecoveryManagementClient.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ISiteRecoveryManagementClient.cs index 102038d2cec2..96d5e589e8ea 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ISiteRecoveryManagementClient.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ISiteRecoveryManagementClient.cs @@ -79,19 +79,19 @@ public partial interface ISiteRecoveryManagementClient : System.IDisposable /// - /// Gets the IReplicationVaultHealthOperations. + /// Gets the IOperations. /// - IReplicationVaultHealthOperations ReplicationVaultHealth { get; } + IOperations Operations { get; } /// - /// Gets the IReplicationProtectedItemsOperations. + /// Gets the IReplicationAlertSettingsOperations. /// - IReplicationProtectedItemsOperations ReplicationProtectedItems { get; } + IReplicationAlertSettingsOperations ReplicationAlertSettings { get; } /// - /// Gets the IReplicationNetworkMappingsOperations. + /// Gets the IReplicationEventsOperations. /// - IReplicationNetworkMappingsOperations ReplicationNetworkMappings { get; } + IReplicationEventsOperations ReplicationEvents { get; } /// /// Gets the IReplicationFabricsOperations. @@ -99,69 +99,69 @@ public partial interface ISiteRecoveryManagementClient : System.IDisposable IReplicationFabricsOperations ReplicationFabrics { get; } /// - /// Gets the IReplicationvCentersOperations. + /// Gets the IReplicationLogicalNetworksOperations. /// - IReplicationvCentersOperations ReplicationvCenters { get; } + IReplicationLogicalNetworksOperations ReplicationLogicalNetworks { get; } /// - /// Gets the IReplicationStorageClassificationMappingsOperations. + /// Gets the IReplicationNetworksOperations. /// - IReplicationStorageClassificationMappingsOperations ReplicationStorageClassificationMappings { get; } + IReplicationNetworksOperations ReplicationNetworks { get; } /// - /// Gets the IReplicationStorageClassificationsOperations. + /// Gets the IReplicationNetworkMappingsOperations. /// - IReplicationStorageClassificationsOperations ReplicationStorageClassifications { get; } + IReplicationNetworkMappingsOperations ReplicationNetworkMappings { get; } /// - /// Gets the IReplicationRecoveryServicesProvidersOperations. + /// Gets the IReplicationProtectionContainersOperations. /// - IReplicationRecoveryServicesProvidersOperations ReplicationRecoveryServicesProviders { get; } + IReplicationProtectionContainersOperations ReplicationProtectionContainers { get; } /// - /// Gets the IRecoveryPointsOperations. + /// Gets the IReplicationProtectableItemsOperations. /// - IRecoveryPointsOperations RecoveryPoints { get; } + IReplicationProtectableItemsOperations ReplicationProtectableItems { get; } /// - /// Gets the IReplicationRecoveryPlansOperations. + /// Gets the IReplicationProtectedItemsOperations. /// - IReplicationRecoveryPlansOperations ReplicationRecoveryPlans { get; } + IReplicationProtectedItemsOperations ReplicationProtectedItems { get; } /// - /// Gets the IReplicationProtectionContainersOperations. + /// Gets the IRecoveryPointsOperations. /// - IReplicationProtectionContainersOperations ReplicationProtectionContainers { get; } + IRecoveryPointsOperations RecoveryPoints { get; } /// - /// Gets the IReplicationProtectionContainerMappingsOperations. + /// Gets the ITargetComputeSizesOperations. /// - IReplicationProtectionContainerMappingsOperations ReplicationProtectionContainerMappings { get; } + ITargetComputeSizesOperations TargetComputeSizes { get; } /// - /// Gets the IReplicationProtectableItemsOperations. + /// Gets the IReplicationProtectionContainerMappingsOperations. /// - IReplicationProtectableItemsOperations ReplicationProtectableItems { get; } + IReplicationProtectionContainerMappingsOperations ReplicationProtectionContainerMappings { get; } /// - /// Gets the IReplicationPoliciesOperations. + /// Gets the IReplicationRecoveryServicesProvidersOperations. /// - IReplicationPoliciesOperations ReplicationPolicies { get; } + IReplicationRecoveryServicesProvidersOperations ReplicationRecoveryServicesProviders { get; } /// - /// Gets the IOperations. + /// Gets the IReplicationStorageClassificationsOperations. /// - IOperations Operations { get; } + IReplicationStorageClassificationsOperations ReplicationStorageClassifications { get; } /// - /// Gets the IReplicationNetworksOperations. + /// Gets the IReplicationStorageClassificationMappingsOperations. /// - IReplicationNetworksOperations ReplicationNetworks { get; } + IReplicationStorageClassificationMappingsOperations ReplicationStorageClassificationMappings { get; } /// - /// Gets the IReplicationLogicalNetworksOperations. + /// Gets the IReplicationvCentersOperations. /// - IReplicationLogicalNetworksOperations ReplicationLogicalNetworks { get; } + IReplicationvCentersOperations ReplicationvCenters { get; } /// /// Gets the IReplicationJobsOperations. @@ -169,14 +169,19 @@ public partial interface ISiteRecoveryManagementClient : System.IDisposable IReplicationJobsOperations ReplicationJobs { get; } /// - /// Gets the IReplicationEventsOperations. + /// Gets the IReplicationPoliciesOperations. /// - IReplicationEventsOperations ReplicationEvents { get; } + IReplicationPoliciesOperations ReplicationPolicies { get; } /// - /// Gets the IReplicationAlertSettingsOperations. + /// Gets the IReplicationRecoveryPlansOperations. /// - IReplicationAlertSettingsOperations ReplicationAlertSettings { get; } + IReplicationRecoveryPlansOperations ReplicationRecoveryPlans { get; } + + /// + /// Gets the IReplicationVaultHealthOperations. + /// + IReplicationVaultHealthOperations ReplicationVaultHealth { get; } } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ITargetComputeSizesOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ITargetComputeSizesOperations.cs new file mode 100644 index 000000000000..37f3b28a8c16 --- /dev/null +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ITargetComputeSizesOperations.cs @@ -0,0 +1,87 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// TargetComputeSizesOperations operations. + /// + public partial interface ITargetComputeSizesOperations + { + /// + /// Gets the list of target compute sizes for the replication protected + /// item. + /// + /// + /// Lists the available target compute sizes for a replication + /// protected item. + /// + /// + /// Fabric name. + /// + /// + /// protection container name. + /// + /// + /// Replication protected item name. + /// + /// + /// 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>> ListByReplicationProtectedItemsWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the list of target compute sizes for the replication protected + /// item. + /// + /// + /// Lists the available target compute sizes for a replication + /// protected item. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListByReplicationProtectedItemsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AEnableProtectionInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AEnableProtectionInput.cs index dcd12a96d202..e0130384f79d 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AEnableProtectionInput.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AEnableProtectionInput.cs @@ -45,7 +45,10 @@ public A2AEnableProtectionInput() /// The list of vm disk details. /// The list of vm managed disk /// details. - 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)) + /// The multi vm group name. + /// The boot diagnostic + /// storage account. + 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)) { FabricObjectId = fabricObjectId; RecoveryContainerId = recoveryContainerId; @@ -54,6 +57,8 @@ public A2AEnableProtectionInput() RecoveryAvailabilitySetId = recoveryAvailabilitySetId; VmDisks = vmDisks; VmManagedDisks = vmManagedDisks; + MultiVmGroupName = multiVmGroupName; + RecoveryBootDiagStorageAccountId = recoveryBootDiagStorageAccountId; CustomInit(); } @@ -105,5 +110,17 @@ public A2AEnableProtectionInput() [JsonProperty(PropertyName = "vmManagedDisks")] public IList VmManagedDisks { get; set; } + /// + /// Gets or sets the multi vm group name. + /// + [JsonProperty(PropertyName = "multiVmGroupName")] + public string MultiVmGroupName { get; set; } + + /// + /// Gets or sets the boot diagnostic storage account. + /// + [JsonProperty(PropertyName = "recoveryBootDiagStorageAccountId")] + public string RecoveryBootDiagStorageAccountId { get; set; } + } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AProtectedManagedDiskDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AProtectedManagedDiskDetails.cs index bdfe41c57bc9..5348a286e204 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AProtectedManagedDiskDetails.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AProtectedManagedDiskDetails.cs @@ -32,9 +32,18 @@ public A2AProtectedManagedDiskDetails() /// class. /// /// The managed disk Arm id. - /// The recovery disk - /// resource group Arm Id. - /// Recovery disk Arm Id. + /// The recovery disk resource + /// group Arm Id. + /// Recovery target disk Arm + /// Id. + /// Recovery replica disk Arm + /// Id. + /// The replica disk type. + /// Its an optional value and will be same as source disk type if not + /// user provided. + /// The target disk type + /// after failover. Its an optional value and will be same as source + /// disk type if not user provided. /// The disk name. /// The disk capacity in /// bytes. @@ -53,11 +62,14 @@ public A2AProtectedManagedDiskDetails() /// pending for replication in MB at staging account. /// The data pending at /// source virtual machine in MB. - public A2AProtectedManagedDiskDetails(string diskId = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryDiskId = 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?)) + 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?)) { DiskId = diskId; - RecoveryAzureResourceGroupId = recoveryAzureResourceGroupId; - RecoveryDiskId = recoveryDiskId; + RecoveryResourceGroupId = recoveryResourceGroupId; + RecoveryTargetDiskId = recoveryTargetDiskId; + RecoveryReplicaDiskId = recoveryReplicaDiskId; + RecoveryReplicaDiskAccountType = recoveryReplicaDiskAccountType; + RecoveryTargetDiskAccountType = recoveryTargetDiskAccountType; DiskName = diskName; DiskCapacityInBytes = diskCapacityInBytes; PrimaryStagingAzureStorageAccountId = primaryStagingAzureStorageAccountId; @@ -84,14 +96,34 @@ public A2AProtectedManagedDiskDetails() /// /// Gets or sets the recovery disk resource group Arm Id. /// - [JsonProperty(PropertyName = "recoveryAzureResourceGroupId")] - public string RecoveryAzureResourceGroupId { get; set; } + [JsonProperty(PropertyName = "recoveryResourceGroupId")] + public string RecoveryResourceGroupId { get; set; } /// - /// Gets or sets recovery disk Arm Id. + /// Gets or sets recovery target disk Arm Id. /// - [JsonProperty(PropertyName = "recoveryDiskId")] - public string RecoveryDiskId { get; set; } + [JsonProperty(PropertyName = "recoveryTargetDiskId")] + public string RecoveryTargetDiskId { get; set; } + + /// + /// Gets or sets recovery replica disk Arm Id. + /// + [JsonProperty(PropertyName = "recoveryReplicaDiskId")] + public string RecoveryReplicaDiskId { get; set; } + + /// + /// Gets or sets the replica disk type. Its an optional value and will + /// be same as source disk type if not user provided. + /// + [JsonProperty(PropertyName = "recoveryReplicaDiskAccountType")] + public string RecoveryReplicaDiskAccountType { get; set; } + + /// + /// Gets or sets the target disk type after failover. Its an optional + /// value and will be same as source disk type if not user provided. + /// + [JsonProperty(PropertyName = "recoveryTargetDiskAccountType")] + public string RecoveryTargetDiskAccountType { get; set; } /// /// Gets or sets the disk name. diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2ARecoveryPointDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2ARecoveryPointDetails.cs new file mode 100644 index 000000000000..5e6b799d5874 --- /dev/null +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2ARecoveryPointDetails.cs @@ -0,0 +1,56 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A2A provider specific recovery point details. + /// + [Newtonsoft.Json.JsonObject("A2A")] + public partial class A2ARecoveryPointDetails : ProviderSpecificRecoveryPointDetails + { + /// + /// Initializes a new instance of the A2ARecoveryPointDetails class. + /// + public A2ARecoveryPointDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the A2ARecoveryPointDetails class. + /// + /// A value indicating whether the + /// recovery point is multi VM consistent. Possible values include: + /// 'MultiVmSyncRecoveryPoint', 'PerVmRecoveryPoint' + public A2ARecoveryPointDetails(RecoveryPointSyncType? recoveryPointSyncType = default(RecoveryPointSyncType?)) + { + RecoveryPointSyncType = recoveryPointSyncType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a value indicating whether the recovery point is multi + /// VM consistent. Possible values include: 'MultiVmSyncRecoveryPoint', + /// 'PerVmRecoveryPoint' + /// + [JsonProperty(PropertyName = "recoveryPointSyncType")] + public RecoveryPointSyncType? RecoveryPointSyncType { get; set; } + + } +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AReplicationDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AReplicationDetails.cs index 9fdd83ee62d4..dbeb0ad4b131 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AReplicationDetails.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AReplicationDetails.cs @@ -36,10 +36,15 @@ public A2AReplicationDetails() /// virtual machine. /// The multi vm group Id. /// The multi vm group name. + /// Whether Multi VM group is + /// auto created or specified by user. Possible values include: + /// 'AutoCreated', 'UserSpecified' /// The management Id. /// The list of protected disks. /// The list of protected managed /// disks. + /// The recovery boot + /// diagnostic storage account Arm Id. /// Primary fabric /// location. /// The recovery fabric @@ -88,14 +93,16 @@ public A2AReplicationDetails() /// The last RPO value in seconds. /// The time (in UTC) when the last /// RPO value was calculated by Protection Service. - public A2AReplicationDetails(string fabricObjectId = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string managementId = default(string), IList protectedDisks = default(IList), IList protectedManagedDisks = default(IList), 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?)) + public A2AReplicationDetails(string fabricObjectId = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), MultiVmGroupCreateOption? multiVmGroupCreateOption = default(MultiVmGroupCreateOption?), 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; MultiVmGroupId = multiVmGroupId; MultiVmGroupName = multiVmGroupName; + MultiVmGroupCreateOption = multiVmGroupCreateOption; ManagementId = managementId; ProtectedDisks = protectedDisks; ProtectedManagedDisks = protectedManagedDisks; + RecoveryBootDiagStorageAccountId = recoveryBootDiagStorageAccountId; PrimaryFabricLocation = primaryFabricLocation; RecoveryFabricLocation = recoveryFabricLocation; OsType = osType; @@ -145,6 +152,13 @@ public A2AReplicationDetails() [JsonProperty(PropertyName = "multiVmGroupName")] public string MultiVmGroupName { get; set; } + /// + /// Gets or sets whether Multi VM group is auto created or specified by + /// user. Possible values include: 'AutoCreated', 'UserSpecified' + /// + [JsonProperty(PropertyName = "multiVmGroupCreateOption")] + public MultiVmGroupCreateOption? MultiVmGroupCreateOption { get; set; } + /// /// Gets or sets the management Id. /// @@ -163,6 +177,12 @@ public A2AReplicationDetails() [JsonProperty(PropertyName = "protectedManagedDisks")] public IList ProtectedManagedDisks { get; set; } + /// + /// Gets or sets the recovery boot diagnostic storage account Arm Id. + /// + [JsonProperty(PropertyName = "recoveryBootDiagStorageAccountId")] + public string RecoveryBootDiagStorageAccountId { get; set; } + /// /// Gets or sets primary fabric location. /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2ASwitchProtectionInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2ASwitchProtectionInput.cs index 4c0b466bb859..19d0ae3bd7ad 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2ASwitchProtectionInput.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2ASwitchProtectionInput.cs @@ -44,7 +44,9 @@ public A2ASwitchProtectionInput() /// The recovery availability /// set. /// The Policy Id. - public A2ASwitchProtectionInput(string recoveryContainerId = default(string), IList vmDisks = default(IList), IList vmManagedDisks = default(IList), string recoveryResourceGroupId = default(string), string recoveryCloudServiceId = default(string), string recoveryAvailabilitySetId = default(string), string policyId = default(string)) + /// The boot diagnostic + /// storage account. + public A2ASwitchProtectionInput(string recoveryContainerId = default(string), IList vmDisks = default(IList), IList vmManagedDisks = default(IList), string recoveryResourceGroupId = default(string), string recoveryCloudServiceId = default(string), string recoveryAvailabilitySetId = default(string), string policyId = default(string), string recoveryBootDiagStorageAccountId = default(string)) { RecoveryContainerId = recoveryContainerId; VmDisks = vmDisks; @@ -53,6 +55,7 @@ public A2ASwitchProtectionInput() RecoveryCloudServiceId = recoveryCloudServiceId; RecoveryAvailabilitySetId = recoveryAvailabilitySetId; PolicyId = policyId; + RecoveryBootDiagStorageAccountId = recoveryBootDiagStorageAccountId; CustomInit(); } @@ -104,5 +107,11 @@ public A2ASwitchProtectionInput() [JsonProperty(PropertyName = "policyId")] public string PolicyId { get; set; } + /// + /// Gets or sets the boot diagnostic storage account. + /// + [JsonProperty(PropertyName = "recoveryBootDiagStorageAccountId")] + public string RecoveryBootDiagStorageAccountId { get; set; } + } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AUpdateReplicationProtectedItemInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AUpdateReplicationProtectedItemInput.cs index 16681987dac5..112182afd73b 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AUpdateReplicationProtectedItemInput.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AUpdateReplicationProtectedItemInput.cs @@ -11,6 +11,8 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -36,10 +38,16 @@ public A2AUpdateReplicationProtectedItemInput() /// Id (for V1). /// The target resource group ARM /// Id (for V2). - public A2AUpdateReplicationProtectedItemInput(string recoveryCloudServiceId = default(string), string recoveryResourceGroupId = default(string)) + /// Managed disk update + /// details. + /// The boot diagnostic + /// storage account. + public A2AUpdateReplicationProtectedItemInput(string recoveryCloudServiceId = default(string), string recoveryResourceGroupId = default(string), IList managedDiskUpdateDetails = default(IList), string recoveryBootDiagStorageAccountId = default(string)) { RecoveryCloudServiceId = recoveryCloudServiceId; RecoveryResourceGroupId = recoveryResourceGroupId; + ManagedDiskUpdateDetails = managedDiskUpdateDetails; + RecoveryBootDiagStorageAccountId = recoveryBootDiagStorageAccountId; CustomInit(); } @@ -60,5 +68,17 @@ public A2AUpdateReplicationProtectedItemInput() [JsonProperty(PropertyName = "recoveryResourceGroupId")] public string RecoveryResourceGroupId { get; set; } + /// + /// Gets or sets managed disk update details. + /// + [JsonProperty(PropertyName = "managedDiskUpdateDetails")] + public IList ManagedDiskUpdateDetails { get; set; } + + /// + /// Gets or sets the boot diagnostic storage account. + /// + [JsonProperty(PropertyName = "recoveryBootDiagStorageAccountId")] + public string RecoveryBootDiagStorageAccountId { get; set; } + } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AVmManagedDiskInputDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AVmManagedDiskInputDetails.cs index 3a8ce05ac151..8a919c4ab70f 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AVmManagedDiskInputDetails.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AVmManagedDiskInputDetails.cs @@ -36,11 +36,19 @@ public A2AVmManagedDiskInputDetails() /// staging storage account Arm Id. /// The target resource group Arm /// Id. - public A2AVmManagedDiskInputDetails(string diskId = default(string), string primaryStagingAzureStorageAccountId = default(string), string recoveryResourceGroupId = default(string)) + /// The replica disk type. + /// Its an optional value and will be same as source disk type if not + /// user provided. + /// The target disk type + /// after failover. Its an optional value and will be same as source + /// disk type if not user provided. + 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; CustomInit(); } @@ -67,5 +75,19 @@ public A2AVmManagedDiskInputDetails() [JsonProperty(PropertyName = "recoveryResourceGroupId")] public string RecoveryResourceGroupId { get; set; } + /// + /// Gets or sets the replica disk type. Its an optional value and will + /// be same as source disk type if not user provided. + /// + [JsonProperty(PropertyName = "recoveryReplicaDiskAccountType")] + public string RecoveryReplicaDiskAccountType { get; set; } + + /// + /// Gets or sets the target disk type after failover. Its an optional + /// value and will be same as source disk type if not user provided. + /// + [JsonProperty(PropertyName = "recoveryTargetDiskAccountType")] + public string RecoveryTargetDiskAccountType { get; set; } + } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AVmManagedDiskUpdateDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AVmManagedDiskUpdateDetails.cs new file mode 100644 index 000000000000..ff3d90236fdf --- /dev/null +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AVmManagedDiskUpdateDetails.cs @@ -0,0 +1,71 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Azure VM managed disk update input details. + /// + public partial class A2AVmManagedDiskUpdateDetails + { + /// + /// Initializes a new instance of the A2AVmManagedDiskUpdateDetails + /// class. + /// + public A2AVmManagedDiskUpdateDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the A2AVmManagedDiskUpdateDetails + /// class. + /// + /// The disk Id. + /// The target disk type + /// before failover. + /// The replica disk type + /// before failover. + public A2AVmManagedDiskUpdateDetails(string diskId = default(string), string recoveryTargetDiskAccountType = default(string), string recoveryReplicaDiskAccountType = default(string)) + { + DiskId = diskId; + RecoveryTargetDiskAccountType = recoveryTargetDiskAccountType; + RecoveryReplicaDiskAccountType = recoveryReplicaDiskAccountType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the disk Id. + /// + [JsonProperty(PropertyName = "diskId")] + public string DiskId { get; set; } + + /// + /// Gets or sets the target disk type before failover. + /// + [JsonProperty(PropertyName = "recoveryTargetDiskAccountType")] + public string RecoveryTargetDiskAccountType { get; set; } + + /// + /// Gets or sets the replica disk type before failover. + /// + [JsonProperty(PropertyName = "recoveryReplicaDiskAccountType")] + public string RecoveryReplicaDiskAccountType { get; set; } + + } +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/AgentVersionStatus.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/AgentVersionStatus.cs new file mode 100644 index 000000000000..8282923f8e92 --- /dev/null +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/AgentVersionStatus.cs @@ -0,0 +1,78 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for AgentVersionStatus. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum AgentVersionStatus + { + [EnumMember(Value = "Supported")] + Supported, + [EnumMember(Value = "NotSupported")] + NotSupported, + [EnumMember(Value = "Deprecated")] + Deprecated, + [EnumMember(Value = "UpdateRequired")] + UpdateRequired, + [EnumMember(Value = "SecurityUpdateRequired")] + SecurityUpdateRequired + } + internal static class AgentVersionStatusEnumExtension + { + internal static string ToSerializedValue(this AgentVersionStatus? value) + { + return value == null ? null : ((AgentVersionStatus)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this AgentVersionStatus value) + { + switch( value ) + { + case AgentVersionStatus.Supported: + return "Supported"; + case AgentVersionStatus.NotSupported: + return "NotSupported"; + case AgentVersionStatus.Deprecated: + return "Deprecated"; + case AgentVersionStatus.UpdateRequired: + return "UpdateRequired"; + case AgentVersionStatus.SecurityUpdateRequired: + return "SecurityUpdateRequired"; + } + return null; + } + + internal static AgentVersionStatus? ParseAgentVersionStatus(this string value) + { + switch( value ) + { + case "Supported": + return AgentVersionStatus.Supported; + case "NotSupported": + return AgentVersionStatus.NotSupported; + case "Deprecated": + return AgentVersionStatus.Deprecated; + case "UpdateRequired": + return AgentVersionStatus.UpdateRequired; + case "SecurityUpdateRequired": + return AgentVersionStatus.SecurityUpdateRequired; + } + return null; + } + } +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ComputeSizeErrorDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ComputeSizeErrorDetails.cs new file mode 100644 index 000000000000..d2c96b17df77 --- /dev/null +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ComputeSizeErrorDetails.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Represents the error used to indicate why the target compute size is + /// not applicable. + /// + public partial class ComputeSizeErrorDetails + { + /// + /// Initializes a new instance of the ComputeSizeErrorDetails class. + /// + public ComputeSizeErrorDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ComputeSizeErrorDetails class. + /// + /// The error message. + /// The severity of the error. + public ComputeSizeErrorDetails(string message = default(string), string severity = default(string)) + { + Message = message; + Severity = severity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the error message. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// Gets or sets the severity of the error. + /// + [JsonProperty(PropertyName = "severity")] + public string Severity { get; set; } + + } +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/CreatePolicyInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/CreatePolicyInput.cs index 114c6715d71e..fc2b61396071 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/CreatePolicyInput.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/CreatePolicyInput.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Protection profile input. + /// Protection Policy input. /// public partial class CreatePolicyInput { diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/CreateProtectionContainerMappingInputProperties.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/CreateProtectionContainerMappingInputProperties.cs index 21f1d4404522..a86fb20c9eb4 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/CreateProtectionContainerMappingInputProperties.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/CreateProtectionContainerMappingInputProperties.cs @@ -58,7 +58,7 @@ public CreateProtectionContainerMappingInputProperties() /// /// Gets or sets applicable policy. /// - [JsonProperty(PropertyName = "PolicyId")] + [JsonProperty(PropertyName = "policyId")] public string PolicyId { get; set; } /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/EventQueryParameter.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/EventQueryParameter.cs index 4975c3cb5868..b57897b9c72c 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/EventQueryParameter.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/EventQueryParameter.cs @@ -63,46 +63,46 @@ public EventQueryParameter() /// /// Gets or sets the source id of the events to be queried. /// - [JsonProperty(PropertyName = "EventCode")] + [JsonProperty(PropertyName = "eventCode")] public string EventCode { get; set; } /// /// Gets or sets the severity of the events to be queried. /// - [JsonProperty(PropertyName = "Severity")] + [JsonProperty(PropertyName = "severity")] public string Severity { get; set; } /// /// Gets or sets the type of the events to be queried. /// - [JsonProperty(PropertyName = "EventType")] + [JsonProperty(PropertyName = "eventType")] public string EventType { get; set; } /// /// Gets or sets the affected object server id of the events to be /// queried. /// - [JsonProperty(PropertyName = "FabricName")] + [JsonProperty(PropertyName = "fabricName")] public string FabricName { get; set; } /// /// Gets or sets the affected object name of the events to be queried. /// - [JsonProperty(PropertyName = "AffectedObjectFriendlyName")] + [JsonProperty(PropertyName = "affectedObjectFriendlyName")] public string AffectedObjectFriendlyName { get; set; } /// /// Gets or sets the start time of the time range within which the /// events are to be queried. /// - [JsonProperty(PropertyName = "StartTime")] + [JsonProperty(PropertyName = "startTime")] public System.DateTime? StartTime { get; set; } /// /// Gets or sets the end time of the time range within which the events /// are to be queried. /// - [JsonProperty(PropertyName = "EndTime")] + [JsonProperty(PropertyName = "endTime")] public System.DateTime? EndTime { get; set; } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthError.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthError.cs index 245dc438e176..cb2c95df01f6 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthError.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthError.cs @@ -31,10 +31,19 @@ public HealthError() /// /// Initializes a new instance of the HealthError class. /// + /// The inner health errors. + /// HealthError having a list of HealthError as child errors is + /// problematic. InnerHealthError is used because this will prevent an + /// infinite loop of structures when Hydra tries to auto-generate the + /// contract. We are exposing the related health errors as inner health + /// errors and all API consumers can utilize this in the same fashion + /// as Exception -> InnerException. /// Source of error. /// Type of error. /// Level of error. + /// Category of error. /// Error code. + /// Summary message of the entity. /// Error message. /// Possible causes of error. /// Recommended action to resolve @@ -43,20 +52,21 @@ public HealthError() /// DRA error /// message. /// ID of the entity. - /// The child health errors. - public HealthError(string errorSource = default(string), string errorType = default(string), string errorLevel = default(string), string errorCode = 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), IList childErrors = default(IList)) + 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; ErrorType = errorType; ErrorLevel = errorLevel; + ErrorCategory = errorCategory; ErrorCode = errorCode; + SummaryMessage = summaryMessage; ErrorMessage = errorMessage; PossibleCauses = possibleCauses; RecommendedAction = recommendedAction; CreationTimeUtc = creationTimeUtc; RecoveryProviderErrorMessage = recoveryProviderErrorMessage; EntityId = entityId; - ChildErrors = childErrors; CustomInit(); } @@ -65,6 +75,18 @@ public HealthError() /// partial void CustomInit(); + /// + /// Gets or sets the inner health errors. HealthError having a list of + /// HealthError as child errors is problematic. InnerHealthError is + /// used because this will prevent an infinite loop of structures when + /// Hydra tries to auto-generate the contract. We are exposing the + /// related health errors as inner health errors and all API consumers + /// can utilize this in the same fashion as Exception -> + /// InnerException. + /// + [JsonProperty(PropertyName = "innerHealthErrors")] + public IList InnerHealthErrors { get; set; } + /// /// Gets or sets source of error. /// @@ -83,12 +105,24 @@ public HealthError() [JsonProperty(PropertyName = "errorLevel")] public string ErrorLevel { get; set; } + /// + /// Gets or sets category of error. + /// + [JsonProperty(PropertyName = "errorCategory")] + public string ErrorCategory { get; set; } + /// /// Gets or sets error code. /// [JsonProperty(PropertyName = "errorCode")] public string ErrorCode { get; set; } + /// + /// Gets or sets summary message of the entity. + /// + [JsonProperty(PropertyName = "summaryMessage")] + public string SummaryMessage { get; set; } + /// /// Gets or sets error message. /// @@ -125,11 +159,5 @@ public HealthError() [JsonProperty(PropertyName = "entityId")] public string EntityId { get; set; } - /// - /// Gets or sets the child health errors. - /// - [JsonProperty(PropertyName = "childErrors")] - public IList ChildErrors { get; set; } - } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthErrorCategory.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthErrorCategory.cs index 659728736504..a851cdbf7479 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthErrorCategory.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthErrorCategory.cs @@ -21,12 +21,18 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models [JsonConverter(typeof(StringEnumConverter))] public enum HealthErrorCategory { + [EnumMember(Value = "None")] + None, [EnumMember(Value = "Replication")] Replication, [EnumMember(Value = "TestFailover")] TestFailover, [EnumMember(Value = "Configuration")] - Configuration + Configuration, + [EnumMember(Value = "FabricInfrastructure")] + FabricInfrastructure, + [EnumMember(Value = "VersionExpiry")] + VersionExpiry } internal static class HealthErrorCategoryEnumExtension { @@ -39,12 +45,18 @@ internal static string ToSerializedValue(this HealthErrorCategory value) { switch( value ) { + case HealthErrorCategory.None: + return "None"; case HealthErrorCategory.Replication: return "Replication"; case HealthErrorCategory.TestFailover: return "TestFailover"; case HealthErrorCategory.Configuration: return "Configuration"; + case HealthErrorCategory.FabricInfrastructure: + return "FabricInfrastructure"; + case HealthErrorCategory.VersionExpiry: + return "VersionExpiry"; } return null; } @@ -53,12 +65,18 @@ internal static string ToSerializedValue(this HealthErrorCategory value) { switch( value ) { + case "None": + return HealthErrorCategory.None; case "Replication": return HealthErrorCategory.Replication; case "TestFailover": return HealthErrorCategory.TestFailover; case "Configuration": return HealthErrorCategory.Configuration; + case "FabricInfrastructure": + return HealthErrorCategory.FabricInfrastructure; + case "VersionExpiry": + return HealthErrorCategory.VersionExpiry; } return null; } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthErrorSummary.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthErrorSummary.cs index fd2a9e3dd081..f84213d668a5 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthErrorSummary.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthErrorSummary.cs @@ -33,8 +33,8 @@ public HealthErrorSummary() /// /// The code of the health error. /// The category of the health error. Possible - /// values include: 'Replication', 'TestFailover', - /// 'Configuration' + /// values include: 'None', 'Replication', 'TestFailover', + /// 'Configuration', 'FabricInfrastructure', 'VersionExpiry' /// Severity of error. Possible values include: /// 'NONE', 'Warning', 'Error', 'Info' /// The summary message of the health @@ -73,7 +73,8 @@ public HealthErrorSummary() /// /// Gets or sets the category of the health error. Possible values - /// include: 'Replication', 'TestFailover', 'Configuration' + /// include: 'None', 'Replication', 'TestFailover', 'Configuration', + /// 'FabricInfrastructure', 'VersionExpiry' /// [JsonProperty(PropertyName = "category")] public HealthErrorCategory? Category { get; set; } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureEnableProtectionInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureEnableProtectionInput.cs index 973610afe431..120dd0f2232c 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureEnableProtectionInput.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureEnableProtectionInput.cs @@ -44,7 +44,7 @@ public HyperVReplicaAzureEnableProtectionInput() /// network Id. /// The selected target Azure subnet /// Id. - /// The selected option to enable + /// The selected option to enable /// RDP\SSH on target vm after failover. String value of /// {SrsDataContract.EnableRDPOnTargetOption} enum. /// The target azure Vm Name. @@ -60,7 +60,7 @@ public HyperVReplicaAzureEnableProtectionInput() /// failover VM is to be created. /// A value indicating whether managed /// disks should be used during failover. - public HyperVReplicaAzureEnableProtectionInput(string hvHostVmId = default(string), string vmName = default(string), string osType = default(string), string vhdId = default(string), string targetStorageAccountId = default(string), string targetAzureNetworkId = default(string), string targetAzureSubnetId = default(string), string enableRDPOnTargetOption = default(string), string targetAzureVmName = default(string), string logStorageAccountId = default(string), IList disksToInclude = default(IList), string targetAzureV1ResourceGroupId = default(string), string targetAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string)) + public HyperVReplicaAzureEnableProtectionInput(string hvHostVmId = default(string), string vmName = default(string), string osType = default(string), string vhdId = default(string), string targetStorageAccountId = default(string), string targetAzureNetworkId = default(string), string targetAzureSubnetId = default(string), string enableRdpOnTargetOption = default(string), string targetAzureVmName = default(string), string logStorageAccountId = default(string), IList disksToInclude = default(IList), string targetAzureV1ResourceGroupId = default(string), string targetAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string)) { HvHostVmId = hvHostVmId; VmName = vmName; @@ -69,7 +69,7 @@ public HyperVReplicaAzureEnableProtectionInput() TargetStorageAccountId = targetStorageAccountId; TargetAzureNetworkId = targetAzureNetworkId; TargetAzureSubnetId = targetAzureSubnetId; - EnableRDPOnTargetOption = enableRDPOnTargetOption; + EnableRdpOnTargetOption = enableRdpOnTargetOption; TargetAzureVmName = targetAzureVmName; LogStorageAccountId = logStorageAccountId; DisksToInclude = disksToInclude; @@ -131,8 +131,8 @@ public HyperVReplicaAzureEnableProtectionInput() /// after failover. String value of /// {SrsDataContract.EnableRDPOnTargetOption} enum. /// - [JsonProperty(PropertyName = "enableRDPOnTargetOption")] - public string EnableRDPOnTargetOption { get; set; } + [JsonProperty(PropertyName = "enableRdpOnTargetOption")] + public string EnableRdpOnTargetOption { get; set; } /// /// Gets or sets the target azure Vm Name. diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzurePolicyInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzurePolicyInput.cs index 00fe48c4ac66..d73e70d94c06 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzurePolicyInput.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzurePolicyInput.cs @@ -43,17 +43,14 @@ public HyperVReplicaAzurePolicyInput() /// The scheduled start time /// for the initial replication. If this parameter is Null, the initial /// replication starts immediately. - /// A value indicating whether encryption - /// needs to be enabled for Vms in this cloud. /// The list of storage accounts to which /// the VMs in the primary cloud can replicate to. - public HyperVReplicaAzurePolicyInput(int? recoveryPointHistoryDuration = default(int?), int? applicationConsistentSnapshotFrequencyInHours = default(int?), int? replicationInterval = default(int?), string onlineReplicationStartTime = default(string), string encryption = default(string), IList storageAccounts = default(IList)) + public HyperVReplicaAzurePolicyInput(int? recoveryPointHistoryDuration = default(int?), int? applicationConsistentSnapshotFrequencyInHours = default(int?), int? replicationInterval = default(int?), string onlineReplicationStartTime = default(string), IList storageAccounts = default(IList)) { RecoveryPointHistoryDuration = recoveryPointHistoryDuration; ApplicationConsistentSnapshotFrequencyInHours = applicationConsistentSnapshotFrequencyInHours; ReplicationInterval = replicationInterval; OnlineReplicationStartTime = onlineReplicationStartTime; - Encryption = encryption; StorageAccounts = storageAccounts; CustomInit(); } @@ -91,13 +88,6 @@ public HyperVReplicaAzurePolicyInput() [JsonProperty(PropertyName = "onlineReplicationStartTime")] public string OnlineReplicationStartTime { get; set; } - /// - /// Gets or sets a value indicating whether encryption needs to be - /// enabled for Vms in this cloud. - /// - [JsonProperty(PropertyName = "encryption")] - public string Encryption { get; set; } - /// /// Gets or sets the list of storage accounts to which the VMs in the /// primary cloud can replicate to. diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureReplicationDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureReplicationDetails.cs index 56da81eab593..d5fc1ae0481b 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureReplicationDetails.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureReplicationDetails.cs @@ -34,8 +34,8 @@ public HyperVReplicaAzureReplicationDetails() /// Initializes a new instance of the /// HyperVReplicaAzureReplicationDetails class. /// - /// Azure VM Disk details. - /// Recovery Azure given + /// Azure VM Disk details. + /// Recovery Azure given /// name. /// The Recovery Azure VM /// size. @@ -46,6 +46,9 @@ public HyperVReplicaAzureReplicationDetails() /// if no log storage account was provided during enable /// protection. /// The Last replication time. + /// Last RPO value. + /// The last RPO calculated + /// time. /// The virtual machine Id. /// The protection state for the /// vm. @@ -56,13 +59,15 @@ public HyperVReplicaAzureReplicationDetails() /// The PE Network details. /// The selected recovery /// azure network Id. + /// The selected source nic Id which + /// will be used as the primary nic during failover. /// The encryption info. /// The operating system info. - /// The RAM size of the VM on the + /// The RAM size of the VM on the /// primary side. - /// The CPU count of the VM on the + /// The CPU count of the VM on the /// primary side. - /// The selected option to enable + /// The selected option to enable /// RDP\SSH on target vm after failover. String value of /// {SrsDataContract.EnableRDPOnTargetOption} enum. /// The target resource @@ -73,25 +78,28 @@ public HyperVReplicaAzureReplicationDetails() /// disks should be used during failover. /// License Type of the VM to be /// used. - public HyperVReplicaAzureReplicationDetails(IList azureVMDiskDetails = default(IList), string recoveryAzureVMName = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureStorageAccount = default(string), string recoveryAzureLogStorageAccountId = default(string), System.DateTime? lastReplicatedTime = default(System.DateTime?), string vmId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), InitialReplicationDetails initialReplicationDetails = default(InitialReplicationDetails), IList vmNics = default(IList), string selectedRecoveryAzureNetworkId = default(string), string encryption = default(string), OSDetails oSDetails = default(OSDetails), int? sourceVmRAMSizeInMB = default(int?), int? sourceVmCPUCount = default(int?), string enableRDPOnTargetOption = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryAvailabilitySetId = default(string), string useManagedDisks = default(string), string licenseType = default(string)) + public HyperVReplicaAzureReplicationDetails(IList azureVmDiskDetails = default(IList), string recoveryAzureVmName = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureStorageAccount = default(string), string recoveryAzureLogStorageAccountId = default(string), System.DateTime? lastReplicatedTime = default(System.DateTime?), long? rpoInSeconds = default(long?), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), string vmId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), InitialReplicationDetails initialReplicationDetails = default(InitialReplicationDetails), IList vmNics = default(IList), string selectedRecoveryAzureNetworkId = default(string), string selectedSourceNicId = default(string), string encryption = default(string), OSDetails oSDetails = default(OSDetails), int? sourceVmRamSizeInMB = default(int?), int? sourceVmCpuCount = default(int?), string enableRdpOnTargetOption = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryAvailabilitySetId = default(string), string useManagedDisks = default(string), string licenseType = default(string)) { - AzureVMDiskDetails = azureVMDiskDetails; - RecoveryAzureVMName = recoveryAzureVMName; + AzureVmDiskDetails = azureVmDiskDetails; + RecoveryAzureVmName = recoveryAzureVmName; RecoveryAzureVMSize = recoveryAzureVMSize; RecoveryAzureStorageAccount = recoveryAzureStorageAccount; RecoveryAzureLogStorageAccountId = recoveryAzureLogStorageAccountId; LastReplicatedTime = lastReplicatedTime; + RpoInSeconds = rpoInSeconds; + LastRpoCalculatedTime = lastRpoCalculatedTime; VmId = vmId; VmProtectionState = vmProtectionState; VmProtectionStateDescription = vmProtectionStateDescription; InitialReplicationDetails = initialReplicationDetails; VmNics = vmNics; SelectedRecoveryAzureNetworkId = selectedRecoveryAzureNetworkId; + SelectedSourceNicId = selectedSourceNicId; Encryption = encryption; OSDetails = oSDetails; - SourceVmRAMSizeInMB = sourceVmRAMSizeInMB; - SourceVmCPUCount = sourceVmCPUCount; - EnableRDPOnTargetOption = enableRDPOnTargetOption; + SourceVmRamSizeInMB = sourceVmRamSizeInMB; + SourceVmCpuCount = sourceVmCpuCount; + EnableRdpOnTargetOption = enableRdpOnTargetOption; RecoveryAzureResourceGroupId = recoveryAzureResourceGroupId; RecoveryAvailabilitySetId = recoveryAvailabilitySetId; UseManagedDisks = useManagedDisks; @@ -107,14 +115,14 @@ public HyperVReplicaAzureReplicationDetails() /// /// Gets or sets azure VM Disk details. /// - [JsonProperty(PropertyName = "azureVMDiskDetails")] - public IList AzureVMDiskDetails { get; set; } + [JsonProperty(PropertyName = "azureVmDiskDetails")] + public IList AzureVmDiskDetails { get; set; } /// /// Gets or sets recovery Azure given name. /// - [JsonProperty(PropertyName = "recoveryAzureVMName")] - public string RecoveryAzureVMName { get; set; } + [JsonProperty(PropertyName = "recoveryAzureVmName")] + public string RecoveryAzureVmName { get; set; } /// /// Gets or sets the Recovery Azure VM size. @@ -142,6 +150,18 @@ public HyperVReplicaAzureReplicationDetails() [JsonProperty(PropertyName = "lastReplicatedTime")] public System.DateTime? LastReplicatedTime { get; set; } + /// + /// Gets or sets last RPO value. + /// + [JsonProperty(PropertyName = "rpoInSeconds")] + public long? RpoInSeconds { get; set; } + + /// + /// Gets or sets the last RPO calculated time. + /// + [JsonProperty(PropertyName = "lastRpoCalculatedTime")] + public System.DateTime? LastRpoCalculatedTime { get; set; } + /// /// Gets or sets the virtual machine Id. /// @@ -178,6 +198,13 @@ public HyperVReplicaAzureReplicationDetails() [JsonProperty(PropertyName = "selectedRecoveryAzureNetworkId")] public string SelectedRecoveryAzureNetworkId { get; set; } + /// + /// Gets or sets the selected source nic Id which will be used as the + /// primary nic during failover. + /// + [JsonProperty(PropertyName = "selectedSourceNicId")] + public string SelectedSourceNicId { get; set; } + /// /// Gets or sets the encryption info. /// @@ -193,22 +220,22 @@ public HyperVReplicaAzureReplicationDetails() /// /// Gets or sets the RAM size of the VM on the primary side. /// - [JsonProperty(PropertyName = "sourceVmRAMSizeInMB")] - public int? SourceVmRAMSizeInMB { get; set; } + [JsonProperty(PropertyName = "sourceVmRamSizeInMB")] + public int? SourceVmRamSizeInMB { get; set; } /// /// Gets or sets the CPU count of the VM on the primary side. /// - [JsonProperty(PropertyName = "sourceVmCPUCount")] - public int? SourceVmCPUCount { get; set; } + [JsonProperty(PropertyName = "sourceVmCpuCount")] + public int? SourceVmCpuCount { get; set; } /// /// Gets or sets the selected option to enable RDP\SSH on target vm /// after failover. String value of /// {SrsDataContract.EnableRDPOnTargetOption} enum. /// - [JsonProperty(PropertyName = "enableRDPOnTargetOption")] - public string EnableRDPOnTargetOption { get; set; } + [JsonProperty(PropertyName = "enableRdpOnTargetOption")] + public string EnableRdpOnTargetOption { get; set; } /// /// Gets or sets the target resource group Id. diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaPolicyInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaPolicyInput.cs index 75016b792d27..d71946210412 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaPolicyInput.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaPolicyInput.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Hyper-V Replica specific protection profile Input. + /// Hyper-V Replica specific policy Input. /// [Newtonsoft.Json.JsonObject("HyperVReplica2012")] public partial class HyperVReplicaPolicyInput : PolicyProviderSpecificInput diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVVirtualMachineDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVVirtualMachineDetails.cs index 5a1f594836f1..8fdaa15de760 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVVirtualMachineDetails.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVVirtualMachineDetails.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Hyper V replica provider specific settings + /// Single Host fabric provider specific VM settings. /// [Newtonsoft.Json.JsonObject("HyperVVirtualMachine")] public partial class HyperVVirtualMachineDetails : ConfigurationSettings @@ -39,12 +39,21 @@ public HyperVVirtualMachineDetails() /// The Last replication time. /// The Last successful failover /// time. - public HyperVVirtualMachineDetails(string sourceItemId = default(string), string generation = default(string), OSDetails osDetails = default(OSDetails), IList diskDetails = default(IList)) + /// A value indicating whether the VM has + /// a physical disk attached. + /// A value indicating whether the + /// VM has a fibre channel adapter attached. + /// A value indicating whether the VM has a + /// shared VHD attached. + public HyperVVirtualMachineDetails(string sourceItemId = default(string), string generation = default(string), OSDetails osDetails = default(OSDetails), IList diskDetails = default(IList), bool? hasPhysicalDisk = default(bool?), bool? hasFibreChannelAdapter = default(bool?), bool? hasSharedVhd = default(bool?)) { SourceItemId = sourceItemId; Generation = generation; OsDetails = osDetails; DiskDetails = diskDetails; + HasPhysicalDisk = hasPhysicalDisk; + HasFibreChannelAdapter = hasFibreChannelAdapter; + HasSharedVhd = hasSharedVhd; CustomInit(); } @@ -77,5 +86,26 @@ public HyperVVirtualMachineDetails() [JsonProperty(PropertyName = "diskDetails")] public IList DiskDetails { get; set; } + /// + /// Gets or sets a value indicating whether the VM has a physical disk + /// attached. + /// + [JsonProperty(PropertyName = "hasPhysicalDisk")] + public bool? HasPhysicalDisk { get; set; } + + /// + /// Gets or sets a value indicating whether the VM has a fibre channel + /// adapter attached. + /// + [JsonProperty(PropertyName = "hasFibreChannelAdapter")] + public bool? HasFibreChannelAdapter { get; set; } + + /// + /// Gets or sets a value indicating whether the VM has a shared VHD + /// attached. + /// + [JsonProperty(PropertyName = "hasSharedVhd")] + public bool? HasSharedVhd { get; set; } + } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/IdentityInformation.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/IdentityInformation.cs index 7c72969f5ac2..76cbc2e73c04 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/IdentityInformation.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/IdentityInformation.cs @@ -31,8 +31,7 @@ public IdentityInformation() /// /// The identity provider type. /// Value is the ToString() of a IdentityProviderType value. Possible - /// values include: 'RecoveryServicesActiveDirectory', - /// 'CustomerActiveDirectory' + /// values include: 'RecoveryServicesActiveDirectory' /// The tenant Id for the service principal with /// which the on-premise management/data plane components would /// communicate with our Azure services. @@ -70,7 +69,7 @@ public IdentityInformation() /// /// Gets or sets the identity provider type. Value is the ToString() of /// a IdentityProviderType value. Possible values include: - /// 'RecoveryServicesActiveDirectory', 'CustomerActiveDirectory' + /// 'RecoveryServicesActiveDirectory' /// [JsonProperty(PropertyName = "identityProviderType")] public IdentityProviderType? IdentityProviderType { get; set; } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/IdentityProviderType.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/IdentityProviderType.cs index 6adbbb162ae2..eeee7e4ae387 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/IdentityProviderType.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/IdentityProviderType.cs @@ -22,9 +22,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models public enum IdentityProviderType { [EnumMember(Value = "RecoveryServicesActiveDirectory")] - RecoveryServicesActiveDirectory, - [EnumMember(Value = "CustomerActiveDirectory")] - CustomerActiveDirectory + RecoveryServicesActiveDirectory } internal static class IdentityProviderTypeEnumExtension { @@ -39,8 +37,6 @@ internal static string ToSerializedValue(this IdentityProviderType value) { case IdentityProviderType.RecoveryServicesActiveDirectory: return "RecoveryServicesActiveDirectory"; - case IdentityProviderType.CustomerActiveDirectory: - return "CustomerActiveDirectory"; } return null; } @@ -51,8 +47,6 @@ internal static string ToSerializedValue(this IdentityProviderType value) { case "RecoveryServicesActiveDirectory": return IdentityProviderType.RecoveryServicesActiveDirectory; - case "CustomerActiveDirectory": - return IdentityProviderType.CustomerActiveDirectory; } return null; } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAgentDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAgentDetails.cs index db065402aacd..f1cc3c11eed2 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAgentDetails.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAgentDetails.cs @@ -34,11 +34,13 @@ public InMageAgentDetails() /// installed agent needs to be updated. /// A value indicating whether /// reboot is required after update is applied. - public InMageAgentDetails(string agentVersion = default(string), string agentUpdateStatus = default(string), string postUpdateRebootStatus = default(string)) + /// Agent expiry date. + public InMageAgentDetails(string agentVersion = default(string), string agentUpdateStatus = default(string), string postUpdateRebootStatus = default(string), System.DateTime? agentExpiryDate = default(System.DateTime?)) { AgentVersion = agentVersion; AgentUpdateStatus = agentUpdateStatus; PostUpdateRebootStatus = postUpdateRebootStatus; + AgentExpiryDate = agentExpiryDate; CustomInit(); } @@ -67,5 +69,11 @@ public InMageAgentDetails() [JsonProperty(PropertyName = "postUpdateRebootStatus")] public string PostUpdateRebootStatus { get; set; } + /// + /// Gets or sets agent expiry date. + /// + [JsonProperty(PropertyName = "agentExpiryDate")] + public System.DateTime? AgentExpiryDate { get; set; } + } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAgentVersionDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAgentVersionDetails.cs new file mode 100644 index 000000000000..d56f38816283 --- /dev/null +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAgentVersionDetails.cs @@ -0,0 +1,81 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMage agent version details. + /// + public partial class InMageAgentVersionDetails + { + /// + /// Initializes a new instance of the InMageAgentVersionDetails class. + /// + public InMageAgentVersionDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageAgentVersionDetails class. + /// + /// A value indicating whether + /// reboot is required after update is applied. + /// The agent version. + /// Version expiry date. + /// A value indicating whether security update + /// required. Possible values include: 'Supported', 'NotSupported', + /// 'Deprecated', 'UpdateRequired', 'SecurityUpdateRequired' + public InMageAgentVersionDetails(string postUpdateRebootStatus = default(string), string version = default(string), System.DateTime? expiryDate = default(System.DateTime?), AgentVersionStatus? status = default(AgentVersionStatus?)) + { + PostUpdateRebootStatus = postUpdateRebootStatus; + Version = version; + ExpiryDate = expiryDate; + Status = status; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a value indicating whether reboot is required after + /// update is applied. + /// + [JsonProperty(PropertyName = "postUpdateRebootStatus")] + public string PostUpdateRebootStatus { get; set; } + + /// + /// Gets or sets the agent version. + /// + [JsonProperty(PropertyName = "version")] + public string Version { get; set; } + + /// + /// Gets or sets version expiry date. + /// + [JsonProperty(PropertyName = "expiryDate")] + public System.DateTime? ExpiryDate { get; set; } + + /// + /// Gets or sets a value indicating whether security update required. + /// Possible values include: 'Supported', 'NotSupported', 'Deprecated', + /// 'UpdateRequired', 'SecurityUpdateRequired' + /// + [JsonProperty(PropertyName = "status")] + public AgentVersionStatus? Status { get; set; } + + } +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2EnableProtectionInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2EnableProtectionInput.cs index 9afa6366e87c..52b7e61510b5 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2EnableProtectionInput.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2EnableProtectionInput.cs @@ -46,7 +46,7 @@ public InMageAzureV2EnableProtectionInput() /// network Id. /// The selected target Azure subnet /// Id. - /// The selected option to enable + /// The selected option to enable /// RDP\SSH on target vm after failover. String value of /// {SrsDataContract.EnableRDPOnTargetOption} enum. /// The target azure Vm Name. @@ -60,7 +60,7 @@ public InMageAzureV2EnableProtectionInput() /// failover VM is to be created. /// 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)) + 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; @@ -71,7 +71,7 @@ public InMageAzureV2EnableProtectionInput() DisksToInclude = disksToInclude; TargetAzureNetworkId = targetAzureNetworkId; TargetAzureSubnetId = targetAzureSubnetId; - EnableRDPOnTargetOption = enableRDPOnTargetOption; + EnableRdpOnTargetOption = enableRdpOnTargetOption; TargetAzureVmName = targetAzureVmName; LogStorageAccountId = logStorageAccountId; TargetAzureV1ResourceGroupId = targetAzureV1ResourceGroupId; @@ -144,8 +144,8 @@ public InMageAzureV2EnableProtectionInput() /// after failover. String value of /// {SrsDataContract.EnableRDPOnTargetOption} enum. /// - [JsonProperty(PropertyName = "enableRDPOnTargetOption")] - public string EnableRDPOnTargetOption { get; set; } + [JsonProperty(PropertyName = "enableRdpOnTargetOption")] + public string EnableRdpOnTargetOption { get; set; } /// /// Gets or sets the target azure Vm Name. diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2PolicyInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2PolicyInput.cs index d7051a1eb108..8f9093df8e01 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2PolicyInput.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2PolicyInput.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// VMWare Azure specific protection profile Input. + /// VMWare Azure specific policy Input. /// [Newtonsoft.Json.JsonObject("InMageAzureV2")] public partial class InMageAzureV2PolicyInput : PolicyProviderSpecificInput diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2RecoveryPointDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2RecoveryPointDetails.cs index 471a02a3015f..def1f2bd7fe5 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2RecoveryPointDetails.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2RecoveryPointDetails.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models /// /// InMage Azure V2 provider specific recovery point details. /// + [Newtonsoft.Json.JsonObject("InMageAzureV2")] public partial class InMageAzureV2RecoveryPointDetails : ProviderSpecificRecoveryPointDetails { /// @@ -31,14 +32,10 @@ public InMageAzureV2RecoveryPointDetails() /// Initializes a new instance of the InMageAzureV2RecoveryPointDetails /// class. /// - /// Gets the provider type. - /// Gets the instance type. /// A value indicating whether the /// recovery point is multi VM consistent. - public InMageAzureV2RecoveryPointDetails(string type = default(string), string instanceType = default(string), string isMultiVmSyncPoint = default(string)) - : base(type) + public InMageAzureV2RecoveryPointDetails(string isMultiVmSyncPoint = default(string)) { - InstanceType = instanceType; IsMultiVmSyncPoint = isMultiVmSyncPoint; CustomInit(); } @@ -48,12 +45,6 @@ public InMageAzureV2RecoveryPointDetails() /// partial void CustomInit(); - /// - /// Gets the instance type. - /// - [JsonProperty(PropertyName = "instanceType")] - public string InstanceType { get; private set; } - /// /// Gets or sets a value indicating whether the recovery point is multi /// VM consistent. diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2ReplicationDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2ReplicationDetails.cs index 6e81bd29017f..720d27195e73 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2ReplicationDetails.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2ReplicationDetails.cs @@ -52,6 +52,7 @@ public InMageAzureV2ReplicationDetails() /// rate in MB. /// The source IP address. /// The agent version. + /// Agent expiry date. /// A value indicating whether /// installed agent needs to be updated. /// A value indicating @@ -67,9 +68,9 @@ public InMageAzureV2ReplicationDetails() /// A value indicating whether any disk is /// resized for this VM. /// The master target Id. - /// The CPU count of the VM on the + /// The CPU count of the VM on the /// primary side. - /// The RAM size of the VM on the + /// The RAM size of the VM on the /// primary side. /// The type of the OS on the VM. /// The OS disk VHD name. @@ -89,9 +90,11 @@ public InMageAzureV2ReplicationDetails() /// The PE Network details. /// The selected recovery /// azure network Id. + /// The selected source nic Id which + /// will be used as the primary nic during failover. /// A value indicating the discovery type /// of the machine. Value can be vCenter or physical. - /// The selected option to enable + /// The selected option to enable /// RDP\SSH on target vm after failover. String value of /// {SrsDataContract.EnableRDPOnTargetOption} enum. /// The datastores of the on-premise machine. @@ -117,7 +120,7 @@ public InMageAzureV2ReplicationDetails() /// item. /// The OS Version of the protected /// item. - public InMageAzureV2ReplicationDetails(string infrastructureVmId = default(string), string vCenterInfrastructureId = default(string), string protectionStage = default(string), string vmId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), int? resyncProgressPercentage = default(int?), long? rpoInSeconds = default(long?), double? compressedDataRateInMB = default(double?), double? uncompressedDataRateInMB = default(double?), string ipAddress = default(string), string agentVersion = default(string), string isAgentUpdateRequired = default(string), string isRebootAfterUpdateRequired = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string processServerId = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string multiVmSyncStatus = default(string), IList protectedDisks = default(IList), string diskResized = default(string), string masterTargetId = default(string), int? sourceVmCPUCount = default(int?), int? sourceVmRAMSizeInMB = default(int?), string osType = default(string), string vhdName = default(string), string osDiskId = default(string), IList azureVMDiskDetails = default(IList), string recoveryAzureVMName = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureStorageAccount = default(string), string recoveryAzureLogStorageAccountId = default(string), IList vmNics = default(IList), string selectedRecoveryAzureNetworkId = default(string), string discoveryType = default(string), string enableRDPOnTargetOption = default(string), IList datastores = default(IList), string targetVmId = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryAvailabilitySetId = default(string), string useManagedDisks = default(string), string licenseType = default(string), IList validationErrors = default(IList), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), System.DateTime? lastUpdateReceivedTime = default(System.DateTime?), string replicaId = default(string), string osVersion = default(string)) + public InMageAzureV2ReplicationDetails(string infrastructureVmId = default(string), string vCenterInfrastructureId = default(string), string protectionStage = default(string), string vmId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), int? resyncProgressPercentage = default(int?), long? rpoInSeconds = default(long?), double? compressedDataRateInMB = default(double?), double? uncompressedDataRateInMB = default(double?), string ipAddress = default(string), string agentVersion = default(string), System.DateTime? agentExpiryDate = default(System.DateTime?), string isAgentUpdateRequired = default(string), string isRebootAfterUpdateRequired = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string processServerId = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string multiVmSyncStatus = default(string), IList protectedDisks = default(IList), string diskResized = default(string), string masterTargetId = default(string), int? sourceVmCpuCount = default(int?), int? sourceVmRamSizeInMB = default(int?), string osType = default(string), string vhdName = default(string), string osDiskId = default(string), IList azureVMDiskDetails = default(IList), string recoveryAzureVMName = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureStorageAccount = default(string), string recoveryAzureLogStorageAccountId = default(string), IList vmNics = default(IList), string selectedRecoveryAzureNetworkId = default(string), string selectedSourceNicId = default(string), string discoveryType = default(string), string enableRdpOnTargetOption = default(string), IList datastores = default(IList), string targetVmId = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryAvailabilitySetId = default(string), string useManagedDisks = default(string), string licenseType = default(string), IList validationErrors = default(IList), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), System.DateTime? lastUpdateReceivedTime = default(System.DateTime?), string replicaId = default(string), string osVersion = default(string)) { InfrastructureVmId = infrastructureVmId; VCenterInfrastructureId = vCenterInfrastructureId; @@ -131,6 +134,7 @@ public InMageAzureV2ReplicationDetails() UncompressedDataRateInMB = uncompressedDataRateInMB; IpAddress = ipAddress; AgentVersion = agentVersion; + AgentExpiryDate = agentExpiryDate; IsAgentUpdateRequired = isAgentUpdateRequired; IsRebootAfterUpdateRequired = isRebootAfterUpdateRequired; LastHeartbeat = lastHeartbeat; @@ -141,8 +145,8 @@ public InMageAzureV2ReplicationDetails() ProtectedDisks = protectedDisks; DiskResized = diskResized; MasterTargetId = masterTargetId; - SourceVmCPUCount = sourceVmCPUCount; - SourceVmRAMSizeInMB = sourceVmRAMSizeInMB; + SourceVmCpuCount = sourceVmCpuCount; + SourceVmRamSizeInMB = sourceVmRamSizeInMB; OsType = osType; VhdName = vhdName; OsDiskId = osDiskId; @@ -153,8 +157,9 @@ public InMageAzureV2ReplicationDetails() RecoveryAzureLogStorageAccountId = recoveryAzureLogStorageAccountId; VmNics = vmNics; SelectedRecoveryAzureNetworkId = selectedRecoveryAzureNetworkId; + SelectedSourceNicId = selectedSourceNicId; DiscoveryType = discoveryType; - EnableRDPOnTargetOption = enableRDPOnTargetOption; + EnableRdpOnTargetOption = enableRdpOnTargetOption; Datastores = datastores; TargetVmId = targetVmId; RecoveryAzureResourceGroupId = recoveryAzureResourceGroupId; @@ -246,6 +251,12 @@ public InMageAzureV2ReplicationDetails() [JsonProperty(PropertyName = "agentVersion")] public string AgentVersion { get; set; } + /// + /// Gets or sets agent expiry date. + /// + [JsonProperty(PropertyName = "agentExpiryDate")] + public System.DateTime? AgentExpiryDate { get; set; } + /// /// Gets or sets a value indicating whether installed agent needs to be /// updated. @@ -313,14 +324,14 @@ public InMageAzureV2ReplicationDetails() /// /// Gets or sets the CPU count of the VM on the primary side. /// - [JsonProperty(PropertyName = "sourceVmCPUCount")] - public int? SourceVmCPUCount { get; set; } + [JsonProperty(PropertyName = "sourceVmCpuCount")] + public int? SourceVmCpuCount { get; set; } /// /// Gets or sets the RAM size of the VM on the primary side. /// - [JsonProperty(PropertyName = "sourceVmRAMSizeInMB")] - public int? SourceVmRAMSizeInMB { get; set; } + [JsonProperty(PropertyName = "sourceVmRamSizeInMB")] + public int? SourceVmRamSizeInMB { get; set; } /// /// Gets or sets the type of the OS on the VM. @@ -384,6 +395,13 @@ public InMageAzureV2ReplicationDetails() [JsonProperty(PropertyName = "selectedRecoveryAzureNetworkId")] public string SelectedRecoveryAzureNetworkId { get; set; } + /// + /// Gets or sets the selected source nic Id which will be used as the + /// primary nic during failover. + /// + [JsonProperty(PropertyName = "selectedSourceNicId")] + public string SelectedSourceNicId { get; set; } + /// /// Gets or sets a value indicating the discovery type of the machine. /// Value can be vCenter or physical. @@ -396,8 +414,8 @@ public InMageAzureV2ReplicationDetails() /// after failover. String value of /// {SrsDataContract.EnableRDPOnTargetOption} enum. /// - [JsonProperty(PropertyName = "enableRDPOnTargetOption")] - public string EnableRDPOnTargetOption { get; set; } + [JsonProperty(PropertyName = "enableRdpOnTargetOption")] + public string EnableRdpOnTargetOption { get; set; } /// /// Gets or sets the datastores of the on-premise machine. Value can be diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageReplicationDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageReplicationDetails.cs index 2954795026bc..be6436557d53 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageReplicationDetails.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageReplicationDetails.cs @@ -36,9 +36,9 @@ public InMageReplicationDetails() /// VM is being protected from Azure, this field will take values from /// { Azure, OnPrem }. If the VM is being protected between two /// data-centers, this field will be OnPrem always. - /// The CPU count of the VM on the + /// The CPU count of the VM on the /// primary side. - /// The RAM size of the VM on the + /// The RAM size of the VM on the /// primary side. /// The OS details. /// The protection stage. @@ -97,11 +97,11 @@ public InMageReplicationDetails() /// item. /// The OS Version of the protected /// item. - public InMageReplicationDetails(string activeSiteType = default(string), int? sourceVmCPUCount = default(int?), int? sourceVmRAMSizeInMB = default(int?), OSDiskDetails osDetails = default(OSDiskDetails), string protectionStage = default(string), string vmId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), InitialReplicationDetails resyncDetails = default(InitialReplicationDetails), System.DateTime? retentionWindowStart = default(System.DateTime?), System.DateTime? retentionWindowEnd = default(System.DateTime?), double? compressedDataRateInMB = default(double?), double? uncompressedDataRateInMB = default(double?), long? rpoInSeconds = default(long?), IList protectedDisks = default(IList), string ipAddress = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string processServerId = default(string), string masterTargetId = default(string), IDictionary consistencyPoints = default(IDictionary), string diskResized = default(string), string rebootAfterUpdateStatus = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string multiVmSyncStatus = default(string), InMageAgentDetails agentDetails = default(InMageAgentDetails), string vCenterInfrastructureId = default(string), string infrastructureVmId = default(string), IList vmNics = default(IList), string discoveryType = default(string), string azureStorageAccountId = default(string), IList datastores = default(IList), IList validationErrors = default(IList), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), System.DateTime? lastUpdateReceivedTime = default(System.DateTime?), string replicaId = default(string), string osVersion = default(string)) + public InMageReplicationDetails(string activeSiteType = default(string), int? sourceVmCpuCount = default(int?), int? sourceVmRamSizeInMB = default(int?), OSDiskDetails osDetails = default(OSDiskDetails), string protectionStage = default(string), string vmId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), InitialReplicationDetails resyncDetails = default(InitialReplicationDetails), System.DateTime? retentionWindowStart = default(System.DateTime?), System.DateTime? retentionWindowEnd = default(System.DateTime?), double? compressedDataRateInMB = default(double?), double? uncompressedDataRateInMB = default(double?), long? rpoInSeconds = default(long?), IList protectedDisks = default(IList), string ipAddress = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string processServerId = default(string), string masterTargetId = default(string), IDictionary consistencyPoints = default(IDictionary), string diskResized = default(string), string rebootAfterUpdateStatus = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string multiVmSyncStatus = default(string), InMageAgentDetails agentDetails = default(InMageAgentDetails), string vCenterInfrastructureId = default(string), string infrastructureVmId = default(string), IList vmNics = default(IList), string discoveryType = default(string), string azureStorageAccountId = default(string), IList datastores = default(IList), IList validationErrors = default(IList), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), System.DateTime? lastUpdateReceivedTime = default(System.DateTime?), string replicaId = default(string), string osVersion = default(string)) { ActiveSiteType = activeSiteType; - SourceVmCPUCount = sourceVmCPUCount; - SourceVmRAMSizeInMB = sourceVmRAMSizeInMB; + SourceVmCpuCount = sourceVmCpuCount; + SourceVmRamSizeInMB = sourceVmRamSizeInMB; OsDetails = osDetails; ProtectionStage = protectionStage; VmId = vmId; @@ -156,14 +156,14 @@ public InMageReplicationDetails() /// /// Gets or sets the CPU count of the VM on the primary side. /// - [JsonProperty(PropertyName = "sourceVmCPUCount")] - public int? SourceVmCPUCount { get; set; } + [JsonProperty(PropertyName = "sourceVmCpuCount")] + public int? SourceVmCpuCount { get; set; } /// /// Gets or sets the RAM size of the VM on the primary side. /// - [JsonProperty(PropertyName = "sourceVmRAMSizeInMB")] - public int? SourceVmRAMSizeInMB { get; set; } + [JsonProperty(PropertyName = "sourceVmRamSizeInMB")] + public int? SourceVmRamSizeInMB { get; set; } /// /// Gets or sets the OS details. diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageVolumeExclusionOptions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageVolumeExclusionOptions.cs index 775f87495f53..4114cd01020b 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageVolumeExclusionOptions.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageVolumeExclusionOptions.cs @@ -64,7 +64,7 @@ public InMageVolumeExclusionOptions() /// has label matching with VolumeLabel this disk will be excluded from /// replication if OnlyExcludeIfSingleVolume is false. /// - [JsonProperty(PropertyName = "OnlyExcludeIfSingleVolume")] + [JsonProperty(PropertyName = "onlyExcludeIfSingleVolume")] public string OnlyExcludeIfSingleVolume { get; set; } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InnerHealthError.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InnerHealthError.cs new file mode 100644 index 000000000000..4d585044e4f4 --- /dev/null +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InnerHealthError.cs @@ -0,0 +1,146 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Implements InnerHealthError class. HealthError object has a list of + /// InnerHealthErrors as child errors. InnerHealthError is used because + /// this will prevent an infinite loop of structures when Hydra tries to + /// auto-generate the contract. We are exposing the related health errors + /// as inner health errors and all API consumers can utilize this in the + /// same fashion as Exception -> InnerException. + /// + public partial class InnerHealthError + { + /// + /// Initializes a new instance of the InnerHealthError class. + /// + public InnerHealthError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InnerHealthError class. + /// + /// Source of error. + /// Type of error. + /// Level of error. + /// Category of error. + /// Error code. + /// Summary message of the entity. + /// Error message. + /// Possible causes of error. + /// Recommended action to resolve + /// error. + /// Error creation time (UTC) + /// DRA error + /// message. + /// ID of the entity. + public InnerHealthError(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)) + { + ErrorSource = errorSource; + ErrorType = errorType; + ErrorLevel = errorLevel; + ErrorCategory = errorCategory; + ErrorCode = errorCode; + SummaryMessage = summaryMessage; + ErrorMessage = errorMessage; + PossibleCauses = possibleCauses; + RecommendedAction = recommendedAction; + CreationTimeUtc = creationTimeUtc; + RecoveryProviderErrorMessage = recoveryProviderErrorMessage; + EntityId = entityId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets source of error. + /// + [JsonProperty(PropertyName = "errorSource")] + public string ErrorSource { get; set; } + + /// + /// Gets or sets type of error. + /// + [JsonProperty(PropertyName = "errorType")] + public string ErrorType { get; set; } + + /// + /// Gets or sets level of error. + /// + [JsonProperty(PropertyName = "errorLevel")] + public string ErrorLevel { get; set; } + + /// + /// Gets or sets category of error. + /// + [JsonProperty(PropertyName = "errorCategory")] + public string ErrorCategory { get; set; } + + /// + /// Gets or sets error code. + /// + [JsonProperty(PropertyName = "errorCode")] + public string ErrorCode { get; set; } + + /// + /// Gets or sets summary message of the entity. + /// + [JsonProperty(PropertyName = "summaryMessage")] + public string SummaryMessage { get; set; } + + /// + /// Gets or sets error message. + /// + [JsonProperty(PropertyName = "errorMessage")] + public string ErrorMessage { get; set; } + + /// + /// Gets or sets possible causes of error. + /// + [JsonProperty(PropertyName = "possibleCauses")] + public string PossibleCauses { get; set; } + + /// + /// Gets or sets recommended action to resolve error. + /// + [JsonProperty(PropertyName = "recommendedAction")] + public string RecommendedAction { get; set; } + + /// + /// Gets or sets error creation time (UTC) + /// + [JsonProperty(PropertyName = "creationTimeUtc")] + public System.DateTime? CreationTimeUtc { get; set; } + + /// + /// Gets or sets DRA error message. + /// + [JsonProperty(PropertyName = "recoveryProviderErrorMessage")] + public string RecoveryProviderErrorMessage { get; set; } + + /// + /// Gets or sets ID of the entity. + /// + [JsonProperty(PropertyName = "entityId")] + public string EntityId { get; set; } + + } +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/Job.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/Job.cs index ab4fd781c3a2..15f8893c9bba 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/Job.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/Job.cs @@ -34,21 +34,10 @@ public Job() /// Resource Type /// Resource Location /// The custom data. - /// The status of the Job. ARM expects the - /// terminal status to be one of (1) Succeeded, (2) Failed or (3) - /// Canceled. All other values imply that the operation is still - /// running / being applied. - /// The error. - /// The start time. - /// The start time. - public Job(string id = default(string), string name = default(string), string type = default(string), string location = default(string), JobProperties properties = default(JobProperties), string status = default(string), ARMException error = default(ARMException), string startTime = default(string), string endTime = default(string)) + public Job(string id = default(string), string name = default(string), string type = default(string), string location = default(string), JobProperties properties = default(JobProperties)) : base(id, name, type, location) { Properties = properties; - Status = status; - Error = error; - StartTime = startTime; - EndTime = endTime; CustomInit(); } @@ -63,31 +52,5 @@ public Job() [JsonProperty(PropertyName = "properties")] public JobProperties Properties { get; set; } - /// - /// Gets or sets the status of the Job. ARM expects the terminal status - /// to be one of (1) Succeeded, (2) Failed or (3) Canceled. All other - /// values imply that the operation is still running / being applied. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Gets or sets the error. - /// - [JsonProperty(PropertyName = "error")] - public ARMException Error { get; set; } - - /// - /// Gets or sets the start time. - /// - [JsonProperty(PropertyName = "startTime")] - public string StartTime { get; set; } - - /// - /// Gets or sets the start time. - /// - [JsonProperty(PropertyName = "endTime")] - public string EndTime { get; set; } - } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/MasterTargetServer.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/MasterTargetServer.cs index efad711ecfa6..996b07a113fc 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/MasterTargetServer.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/MasterTargetServer.cs @@ -45,9 +45,16 @@ public MasterTargetServer() /// The list of data stores in the /// fabric. /// Validation errors. + /// Health errors. /// Disk count of the master target. /// OS Version of the master target. - public MasterTargetServer(string id = default(string), string ipAddress = default(string), string name = default(string), string osType = default(string), string agentVersion = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string versionStatus = default(string), IList retentionVolumes = default(IList), IList dataStores = default(IList), IList validationErrors = default(IList), int? diskCount = default(int?), string osVersion = default(string)) + /// Agent expiry date. + /// MARS agent version. + /// MARS agent expiry date. + /// Agent version details. + /// Mars agent version + /// details. + public MasterTargetServer(string id = default(string), string ipAddress = default(string), string name = default(string), string osType = default(string), string agentVersion = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string versionStatus = default(string), IList retentionVolumes = default(IList), IList dataStores = default(IList), IList validationErrors = default(IList), IList healthErrors = default(IList), int? diskCount = default(int?), string osVersion = default(string), System.DateTime? agentExpiryDate = default(System.DateTime?), string marsAgentVersion = default(string), System.DateTime? marsAgentExpiryDate = default(System.DateTime?), VersionDetails agentVersionDetails = default(VersionDetails), VersionDetails marsAgentVersionDetails = default(VersionDetails)) { Id = id; IpAddress = ipAddress; @@ -59,8 +66,14 @@ public MasterTargetServer() RetentionVolumes = retentionVolumes; DataStores = dataStores; ValidationErrors = validationErrors; + HealthErrors = healthErrors; DiskCount = diskCount; OsVersion = osVersion; + AgentExpiryDate = agentExpiryDate; + MarsAgentVersion = marsAgentVersion; + MarsAgentExpiryDate = marsAgentExpiryDate; + AgentVersionDetails = agentVersionDetails; + MarsAgentVersionDetails = marsAgentVersionDetails; CustomInit(); } @@ -129,6 +142,12 @@ public MasterTargetServer() [JsonProperty(PropertyName = "validationErrors")] public IList ValidationErrors { get; set; } + /// + /// Gets or sets health errors. + /// + [JsonProperty(PropertyName = "healthErrors")] + public IList HealthErrors { get; set; } + /// /// Gets or sets disk count of the master target. /// @@ -141,5 +160,35 @@ public MasterTargetServer() [JsonProperty(PropertyName = "osVersion")] public string OsVersion { get; set; } + /// + /// Gets or sets agent expiry date. + /// + [JsonProperty(PropertyName = "agentExpiryDate")] + public System.DateTime? AgentExpiryDate { get; set; } + + /// + /// Gets or sets MARS agent version. + /// + [JsonProperty(PropertyName = "marsAgentVersion")] + public string MarsAgentVersion { get; set; } + + /// + /// Gets or sets MARS agent expiry date. + /// + [JsonProperty(PropertyName = "marsAgentExpiryDate")] + public System.DateTime? MarsAgentExpiryDate { get; set; } + + /// + /// Gets or sets agent version details. + /// + [JsonProperty(PropertyName = "agentVersionDetails")] + public VersionDetails AgentVersionDetails { get; set; } + + /// + /// Gets or sets mars agent version details. + /// + [JsonProperty(PropertyName = "marsAgentVersionDetails")] + public VersionDetails MarsAgentVersionDetails { get; set; } + } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/MultiVmGroupCreateOption.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/MultiVmGroupCreateOption.cs new file mode 100644 index 000000000000..0f8bfd632469 --- /dev/null +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/MultiVmGroupCreateOption.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for MultiVmGroupCreateOption. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum MultiVmGroupCreateOption + { + [EnumMember(Value = "AutoCreated")] + AutoCreated, + [EnumMember(Value = "UserSpecified")] + UserSpecified + } + internal static class MultiVmGroupCreateOptionEnumExtension + { + internal static string ToSerializedValue(this MultiVmGroupCreateOption? value) + { + return value == null ? null : ((MultiVmGroupCreateOption)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this MultiVmGroupCreateOption value) + { + switch( value ) + { + case MultiVmGroupCreateOption.AutoCreated: + return "AutoCreated"; + case MultiVmGroupCreateOption.UserSpecified: + return "UserSpecified"; + } + return null; + } + + internal static MultiVmGroupCreateOption? ParseMultiVmGroupCreateOption(this string value) + { + switch( value ) + { + case "AutoCreated": + return MultiVmGroupCreateOption.AutoCreated; + case "UserSpecified": + return MultiVmGroupCreateOption.UserSpecified; + } + return null; + } + } +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/MultiVmSyncPointOption.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/MultiVmSyncPointOption.cs new file mode 100644 index 000000000000..668448e21312 --- /dev/null +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/MultiVmSyncPointOption.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for MultiVmSyncPointOption. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum MultiVmSyncPointOption + { + [EnumMember(Value = "UseMultiVmSyncRecoveryPoint")] + UseMultiVmSyncRecoveryPoint, + [EnumMember(Value = "UsePerVmRecoveryPoint")] + UsePerVmRecoveryPoint + } + internal static class MultiVmSyncPointOptionEnumExtension + { + internal static string ToSerializedValue(this MultiVmSyncPointOption? value) + { + return value == null ? null : ((MultiVmSyncPointOption)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this MultiVmSyncPointOption value) + { + switch( value ) + { + case MultiVmSyncPointOption.UseMultiVmSyncRecoveryPoint: + return "UseMultiVmSyncRecoveryPoint"; + case MultiVmSyncPointOption.UsePerVmRecoveryPoint: + return "UsePerVmRecoveryPoint"; + } + return null; + } + + internal static MultiVmSyncPointOption? ParseMultiVmSyncPointOption(this string value) + { + switch( value ) + { + case "UseMultiVmSyncRecoveryPoint": + return MultiVmSyncPointOption.UseMultiVmSyncRecoveryPoint; + case "UsePerVmRecoveryPoint": + return MultiVmSyncPointOption.UsePerVmRecoveryPoint; + } + return null; + } + } +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProcessServer.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProcessServer.cs index 102721dd4202..908a6d8eb3ae 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProcessServer.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProcessServer.cs @@ -66,7 +66,11 @@ public ProcessServer() /// OS Version of the process server. Note: /// This will get populated if user has CS version greater than /// 9.12.0.0. - public ProcessServer(string friendlyName = default(string), string id = default(string), string ipAddress = default(string), string osType = default(string), string agentVersion = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string versionStatus = default(string), IList mobilityServiceUpdates = default(IList), string hostId = default(string), string machineCount = default(string), string replicationPairCount = default(string), string systemLoad = default(string), string systemLoadStatus = default(string), string cpuLoad = default(string), string cpuLoadStatus = default(string), long? totalMemoryInBytes = default(long?), long? availableMemoryInBytes = default(long?), string memoryUsageStatus = default(string), long? totalSpaceInBytes = default(long?), long? availableSpaceInBytes = default(long?), string spaceUsageStatus = default(string), string psServiceStatus = default(string), System.DateTime? sslCertExpiryDate = default(System.DateTime?), int? sslCertExpiryRemainingDays = default(int?), string osVersion = default(string)) + /// Health errors. + /// Agent expiry date. + /// The agent version + /// details. + public ProcessServer(string friendlyName = default(string), string id = default(string), string ipAddress = default(string), string osType = default(string), string agentVersion = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string versionStatus = default(string), IList mobilityServiceUpdates = default(IList), string hostId = default(string), string machineCount = default(string), string replicationPairCount = default(string), string systemLoad = default(string), string systemLoadStatus = default(string), string cpuLoad = default(string), string cpuLoadStatus = default(string), long? totalMemoryInBytes = default(long?), long? availableMemoryInBytes = default(long?), string memoryUsageStatus = default(string), long? totalSpaceInBytes = default(long?), long? availableSpaceInBytes = default(long?), string spaceUsageStatus = default(string), string psServiceStatus = default(string), System.DateTime? sslCertExpiryDate = default(System.DateTime?), int? sslCertExpiryRemainingDays = default(int?), string osVersion = default(string), IList healthErrors = default(IList), System.DateTime? agentExpiryDate = default(System.DateTime?), VersionDetails agentVersionDetails = default(VersionDetails)) { FriendlyName = friendlyName; Id = id; @@ -93,6 +97,9 @@ public ProcessServer() SslCertExpiryDate = sslCertExpiryDate; SslCertExpiryRemainingDays = sslCertExpiryRemainingDays; OsVersion = osVersion; + HealthErrors = healthErrors; + AgentExpiryDate = agentExpiryDate; + AgentVersionDetails = agentVersionDetails; CustomInit(); } @@ -253,5 +260,23 @@ public ProcessServer() [JsonProperty(PropertyName = "osVersion")] public string OsVersion { get; set; } + /// + /// Gets or sets health errors. + /// + [JsonProperty(PropertyName = "healthErrors")] + public IList HealthErrors { get; set; } + + /// + /// Gets or sets agent expiry date. + /// + [JsonProperty(PropertyName = "agentExpiryDate")] + public System.DateTime? AgentExpiryDate { get; set; } + + /// + /// Gets or sets the agent version details. + /// + [JsonProperty(PropertyName = "agentVersionDetails")] + public VersionDetails AgentVersionDetails { get; set; } + } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProtectedItemsQueryParameter.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProtectedItemsQueryParameter.cs index 444c681e2f10..8c4c392ea6d3 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProtectedItemsQueryParameter.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProtectedItemsQueryParameter.cs @@ -35,11 +35,17 @@ public ProtectedItemsQueryParameter() /// filter. /// The recovery plan filter. /// The vCenter name filter. - public ProtectedItemsQueryParameter(string sourceFabricName = default(string), string recoveryPlanName = default(string), string vCenterName = default(string)) + /// The replication provider type. + /// Whether Multi VM group is + /// auto created or specified by user. Possible values include: + /// 'AutoCreated', 'UserSpecified' + public ProtectedItemsQueryParameter(string sourceFabricName = default(string), string recoveryPlanName = default(string), string vCenterName = default(string), string instanceType = default(string), MultiVmGroupCreateOption? multiVmGroupCreateOption = default(MultiVmGroupCreateOption?)) { SourceFabricName = sourceFabricName; RecoveryPlanName = recoveryPlanName; VCenterName = vCenterName; + InstanceType = instanceType; + MultiVmGroupCreateOption = multiVmGroupCreateOption; CustomInit(); } @@ -66,5 +72,18 @@ public ProtectedItemsQueryParameter() [JsonProperty(PropertyName = "vCenterName")] public string VCenterName { get; set; } + /// + /// Gets or sets the replication provider type. + /// + [JsonProperty(PropertyName = "instanceType")] + public string InstanceType { get; set; } + + /// + /// Gets or sets whether Multi VM group is auto created or specified by + /// user. Possible values include: 'AutoCreated', 'UserSpecified' + /// + [JsonProperty(PropertyName = "multiVmGroupCreateOption")] + public MultiVmGroupCreateOption? MultiVmGroupCreateOption { get; set; } + } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProviderSpecificRecoveryPointDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProviderSpecificRecoveryPointDetails.cs index e9a8460f7d53..48e9d23e535b 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProviderSpecificRecoveryPointDetails.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProviderSpecificRecoveryPointDetails.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { - using Newtonsoft.Json; using System.Linq; /// @@ -27,27 +26,11 @@ public ProviderSpecificRecoveryPointDetails() CustomInit(); } - /// - /// Initializes a new instance of the - /// ProviderSpecificRecoveryPointDetails class. - /// - /// Gets the provider type. - public ProviderSpecificRecoveryPointDetails(string type = default(string)) - { - Type = type; - CustomInit(); - } /// /// An initialization method that performs custom operations like setting defaults /// partial void CustomInit(); - /// - /// Gets the provider type. - /// - [JsonProperty(PropertyName = "Type")] - public string Type { get; private set; } - } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPlanA2AFailoverInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPlanA2AFailoverInput.cs index dc20aceb796f..4d7d63e2227e 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPlanA2AFailoverInput.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPlanA2AFailoverInput.cs @@ -37,10 +37,15 @@ public RecoveryPlanA2AFailoverInput() /// 'LatestCrashConsistent', 'LatestProcessed' /// A value indicating whether /// to use recovery cloud service for TFO or not. - public RecoveryPlanA2AFailoverInput(A2ARpRecoveryPointType recoveryPointType, string cloudServiceCreationOption = default(string)) + /// A value indicating whether + /// multi VM sync enabled VMs should use multi VM sync points for + /// failover. Possible values include: 'UseMultiVmSyncRecoveryPoint', + /// 'UsePerVmRecoveryPoint' + public RecoveryPlanA2AFailoverInput(A2ARpRecoveryPointType recoveryPointType, string cloudServiceCreationOption = default(string), MultiVmSyncPointOption? multiVmSyncPointOption = default(MultiVmSyncPointOption?)) { RecoveryPointType = recoveryPointType; CloudServiceCreationOption = cloudServiceCreationOption; + MultiVmSyncPointOption = multiVmSyncPointOption; CustomInit(); } @@ -64,6 +69,14 @@ public RecoveryPlanA2AFailoverInput() [JsonProperty(PropertyName = "cloudServiceCreationOption")] public string CloudServiceCreationOption { get; set; } + /// + /// Gets or sets a value indicating whether multi VM sync enabled VMs + /// should use multi VM sync points for failover. Possible values + /// include: 'UseMultiVmSyncRecoveryPoint', 'UsePerVmRecoveryPoint' + /// + [JsonProperty(PropertyName = "multiVmSyncPointOption")] + public MultiVmSyncPointOption? MultiVmSyncPointOption { get; set; } + /// /// Validate the object. /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPointSyncType.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPointSyncType.cs new file mode 100644 index 000000000000..f00b018f7e97 --- /dev/null +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPointSyncType.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for RecoveryPointSyncType. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum RecoveryPointSyncType + { + [EnumMember(Value = "MultiVmSyncRecoveryPoint")] + MultiVmSyncRecoveryPoint, + [EnumMember(Value = "PerVmRecoveryPoint")] + PerVmRecoveryPoint + } + internal static class RecoveryPointSyncTypeEnumExtension + { + internal static string ToSerializedValue(this RecoveryPointSyncType? value) + { + return value == null ? null : ((RecoveryPointSyncType)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this RecoveryPointSyncType value) + { + switch( value ) + { + case RecoveryPointSyncType.MultiVmSyncRecoveryPoint: + return "MultiVmSyncRecoveryPoint"; + case RecoveryPointSyncType.PerVmRecoveryPoint: + return "PerVmRecoveryPoint"; + } + return null; + } + + internal static RecoveryPointSyncType? ParseRecoveryPointSyncType(this string value) + { + switch( value ) + { + case "MultiVmSyncRecoveryPoint": + return RecoveryPointSyncType.MultiVmSyncRecoveryPoint; + case "PerVmRecoveryPoint": + return RecoveryPointSyncType.PerVmRecoveryPoint; + } + return null; + } + } +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryServicesProviderProperties.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryServicesProviderProperties.cs index d62ef0615c55..2ccd294b402b 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryServicesProviderProperties.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryServicesProviderProperties.cs @@ -38,8 +38,8 @@ public RecoveryServicesProviderProperties() /// The provider version. /// The fabric provider. /// DRA version status. - /// Expiry date if the version - /// is deprecated. + /// Expiry date of the + /// version. /// The fabric friendly name. /// Time when last heartbeat was sent by /// the DRA. @@ -53,7 +53,9 @@ public RecoveryServicesProviderProperties() /// health error details. /// The DRA Id. /// The identity details. - public RecoveryServicesProviderProperties(string fabricType = default(string), string friendlyName = default(string), string providerVersion = default(string), string serverVersion = default(string), string providerVersionState = default(string), System.DateTime? providerVersionExpiryDate = default(System.DateTime?), string fabricFriendlyName = default(string), System.DateTime? lastHeartBeat = default(System.DateTime?), string connectionStatus = default(string), int? protectedItemCount = default(int?), IList allowedScenarios = default(IList), IList healthErrorDetails = default(IList), string draIdentifier = default(string), IdentityInformation identityDetails = default(IdentityInformation)) + /// The provider version + /// details. + public RecoveryServicesProviderProperties(string fabricType = default(string), string friendlyName = default(string), string providerVersion = default(string), string serverVersion = default(string), string providerVersionState = default(string), System.DateTime? providerVersionExpiryDate = default(System.DateTime?), string fabricFriendlyName = default(string), System.DateTime? lastHeartBeat = default(System.DateTime?), string connectionStatus = default(string), int? protectedItemCount = default(int?), IList allowedScenarios = default(IList), IList healthErrorDetails = default(IList), string draIdentifier = default(string), IdentityInformation identityDetails = default(IdentityInformation), VersionDetails providerVersionDetails = default(VersionDetails)) { FabricType = fabricType; FriendlyName = friendlyName; @@ -69,6 +71,7 @@ public RecoveryServicesProviderProperties() HealthErrorDetails = healthErrorDetails; DraIdentifier = draIdentifier; IdentityDetails = identityDetails; + ProviderVersionDetails = providerVersionDetails; CustomInit(); } @@ -108,7 +111,7 @@ public RecoveryServicesProviderProperties() public string ProviderVersionState { get; set; } /// - /// Gets or sets expiry date if the version is deprecated. + /// Gets or sets expiry date of the version. /// [JsonProperty(PropertyName = "providerVersionExpiryDate")] public System.DateTime? ProviderVersionExpiryDate { get; set; } @@ -161,5 +164,11 @@ public RecoveryServicesProviderProperties() [JsonProperty(PropertyName = "identityDetails")] public IdentityInformation IdentityDetails { get; set; } + /// + /// Gets or sets the provider version details. + /// + [JsonProperty(PropertyName = "providerVersionDetails")] + public VersionDetails ProviderVersionDetails { get; set; } + } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ReplicationProtectedItemProperties.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ReplicationProtectedItemProperties.cs index 422a0f7b54be..25f1b6fca665 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ReplicationProtectedItemProperties.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ReplicationProtectedItemProperties.cs @@ -41,6 +41,8 @@ public ReplicationProtectedItemProperties() /// Id. /// The friendly name of the /// primary fabric. + /// The fabric provider of the + /// primary fabric. /// The friendly name of /// recovery fabric. /// The Arm Id of recovery @@ -66,10 +68,7 @@ public ReplicationProtectedItemProperties() /// enumeration. /// The consolidated failover health for /// the VM. - /// List of replication health - /// errors. - /// List of failover health - /// errors. + /// List of health errors. /// The ID of Policy governing this PE. /// The name of Policy governing this /// PE. @@ -84,13 +83,14 @@ public ReplicationProtectedItemProperties() /// custom settings. /// The recovery container /// Id. - public ReplicationProtectedItemProperties(string friendlyName = default(string), string protectedItemType = default(string), string protectableItemId = default(string), string recoveryServicesProviderId = default(string), string primaryFabricFriendlyName = default(string), string recoveryFabricFriendlyName = default(string), string recoveryFabricId = default(string), string primaryProtectionContainerFriendlyName = default(string), string recoveryProtectionContainerFriendlyName = default(string), string protectionState = default(string), string protectionStateDescription = default(string), string activeLocation = default(string), string testFailoverState = default(string), string testFailoverStateDescription = default(string), IList allowedOperations = default(IList), string replicationHealth = default(string), string failoverHealth = default(string), IList replicationHealthErrors = default(IList), IList failoverHealthErrors = default(IList), string policyId = default(string), string policyFriendlyName = default(string), System.DateTime? lastSuccessfulFailoverTime = default(System.DateTime?), System.DateTime? lastSuccessfulTestFailoverTime = default(System.DateTime?), CurrentScenarioDetails currentScenario = default(CurrentScenarioDetails), string failoverRecoveryPointId = default(string), ReplicationProviderSpecificSettings providerSpecificDetails = default(ReplicationProviderSpecificSettings), string recoveryContainerId = default(string)) + public ReplicationProtectedItemProperties(string friendlyName = default(string), string protectedItemType = default(string), string protectableItemId = default(string), string recoveryServicesProviderId = default(string), string primaryFabricFriendlyName = default(string), string primaryFabricProvider = default(string), string recoveryFabricFriendlyName = default(string), string recoveryFabricId = default(string), string primaryProtectionContainerFriendlyName = default(string), string recoveryProtectionContainerFriendlyName = default(string), string protectionState = default(string), string protectionStateDescription = default(string), string activeLocation = default(string), string testFailoverState = default(string), string testFailoverStateDescription = default(string), IList allowedOperations = default(IList), string replicationHealth = default(string), string failoverHealth = default(string), IList healthErrors = default(IList), string policyId = default(string), string policyFriendlyName = default(string), System.DateTime? lastSuccessfulFailoverTime = default(System.DateTime?), System.DateTime? lastSuccessfulTestFailoverTime = default(System.DateTime?), CurrentScenarioDetails currentScenario = default(CurrentScenarioDetails), string failoverRecoveryPointId = default(string), ReplicationProviderSpecificSettings providerSpecificDetails = default(ReplicationProviderSpecificSettings), string recoveryContainerId = default(string)) { FriendlyName = friendlyName; ProtectedItemType = protectedItemType; ProtectableItemId = protectableItemId; RecoveryServicesProviderId = recoveryServicesProviderId; PrimaryFabricFriendlyName = primaryFabricFriendlyName; + PrimaryFabricProvider = primaryFabricProvider; RecoveryFabricFriendlyName = recoveryFabricFriendlyName; RecoveryFabricId = recoveryFabricId; PrimaryProtectionContainerFriendlyName = primaryProtectionContainerFriendlyName; @@ -103,8 +103,7 @@ public ReplicationProtectedItemProperties() AllowedOperations = allowedOperations; ReplicationHealth = replicationHealth; FailoverHealth = failoverHealth; - ReplicationHealthErrors = replicationHealthErrors; - FailoverHealthErrors = failoverHealthErrors; + HealthErrors = healthErrors; PolicyId = policyId; PolicyFriendlyName = policyFriendlyName; LastSuccessfulFailoverTime = lastSuccessfulFailoverTime; @@ -151,6 +150,12 @@ public ReplicationProtectedItemProperties() [JsonProperty(PropertyName = "primaryFabricFriendlyName")] public string PrimaryFabricFriendlyName { get; set; } + /// + /// Gets or sets the fabric provider of the primary fabric. + /// + [JsonProperty(PropertyName = "primaryFabricProvider")] + public string PrimaryFabricProvider { get; set; } + /// /// Gets or sets the friendly name of recovery fabric. /// @@ -229,16 +234,10 @@ public ReplicationProtectedItemProperties() public string FailoverHealth { get; set; } /// - /// Gets or sets list of replication health errors. - /// - [JsonProperty(PropertyName = "replicationHealthErrors")] - public IList ReplicationHealthErrors { get; set; } - - /// - /// Gets or sets list of failover health errors. + /// Gets or sets list of health errors. /// - [JsonProperty(PropertyName = "failoverHealthErrors")] - public IList FailoverHealthErrors { get; set; } + [JsonProperty(PropertyName = "healthErrors")] + public IList HealthErrors { get; set; } /// /// Gets or sets the ID of Policy governing this PE. diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/TargetComputeSize.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/TargetComputeSize.cs new file mode 100644 index 000000000000..bb36bfe26fca --- /dev/null +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/TargetComputeSize.cs @@ -0,0 +1,75 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Represents applicable recovery vm sizes. + /// + public partial class TargetComputeSize + { + /// + /// Initializes a new instance of the TargetComputeSize class. + /// + public TargetComputeSize() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TargetComputeSize class. + /// + /// The Id. + /// The name. + /// The Type of the object. + /// The custom data. + public TargetComputeSize(string id = default(string), string name = default(string), string type = default(string), TargetComputeSizeProperties properties = default(TargetComputeSizeProperties)) + { + Id = id; + Name = name; + Type = type; + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the Id. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets the name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the Type of the object. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets the custom data. + /// + [JsonProperty(PropertyName = "properties")] + public TargetComputeSizeProperties Properties { get; set; } + + } +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/TargetComputeSizeProperties.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/TargetComputeSizeProperties.cs new file mode 100644 index 000000000000..60e9087b021e --- /dev/null +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/TargetComputeSizeProperties.cs @@ -0,0 +1,124 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Represents applicable recovery vm sizes properties. + /// + public partial class TargetComputeSizeProperties + { + /// + /// Initializes a new instance of the TargetComputeSizeProperties + /// class. + /// + public TargetComputeSizeProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TargetComputeSizeProperties + /// class. + /// + /// Target compute size name. + /// Target compute size display + /// name. + /// The maximum cpu cores count supported + /// by target compute size. + /// The maximum memory in GB supported by + /// target compute size. + /// The maximum data disks count + /// supported by target compute size. + /// The maximum Nics count supported by + /// target compute size. + /// The reasons why the target compute size is not + /// applicable for the protected item. + /// The value indicating whether the + /// target compute size supports high Iops. + public TargetComputeSizeProperties(string name = default(string), string friendlyName = default(string), int? cpuCoresCount = default(int?), double? memoryInGB = default(double?), int? maxDataDiskCount = default(int?), int? maxNicsCount = default(int?), IList errors = default(IList), string highIopsSupported = default(string)) + { + Name = name; + FriendlyName = friendlyName; + CpuCoresCount = cpuCoresCount; + MemoryInGB = memoryInGB; + MaxDataDiskCount = maxDataDiskCount; + MaxNicsCount = maxNicsCount; + Errors = errors; + HighIopsSupported = highIopsSupported; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets target compute size name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets target compute size display name. + /// + [JsonProperty(PropertyName = "friendlyName")] + public string FriendlyName { get; set; } + + /// + /// Gets or sets the maximum cpu cores count supported by target + /// compute size. + /// + [JsonProperty(PropertyName = "cpuCoresCount")] + public int? CpuCoresCount { get; set; } + + /// + /// Gets or sets the maximum memory in GB supported by target compute + /// size. + /// + [JsonProperty(PropertyName = "memoryInGB")] + public double? MemoryInGB { get; set; } + + /// + /// Gets or sets the maximum data disks count supported by target + /// compute size. + /// + [JsonProperty(PropertyName = "maxDataDiskCount")] + public int? MaxDataDiskCount { get; set; } + + /// + /// Gets or sets the maximum Nics count supported by target compute + /// size. + /// + [JsonProperty(PropertyName = "maxNicsCount")] + public int? MaxNicsCount { get; set; } + + /// + /// Gets or sets the reasons why the target compute size is not + /// applicable for the protected item. + /// + [JsonProperty(PropertyName = "errors")] + public IList Errors { get; set; } + + /// + /// Gets or sets the value indicating whether the target compute size + /// supports high Iops. + /// + [JsonProperty(PropertyName = "highIopsSupported")] + public string HighIopsSupported { get; set; } + + } +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/UpdatePolicyInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/UpdatePolicyInput.cs index 308a469495b6..adeb6c6fe079 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/UpdatePolicyInput.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/UpdatePolicyInput.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Update protection profile input. + /// Update policy input. /// public partial class UpdatePolicyInput { diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/UpdateReplicationProtectedItemInputProperties.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/UpdateReplicationProtectedItemInputProperties.cs index aaff58c22ad2..898adb842e43 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/UpdateReplicationProtectedItemInputProperties.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/UpdateReplicationProtectedItemInputProperties.cs @@ -38,7 +38,9 @@ public UpdateReplicationProtectedItemInputProperties() /// Target Azure Vm size. /// Target Azure Network /// Id. - /// The selected option to enable + /// The selected source nic Id which + /// will be used as the primary nic during failover. + /// The selected option to enable /// RDP\SSH on target vm after failover. String value of /// {SrsDataContract.EnableRDPOnTargetOption} enum. /// The list of vm nic details. @@ -48,12 +50,13 @@ 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 enableRDPOnTargetOption = default(string), IList vmNics = default(IList), LicenseType? licenseType = default(LicenseType?), 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), LicenseType? licenseType = default(LicenseType?), string recoveryAvailabilitySetId = default(string), UpdateReplicationProtectedItemProviderInput providerSpecificDetails = default(UpdateReplicationProtectedItemProviderInput)) { RecoveryAzureVMName = recoveryAzureVMName; RecoveryAzureVMSize = recoveryAzureVMSize; SelectedRecoveryAzureNetworkId = selectedRecoveryAzureNetworkId; - EnableRDPOnTargetOption = enableRDPOnTargetOption; + SelectedSourceNicId = selectedSourceNicId; + EnableRdpOnTargetOption = enableRdpOnTargetOption; VmNics = vmNics; LicenseType = licenseType; RecoveryAvailabilitySetId = recoveryAvailabilitySetId; @@ -84,13 +87,20 @@ public UpdateReplicationProtectedItemInputProperties() [JsonProperty(PropertyName = "selectedRecoveryAzureNetworkId")] public string SelectedRecoveryAzureNetworkId { get; set; } + /// + /// Gets or sets the selected source nic Id which will be used as the + /// primary nic during failover. + /// + [JsonProperty(PropertyName = "selectedSourceNicId")] + public string SelectedSourceNicId { get; set; } + /// /// Gets or sets the selected option to enable RDP\SSH on target vm /// after failover. String value of /// {SrsDataContract.EnableRDPOnTargetOption} enum. /// - [JsonProperty(PropertyName = "enableRDPOnTargetOption")] - public string EnableRDPOnTargetOption { get; set; } + [JsonProperty(PropertyName = "enableRdpOnTargetOption")] + public string EnableRdpOnTargetOption { get; set; } /// /// Gets or sets the list of vm nic details. diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VCenterProperties.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VCenterProperties.cs index 1a889840bd9b..ceb97652e7c0 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VCenterProperties.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VCenterProperties.cs @@ -11,6 +11,8 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -43,7 +45,9 @@ public VCenterProperties() /// discover the vCenter. /// The ARM resource name of the /// fabric containing this VCenter. - public VCenterProperties(string friendlyName = default(string), string internalId = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string discoveryStatus = default(string), string processServerId = default(string), string ipAddress = default(string), string infrastructureId = default(string), string port = default(string), string runAsAccountId = default(string), string fabricArmResourceName = default(string)) + /// The health errors for this + /// VCenter. + public VCenterProperties(string friendlyName = default(string), string internalId = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string discoveryStatus = default(string), string processServerId = default(string), string ipAddress = default(string), string infrastructureId = default(string), string port = default(string), string runAsAccountId = default(string), string fabricArmResourceName = default(string), IList healthErrors = default(IList)) { FriendlyName = friendlyName; InternalId = internalId; @@ -55,6 +59,7 @@ public VCenterProperties() Port = port; RunAsAccountId = runAsAccountId; FabricArmResourceName = fabricArmResourceName; + HealthErrors = healthErrors; CustomInit(); } @@ -126,5 +131,11 @@ public VCenterProperties() [JsonProperty(PropertyName = "fabricArmResourceName")] public string FabricArmResourceName { get; set; } + /// + /// Gets or sets the health errors for this VCenter. + /// + [JsonProperty(PropertyName = "healthErrors")] + public IList HealthErrors { get; set; } + } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareDetails.cs index ff59b24bce14..6fc6c44d9e18 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareDetails.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareDetails.cs @@ -72,7 +72,10 @@ public VMwareDetails() /// CS SSL cert expiry /// date. /// PS template version. - public VMwareDetails(IList processServers = default(IList), IList masterTargetServers = default(IList), IList runAsAccounts = default(IList), string replicationPairCount = default(string), string processServerCount = default(string), string agentCount = default(string), string protectedServers = default(string), string systemLoad = default(string), string systemLoadStatus = default(string), string cpuLoad = default(string), string cpuLoadStatus = default(string), long? totalMemoryInBytes = default(long?), long? availableMemoryInBytes = default(long?), string memoryUsageStatus = default(string), long? totalSpaceInBytes = default(long?), long? availableSpaceInBytes = default(long?), string spaceUsageStatus = default(string), string webLoad = default(string), string webLoadStatus = default(string), string databaseServerLoad = default(string), string databaseServerLoadStatus = default(string), string csServiceStatus = default(string), string ipAddress = default(string), string agentVersion = default(string), string hostName = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string versionStatus = default(string), System.DateTime? sslCertExpiryDate = default(System.DateTime?), int? sslCertExpiryRemainingDays = default(int?), string psTemplateVersion = default(string)) + /// Agent expiry date. + /// The agent version + /// details. + public VMwareDetails(IList processServers = default(IList), IList masterTargetServers = default(IList), IList runAsAccounts = default(IList), string replicationPairCount = default(string), string processServerCount = default(string), string agentCount = default(string), string protectedServers = default(string), string systemLoad = default(string), string systemLoadStatus = default(string), string cpuLoad = default(string), string cpuLoadStatus = default(string), long? totalMemoryInBytes = default(long?), long? availableMemoryInBytes = default(long?), string memoryUsageStatus = default(string), long? totalSpaceInBytes = default(long?), long? availableSpaceInBytes = default(long?), string spaceUsageStatus = default(string), string webLoad = default(string), string webLoadStatus = default(string), string databaseServerLoad = default(string), string databaseServerLoadStatus = default(string), string csServiceStatus = default(string), string ipAddress = default(string), string agentVersion = default(string), string hostName = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string versionStatus = default(string), System.DateTime? sslCertExpiryDate = default(System.DateTime?), int? sslCertExpiryRemainingDays = default(int?), string psTemplateVersion = default(string), System.DateTime? agentExpiryDate = default(System.DateTime?), VersionDetails agentVersionDetails = default(VersionDetails)) { ProcessServers = processServers; MasterTargetServers = masterTargetServers; @@ -104,6 +107,8 @@ public VMwareDetails() SslCertExpiryDate = sslCertExpiryDate; SslCertExpiryRemainingDays = sslCertExpiryRemainingDays; PsTemplateVersion = psTemplateVersion; + AgentExpiryDate = agentExpiryDate; + AgentVersionDetails = agentVersionDetails; CustomInit(); } @@ -295,5 +300,17 @@ public VMwareDetails() [JsonProperty(PropertyName = "psTemplateVersion")] public string PsTemplateVersion { get; set; } + /// + /// Gets or sets agent expiry date. + /// + [JsonProperty(PropertyName = "agentExpiryDate")] + public System.DateTime? AgentExpiryDate { get; set; } + + /// + /// Gets or sets the agent version details. + /// + [JsonProperty(PropertyName = "agentVersionDetails")] + public VersionDetails AgentVersionDetails { get; set; } + } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareV2FabricCreationInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareV2FabricCreationInput.cs index c12227f667f5..ef1c2a51c7d8 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareV2FabricCreationInput.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareV2FabricCreationInput.cs @@ -28,11 +28,35 @@ public VMwareV2FabricCreationInput() CustomInit(); } + /// + /// Initializes a new instance of the VMwareV2FabricCreationInput + /// class. + /// + /// The Key Vault URL. + /// The Key Vault ARM Id. + public VMwareV2FabricCreationInput(string keyVaultUrl = default(string), string keyVaultResourceArmId = default(string)) + { + KeyVaultUrl = keyVaultUrl; + KeyVaultResourceArmId = keyVaultResourceArmId; + CustomInit(); + } /// /// An initialization method that performs custom operations like setting defaults /// partial void CustomInit(); + /// + /// Gets or sets the Key Vault URL. + /// + [JsonProperty(PropertyName = "keyVaultUrl")] + public string KeyVaultUrl { get; set; } + + /// + /// Gets or sets the Key Vault ARM Id. + /// + [JsonProperty(PropertyName = "keyVaultResourceArmId")] + public string KeyVaultResourceArmId { get; set; } + } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareV2FabricSpecificDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareV2FabricSpecificDetails.cs index 38375a4d0376..b6cbbe375623 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareV2FabricSpecificDetails.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareV2FabricSpecificDetails.cs @@ -36,10 +36,14 @@ public VMwareV2FabricSpecificDetails() /// to the SRS Service. /// The endpoint for making requests /// to the RCM Service. - public VMwareV2FabricSpecificDetails(string srsServiceEndpoint = default(string), string rcmServiceEndpoint = default(string)) + /// The Key Vault URL. + /// The Key Vault ARM Id. + public VMwareV2FabricSpecificDetails(string srsServiceEndpoint = default(string), string rcmServiceEndpoint = default(string), string keyVaultUrl = default(string), string keyVaultResourceArmId = default(string)) { SrsServiceEndpoint = srsServiceEndpoint; RcmServiceEndpoint = rcmServiceEndpoint; + KeyVaultUrl = keyVaultUrl; + KeyVaultResourceArmId = keyVaultResourceArmId; CustomInit(); } @@ -60,5 +64,17 @@ public VMwareV2FabricSpecificDetails() [JsonProperty(PropertyName = "rcmServiceEndpoint")] public string RcmServiceEndpoint { get; set; } + /// + /// Gets or sets the Key Vault URL. + /// + [JsonProperty(PropertyName = "keyVaultUrl")] + public string KeyVaultUrl { get; set; } + + /// + /// Gets or sets the Key Vault ARM Id. + /// + [JsonProperty(PropertyName = "keyVaultResourceArmId")] + public string KeyVaultResourceArmId { get; set; } + } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VersionDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VersionDetails.cs new file mode 100644 index 000000000000..59b09e693fb0 --- /dev/null +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VersionDetails.cs @@ -0,0 +1,71 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Version related deatils. + /// + public partial class VersionDetails + { + /// + /// Initializes a new instance of the VersionDetails class. + /// + public VersionDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the VersionDetails class. + /// + /// The agent version. + /// Version expiry date. + /// A value indicating whether security update + /// required. Possible values include: 'Supported', 'NotSupported', + /// 'Deprecated', 'UpdateRequired', 'SecurityUpdateRequired' + public VersionDetails(string version = default(string), System.DateTime? expiryDate = default(System.DateTime?), AgentVersionStatus? status = default(AgentVersionStatus?)) + { + Version = version; + ExpiryDate = expiryDate; + Status = status; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the agent version. + /// + [JsonProperty(PropertyName = "version")] + public string Version { get; set; } + + /// + /// Gets or sets version expiry date. + /// + [JsonProperty(PropertyName = "expiryDate")] + public System.DateTime? ExpiryDate { get; set; } + + /// + /// Gets or sets a value indicating whether security update required. + /// Possible values include: 'Supported', 'NotSupported', 'Deprecated', + /// 'UpdateRequired', 'SecurityUpdateRequired' + /// + [JsonProperty(PropertyName = "status")] + public AgentVersionStatus? Status { get; set; } + + } +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmmVirtualMachineDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmmVirtualMachineDetails.cs new file mode 100644 index 000000000000..fbb516df73b7 --- /dev/null +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmmVirtualMachineDetails.cs @@ -0,0 +1,109 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// VMM fabric provider specific VM settings. + /// + [Newtonsoft.Json.JsonObject("VmmVirtualMachine")] + public partial class VmmVirtualMachineDetails : ConfigurationSettings + { + /// + /// Initializes a new instance of the VmmVirtualMachineDetails class. + /// + public VmmVirtualMachineDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the VmmVirtualMachineDetails class. + /// + /// The source id of the object. + /// The id of the object in fabric. + /// The Last replication time. + /// The Last successful failover + /// time. + /// A value indicating whether the VM has + /// a physical disk attached. + /// A value indicating whether the + /// VM has a fibre channel adapter attached. + /// A value indicating whether the VM has a + /// shared VHD attached. + public VmmVirtualMachineDetails(string sourceItemId = default(string), string generation = default(string), OSDetails osDetails = default(OSDetails), IList diskDetails = default(IList), bool? hasPhysicalDisk = default(bool?), bool? hasFibreChannelAdapter = default(bool?), bool? hasSharedVhd = default(bool?)) + { + SourceItemId = sourceItemId; + Generation = generation; + OsDetails = osDetails; + DiskDetails = diskDetails; + HasPhysicalDisk = hasPhysicalDisk; + HasFibreChannelAdapter = hasFibreChannelAdapter; + HasSharedVhd = hasSharedVhd; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the source id of the object. + /// + [JsonProperty(PropertyName = "sourceItemId")] + public string SourceItemId { get; set; } + + /// + /// Gets or sets the id of the object in fabric. + /// + [JsonProperty(PropertyName = "generation")] + public string Generation { get; set; } + + /// + /// Gets or sets the Last replication time. + /// + [JsonProperty(PropertyName = "osDetails")] + public OSDetails OsDetails { get; set; } + + /// + /// Gets or sets the Last successful failover time. + /// + [JsonProperty(PropertyName = "diskDetails")] + public IList DiskDetails { get; set; } + + /// + /// Gets or sets a value indicating whether the VM has a physical disk + /// attached. + /// + [JsonProperty(PropertyName = "hasPhysicalDisk")] + public bool? HasPhysicalDisk { get; set; } + + /// + /// Gets or sets a value indicating whether the VM has a fibre channel + /// adapter attached. + /// + [JsonProperty(PropertyName = "hasFibreChannelAdapter")] + public bool? HasFibreChannelAdapter { get; set; } + + /// + /// Gets or sets a value indicating whether the VM has a shared VHD + /// attached. + /// + [JsonProperty(PropertyName = "hasSharedVhd")] + public bool? HasSharedVhd { get; set; } + + } +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/RecoveryPointsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/RecoveryPointsOperations.cs index bbab3e2e868f..274de0cad04a 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/RecoveryPointsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/RecoveryPointsOperations.cs @@ -51,10 +51,10 @@ internal RecoveryPointsOperations(SiteRecoveryManagementClient client) public SiteRecoveryManagementClient Client { get; private set; } /// - /// Get a recovery point. + /// Get recovery points for a replication protected item. /// /// - /// Get the details of specified recovery point. + /// Lists the available recovery points for a replication protected item. /// /// /// The fabric name. @@ -65,9 +65,6 @@ internal RecoveryPointsOperations(SiteRecoveryManagementClient client) /// /// The replication protected item's name. /// - /// - /// The recovery point name. - /// /// /// Headers that will be added to request. /// @@ -89,7 +86,7 @@ internal RecoveryPointsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, string recoveryPointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByReplicationProtectedItemsWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -119,10 +116,6 @@ internal RecoveryPointsOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); } - if (recoveryPointName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "recoveryPointName"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -133,20 +126,18 @@ internal RecoveryPointsOperations(SiteRecoveryManagementClient client) tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); - tracingParameters.Add("recoveryPointName", recoveryPointName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationProtectedItems", 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}/recoveryPoints/{recoveryPointName}").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}/recoveryPoints").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)); - _url = _url.Replace("{recoveryPointName}", System.Uri.EscapeDataString(recoveryPointName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -245,7 +236,7 @@ internal RecoveryPointsOperations(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")) @@ -258,7 +249,7 @@ internal RecoveryPointsOperations(SiteRecoveryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -278,10 +269,10 @@ internal RecoveryPointsOperations(SiteRecoveryManagementClient client) } /// - /// Get recovery points for a replication protected item. + /// Get a recovery point. /// /// - /// Lists the available recovery points for a replication protected item. + /// Get the details of specified recovery point. /// /// /// The fabric name. @@ -292,6 +283,9 @@ internal RecoveryPointsOperations(SiteRecoveryManagementClient client) /// /// The replication protected item's name. /// + /// + /// The recovery point name. + /// /// /// Headers that will be added to request. /// @@ -313,7 +307,7 @@ internal RecoveryPointsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByReplicationProtectedItemsWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, string recoveryPointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -343,6 +337,10 @@ internal RecoveryPointsOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); } + if (recoveryPointName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "recoveryPointName"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -353,18 +351,20 @@ internal RecoveryPointsOperations(SiteRecoveryManagementClient client) tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); + tracingParameters.Add("recoveryPointName", recoveryPointName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationProtectedItems", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", 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}/recoveryPoints").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}/recoveryPoints/{recoveryPointName}").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)); + _url = _url.Replace("{recoveryPointName}", System.Uri.EscapeDataString(recoveryPointName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -463,7 +463,7 @@ internal RecoveryPointsOperations(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")) @@ -476,7 +476,7 @@ internal RecoveryPointsOperations(SiteRecoveryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/RecoveryPointsOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/RecoveryPointsOperationsExtensions.cs index fbec542c1976..ae13105d38cc 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/RecoveryPointsOperationsExtensions.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/RecoveryPointsOperationsExtensions.cs @@ -22,10 +22,10 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public static partial class RecoveryPointsOperationsExtensions { /// - /// Get a recovery point. + /// Get recovery points for a replication protected item. /// /// - /// Get the details of specified recovery point. + /// Lists the available recovery points for a replication protected item. /// /// /// The operations group for this extension method. @@ -39,19 +39,16 @@ public static partial class RecoveryPointsOperationsExtensions /// /// The replication protected item's name. /// - /// - /// The recovery point name. - /// - public static RecoveryPoint Get(this IRecoveryPointsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, string recoveryPointName) + public static IPage ListByReplicationProtectedItems(this IRecoveryPointsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName) { - return operations.GetAsync(fabricName, protectionContainerName, replicatedProtectedItemName, recoveryPointName).GetAwaiter().GetResult(); + return operations.ListByReplicationProtectedItemsAsync(fabricName, protectionContainerName, replicatedProtectedItemName).GetAwaiter().GetResult(); } /// - /// Get a recovery point. + /// Get recovery points for a replication protected item. /// /// - /// Get the details of specified recovery point. + /// Lists the available recovery points for a replication protected item. /// /// /// The operations group for this extension method. @@ -65,25 +62,22 @@ public static RecoveryPoint Get(this IRecoveryPointsOperations operations, strin /// /// The replication protected item's name. /// - /// - /// The recovery point name. - /// /// /// The cancellation token. /// - public static async Task GetAsync(this IRecoveryPointsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, string recoveryPointName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByReplicationProtectedItemsAsync(this IRecoveryPointsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, recoveryPointName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByReplicationProtectedItemsWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get recovery points for a replication protected item. + /// Get a recovery point. /// /// - /// Lists the available recovery points for a replication protected item. + /// Get the details of specified recovery point. /// /// /// The operations group for this extension method. @@ -97,16 +91,19 @@ public static RecoveryPoint Get(this IRecoveryPointsOperations operations, strin /// /// The replication protected item's name. /// - public static IPage ListByReplicationProtectedItems(this IRecoveryPointsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName) + /// + /// The recovery point name. + /// + public static RecoveryPoint Get(this IRecoveryPointsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, string recoveryPointName) { - return operations.ListByReplicationProtectedItemsAsync(fabricName, protectionContainerName, replicatedProtectedItemName).GetAwaiter().GetResult(); + return operations.GetAsync(fabricName, protectionContainerName, replicatedProtectedItemName, recoveryPointName).GetAwaiter().GetResult(); } /// - /// Get recovery points for a replication protected item. + /// Get a recovery point. /// /// - /// Lists the available recovery points for a replication protected item. + /// Get the details of specified recovery point. /// /// /// The operations group for this extension method. @@ -120,12 +117,15 @@ public static IPage ListByReplicationProtectedItems(this IRecover /// /// The replication protected item's name. /// + /// + /// The recovery point name. + /// /// /// The cancellation token. /// - public static async Task> ListByReplicationProtectedItemsAsync(this IRecoveryPointsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IRecoveryPointsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, string recoveryPointName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByReplicationProtectedItemsWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, recoveryPointName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationAlertSettingsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationAlertSettingsOperations.cs index a6649c866841..05f0346ebee9 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationAlertSettingsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationAlertSettingsOperations.cs @@ -51,14 +51,11 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) public SiteRecoveryManagementClient Client { get; private set; } /// - /// Gets an email notification(alert) configuration. + /// Gets the list of configured email notification(alert) configurations. /// /// - /// Gets the details of the specified email notification(alert) configuration. + /// Gets the list of email notification(alert) configurations for the vault. /// - /// - /// The name of the email notification configuration. - /// /// /// Headers that will be added to request. /// @@ -80,7 +77,7 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string alertSettingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -98,10 +95,6 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (alertSettingName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "alertSettingName"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -109,17 +102,15 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("alertSettingName", alertSettingName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", 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}/replicationAlertSettings/{alertSettingName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationAlertSettings").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("{alertSettingName}", System.Uri.EscapeDataString(alertSettingName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -218,7 +209,7 @@ internal ReplicationAlertSettingsOperations(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")) @@ -231,7 +222,7 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -251,16 +242,13 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) } /// - /// Configures email notifications for this vault. + /// Gets an email notification(alert) configuration. /// /// - /// Create or update an email notification(alert) configuration. + /// Gets the details of the specified email notification(alert) configuration. /// /// - /// The name of the email notification(alert) configuration. - /// - /// - /// The input to configure the email notification(alert). + /// The name of the email notification configuration. /// /// /// Headers that will be added to request. @@ -283,7 +271,7 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateWithHttpMessagesAsync(string alertSettingName, ConfigureAlertRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string alertSettingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -305,10 +293,6 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "alertSettingName"); } - if (request == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "request"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -317,9 +301,8 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("alertSettingName", alertSettingName); - tracingParameters.Add("request", request); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Create", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -340,7 +323,7 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -371,12 +354,6 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) // Serialize Request string _requestContent = null; - if(request != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(request, 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) { @@ -465,11 +442,17 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) } /// - /// Gets the list of configured email notification(alert) configurations. + /// Configures email notifications for this vault. /// /// - /// Gets the list of email notification(alert) configurations for the vault. + /// Create or update an email notification(alert) configuration. /// + /// + /// The name of the email notification(alert) configuration. + /// + /// + /// The input to configure the email notification(alert). + /// /// /// Headers that will be added to request. /// @@ -491,7 +474,7 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateWithHttpMessagesAsync(string alertSettingName, ConfigureAlertRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -509,6 +492,14 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (alertSettingName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "alertSettingName"); + } + if (request == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "request"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -516,15 +507,18 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("alertSettingName", alertSettingName); + tracingParameters.Add("request", request); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Create", 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}/replicationAlertSettings").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationAlertSettings/{alertSettingName}").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("{alertSettingName}", System.Uri.EscapeDataString(alertSettingName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -537,7 +531,7 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -568,6 +562,12 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) // Serialize Request string _requestContent = null; + if(request != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(request, 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) { @@ -623,7 +623,7 @@ internal ReplicationAlertSettingsOperations(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")) @@ -636,7 +636,7 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationAlertSettingsOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationAlertSettingsOperationsExtensions.cs index 7ea8c7652f46..82f90ff0c7bc 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationAlertSettingsOperationsExtensions.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationAlertSettingsOperationsExtensions.cs @@ -21,6 +21,40 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery /// public static partial class ReplicationAlertSettingsOperationsExtensions { + /// + /// Gets the list of configured email notification(alert) configurations. + /// + /// + /// Gets the list of email notification(alert) configurations for the vault. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this IReplicationAlertSettingsOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Gets the list of configured email notification(alert) configurations. + /// + /// + /// Gets the list of email notification(alert) configurations for the vault. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IReplicationAlertSettingsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Gets an email notification(alert) configuration. /// @@ -107,40 +141,6 @@ public static Alert Create(this IReplicationAlertSettingsOperations operations, } } - /// - /// Gets the list of configured email notification(alert) configurations. - /// - /// - /// Gets the list of email notification(alert) configurations for the vault. - /// - /// - /// The operations group for this extension method. - /// - public static IPage List(this IReplicationAlertSettingsOperations operations) - { - return operations.ListAsync().GetAwaiter().GetResult(); - } - - /// - /// Gets the list of configured email notification(alert) configurations. - /// - /// - /// Gets the list of email notification(alert) configurations for the vault. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - public static async Task> ListAsync(this IReplicationAlertSettingsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Gets the list of configured email notification(alert) configurations. /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationEventsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationEventsOperations.cs index ae2334b14d3b..ae4a94d32647 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationEventsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationEventsOperations.cs @@ -52,13 +52,13 @@ internal ReplicationEventsOperations(SiteRecoveryManagementClient client) public SiteRecoveryManagementClient Client { get; private set; } /// - /// Get the details of an Azure Site recovery event. + /// Gets the list of Azure Site Recovery events. /// /// - /// The operation to get the details of an Azure Site recovery event. + /// Gets the list of Azure Site Recovery events for the vault. /// - /// - /// The name of the Azure Site Recovery event. + /// + /// OData parameters to apply to the operation. /// /// /// Headers that will be added to request. @@ -81,7 +81,7 @@ internal ReplicationEventsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string eventName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -99,10 +99,6 @@ internal ReplicationEventsOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (eventName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "eventName"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -110,18 +106,25 @@ internal ReplicationEventsOperations(SiteRecoveryManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("eventName", eventName); + tracingParameters.Add("odataQuery", odataQuery); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", 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}/replicationEvents/{eventName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationEvents").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("{eventName}", System.Uri.EscapeDataString(eventName)); List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } if (Client.ApiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); @@ -219,7 +222,7 @@ internal ReplicationEventsOperations(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")) @@ -232,7 +235,7 @@ internal ReplicationEventsOperations(SiteRecoveryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -252,13 +255,13 @@ internal ReplicationEventsOperations(SiteRecoveryManagementClient client) } /// - /// Gets the list of Azure Site Recovery events. + /// Get the details of an Azure Site recovery event. /// /// - /// Gets the list of Azure Site Recovery events for the vault. + /// The operation to get the details of an Azure Site recovery event. /// - /// - /// OData parameters to apply to the operation. + /// + /// The name of the Azure Site Recovery event. /// /// /// Headers that will be added to request. @@ -281,7 +284,7 @@ internal ReplicationEventsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string eventName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -299,6 +302,10 @@ internal ReplicationEventsOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (eventName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "eventName"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -306,25 +313,18 @@ internal ReplicationEventsOperations(SiteRecoveryManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("eventName", eventName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", 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}/replicationEvents").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationEvents/{eventName}").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("{eventName}", System.Uri.EscapeDataString(eventName)); List _queryParameters = new List(); - if (odataQuery != null) - { - var _odataFilter = odataQuery.ToString(); - if (!string.IsNullOrEmpty(_odataFilter)) - { - _queryParameters.Add(_odataFilter); - } - } if (Client.ApiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); @@ -422,7 +422,7 @@ internal ReplicationEventsOperations(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")) @@ -435,7 +435,7 @@ internal ReplicationEventsOperations(SiteRecoveryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationEventsOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationEventsOperationsExtensions.cs index 6aa274e2fd42..447315f1f72f 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationEventsOperationsExtensions.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationEventsOperationsExtensions.cs @@ -23,80 +23,80 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public static partial class ReplicationEventsOperationsExtensions { /// - /// Get the details of an Azure Site recovery event. + /// Gets the list of Azure Site Recovery events. /// /// - /// The operation to get the details of an Azure Site recovery event. + /// Gets the list of Azure Site Recovery events for the vault. /// /// /// The operations group for this extension method. /// - /// - /// The name of the Azure Site Recovery event. + /// + /// OData parameters to apply to the operation. /// - public static EventModel Get(this IReplicationEventsOperations operations, string eventName) + public static IPage List(this IReplicationEventsOperations operations, ODataQuery odataQuery = default(ODataQuery)) { - return operations.GetAsync(eventName).GetAwaiter().GetResult(); + return operations.ListAsync(odataQuery).GetAwaiter().GetResult(); } /// - /// Get the details of an Azure Site recovery event. + /// Gets the list of Azure Site Recovery events. /// /// - /// The operation to get the details of an Azure Site recovery event. + /// Gets the list of Azure Site Recovery events for the vault. /// /// /// The operations group for this extension method. /// - /// - /// The name of the Azure Site Recovery event. + /// + /// OData parameters to apply to the operation. /// /// /// The cancellation token. /// - public static async Task GetAsync(this IReplicationEventsOperations operations, string eventName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IReplicationEventsOperations operations, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(eventName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(odataQuery, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets the list of Azure Site Recovery events. + /// Get the details of an Azure Site recovery event. /// /// - /// Gets the list of Azure Site Recovery events for the vault. + /// The operation to get the details of an Azure Site recovery event. /// /// /// The operations group for this extension method. /// - /// - /// OData parameters to apply to the operation. + /// + /// The name of the Azure Site Recovery event. /// - public static IPage List(this IReplicationEventsOperations operations, ODataQuery odataQuery = default(ODataQuery)) + public static EventModel Get(this IReplicationEventsOperations operations, string eventName) { - return operations.ListAsync(odataQuery).GetAwaiter().GetResult(); + return operations.GetAsync(eventName).GetAwaiter().GetResult(); } /// - /// Gets the list of Azure Site Recovery events. + /// Get the details of an Azure Site recovery event. /// /// - /// Gets the list of Azure Site Recovery events for the vault. + /// The operation to get the details of an Azure Site recovery event. /// /// /// The operations group for this extension method. /// - /// - /// OData parameters to apply to the operation. + /// + /// The name of the Azure Site Recovery event. /// /// /// The cancellation token. /// - public static async Task> ListAsync(this IReplicationEventsOperations operations, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IReplicationEventsOperations operations, string eventName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(odataQuery, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(eventName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationFabricsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationFabricsOperations.cs index 57cf47e9c8f0..6a8d84e9c020 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationFabricsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationFabricsOperations.cs @@ -51,131 +51,11 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) public SiteRecoveryManagementClient Client { get; private set; } /// - /// Migrates the site to AAD. - /// - /// - /// The operation to migrate an Azure Site Recovery fabric to AAD. - /// - /// - /// ASR fabric to migrate. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task MigrateToAadWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginMigrateToAadWithHttpMessagesAsync(fabricName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Renews certificate for the fabric. - /// - /// - /// Renews the connection certificate for the ASR replication fabric. - /// - /// - /// fabric name to renew certs for. - /// - /// - /// Renew certificate input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> RenewCertificateWithHttpMessagesAsync(string fabricName, RenewCertificateInput renewCertificate, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginRenewCertificateWithHttpMessagesAsync(fabricName, renewCertificate, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Perform failover of the process server. - /// - /// - /// The operation to move replications from a process server to another process - /// server. - /// - /// - /// The name of the fabric containing the process server. - /// - /// - /// The input to the failover process server operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> ReassociateGatewayWithHttpMessagesAsync(string fabricName, FailoverProcessServerRequest failoverProcessServerRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginReassociateGatewayWithHttpMessagesAsync(fabricName, failoverProcessServerRequest, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Checks the consistency of the ASR fabric. - /// - /// - /// The operation to perform a consistency check on the fabric. - /// - /// - /// Fabric name. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CheckConsistencyWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginCheckConsistencyWithHttpMessagesAsync(fabricName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Deletes the site. - /// - /// - /// The operation to delete or remove an Azure Site Recovery fabric. - /// - /// - /// ASR fabric to delete - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task DeleteWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(fabricName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the details of an ASR fabric. + /// Gets the list of ASR fabrics /// /// - /// Gets the details of an Azure Site Recovery fabric. + /// Gets a list of the Azure Site Recovery fabrics in the vault. /// - /// - /// Fabric name. - /// /// /// Headers that will be added to request. /// @@ -197,7 +77,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -215,10 +95,6 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (fabricName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -226,17 +102,15 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", 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}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics").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)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -335,7 +209,7 @@ internal ReplicationFabricsOperations(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")) @@ -348,7 +222,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -368,60 +242,15 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) } /// - /// Creates an Azure Site Recoery fabric. - /// - /// - /// The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V - /// site) - /// - /// - /// Name of the ASR fabric. - /// - /// - /// Fabric creation input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CreateWithHttpMessagesAsync(string fabricName, FabricCreationInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(fabricName, input, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Purges the site. + /// Gets the details of an ASR fabric. /// /// - /// The operation to purge(force delete) an Azure Site Recovery fabric. + /// Gets the details of an Azure Site Recovery fabric. /// /// - /// ASR fabric to purge. + /// Fabric name. /// /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task PurgeWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginPurgeWithHttpMessagesAsync(fabricName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the list of ASR fabrics - /// - /// - /// Gets a list of the Azure Site Recovery fabrics in the vault. - /// - /// /// Headers that will be added to request. /// /// @@ -442,7 +271,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -460,6 +289,10 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (fabricName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -467,15 +300,17 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", 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").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}").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)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -574,7 +409,7 @@ internal ReplicationFabricsOperations(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")) @@ -587,7 +422,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -606,6 +441,76 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) return _result; } + /// + /// Creates an Azure Site Recovery fabric. + /// + /// + /// The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V + /// site) + /// + /// + /// Name of the ASR fabric. + /// + /// + /// Fabric creation input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string fabricName, FabricCreationInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(fabricName, input, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Purges the site. + /// + /// + /// The operation to purge(force delete) an Azure Site Recovery fabric. + /// + /// + /// ASR fabric to purge. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task PurgeWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginPurgeWithHttpMessagesAsync(fabricName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Checks the consistency of the ASR fabric. + /// + /// + /// The operation to perform a consistency check on the fabric. + /// + /// + /// Fabric name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CheckConsistencyWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginCheckConsistencyWithHttpMessagesAsync(fabricName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Migrates the site to AAD. /// @@ -616,6 +521,105 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) /// ASR fabric to migrate. /// /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task MigrateToAadWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginMigrateToAadWithHttpMessagesAsync(fabricName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Perform failover of the process server. + /// + /// + /// The operation to move replications from a process server to another process + /// server. + /// + /// + /// The name of the fabric containing the process server. + /// + /// + /// The input to the failover process server operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ReassociateGatewayWithHttpMessagesAsync(string fabricName, FailoverProcessServerRequest failoverProcessServerRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginReassociateGatewayWithHttpMessagesAsync(fabricName, failoverProcessServerRequest, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the site. + /// + /// + /// The operation to delete or remove an Azure Site Recovery fabric. + /// + /// + /// ASR fabric to delete + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(fabricName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Renews certificate for the fabric. + /// + /// + /// Renews the connection certificate for the ASR replication fabric. + /// + /// + /// fabric name to renew certs for. + /// + /// + /// Renew certificate input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> RenewCertificateWithHttpMessagesAsync(string fabricName, RenewCertificateInput renewCertificate, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginRenewCertificateWithHttpMessagesAsync(fabricName, renewCertificate, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates an Azure Site Recovery fabric. + /// + /// + /// The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V + /// site) + /// + /// + /// Name of the ASR fabric. + /// + /// + /// Fabric creation input. + /// + /// /// Headers that will be added to request. /// /// @@ -624,6 +628,9 @@ internal ReplicationFabricsOperations(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 /// @@ -633,7 +640,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginMigrateToAadWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateWithHttpMessagesAsync(string fabricName, FabricCreationInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -655,6 +662,10 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); } + if (input == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "input"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -663,12 +674,13 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); + tracingParameters.Add("input", input); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginMigrateToAad", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", 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}/migratetoaad").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}").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)); @@ -685,7 +697,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -716,6 +728,12 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) // Serialize Request string _requestContent = null; + if(input != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(input, 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) { @@ -736,7 +754,7 @@ internal ReplicationFabricsOperations(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 @@ -771,13 +789,31 @@ internal ReplicationFabricsOperations(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); @@ -786,16 +822,13 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) } /// - /// Renews certificate for the fabric. + /// Purges the site. /// /// - /// Renews the connection certificate for the ASR replication fabric. + /// The operation to purge(force delete) an Azure Site Recovery fabric. /// /// - /// fabric name to renew certs for. - /// - /// - /// Renew certificate input. + /// ASR fabric to purge. /// /// /// Headers that will be added to request. @@ -806,9 +839,6 @@ internal ReplicationFabricsOperations(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 /// @@ -818,7 +848,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginRenewCertificateWithHttpMessagesAsync(string fabricName, RenewCertificateInput renewCertificate, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginPurgeWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -840,10 +870,6 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); } - if (renewCertificate == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "renewCertificate"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -852,13 +878,12 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); - tracingParameters.Add("renewCertificate", renewCertificate); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginRenewCertificate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginPurge", 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}/renewCertificate").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}").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)); @@ -875,7 +900,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -906,12 +931,6 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) // Serialize Request string _requestContent = null; - if(renewCertificate != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(renewCertificate, 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) { @@ -932,7 +951,7 @@ internal ReplicationFabricsOperations(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 @@ -967,31 +986,13 @@ internal ReplicationFabricsOperations(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); @@ -1000,17 +1001,13 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) } /// - /// Perform failover of the process server. + /// Checks the consistency of the ASR fabric. /// /// - /// The operation to move replications from a process server to another process - /// server. + /// The operation to perform a consistency check on the fabric. /// /// - /// The name of the fabric containing the process server. - /// - /// - /// The input to the failover process server operation. + /// Fabric name. /// /// /// Headers that will be added to request. @@ -1033,7 +1030,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginReassociateGatewayWithHttpMessagesAsync(string fabricName, FailoverProcessServerRequest failoverProcessServerRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCheckConsistencyWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1055,10 +1052,6 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); } - if (failoverProcessServerRequest == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "failoverProcessServerRequest"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1067,13 +1060,12 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); - tracingParameters.Add("failoverProcessServerRequest", failoverProcessServerRequest); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginReassociateGateway", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginCheckConsistency", 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}/reassociateGateway").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/checkConsistency").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)); @@ -1121,12 +1113,6 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) // Serialize Request string _requestContent = null; - if(failoverProcessServerRequest != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(failoverProcessServerRequest, 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) { @@ -1215,13 +1201,13 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) } /// - /// Checks the consistency of the ASR fabric. + /// Migrates the site to AAD. /// /// - /// The operation to perform a consistency check on the fabric. + /// The operation to migrate an Azure Site Recovery fabric to AAD. /// /// - /// Fabric name. + /// ASR fabric to migrate. /// /// /// Headers that will be added to request. @@ -1232,9 +1218,6 @@ internal ReplicationFabricsOperations(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 /// @@ -1244,7 +1227,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCheckConsistencyWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginMigrateToAadWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1275,11 +1258,11 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginCheckConsistency", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginMigrateToAad", 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}/checkConsistency").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/migratetoaad").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)); @@ -1347,7 +1330,7 @@ internal ReplicationFabricsOperations(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 @@ -1382,31 +1365,13 @@ internal ReplicationFabricsOperations(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); @@ -1415,13 +1380,17 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) } /// - /// Deletes the site. + /// Perform failover of the process server. /// /// - /// The operation to delete or remove an Azure Site Recovery fabric. + /// The operation to move replications from a process server to another process + /// server. /// /// - /// ASR fabric to delete + /// The name of the fabric containing the process server. + /// + /// + /// The input to the failover process server operation. /// /// /// Headers that will be added to request. @@ -1432,6 +1401,9 @@ internal ReplicationFabricsOperations(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 /// @@ -1441,7 +1413,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginReassociateGatewayWithHttpMessagesAsync(string fabricName, FailoverProcessServerRequest failoverProcessServerRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1463,6 +1435,10 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); } + if (failoverProcessServerRequest == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "failoverProcessServerRequest"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1471,12 +1447,13 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); + tracingParameters.Add("failoverProcessServerRequest", failoverProcessServerRequest); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginReassociateGateway", 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}/remove").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/reassociateGateway").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)); @@ -1524,6 +1501,12 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) // Serialize Request string _requestContent = null; + if(failoverProcessServerRequest != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(failoverProcessServerRequest, 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) { @@ -1544,7 +1527,7 @@ internal ReplicationFabricsOperations(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 @@ -1579,13 +1562,31 @@ internal ReplicationFabricsOperations(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); @@ -1594,17 +1595,13 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) } /// - /// Creates an Azure Site Recoery fabric. + /// Deletes the site. /// /// - /// The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V - /// site) + /// The operation to delete or remove an Azure Site Recovery fabric. /// /// - /// Name of the ASR fabric. - /// - /// - /// Fabric creation input. + /// ASR fabric to delete /// /// /// Headers that will be added to request. @@ -1615,9 +1612,6 @@ internal ReplicationFabricsOperations(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 /// @@ -1627,7 +1621,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateWithHttpMessagesAsync(string fabricName, FabricCreationInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginDeleteWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1649,10 +1643,6 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); } - if (input == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "input"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1661,13 +1651,12 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); - tracingParameters.Add("input", input); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", 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}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/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)); @@ -1684,7 +1673,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1715,12 +1704,6 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) // Serialize Request string _requestContent = null; - if(input != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(input, 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) { @@ -1741,7 +1724,7 @@ internal ReplicationFabricsOperations(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 @@ -1776,31 +1759,13 @@ internal ReplicationFabricsOperations(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); @@ -1809,13 +1774,16 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) } /// - /// Purges the site. + /// Renews certificate for the fabric. /// /// - /// The operation to purge(force delete) an Azure Site Recovery fabric. + /// Renews the connection certificate for the ASR replication fabric. /// /// - /// ASR fabric to purge. + /// fabric name to renew certs for. + /// + /// + /// Renew certificate input. /// /// /// Headers that will be added to request. @@ -1826,6 +1794,9 @@ internal ReplicationFabricsOperations(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 /// @@ -1835,7 +1806,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginPurgeWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginRenewCertificateWithHttpMessagesAsync(string fabricName, RenewCertificateInput renewCertificate, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1857,6 +1828,10 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); } + if (renewCertificate == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "renewCertificate"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1865,12 +1840,13 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); + tracingParameters.Add("renewCertificate", renewCertificate); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginPurge", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginRenewCertificate", 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}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/renewCertificate").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)); @@ -1887,7 +1863,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1918,6 +1894,12 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) // Serialize Request string _requestContent = null; + if(renewCertificate != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(renewCertificate, 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) { @@ -1938,7 +1920,7 @@ internal ReplicationFabricsOperations(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 @@ -1973,13 +1955,31 @@ internal ReplicationFabricsOperations(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); diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationFabricsOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationFabricsOperationsExtensions.cs index 13bed0726d09..4fd2ce26b571 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationFabricsOperationsExtensions.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationFabricsOperationsExtensions.cs @@ -22,134 +22,162 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public static partial class ReplicationFabricsOperationsExtensions { /// - /// Migrates the site to AAD. + /// Gets the list of ASR fabrics /// /// - /// The operation to migrate an Azure Site Recovery fabric to AAD. + /// Gets a list of the Azure Site Recovery fabrics in the vault. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this IReplicationFabricsOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Gets the list of ASR fabrics + /// + /// + /// Gets a list of the Azure Site Recovery fabrics in the vault. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IReplicationFabricsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the details of an ASR fabric. + /// + /// + /// Gets the details of an Azure Site Recovery fabric. /// /// /// The operations group for this extension method. /// /// - /// ASR fabric to migrate. + /// Fabric name. /// - public static void MigrateToAad(this IReplicationFabricsOperations operations, string fabricName) + public static Fabric Get(this IReplicationFabricsOperations operations, string fabricName) { - operations.MigrateToAadAsync(fabricName).GetAwaiter().GetResult(); + return operations.GetAsync(fabricName).GetAwaiter().GetResult(); } /// - /// Migrates the site to AAD. + /// Gets the details of an ASR fabric. /// /// - /// The operation to migrate an Azure Site Recovery fabric to AAD. + /// Gets the details of an Azure Site Recovery fabric. /// /// /// The operations group for this extension method. /// /// - /// ASR fabric to migrate. + /// Fabric name. /// /// /// The cancellation token. /// - public static async Task MigrateToAadAsync(this IReplicationFabricsOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IReplicationFabricsOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.MigrateToAadWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.GetWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// - /// Renews certificate for the fabric. + /// Creates an Azure Site Recovery fabric. /// /// - /// Renews the connection certificate for the ASR replication fabric. + /// The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V + /// site) /// /// /// The operations group for this extension method. /// /// - /// fabric name to renew certs for. + /// Name of the ASR fabric. /// - /// - /// Renew certificate input. + /// + /// Fabric creation input. /// - public static Fabric RenewCertificate(this IReplicationFabricsOperations operations, string fabricName, RenewCertificateInput renewCertificate) + public static Fabric Create(this IReplicationFabricsOperations operations, string fabricName, FabricCreationInput input) { - return operations.RenewCertificateAsync(fabricName, renewCertificate).GetAwaiter().GetResult(); + return operations.CreateAsync(fabricName, input).GetAwaiter().GetResult(); } /// - /// Renews certificate for the fabric. + /// Creates an Azure Site Recovery fabric. /// /// - /// Renews the connection certificate for the ASR replication fabric. + /// The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V + /// site) /// /// /// The operations group for this extension method. /// /// - /// fabric name to renew certs for. + /// Name of the ASR fabric. /// - /// - /// Renew certificate input. + /// + /// Fabric creation input. /// /// /// The cancellation token. /// - public static async Task RenewCertificateAsync(this IReplicationFabricsOperations operations, string fabricName, RenewCertificateInput renewCertificate, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this IReplicationFabricsOperations operations, string fabricName, FabricCreationInput input, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.RenewCertificateWithHttpMessagesAsync(fabricName, renewCertificate, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateWithHttpMessagesAsync(fabricName, input, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Perform failover of the process server. + /// Purges the site. /// /// - /// The operation to move replications from a process server to another process - /// server. + /// The operation to purge(force delete) an Azure Site Recovery fabric. /// /// /// The operations group for this extension method. /// /// - /// The name of the fabric containing the process server. - /// - /// - /// The input to the failover process server operation. + /// ASR fabric to purge. /// - public static Fabric ReassociateGateway(this IReplicationFabricsOperations operations, string fabricName, FailoverProcessServerRequest failoverProcessServerRequest) + public static void Purge(this IReplicationFabricsOperations operations, string fabricName) { - return operations.ReassociateGatewayAsync(fabricName, failoverProcessServerRequest).GetAwaiter().GetResult(); + operations.PurgeAsync(fabricName).GetAwaiter().GetResult(); } /// - /// Perform failover of the process server. + /// Purges the site. /// /// - /// The operation to move replications from a process server to another process - /// server. + /// The operation to purge(force delete) an Azure Site Recovery fabric. /// /// /// The operations group for this extension method. /// /// - /// The name of the fabric containing the process server. - /// - /// - /// The input to the failover process server operation. + /// ASR fabric to purge. /// /// /// The cancellation token. /// - public static async Task ReassociateGatewayAsync(this IReplicationFabricsOperations operations, string fabricName, FailoverProcessServerRequest failoverProcessServerRequest, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task PurgeAsync(this IReplicationFabricsOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ReassociateGatewayWithHttpMessagesAsync(fabricName, failoverProcessServerRequest, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.PurgeWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -192,6 +220,91 @@ public static Fabric CheckConsistency(this IReplicationFabricsOperations operati } } + /// + /// Migrates the site to AAD. + /// + /// + /// The operation to migrate an Azure Site Recovery fabric to AAD. + /// + /// + /// The operations group for this extension method. + /// + /// + /// ASR fabric to migrate. + /// + public static void MigrateToAad(this IReplicationFabricsOperations operations, string fabricName) + { + operations.MigrateToAadAsync(fabricName).GetAwaiter().GetResult(); + } + + /// + /// Migrates the site to AAD. + /// + /// + /// The operation to migrate an Azure Site Recovery fabric to AAD. + /// + /// + /// The operations group for this extension method. + /// + /// + /// ASR fabric to migrate. + /// + /// + /// The cancellation token. + /// + public static async Task MigrateToAadAsync(this IReplicationFabricsOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.MigrateToAadWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Perform failover of the process server. + /// + /// + /// The operation to move replications from a process server to another process + /// server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the fabric containing the process server. + /// + /// + /// The input to the failover process server operation. + /// + public static Fabric ReassociateGateway(this IReplicationFabricsOperations operations, string fabricName, FailoverProcessServerRequest failoverProcessServerRequest) + { + return operations.ReassociateGatewayAsync(fabricName, failoverProcessServerRequest).GetAwaiter().GetResult(); + } + + /// + /// Perform failover of the process server. + /// + /// + /// The operation to move replications from a process server to another process + /// server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the fabric containing the process server. + /// + /// + /// The input to the failover process server operation. + /// + /// + /// The cancellation token. + /// + public static async Task ReassociateGatewayAsync(this IReplicationFabricsOperations operations, string fabricName, FailoverProcessServerRequest failoverProcessServerRequest, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ReassociateGatewayWithHttpMessagesAsync(fabricName, failoverProcessServerRequest, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Deletes the site. /// @@ -230,47 +343,53 @@ public static void Delete(this IReplicationFabricsOperations operations, string } /// - /// Gets the details of an ASR fabric. + /// Renews certificate for the fabric. /// /// - /// Gets the details of an Azure Site Recovery fabric. + /// Renews the connection certificate for the ASR replication fabric. /// /// /// The operations group for this extension method. /// /// - /// Fabric name. + /// fabric name to renew certs for. /// - public static Fabric Get(this IReplicationFabricsOperations operations, string fabricName) + /// + /// Renew certificate input. + /// + public static Fabric RenewCertificate(this IReplicationFabricsOperations operations, string fabricName, RenewCertificateInput renewCertificate) { - return operations.GetAsync(fabricName).GetAwaiter().GetResult(); + return operations.RenewCertificateAsync(fabricName, renewCertificate).GetAwaiter().GetResult(); } /// - /// Gets the details of an ASR fabric. + /// Renews certificate for the fabric. /// /// - /// Gets the details of an Azure Site Recovery fabric. + /// Renews the connection certificate for the ASR replication fabric. /// /// /// The operations group for this extension method. /// /// - /// Fabric name. + /// fabric name to renew certs for. + /// + /// + /// Renew certificate input. /// /// /// The cancellation token. /// - public static async Task GetAsync(this IReplicationFabricsOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task RenewCertificateAsync(this IReplicationFabricsOperations operations, string fabricName, RenewCertificateInput renewCertificate, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.RenewCertificateWithHttpMessagesAsync(fabricName, renewCertificate, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Creates an Azure Site Recoery fabric. + /// Creates an Azure Site Recovery fabric. /// /// /// The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V @@ -285,13 +404,13 @@ public static Fabric Get(this IReplicationFabricsOperations operations, string f /// /// Fabric creation input. /// - public static Fabric Create(this IReplicationFabricsOperations operations, string fabricName, FabricCreationInput input) + public static Fabric BeginCreate(this IReplicationFabricsOperations operations, string fabricName, FabricCreationInput input) { - return operations.CreateAsync(fabricName, input).GetAwaiter().GetResult(); + return operations.BeginCreateAsync(fabricName, input).GetAwaiter().GetResult(); } /// - /// Creates an Azure Site Recoery fabric. + /// Creates an Azure Site Recovery fabric. /// /// /// The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V @@ -309,9 +428,9 @@ public static Fabric Create(this IReplicationFabricsOperations operations, strin /// /// The cancellation token. /// - public static async Task CreateAsync(this IReplicationFabricsOperations operations, string fabricName, FabricCreationInput input, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCreateAsync(this IReplicationFabricsOperations operations, string fabricName, FabricCreationInput input, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateWithHttpMessagesAsync(fabricName, input, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(fabricName, input, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -329,9 +448,9 @@ public static Fabric Create(this IReplicationFabricsOperations operations, strin /// /// ASR fabric to purge. /// - public static void Purge(this IReplicationFabricsOperations operations, string fabricName) + public static void BeginPurge(this IReplicationFabricsOperations operations, string fabricName) { - operations.PurgeAsync(fabricName).GetAwaiter().GetResult(); + operations.BeginPurgeAsync(fabricName).GetAwaiter().GetResult(); } /// @@ -349,40 +468,46 @@ public static void Purge(this IReplicationFabricsOperations operations, string f /// /// The cancellation token. /// - public static async Task PurgeAsync(this IReplicationFabricsOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginPurgeAsync(this IReplicationFabricsOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.PurgeWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.BeginPurgeWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Gets the list of ASR fabrics + /// Checks the consistency of the ASR fabric. /// /// - /// Gets a list of the Azure Site Recovery fabrics in the vault. + /// The operation to perform a consistency check on the fabric. /// /// /// The operations group for this extension method. /// - public static IPage List(this IReplicationFabricsOperations operations) + /// + /// Fabric name. + /// + public static Fabric BeginCheckConsistency(this IReplicationFabricsOperations operations, string fabricName) { - return operations.ListAsync().GetAwaiter().GetResult(); + return operations.BeginCheckConsistencyAsync(fabricName).GetAwaiter().GetResult(); } /// - /// Gets the list of ASR fabrics + /// Checks the consistency of the ASR fabric. /// /// - /// Gets a list of the Azure Site Recovery fabrics in the vault. + /// The operation to perform a consistency check on the fabric. /// /// /// The operations group for this extension method. /// + /// + /// Fabric name. + /// /// /// The cancellation token. /// - public static async Task> ListAsync(this IReplicationFabricsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCheckConsistencyAsync(this IReplicationFabricsOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginCheckConsistencyWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -425,52 +550,6 @@ public static void BeginMigrateToAad(this IReplicationFabricsOperations operatio (await operations.BeginMigrateToAadWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } - /// - /// Renews certificate for the fabric. - /// - /// - /// Renews the connection certificate for the ASR replication fabric. - /// - /// - /// The operations group for this extension method. - /// - /// - /// fabric name to renew certs for. - /// - /// - /// Renew certificate input. - /// - public static Fabric BeginRenewCertificate(this IReplicationFabricsOperations operations, string fabricName, RenewCertificateInput renewCertificate) - { - return operations.BeginRenewCertificateAsync(fabricName, renewCertificate).GetAwaiter().GetResult(); - } - - /// - /// Renews certificate for the fabric. - /// - /// - /// Renews the connection certificate for the ASR replication fabric. - /// - /// - /// The operations group for this extension method. - /// - /// - /// fabric name to renew certs for. - /// - /// - /// Renew certificate input. - /// - /// - /// The cancellation token. - /// - public static async Task BeginRenewCertificateAsync(this IReplicationFabricsOperations operations, string fabricName, RenewCertificateInput renewCertificate, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.BeginRenewCertificateWithHttpMessagesAsync(fabricName, renewCertificate, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Perform failover of the process server. /// @@ -519,46 +598,6 @@ public static Fabric BeginReassociateGateway(this IReplicationFabricsOperations } } - /// - /// Checks the consistency of the ASR fabric. - /// - /// - /// The operation to perform a consistency check on the fabric. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Fabric name. - /// - public static Fabric BeginCheckConsistency(this IReplicationFabricsOperations operations, string fabricName) - { - return operations.BeginCheckConsistencyAsync(fabricName).GetAwaiter().GetResult(); - } - - /// - /// Checks the consistency of the ASR fabric. - /// - /// - /// The operation to perform a consistency check on the fabric. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Fabric name. - /// - /// - /// The cancellation token. - /// - public static async Task BeginCheckConsistencyAsync(this IReplicationFabricsOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.BeginCheckConsistencyWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Deletes the site. /// @@ -597,90 +636,51 @@ public static void BeginDelete(this IReplicationFabricsOperations operations, st } /// - /// Creates an Azure Site Recoery fabric. + /// Renews certificate for the fabric. /// /// - /// The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V - /// site) + /// Renews the connection certificate for the ASR replication fabric. /// /// /// The operations group for this extension method. /// /// - /// Name of the ASR fabric. + /// fabric name to renew certs for. /// - /// - /// Fabric creation input. + /// + /// Renew certificate input. /// - public static Fabric BeginCreate(this IReplicationFabricsOperations operations, string fabricName, FabricCreationInput input) + public static Fabric BeginRenewCertificate(this IReplicationFabricsOperations operations, string fabricName, RenewCertificateInput renewCertificate) { - return operations.BeginCreateAsync(fabricName, input).GetAwaiter().GetResult(); + return operations.BeginRenewCertificateAsync(fabricName, renewCertificate).GetAwaiter().GetResult(); } /// - /// Creates an Azure Site Recoery fabric. + /// Renews certificate for the fabric. /// /// - /// The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V - /// site) + /// Renews the connection certificate for the ASR replication fabric. /// /// /// The operations group for this extension method. /// /// - /// Name of the ASR fabric. + /// fabric name to renew certs for. /// - /// - /// Fabric creation input. + /// + /// Renew certificate input. /// /// /// The cancellation token. /// - public static async Task BeginCreateAsync(this IReplicationFabricsOperations operations, string fabricName, FabricCreationInput input, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginRenewCertificateAsync(this IReplicationFabricsOperations operations, string fabricName, RenewCertificateInput renewCertificate, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginCreateWithHttpMessagesAsync(fabricName, input, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginRenewCertificateWithHttpMessagesAsync(fabricName, renewCertificate, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } - /// - /// Purges the site. - /// - /// - /// The operation to purge(force delete) an Azure Site Recovery fabric. - /// - /// - /// The operations group for this extension method. - /// - /// - /// ASR fabric to purge. - /// - public static void BeginPurge(this IReplicationFabricsOperations operations, string fabricName) - { - operations.BeginPurgeAsync(fabricName).GetAwaiter().GetResult(); - } - - /// - /// Purges the site. - /// - /// - /// The operation to purge(force delete) an Azure Site Recovery fabric. - /// - /// - /// The operations group for this extension method. - /// - /// - /// ASR fabric to purge. - /// - /// - /// The cancellation token. - /// - public static async Task BeginPurgeAsync(this IReplicationFabricsOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.BeginPurgeWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - /// /// Gets the list of ASR fabrics /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationJobsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationJobsOperations.cs index 6ea863591f79..4ef81c5d1af1 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationJobsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationJobsOperations.cs @@ -52,82 +52,13 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) public SiteRecoveryManagementClient Client { get; private set; } /// - /// Resumes the specified job. - /// - /// - /// The operation to resume an Azure Site Recovery job - /// - /// - /// Job identifier. - /// - /// - /// Resume rob comments. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> ResumeWithHttpMessagesAsync(string jobName, ResumeJobParams resumeJobParams, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginResumeWithHttpMessagesAsync(jobName, resumeJobParams, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Restarts the specified job. - /// - /// - /// The operation to restart an Azure Site Recovery job. - /// - /// - /// Job identifier. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> RestartWithHttpMessagesAsync(string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginRestartWithHttpMessagesAsync(jobName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Cancels the specified job. - /// - /// - /// The operation to cancel an Azure Site Recovery job. - /// - /// - /// Job indentifier. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CancelWithHttpMessagesAsync(string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginCancelWithHttpMessagesAsync(jobName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the job details. + /// Gets the list of jobs. /// /// - /// Get the details of an Azure Site Recovery job. + /// Gets the list of Azure Site Recovery Jobs for the vault. /// - /// - /// Job identifier + /// + /// OData parameters to apply to the operation. /// /// /// Headers that will be added to request. @@ -150,7 +81,7 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -168,10 +99,6 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (jobName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -179,18 +106,25 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("jobName", jobName); + tracingParameters.Add("odataQuery", odataQuery); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", 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}/replicationJobs/{jobName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs").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("{jobName}", System.Uri.EscapeDataString(jobName)); List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } if (Client.ApiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); @@ -288,7 +222,7 @@ internal ReplicationJobsOperations(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")) @@ -301,7 +235,7 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -321,36 +255,13 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) } /// - /// Exports the details of the Azure Site Recovery jobs of the vault. - /// - /// - /// The operation to export the details of the Azure Site Recovery jobs of the - /// vault. - /// - /// - /// job query filter. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> ExportWithHttpMessagesAsync(JobQueryParameter jobQueryParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginExportWithHttpMessagesAsync(jobQueryParameter, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the list of jobs. + /// Gets the job details. /// /// - /// Gets the list of Azure Site Recovery Jobs for the vault. + /// Get the details of an Azure Site Recovery job. /// - /// - /// OData parameters to apply to the operation. + /// + /// Job identifier /// /// /// Headers that will be added to request. @@ -373,7 +284,7 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -391,6 +302,10 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -398,25 +313,18 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("jobName", jobName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", 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}/replicationJobs").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}").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("{jobName}", System.Uri.EscapeDataString(jobName)); List _queryParameters = new List(); - if (odataQuery != null) - { - var _odataFilter = odataQuery.ToString(); - if (!string.IsNullOrEmpty(_odataFilter)) - { - _queryParameters.Add(_odataFilter); - } - } if (Client.ApiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); @@ -514,7 +422,7 @@ internal ReplicationJobsOperations(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")) @@ -527,7 +435,7 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -546,6 +454,50 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) return _result; } + /// + /// Cancels the specified job. + /// + /// + /// The operation to cancel an Azure Site Recovery job. + /// + /// + /// Job indentifier. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CancelWithHttpMessagesAsync(string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginCancelWithHttpMessagesAsync(jobName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Restarts the specified job. + /// + /// + /// The operation to restart an Azure Site Recovery job. + /// + /// + /// Job identifier. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> RestartWithHttpMessagesAsync(string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginRestartWithHttpMessagesAsync(jobName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Resumes the specified job. /// @@ -559,6 +511,51 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) /// Resume rob comments. /// /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ResumeWithHttpMessagesAsync(string jobName, ResumeJobParams resumeJobParams, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginResumeWithHttpMessagesAsync(jobName, resumeJobParams, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Exports the details of the Azure Site Recovery jobs of the vault. + /// + /// + /// The operation to export the details of the Azure Site Recovery jobs of the + /// vault. + /// + /// + /// job query filter. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ExportWithHttpMessagesAsync(JobQueryParameter jobQueryParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginExportWithHttpMessagesAsync(jobQueryParameter, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Cancels the specified job. + /// + /// + /// The operation to cancel an Azure Site Recovery job. + /// + /// + /// Job indentifier. + /// + /// /// Headers that will be added to request. /// /// @@ -579,7 +576,7 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginResumeWithHttpMessagesAsync(string jobName, ResumeJobParams resumeJobParams, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCancelWithHttpMessagesAsync(string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -601,10 +598,6 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); } - if (resumeJobParams == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resumeJobParams"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -613,13 +606,12 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("jobName", jobName); - tracingParameters.Add("resumeJobParams", resumeJobParams); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginResume", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginCancel", 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}/replicationJobs/{jobName}/resume").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/cancel").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)); @@ -667,12 +659,6 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) // Serialize Request string _requestContent = null; - if(resumeJobParams != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(resumeJobParams, 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) { @@ -961,13 +947,16 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) } /// - /// Cancels the specified job. + /// Resumes the specified job. /// /// - /// The operation to cancel an Azure Site Recovery job. + /// The operation to resume an Azure Site Recovery job /// /// - /// Job indentifier. + /// Job identifier. + /// + /// + /// Resume rob comments. /// /// /// Headers that will be added to request. @@ -990,7 +979,7 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCancelWithHttpMessagesAsync(string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginResumeWithHttpMessagesAsync(string jobName, ResumeJobParams resumeJobParams, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1012,6 +1001,10 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); } + if (resumeJobParams == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resumeJobParams"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1020,12 +1013,13 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("jobName", jobName); + tracingParameters.Add("resumeJobParams", resumeJobParams); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginCancel", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginResume", 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}/replicationJobs/{jobName}/cancel").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/resume").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)); @@ -1073,6 +1067,12 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) // Serialize Request string _requestContent = null; + if(resumeJobParams != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(resumeJobParams, 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) { diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationJobsOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationJobsOperationsExtensions.cs index 9324ef9b0c81..c1d97541c91c 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationJobsOperationsExtensions.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationJobsOperationsExtensions.cs @@ -23,86 +23,80 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public static partial class ReplicationJobsOperationsExtensions { /// - /// Resumes the specified job. + /// Gets the list of jobs. /// /// - /// The operation to resume an Azure Site Recovery job + /// Gets the list of Azure Site Recovery Jobs for the vault. /// /// /// The operations group for this extension method. /// - /// - /// Job identifier. - /// - /// - /// Resume rob comments. + /// + /// OData parameters to apply to the operation. /// - public static Job Resume(this IReplicationJobsOperations operations, string jobName, ResumeJobParams resumeJobParams) + public static IPage List(this IReplicationJobsOperations operations, ODataQuery odataQuery = default(ODataQuery)) { - return operations.ResumeAsync(jobName, resumeJobParams).GetAwaiter().GetResult(); + return operations.ListAsync(odataQuery).GetAwaiter().GetResult(); } /// - /// Resumes the specified job. + /// Gets the list of jobs. /// /// - /// The operation to resume an Azure Site Recovery job + /// Gets the list of Azure Site Recovery Jobs for the vault. /// /// /// The operations group for this extension method. /// - /// - /// Job identifier. - /// - /// - /// Resume rob comments. + /// + /// OData parameters to apply to the operation. /// /// /// The cancellation token. /// - public static async Task ResumeAsync(this IReplicationJobsOperations operations, string jobName, ResumeJobParams resumeJobParams, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IReplicationJobsOperations operations, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ResumeWithHttpMessagesAsync(jobName, resumeJobParams, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(odataQuery, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Restarts the specified job. + /// Gets the job details. /// /// - /// The operation to restart an Azure Site Recovery job. + /// Get the details of an Azure Site Recovery job. /// /// /// The operations group for this extension method. /// /// - /// Job identifier. + /// Job identifier /// - public static Job Restart(this IReplicationJobsOperations operations, string jobName) + public static Job Get(this IReplicationJobsOperations operations, string jobName) { - return operations.RestartAsync(jobName).GetAwaiter().GetResult(); + return operations.GetAsync(jobName).GetAwaiter().GetResult(); } /// - /// Restarts the specified job. + /// Gets the job details. /// /// - /// The operation to restart an Azure Site Recovery job. + /// Get the details of an Azure Site Recovery job. /// /// /// The operations group for this extension method. /// /// - /// Job identifier. + /// Job identifier /// /// /// The cancellation token. /// - public static async Task RestartAsync(this IReplicationJobsOperations operations, string jobName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IReplicationJobsOperations operations, string jobName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.RestartWithHttpMessagesAsync(jobName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(jobName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -149,168 +143,168 @@ public static Job Cancel(this IReplicationJobsOperations operations, string jobN } /// - /// Gets the job details. + /// Restarts the specified job. /// /// - /// Get the details of an Azure Site Recovery job. + /// The operation to restart an Azure Site Recovery job. /// /// /// The operations group for this extension method. /// /// - /// Job identifier + /// Job identifier. /// - public static Job Get(this IReplicationJobsOperations operations, string jobName) + public static Job Restart(this IReplicationJobsOperations operations, string jobName) { - return operations.GetAsync(jobName).GetAwaiter().GetResult(); + return operations.RestartAsync(jobName).GetAwaiter().GetResult(); } /// - /// Gets the job details. + /// Restarts the specified job. /// /// - /// Get the details of an Azure Site Recovery job. + /// The operation to restart an Azure Site Recovery job. /// /// /// The operations group for this extension method. /// /// - /// Job identifier + /// Job identifier. /// /// /// The cancellation token. /// - public static async Task GetAsync(this IReplicationJobsOperations operations, string jobName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task RestartAsync(this IReplicationJobsOperations operations, string jobName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(jobName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.RestartWithHttpMessagesAsync(jobName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Exports the details of the Azure Site Recovery jobs of the vault. + /// Resumes the specified job. /// /// - /// The operation to export the details of the Azure Site Recovery jobs of the - /// vault. + /// The operation to resume an Azure Site Recovery job /// /// /// The operations group for this extension method. /// - /// - /// job query filter. + /// + /// Job identifier. /// - public static Job Export(this IReplicationJobsOperations operations, JobQueryParameter jobQueryParameter) + /// + /// Resume rob comments. + /// + public static Job Resume(this IReplicationJobsOperations operations, string jobName, ResumeJobParams resumeJobParams) { - return operations.ExportAsync(jobQueryParameter).GetAwaiter().GetResult(); + return operations.ResumeAsync(jobName, resumeJobParams).GetAwaiter().GetResult(); } /// - /// Exports the details of the Azure Site Recovery jobs of the vault. + /// Resumes the specified job. /// /// - /// The operation to export the details of the Azure Site Recovery jobs of the - /// vault. + /// The operation to resume an Azure Site Recovery job /// /// /// The operations group for this extension method. /// - /// - /// job query filter. + /// + /// Job identifier. + /// + /// + /// Resume rob comments. /// /// /// The cancellation token. /// - public static async Task ExportAsync(this IReplicationJobsOperations operations, JobQueryParameter jobQueryParameter, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ResumeAsync(this IReplicationJobsOperations operations, string jobName, ResumeJobParams resumeJobParams, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ExportWithHttpMessagesAsync(jobQueryParameter, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ResumeWithHttpMessagesAsync(jobName, resumeJobParams, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets the list of jobs. + /// Exports the details of the Azure Site Recovery jobs of the vault. /// /// - /// Gets the list of Azure Site Recovery Jobs for the vault. + /// The operation to export the details of the Azure Site Recovery jobs of the + /// vault. /// /// /// The operations group for this extension method. /// - /// - /// OData parameters to apply to the operation. + /// + /// job query filter. /// - public static IPage List(this IReplicationJobsOperations operations, ODataQuery odataQuery = default(ODataQuery)) + public static Job Export(this IReplicationJobsOperations operations, JobQueryParameter jobQueryParameter) { - return operations.ListAsync(odataQuery).GetAwaiter().GetResult(); + return operations.ExportAsync(jobQueryParameter).GetAwaiter().GetResult(); } /// - /// Gets the list of jobs. + /// Exports the details of the Azure Site Recovery jobs of the vault. /// /// - /// Gets the list of Azure Site Recovery Jobs for the vault. + /// The operation to export the details of the Azure Site Recovery jobs of the + /// vault. /// /// /// The operations group for this extension method. /// - /// - /// OData parameters to apply to the operation. + /// + /// job query filter. /// /// /// The cancellation token. /// - public static async Task> ListAsync(this IReplicationJobsOperations operations, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ExportAsync(this IReplicationJobsOperations operations, JobQueryParameter jobQueryParameter, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(odataQuery, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ExportWithHttpMessagesAsync(jobQueryParameter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Resumes the specified job. + /// Cancels the specified job. /// /// - /// The operation to resume an Azure Site Recovery job + /// The operation to cancel an Azure Site Recovery job. /// /// /// The operations group for this extension method. /// /// - /// Job identifier. - /// - /// - /// Resume rob comments. + /// Job indentifier. /// - public static Job BeginResume(this IReplicationJobsOperations operations, string jobName, ResumeJobParams resumeJobParams) + public static Job BeginCancel(this IReplicationJobsOperations operations, string jobName) { - return operations.BeginResumeAsync(jobName, resumeJobParams).GetAwaiter().GetResult(); + return operations.BeginCancelAsync(jobName).GetAwaiter().GetResult(); } /// - /// Resumes the specified job. + /// Cancels the specified job. /// /// - /// The operation to resume an Azure Site Recovery job + /// The operation to cancel an Azure Site Recovery job. /// /// /// The operations group for this extension method. /// /// - /// Job identifier. - /// - /// - /// Resume rob comments. + /// Job indentifier. /// /// /// The cancellation token. /// - public static async Task BeginResumeAsync(this IReplicationJobsOperations operations, string jobName, ResumeJobParams resumeJobParams, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCancelAsync(this IReplicationJobsOperations operations, string jobName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginResumeWithHttpMessagesAsync(jobName, resumeJobParams, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginCancelWithHttpMessagesAsync(jobName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -357,40 +351,46 @@ public static Job BeginRestart(this IReplicationJobsOperations operations, strin } /// - /// Cancels the specified job. + /// Resumes the specified job. /// /// - /// The operation to cancel an Azure Site Recovery job. + /// The operation to resume an Azure Site Recovery job /// /// /// The operations group for this extension method. /// /// - /// Job indentifier. + /// Job identifier. /// - public static Job BeginCancel(this IReplicationJobsOperations operations, string jobName) + /// + /// Resume rob comments. + /// + public static Job BeginResume(this IReplicationJobsOperations operations, string jobName, ResumeJobParams resumeJobParams) { - return operations.BeginCancelAsync(jobName).GetAwaiter().GetResult(); + return operations.BeginResumeAsync(jobName, resumeJobParams).GetAwaiter().GetResult(); } /// - /// Cancels the specified job. + /// Resumes the specified job. /// /// - /// The operation to cancel an Azure Site Recovery job. + /// The operation to resume an Azure Site Recovery job /// /// /// The operations group for this extension method. /// /// - /// Job indentifier. + /// Job identifier. + /// + /// + /// Resume rob comments. /// /// /// The cancellation token. /// - public static async Task BeginCancelAsync(this IReplicationJobsOperations operations, string jobName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginResumeAsync(this IReplicationJobsOperations operations, string jobName, ResumeJobParams resumeJobParams, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginCancelWithHttpMessagesAsync(jobName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginResumeWithHttpMessagesAsync(jobName, resumeJobParams, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationNetworkMappingsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationNetworkMappingsOperations.cs index c6fbcd19920c..361a53cadd86 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationNetworkMappingsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationNetworkMappingsOperations.cs @@ -51,11 +51,17 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien public SiteRecoveryManagementClient Client { get; private set; } /// - /// Gets all the network mappings under a vault. + /// Gets all the network mappings under a network. /// /// - /// Lists all ASR network mappings in the vault. + /// Lists all ASR network mappings for the specified network. /// + /// + /// Primary fabric name. + /// + /// + /// Primary network name. + /// /// /// Headers that will be added to request. /// @@ -77,7 +83,7 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByReplicationNetworksWithHttpMessagesAsync(string fabricName, string networkName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -95,6 +101,14 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (fabricName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); + } + if (networkName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "networkName"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -102,15 +116,19 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("fabricName", fabricName); + tracingParameters.Add("networkName", networkName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationNetworks", 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}/replicationNetworkMappings").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings").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("{networkName}", System.Uri.EscapeDataString(networkName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -242,10 +260,10 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien } /// - /// Gets all the network mappings under a network. + /// Gets network mapping by name. /// /// - /// Lists all ASR network mappings for the specified network. + /// Gets the details of an ASR network mapping /// /// /// Primary fabric name. @@ -253,6 +271,9 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien /// /// Primary network name. /// + /// + /// Network mapping name. + /// /// /// Headers that will be added to request. /// @@ -274,7 +295,7 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien /// /// A response object containing the response body and response headers. /// - public async Task>> ListByReplicationNetworksWithHttpMessagesAsync(string fabricName, string networkName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string fabricName, string networkName, string networkMappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -300,6 +321,10 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien { throw new ValidationException(ValidationRules.CannotBeNull, "networkName"); } + if (networkMappingName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "networkMappingName"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -309,17 +334,19 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("networkName", networkName); + tracingParameters.Add("networkMappingName", networkMappingName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationNetworks", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", 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}/replicationNetworks/{networkName}/replicationNetworkMappings").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}").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("{networkName}", System.Uri.EscapeDataString(networkName)); + _url = _url.Replace("{networkMappingName}", System.Uri.EscapeDataString(networkMappingName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -418,7 +445,7 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien 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")) @@ -431,7 +458,7 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -451,10 +478,10 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien } /// - /// Gets network mapping by name. + /// Creates network mapping. /// /// - /// Gets the details of an ASR network mapping + /// The operation to create an ASR network mapping. /// /// /// Primary fabric name. @@ -465,6 +492,87 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien /// /// Network mapping name. /// + /// + /// Create network mapping input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string fabricName, string networkName, string networkMappingName, CreateNetworkMappingInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(fabricName, networkName, networkMappingName, input, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete network mapping. + /// + /// + /// The operation to delete a network mapping. + /// + /// + /// Primary fabric name. + /// + /// + /// Primary network name. + /// + /// + /// ARM Resource Name for network mapping. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string fabricName, string networkName, string networkMappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(fabricName, networkName, networkMappingName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates network mapping. + /// + /// + /// The operation to update an ASR network mapping. + /// + /// + /// Primary fabric name. + /// + /// + /// Primary network name. + /// + /// + /// Network mapping name. + /// + /// + /// Update network mapping input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string fabricName, string networkName, string networkMappingName, UpdateNetworkMappingInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(fabricName, networkName, networkMappingName, input, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets all the network mappings under a vault. + /// + /// + /// Lists all ASR network mappings in the vault. + /// /// /// Headers that will be added to request. /// @@ -486,7 +594,7 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string fabricName, string networkName, string networkMappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -504,18 +612,6 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (fabricName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); - } - if (networkName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "networkName"); - } - if (networkMappingName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "networkMappingName"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -523,21 +619,15 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("fabricName", fabricName); - tracingParameters.Add("networkName", networkName); - tracingParameters.Add("networkMappingName", networkMappingName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", 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}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationNetworkMappings").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("{networkName}", System.Uri.EscapeDataString(networkName)); - _url = _url.Replace("{networkMappingName}", System.Uri.EscapeDataString(networkMappingName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -636,7 +726,7 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien 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")) @@ -649,7 +739,7 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -668,96 +758,6 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien return _result; } - /// - /// Creates network mapping. - /// - /// - /// The operation to create an ASR network mapping. - /// - /// - /// Primary fabric name. - /// - /// - /// Primary network name. - /// - /// - /// Network mapping name. - /// - /// - /// Create network mapping input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CreateWithHttpMessagesAsync(string fabricName, string networkName, string networkMappingName, CreateNetworkMappingInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(fabricName, networkName, networkMappingName, input, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Delete network mapping. - /// - /// - /// The operation to delete a network mapping. - /// - /// - /// Primary fabric name. - /// - /// - /// Primary network name. - /// - /// - /// ARM Resource Name for network mapping. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task DeleteWithHttpMessagesAsync(string fabricName, string networkName, string networkMappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(fabricName, networkName, networkMappingName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Updates network mapping. - /// - /// - /// The operation to update an ASR network mapping. - /// - /// - /// Primary fabric name. - /// - /// - /// Primary network name. - /// - /// - /// Network mapping name. - /// - /// - /// Update network mapping input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> UpdateWithHttpMessagesAsync(string fabricName, string networkName, string networkMappingName, UpdateNetworkMappingInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(fabricName, networkName, networkMappingName, input, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - /// /// Creates network mapping. /// @@ -1420,10 +1420,10 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien } /// - /// Gets all the network mappings under a vault. + /// Gets all the network mappings under a network. /// /// - /// Lists all ASR network mappings in the vault. + /// Lists all ASR network mappings for the specified network. /// /// /// The NextLink from the previous successful call to List operation. @@ -1449,7 +1449,7 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien /// /// A response object containing the response body and response headers. /// - public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByReplicationNetworksNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -1464,7 +1464,7 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationNetworksNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -1596,10 +1596,10 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien } /// - /// Gets all the network mappings under a network. + /// Gets all the network mappings under a vault. /// /// - /// Lists all ASR network mappings for the specified network. + /// Lists all ASR network mappings in the vault. /// /// /// The NextLink from the previous successful call to List operation. @@ -1625,7 +1625,7 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien /// /// A response object containing the response body and response headers. /// - public async Task>> ListByReplicationNetworksNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -1640,7 +1640,7 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationNetworksNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationNetworkMappingsOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationNetworkMappingsOperationsExtensions.cs index d10060d859b7..26af45aa5752 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationNetworkMappingsOperationsExtensions.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationNetworkMappingsOperationsExtensions.cs @@ -21,40 +21,6 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery /// public static partial class ReplicationNetworkMappingsOperationsExtensions { - /// - /// Gets all the network mappings under a vault. - /// - /// - /// Lists all ASR network mappings in the vault. - /// - /// - /// The operations group for this extension method. - /// - public static IPage List(this IReplicationNetworkMappingsOperations operations) - { - return operations.ListAsync().GetAwaiter().GetResult(); - } - - /// - /// Gets all the network mappings under a vault. - /// - /// - /// Lists all ASR network mappings in the vault. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - public static async Task> ListAsync(this IReplicationNetworkMappingsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Gets all the network mappings under a network. /// @@ -318,6 +284,40 @@ public static NetworkMapping Update(this IReplicationNetworkMappingsOperations o } } + /// + /// Gets all the network mappings under a vault. + /// + /// + /// Lists all ASR network mappings in the vault. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this IReplicationNetworkMappingsOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Gets all the network mappings under a vault. + /// + /// + /// Lists all ASR network mappings in the vault. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IReplicationNetworkMappingsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Creates network mapping. /// @@ -484,10 +484,10 @@ public static NetworkMapping BeginUpdate(this IReplicationNetworkMappingsOperati } /// - /// Gets all the network mappings under a vault. + /// Gets all the network mappings under a network. /// /// - /// Lists all ASR network mappings in the vault. + /// Lists all ASR network mappings for the specified network. /// /// /// The operations group for this extension method. @@ -495,16 +495,16 @@ public static NetworkMapping BeginUpdate(this IReplicationNetworkMappingsOperati /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListNext(this IReplicationNetworkMappingsOperations operations, string nextPageLink) + public static IPage ListByReplicationNetworksNext(this IReplicationNetworkMappingsOperations operations, string nextPageLink) { - return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListByReplicationNetworksNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// Gets all the network mappings under a vault. + /// Gets all the network mappings under a network. /// /// - /// Lists all ASR network mappings in the vault. + /// Lists all ASR network mappings for the specified network. /// /// /// The operations group for this extension method. @@ -515,19 +515,19 @@ public static IPage ListNext(this IReplicationNetworkMappingsOpe /// /// The cancellation token. /// - public static async Task> ListNextAsync(this IReplicationNetworkMappingsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByReplicationNetworksNextAsync(this IReplicationNetworkMappingsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByReplicationNetworksNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets all the network mappings under a network. + /// Gets all the network mappings under a vault. /// /// - /// Lists all ASR network mappings for the specified network. + /// Lists all ASR network mappings in the vault. /// /// /// The operations group for this extension method. @@ -535,16 +535,16 @@ public static IPage ListNext(this IReplicationNetworkMappingsOpe /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListByReplicationNetworksNext(this IReplicationNetworkMappingsOperations operations, string nextPageLink) + public static IPage ListNext(this IReplicationNetworkMappingsOperations operations, string nextPageLink) { - return operations.ListByReplicationNetworksNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// Gets all the network mappings under a network. + /// Gets all the network mappings under a vault. /// /// - /// Lists all ASR network mappings for the specified network. + /// Lists all ASR network mappings in the vault. /// /// /// The operations group for this extension method. @@ -555,9 +555,9 @@ public static IPage ListByReplicationNetworksNext(this IReplicat /// /// The cancellation token. /// - public static async Task> ListByReplicationNetworksNextAsync(this IReplicationNetworkMappingsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListNextAsync(this IReplicationNetworkMappingsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByReplicationNetworksNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationNetworksOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationNetworksOperations.cs index 598c5ede68a5..cbc93447e1b6 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationNetworksOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationNetworksOperations.cs @@ -51,11 +51,14 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) public SiteRecoveryManagementClient Client { get; private set; } /// - /// Gets the list of networks. View-only API. + /// Gets the list of networks under a fabric. /// /// - /// Lists the networks available in a vault + /// Lists the networks available for a fabric. /// + /// + /// Fabric name + /// /// /// Headers that will be added to request. /// @@ -77,7 +80,7 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -95,6 +98,10 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (fabricName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -102,15 +109,17 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationFabrics", 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}/replicationNetworks").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks").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)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -242,13 +251,16 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) } /// - /// Gets the list of networks under a fabric. + /// Gets a network with specified server id and network name. /// /// - /// Lists the networks available for a fabric. + /// Gets the details of a network. /// /// - /// Fabric name + /// Server Id. + /// + /// + /// Primary network name. /// /// /// Headers that will be added to request. @@ -271,7 +283,7 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string fabricName, string networkName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -293,6 +305,10 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); } + if (networkName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "networkName"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -301,16 +317,18 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); + tracingParameters.Add("networkName", networkName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationFabrics", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", 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}/replicationNetworks").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}").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("{networkName}", System.Uri.EscapeDataString(networkName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -409,7 +427,7 @@ internal ReplicationNetworksOperations(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")) @@ -422,7 +440,7 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -442,17 +460,11 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) } /// - /// Gets a network with specified server id and network name. + /// Gets the list of networks. View-only API. /// /// - /// Gets the details of a network. + /// Lists the networks available in a vault /// - /// - /// Server Id. - /// - /// - /// Primary network name. - /// /// /// Headers that will be added to request. /// @@ -474,7 +486,7 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string fabricName, string networkName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -492,14 +504,6 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (fabricName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); - } - if (networkName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "networkName"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -507,19 +511,15 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("fabricName", fabricName); - tracingParameters.Add("networkName", networkName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", 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}/replicationNetworks/{networkName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationNetworks").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("{networkName}", System.Uri.EscapeDataString(networkName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -618,7 +618,7 @@ internal ReplicationNetworksOperations(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")) @@ -631,7 +631,7 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -651,10 +651,10 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) } /// - /// Gets the list of networks. View-only API. + /// Gets the list of networks under a fabric. /// /// - /// Lists the networks available in a vault + /// Lists the networks available for a fabric. /// /// /// The NextLink from the previous successful call to List operation. @@ -680,7 +680,7 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByReplicationFabricsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -695,7 +695,7 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationFabricsNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -827,10 +827,10 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) } /// - /// Gets the list of networks under a fabric. + /// Gets the list of networks. View-only API. /// /// - /// Lists the networks available for a fabric. + /// Lists the networks available in a vault /// /// /// The NextLink from the previous successful call to List operation. @@ -856,7 +856,7 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByReplicationFabricsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -871,7 +871,7 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationFabricsNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationNetworksOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationNetworksOperationsExtensions.cs index 4d8168f02f83..25706d34a3a7 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationNetworksOperationsExtensions.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationNetworksOperationsExtensions.cs @@ -21,40 +21,6 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery /// public static partial class ReplicationNetworksOperationsExtensions { - /// - /// Gets the list of networks. View-only API. - /// - /// - /// Lists the networks available in a vault - /// - /// - /// The operations group for this extension method. - /// - public static IPage List(this IReplicationNetworksOperations operations) - { - return operations.ListAsync().GetAwaiter().GetResult(); - } - - /// - /// Gets the list of networks. View-only API. - /// - /// - /// Lists the networks available in a vault - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - public static async Task> ListAsync(this IReplicationNetworksOperations operations, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Gets the list of networks under a fabric. /// @@ -150,12 +116,9 @@ public static Network Get(this IReplicationNetworksOperations operations, string /// /// The operations group for this extension method. /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static IPage ListNext(this IReplicationNetworksOperations operations, string nextPageLink) + public static IPage List(this IReplicationNetworksOperations operations) { - return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListAsync().GetAwaiter().GetResult(); } /// @@ -167,15 +130,12 @@ public static IPage ListNext(this IReplicationNetworksOperations operat /// /// The operations group for this extension method. /// - /// - /// The NextLink from the previous successful call to List operation. - /// /// /// The cancellation token. /// - public static async Task> ListNextAsync(this IReplicationNetworksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IReplicationNetworksOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -221,5 +181,45 @@ public static IPage ListByReplicationFabricsNext(this IReplicationNetwo } } + /// + /// Gets the list of networks. View-only API. + /// + /// + /// Lists the networks available in a vault + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IReplicationNetworksOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets the list of networks. View-only API. + /// + /// + /// Lists the networks available in a vault + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IReplicationNetworksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationPoliciesOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationPoliciesOperations.cs index cffc611b6ed0..7400cfb8d8b6 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationPoliciesOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationPoliciesOperations.cs @@ -51,14 +51,11 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) public SiteRecoveryManagementClient Client { get; private set; } /// - /// Gets the requested policy. + /// Gets the list of replication policies /// /// - /// Gets the details of a replication policy. + /// Lists the replication policies for a vault. /// - /// - /// Replication policy name. - /// /// /// Headers that will be added to request. /// @@ -80,7 +77,7 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string policyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -98,10 +95,6 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (policyName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "policyName"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -109,17 +102,15 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("policyName", policyName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", 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}/replicationPolicies/{policyName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies").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("{policyName}", System.Uri.EscapeDataString(policyName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -218,7 +209,7 @@ internal ReplicationPoliciesOperations(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")) @@ -231,7 +222,7 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -251,84 +242,15 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) } /// - /// Creates the policy. - /// - /// - /// The operation to create a replication policy - /// - /// - /// Replication policy name - /// - /// - /// Create policy input - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CreateWithHttpMessagesAsync(string policyName, CreatePolicyInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(policyName, input, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Delete the policy. + /// Gets the requested policy. /// /// - /// The operation to delete a replication policy. + /// Gets the details of a replication policy. /// /// /// Replication policy name. /// /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task DeleteWithHttpMessagesAsync(string policyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(policyName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Updates the protection profile. - /// - /// - /// The operation to update a replication policy. - /// - /// - /// Protection profile Id. - /// - /// - /// Update Protection Profile Input - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> UpdateWithHttpMessagesAsync(string policyName, UpdatePolicyInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(policyName, input, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the list of replication policies - /// - /// - /// Lists the replication policies for a vault. - /// - /// /// Headers that will be added to request. /// /// @@ -349,7 +271,7 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string policyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -367,6 +289,10 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (policyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policyName"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -374,15 +300,17 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("policyName", policyName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", 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}/replicationPolicies").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}").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("{policyName}", System.Uri.EscapeDataString(policyName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -481,7 +409,7 @@ internal ReplicationPoliciesOperations(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")) @@ -494,7 +422,7 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -513,6 +441,78 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) return _result; } + /// + /// Creates the policy. + /// + /// + /// The operation to create a replication policy + /// + /// + /// Replication policy name + /// + /// + /// Create policy input + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string policyName, CreatePolicyInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(policyName, input, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete the policy. + /// + /// + /// The operation to delete a replication policy. + /// + /// + /// Replication policy name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string policyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(policyName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates the policy. + /// + /// + /// The operation to update a replication policy. + /// + /// + /// Policy Id. + /// + /// + /// Update Policy Input + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string policyName, UpdatePolicyInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(policyName, input, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Creates the policy. /// @@ -907,16 +907,16 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) } /// - /// Updates the protection profile. + /// Updates the policy. /// /// /// The operation to update a replication policy. /// /// - /// Protection profile Id. + /// Policy Id. /// /// - /// Update Protection Profile Input + /// Update Policy Input /// /// /// Headers that will be added to request. diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationPoliciesOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationPoliciesOperationsExtensions.cs index d48126c29a71..9793cd20ad06 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationPoliciesOperationsExtensions.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationPoliciesOperationsExtensions.cs @@ -21,6 +21,40 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery /// public static partial class ReplicationPoliciesOperationsExtensions { + /// + /// Gets the list of replication policies + /// + /// + /// Lists the replication policies for a vault. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this IReplicationPoliciesOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Gets the list of replication policies + /// + /// + /// Lists the replication policies for a vault. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IReplicationPoliciesOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Gets the requested policy. /// @@ -145,7 +179,7 @@ public static void Delete(this IReplicationPoliciesOperations operations, string } /// - /// Updates the protection profile. + /// Updates the policy. /// /// /// The operation to update a replication policy. @@ -154,10 +188,10 @@ public static void Delete(this IReplicationPoliciesOperations operations, string /// The operations group for this extension method. /// /// - /// Protection profile Id. + /// Policy Id. /// /// - /// Update Protection Profile Input + /// Update Policy Input /// public static Policy Update(this IReplicationPoliciesOperations operations, string policyName, UpdatePolicyInput input) { @@ -165,7 +199,7 @@ public static Policy Update(this IReplicationPoliciesOperations operations, stri } /// - /// Updates the protection profile. + /// Updates the policy. /// /// /// The operation to update a replication policy. @@ -174,10 +208,10 @@ public static Policy Update(this IReplicationPoliciesOperations operations, stri /// The operations group for this extension method. /// /// - /// Protection profile Id. + /// Policy Id. /// /// - /// Update Protection Profile Input + /// Update Policy Input /// /// /// The cancellation token. @@ -190,40 +224,6 @@ public static Policy Update(this IReplicationPoliciesOperations operations, stri } } - /// - /// Gets the list of replication policies - /// - /// - /// Lists the replication policies for a vault. - /// - /// - /// The operations group for this extension method. - /// - public static IPage List(this IReplicationPoliciesOperations operations) - { - return operations.ListAsync().GetAwaiter().GetResult(); - } - - /// - /// Gets the list of replication policies - /// - /// - /// Lists the replication policies for a vault. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - public static async Task> ListAsync(this IReplicationPoliciesOperations operations, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Creates the policy. /// @@ -308,7 +308,7 @@ public static void BeginDelete(this IReplicationPoliciesOperations operations, s } /// - /// Updates the protection profile. + /// Updates the policy. /// /// /// The operation to update a replication policy. @@ -317,10 +317,10 @@ public static void BeginDelete(this IReplicationPoliciesOperations operations, s /// The operations group for this extension method. /// /// - /// Protection profile Id. + /// Policy Id. /// /// - /// Update Protection Profile Input + /// Update Policy Input /// public static Policy BeginUpdate(this IReplicationPoliciesOperations operations, string policyName, UpdatePolicyInput input) { @@ -328,7 +328,7 @@ public static Policy BeginUpdate(this IReplicationPoliciesOperations operations, } /// - /// Updates the protection profile. + /// Updates the policy. /// /// /// The operation to update a replication policy. @@ -337,10 +337,10 @@ public static Policy BeginUpdate(this IReplicationPoliciesOperations operations, /// The operations group for this extension method. /// /// - /// Protection profile Id. + /// Policy Id. /// /// - /// Update Protection Profile Input + /// Update Policy Input /// /// /// The cancellation token. diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectableItemsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectableItemsOperations.cs index 25d2390ef421..57ed21eb2292 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectableItemsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectableItemsOperations.cs @@ -51,10 +51,10 @@ internal ReplicationProtectableItemsOperations(SiteRecoveryManagementClient clie public SiteRecoveryManagementClient Client { get; private set; } /// - /// Gets the details of a protectable item. + /// Gets the list of protectable items. /// /// - /// The operation to get the details of a protectable item. + /// Lists the protectable items in a protection container. /// /// /// Fabric name. @@ -62,9 +62,6 @@ internal ReplicationProtectableItemsOperations(SiteRecoveryManagementClient clie /// /// Protection container name. /// - /// - /// Protectable item name. - /// /// /// Headers that will be added to request. /// @@ -86,7 +83,7 @@ internal ReplicationProtectableItemsOperations(SiteRecoveryManagementClient clie /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string fabricName, string protectionContainerName, string protectableItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -112,10 +109,6 @@ internal ReplicationProtectableItemsOperations(SiteRecoveryManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "protectionContainerName"); } - if (protectableItemName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "protectableItemName"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -125,19 +118,17 @@ internal ReplicationProtectableItemsOperations(SiteRecoveryManagementClient clie Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); - tracingParameters.Add("protectableItemName", protectableItemName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationProtectionContainers", 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}/replicationProtectableItems/{protectableItemName}").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}/replicationProtectableItems").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("{protectableItemName}", System.Uri.EscapeDataString(protectableItemName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -236,7 +227,7 @@ internal ReplicationProtectableItemsOperations(SiteRecoveryManagementClient clie 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")) @@ -249,7 +240,7 @@ internal ReplicationProtectableItemsOperations(SiteRecoveryManagementClient clie _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -269,10 +260,10 @@ internal ReplicationProtectableItemsOperations(SiteRecoveryManagementClient clie } /// - /// Gets the list of protectable items. + /// Gets the details of a protectable item. /// /// - /// Lists the protectable items in a protection container. + /// The operation to get the details of a protectable item. /// /// /// Fabric name. @@ -280,6 +271,9 @@ internal ReplicationProtectableItemsOperations(SiteRecoveryManagementClient clie /// /// Protection container name. /// + /// + /// Protectable item name. + /// /// /// Headers that will be added to request. /// @@ -301,7 +295,7 @@ internal ReplicationProtectableItemsOperations(SiteRecoveryManagementClient clie /// /// A response object containing the response body and response headers. /// - public async Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string fabricName, string protectionContainerName, string protectableItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -327,6 +321,10 @@ internal ReplicationProtectableItemsOperations(SiteRecoveryManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "protectionContainerName"); } + if (protectableItemName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "protectableItemName"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -336,17 +334,19 @@ internal ReplicationProtectableItemsOperations(SiteRecoveryManagementClient clie Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); + tracingParameters.Add("protectableItemName", protectableItemName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationProtectionContainers", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", 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}/replicationProtectableItems").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}/replicationProtectableItems/{protectableItemName}").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("{protectableItemName}", System.Uri.EscapeDataString(protectableItemName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -445,7 +445,7 @@ internal ReplicationProtectableItemsOperations(SiteRecoveryManagementClient clie 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")) @@ -458,7 +458,7 @@ internal ReplicationProtectableItemsOperations(SiteRecoveryManagementClient clie _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectableItemsOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectableItemsOperationsExtensions.cs index e8a2209adf41..d4e306ac941e 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectableItemsOperationsExtensions.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectableItemsOperationsExtensions.cs @@ -22,10 +22,10 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public static partial class ReplicationProtectableItemsOperationsExtensions { /// - /// Gets the details of a protectable item. + /// Gets the list of protectable items. /// /// - /// The operation to get the details of a protectable item. + /// Lists the protectable items in a protection container. /// /// /// The operations group for this extension method. @@ -36,19 +36,16 @@ public static partial class ReplicationProtectableItemsOperationsExtensions /// /// Protection container name. /// - /// - /// Protectable item name. - /// - public static ProtectableItem Get(this IReplicationProtectableItemsOperations operations, string fabricName, string protectionContainerName, string protectableItemName) + public static IPage ListByReplicationProtectionContainers(this IReplicationProtectableItemsOperations operations, string fabricName, string protectionContainerName) { - return operations.GetAsync(fabricName, protectionContainerName, protectableItemName).GetAwaiter().GetResult(); + return operations.ListByReplicationProtectionContainersAsync(fabricName, protectionContainerName).GetAwaiter().GetResult(); } /// - /// Gets the details of a protectable item. + /// Gets the list of protectable items. /// /// - /// The operation to get the details of a protectable item. + /// Lists the protectable items in a protection container. /// /// /// The operations group for this extension method. @@ -59,25 +56,22 @@ public static ProtectableItem Get(this IReplicationProtectableItemsOperations op /// /// Protection container name. /// - /// - /// Protectable item name. - /// /// /// The cancellation token. /// - public static async Task GetAsync(this IReplicationProtectableItemsOperations operations, string fabricName, string protectionContainerName, string protectableItemName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByReplicationProtectionContainersAsync(this IReplicationProtectableItemsOperations operations, string fabricName, string protectionContainerName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(fabricName, protectionContainerName, protectableItemName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByReplicationProtectionContainersWithHttpMessagesAsync(fabricName, protectionContainerName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets the list of protectable items. + /// Gets the details of a protectable item. /// /// - /// Lists the protectable items in a protection container. + /// The operation to get the details of a protectable item. /// /// /// The operations group for this extension method. @@ -88,16 +82,19 @@ public static ProtectableItem Get(this IReplicationProtectableItemsOperations op /// /// Protection container name. /// - public static IPage ListByReplicationProtectionContainers(this IReplicationProtectableItemsOperations operations, string fabricName, string protectionContainerName) + /// + /// Protectable item name. + /// + public static ProtectableItem Get(this IReplicationProtectableItemsOperations operations, string fabricName, string protectionContainerName, string protectableItemName) { - return operations.ListByReplicationProtectionContainersAsync(fabricName, protectionContainerName).GetAwaiter().GetResult(); + return operations.GetAsync(fabricName, protectionContainerName, protectableItemName).GetAwaiter().GetResult(); } /// - /// Gets the list of protectable items. + /// Gets the details of a protectable item. /// /// - /// Lists the protectable items in a protection container. + /// The operation to get the details of a protectable item. /// /// /// The operations group for this extension method. @@ -108,12 +105,15 @@ public static IPage ListByReplicationProtectionContainers(this /// /// Protection container name. /// + /// + /// Protectable item name. + /// /// /// The cancellation token. /// - public static async Task> ListByReplicationProtectionContainersAsync(this IReplicationProtectableItemsOperations operations, string fabricName, string protectionContainerName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IReplicationProtectableItemsOperations operations, string fabricName, string protectionContainerName, string protectableItemName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByReplicationProtectionContainersWithHttpMessagesAsync(fabricName, protectionContainerName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(fabricName, protectionContainerName, protectableItemName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectedItemsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectedItemsOperations.cs index 3341badfc2d1..5f9aa7685cee 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectedItemsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectedItemsOperations.cs @@ -262,17 +262,19 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Gets the list of replication protected items. + /// Gets the details of a Replication protected item. /// /// - /// Gets the list of ASR replication protected items in the vault. + /// Gets the details of an ASR replication protected item. /// - /// - /// OData parameters to apply to the operation. + /// + /// Fabric unique name. /// - /// - /// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or - /// null + /// + /// Protection container name. + /// + /// + /// Replication protected item name. /// /// /// Headers that will be added to request. @@ -295,7 +297,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -313,6 +315,18 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { 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; @@ -320,34 +334,26 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("odataQuery", odataQuery); - tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("fabricName", fabricName); + tracingParameters.Add("protectionContainerName", protectionContainerName); + tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", 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}/replicationProtectedItems").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}").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 (odataQuery != null) - { - var _odataFilter = odataQuery.ToString(); - if (!string.IsNullOrEmpty(_odataFilter)) - { - _queryParameters.Add(_odataFilter); - } - } if (Client.ApiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } - if (skipToken != null) - { - _queryParameters.Add(string.Format("skipToken={0}", System.Uri.EscapeDataString(skipToken))); - } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -441,7 +447,7 @@ 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")) @@ -454,7 +460,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -473,6 +479,101 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client return _result; } + /// + /// Enables protection. + /// + /// + /// The operation to create an ASR replication protected item (Enable + /// replication). + /// + /// + /// Name of the fabric. + /// + /// + /// Protection container name. + /// + /// + /// A name for the replication protected item. + /// + /// + /// Enable Protection Input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, EnableProtectionInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, input, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Purges protection. + /// + /// + /// The operation to delete or purge a replication protected item. This + /// operation will force delete the replication protected item. Use the remove + /// operation on replication protected item to perform a clean disable + /// replication for the item. + /// + /// + /// Fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Replication protected item name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task PurgeWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginPurgeWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates protection. + /// + /// + /// The operation to update the recovery settings of an ASR replication + /// protected item. + /// + /// + /// Fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Replication protected item name. + /// + /// + /// Update protection input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Change or apply recovery point. /// @@ -506,20 +607,19 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Resynchronize or repair replication. + /// Execute commit failover /// /// - /// The operation to start resynchronize/repair replication for a replication - /// protected item requiring resynchronization. + /// Operation to commit the failover of the replication protected item. /// /// - /// The name of the fabric. + /// Unique fabric name. /// /// - /// The name of the container. + /// Protection container name. /// /// - /// The name of the replication protected item. + /// Replication protected item name. /// /// /// The headers that will be added to request. @@ -527,31 +627,30 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// The cancellation token. /// - public async Task> RepairReplicationWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> FailoverCommitWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginRepairReplicationWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginFailoverCommitWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Update the mobility service on a protected item. + /// Execute planned failover /// /// - /// The operation to update(push update) the installed mobility service - /// software on a replication protected item to the latest available version. + /// Operation to initiate a planned failover of the replication protected item. /// /// - /// The name of the fabric containing the protected item. + /// Unique fabric name. /// /// - /// The name of the container containing the protected item. + /// Protection container name. /// - /// - /// The name of the protected item on which the agent is to be updated. + /// + /// Replication protected item name. /// - /// - /// Request to update the mobility service on the protected item. + /// + /// Disable protection input. /// /// /// The headers that will be added to request. @@ -559,22 +658,22 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// The cancellation token. /// - public async Task> UpdateMobilityServiceWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicationProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> PlannedFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, PlannedFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginUpdateMobilityServiceWithHttpMessagesAsync(fabricName, protectionContainerName, replicationProtectedItemName, updateMobilityServiceRequest, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginPlannedFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Execute Reverse Replication\Reprotect + /// Disables protection. /// /// - /// Operation to reprotect or reverse replicate a failed over 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. @@ -582,7 +681,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// Replication protected item name. /// - /// + /// /// Disable protection input. /// /// @@ -591,27 +690,28 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// The cancellation token. /// - public async Task> ReprotectWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginReprotectWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, rrInput, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Execute commit failover + /// Resynchronize or repair replication. /// /// - /// Operation to commit the failover of the replication protected item. + /// The operation to start resynchronize/repair replication for a replication + /// protected item requiring resynchronization. /// /// - /// Unique fabric name. + /// The name of the fabric. /// /// - /// Protection container name. + /// The name of the container. /// /// - /// Replication protected item name. + /// The name of the replication protected item. /// /// /// The headers that will be added to request. @@ -619,18 +719,19 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// The cancellation token. /// - public async Task> FailoverCommitWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> RepairReplicationWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginFailoverCommitWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginRepairReplicationWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Execute test failover cleanup. + /// Execute Reverse Replication\Reprotect /// /// - /// Operation to clean up the test failover of a replication protected item. + /// Operation to reprotect or reverse replicate a failed over replication + /// protected item. /// /// /// Unique fabric name. @@ -641,8 +742,8 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// Replication protected item name. /// - /// - /// Test failover cleanup input. + /// + /// Disable protection input. /// /// /// The headers that will be added to request. @@ -650,10 +751,10 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// The cancellation token. /// - public async Task> TestFailoverCleanupWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ReprotectWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginTestFailoverCleanupWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginReprotectWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, rrInput, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -689,10 +790,10 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Execute unplanned failover + /// Execute test failover cleanup. /// /// - /// Operation to initiate a failover of the replication protected item. + /// Operation to clean up the test failover of a replication protected item. /// /// /// Unique fabric name. @@ -703,8 +804,8 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// Replication protected item name. /// - /// - /// Disable protection input. + /// + /// Test failover cleanup input. /// /// /// The headers that will be added to request. @@ -712,18 +813,18 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// The cancellation token. /// - public async Task> UnplannedFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> TestFailoverCleanupWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginUnplannedFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginTestFailoverCleanupWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Execute planned failover + /// Execute unplanned failover /// /// - /// Operation to initiate a planned failover of the replication protected item. + /// Operation to initiate a failover of the replication protected item. /// /// /// Unique fabric name. @@ -743,31 +844,31 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// The cancellation token. /// - public async Task> PlannedFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, PlannedFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UnplannedFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginPlannedFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginUnplannedFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Disables protection. + /// Update the mobility service on a protected item. /// /// - /// The operation to disable replication on a replication protected item. This - /// will also remove the item. + /// The operation to update(push update) the installed mobility service + /// software on a replication protected item to the latest available version. /// /// - /// Fabric name. + /// The name of the fabric containing the protected item. /// /// - /// Protection container name. + /// The name of the container containing the protected item. /// - /// - /// Replication protected item name. + /// + /// The name of the protected item on which the agent is to be updated. /// - /// - /// Disable protection input. + /// + /// Request to update the mobility service on the protected item. /// /// /// The headers that will be added to request. @@ -775,27 +876,25 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// The cancellation token. /// - public async Task DeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateMobilityServiceWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicationProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginUpdateMobilityServiceWithHttpMessagesAsync(fabricName, protectionContainerName, replicationProtectedItemName, updateMobilityServiceRequest, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Gets the details of a Replication protected item. + /// Gets the list of replication protected items. /// /// - /// Gets the details of an ASR replication protected item. + /// Gets the list of ASR replication protected items in the vault. /// - /// - /// Fabric unique name. - /// - /// - /// Protection container name. + /// + /// OData parameters to apply to the operation. /// - /// - /// Replication protected item name. + /// + /// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or + /// null /// /// /// Headers that will be added to request. @@ -818,7 +917,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -836,18 +935,6 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { 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; @@ -855,26 +942,34 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("fabricName", fabricName); - tracingParameters.Add("protectionContainerName", protectionContainerName); - tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("skipToken", skipToken); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", 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}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectedItems").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 (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } if (Client.ApiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } + if (skipToken != null) + { + _queryParameters.Add(string.Format("skipToken={0}", System.Uri.EscapeDataString(skipToken))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -968,7 +1063,7 @@ 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")) @@ -981,7 +1076,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -990,129 +1085,34 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { _httpResponse.Dispose(); } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Enables protection. - /// - /// - /// The operation to create an ASR replication protected item (Enable - /// replication). - /// - /// - /// Name of the fabric. - /// - /// - /// Protection container name. - /// - /// - /// A name for the replication protected item. - /// - /// - /// Enable Protection Input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, EnableProtectionInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, input, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Purges protection. - /// - /// - /// The operation to delete or purge a replication protected item. This - /// operation will force delete the replication protected item. Use the remove - /// operation on replication protected item to perform a clean disable - /// replication for the item. - /// - /// - /// Fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task PurgeWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginPurgeWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Updates protection. - /// - /// - /// The operation to update the recovery settings of an ASR replication - /// protected item. - /// - /// - /// Fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. - /// - /// - /// Update protection input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> UpdateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; } /// - /// Change or apply recovery point. + /// Enables protection. /// /// - /// The operation to change the recovery point of a failed over replication - /// protected item. + /// The operation to create an ASR replication protected item (Enable + /// replication). /// /// - /// The ARM fabric name. + /// Name of the fabric. /// /// - /// The protection container name. + /// Protection container name. /// /// - /// The replicated protected item's name. + /// A name for the replication protected item. /// - /// - /// The ApplyRecoveryPointInput. + /// + /// Enable Protection Input. /// /// /// Headers that will be added to request. @@ -1135,7 +1135,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> BeginCreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, EnableProtectionInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1165,9 +1165,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); } - if (applyRecoveryPointInput == null) + if (input == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "applyRecoveryPointInput"); + throw new ValidationException(ValidationRules.CannotBeNull, "input"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -1179,13 +1179,13 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); - tracingParameters.Add("applyRecoveryPointInput", applyRecoveryPointInput); + tracingParameters.Add("input", input); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginApplyRecoveryPoint", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", 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}").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)); @@ -1204,7 +1204,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1235,9 +1235,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Serialize Request string _requestContent = null; - if(applyRecoveryPointInput != null) + if(input != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(applyRecoveryPointInput, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(input, 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"); } @@ -1329,20 +1329,22 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Resynchronize or repair replication. + /// Purges protection. /// /// - /// The operation to start resynchronize/repair replication for a replication - /// protected item requiring resynchronization. + /// The operation to delete or purge a replication protected item. This + /// operation will force delete the replication protected item. Use the remove + /// operation on replication protected item to perform a clean disable + /// replication for the item. /// /// - /// The name of the fabric. + /// Fabric name. /// /// - /// The name of the container. + /// Protection container name. /// /// - /// The name of the replication protected item. + /// Replication protected item name. /// /// /// Headers that will be added to request. @@ -1353,9 +1355,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 /// @@ -1365,7 +1364,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// 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)) + public async Task BeginPurgeWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1406,11 +1405,11 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginRepairReplication", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginPurge", 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(); + 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}").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)); @@ -1429,7 +1428,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1480,7 +1479,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 @@ -1515,31 +1514,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); @@ -1548,23 +1529,23 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Update the mobility service on a protected item. + /// Updates protection. /// /// - /// The operation to update(push update) the installed mobility service - /// software on a replication protected item to the latest available version. + /// The operation to update the recovery settings of an ASR replication + /// protected item. /// /// - /// The name of the fabric containing the protected item. + /// Fabric name. /// /// - /// The name of the container containing the protected item. + /// Protection container name. /// - /// - /// The name of the protected item on which the agent is to be updated. + /// + /// Replication protected item name. /// - /// - /// Request to update the mobility service on the protected item. + /// + /// Update protection input. /// /// /// Headers that will be added to request. @@ -1587,7 +1568,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// A response object containing the response body and response headers. /// - public async Task> BeginUpdateMobilityServiceWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicationProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginUpdateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1613,13 +1594,13 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "protectionContainerName"); } - if (replicationProtectedItemName == null) + if (replicatedProtectedItemName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "replicationProtectedItemName"); + throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); } - if (updateMobilityServiceRequest == null) + if (updateProtectionInput == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "updateMobilityServiceRequest"); + throw new ValidationException(ValidationRules.CannotBeNull, "updateProtectionInput"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -1630,20 +1611,20 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); - tracingParameters.Add("replicationProtectedItemName", replicationProtectedItemName); - tracingParameters.Add("updateMobilityServiceRequest", updateMobilityServiceRequest); + tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); + tracingParameters.Add("updateProtectionInput", updateProtectionInput); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginUpdateMobilityService", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", 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/{replicationProtectedItemName}/updateMobilityService").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}").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("{replicationProtectedItemName}", System.Uri.EscapeDataString(replicationProtectedItemName)); + _url = _url.Replace("{replicatedProtectedItemName}", System.Uri.EscapeDataString(replicatedProtectedItemName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -1656,7 +1637,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("PATCH"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1687,9 +1668,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Serialize Request string _requestContent = null; - if(updateMobilityServiceRequest != null) + if(updateProtectionInput != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(updateMobilityServiceRequest, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(updateProtectionInput, 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"); } @@ -1781,23 +1762,23 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Execute Reverse Replication\Reprotect + /// Change or apply recovery point. /// /// - /// Operation to reprotect or reverse replicate a failed over replication + /// 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. /// - /// - /// Disable protection input. + /// + /// The ApplyRecoveryPointInput. /// /// /// Headers that will be added to request. @@ -1820,7 +1801,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// A response object containing the response body and response headers. /// - public async Task> BeginReprotectWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput, 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) { @@ -1850,9 +1831,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); } - if (rrInput == null) + if (applyRecoveryPointInput == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "rrInput"); + throw new ValidationException(ValidationRules.CannotBeNull, "applyRecoveryPointInput"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -1864,13 +1845,13 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); - tracingParameters.Add("rrInput", rrInput); + tracingParameters.Add("applyRecoveryPointInput", applyRecoveryPointInput); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginReprotect", 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}/reProtect").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)); @@ -1920,9 +1901,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Serialize Request string _requestContent = null; - if(rrInput != null) + if(applyRecoveryPointInput != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(rrInput, 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"); } @@ -2232,10 +2213,10 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Execute test failover cleanup. + /// Execute planned failover /// /// - /// Operation to clean up the test failover of a replication protected item. + /// Operation to initiate a planned failover of the replication protected item. /// /// /// Unique fabric name. @@ -2246,8 +2227,8 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// Replication protected item name. /// - /// - /// Test failover cleanup input. + /// + /// Disable protection input. /// /// /// Headers that will be added to request. @@ -2270,7 +2251,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// A response object containing the response body and response headers. /// - public async Task> BeginTestFailoverCleanupWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, 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) { @@ -2300,13 +2281,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); } - if (cleanupInput == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "cleanupInput"); - } - if (cleanupInput != null) + if (failoverInput == null) { - cleanupInput.Validate(); + throw new ValidationException(ValidationRules.CannotBeNull, "failoverInput"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -2318,13 +2295,13 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); - tracingParameters.Add("cleanupInput", cleanupInput); + tracingParameters.Add("failoverInput", failoverInput); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginTestFailoverCleanup", 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}/testFailoverCleanup").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)); @@ -2374,9 +2351,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Serialize Request string _requestContent = null; - if(cleanupInput != null) + if(failoverInput != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(cleanupInput, Client.SerializationSettings); + _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"); } @@ -2468,13 +2445,14 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Execute test failover + /// Disables protection. /// /// - /// Operation to perform a test 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. @@ -2482,8 +2460,8 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// Replication protected item name. /// - /// - /// Test failover input. + /// + /// Disable protection input. /// /// /// Headers that will be added to request. @@ -2494,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 /// @@ -2506,7 +2481,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// A response object containing the response body and response headers. /// - public async Task> BeginTestFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput 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) { @@ -2536,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; @@ -2550,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, "BeginTestFailover", 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}/testFailover").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)); @@ -2606,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"); } @@ -2632,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 @@ -2657,40 +2632,22 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } 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); + 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(); } if (_shouldTrace) { @@ -2700,22 +2657,20 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Execute unplanned failover + /// Resynchronize or repair replication. /// /// - /// Operation to initiate a failover of the replication protected item. + /// The operation to start resynchronize/repair replication for a replication + /// protected item requiring resynchronization. /// /// - /// Unique 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. @@ -2738,7 +2693,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// A response object containing the response body and response headers. /// - public async Task> BeginUnplannedFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverInput failoverInput, 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) { @@ -2768,10 +2723,6 @@ 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; @@ -2782,13 +2733,12 @@ 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, "BeginUnplannedFailover", 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}/unplannedFailover").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)); @@ -2838,12 +2788,6 @@ 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) { @@ -2932,10 +2876,11 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Execute planned failover + /// Execute Reverse Replication\Reprotect /// /// - /// Operation to initiate a planned failover of the replication protected item. + /// Operation to reprotect or reverse replicate a failed over replication + /// protected item. /// /// /// Unique fabric name. @@ -2946,7 +2891,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// Replication protected item name. /// - /// + /// /// Disable protection input. /// /// @@ -2970,7 +2915,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> BeginReprotectWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -3000,9 +2945,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); } - if (failoverInput == null) + if (rrInput == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "failoverInput"); + throw new ValidationException(ValidationRules.CannotBeNull, "rrInput"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -3014,13 +2959,13 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); - tracingParameters.Add("failoverInput", failoverInput); + tracingParameters.Add("rrInput", rrInput); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginPlannedFailover", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginReprotect", 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}/reProtect").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)); @@ -3070,9 +3015,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Serialize Request string _requestContent = null; - if(failoverInput != null) + if(rrInput != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(failoverInput, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(rrInput, 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"); } @@ -3164,14 +3109,13 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Disables protection. + /// Execute test failover /// /// - /// The operation to disable replication on a replication protected item. This - /// will also remove the item. + /// Operation to perform a test failover of the replication protected item. /// /// - /// Fabric name. + /// Unique fabric name. /// /// /// Protection container name. @@ -3179,8 +3123,8 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// Replication protected item name. /// - /// - /// Disable protection input. + /// + /// Test failover input. /// /// /// Headers that will be added to request. @@ -3191,6 +3135,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 /// @@ -3200,7 +3147,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> BeginTestFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -3230,9 +3177,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); } - if (disableProtectionInput == null) + if (failoverInput == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "disableProtectionInput"); + throw new ValidationException(ValidationRules.CannotBeNull, "failoverInput"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -3244,13 +3191,13 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); - tracingParameters.Add("disableProtectionInput", disableProtectionInput); + tracingParameters.Add("failoverInput", failoverInput); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginTestFailover", 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}/testFailover").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)); @@ -3300,9 +3247,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Serialize Request string _requestContent = null; - if(disableProtectionInput != null) + if(failoverInput != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(disableProtectionInput, Client.SerializationSettings); + _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"); } @@ -3326,7 +3273,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 @@ -3361,13 +3308,31 @@ 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); @@ -3376,23 +3341,22 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Enables protection. + /// Execute test failover cleanup. /// /// - /// The operation to create an ASR replication protected item (Enable - /// replication). + /// Operation to clean up the test failover of a replication protected item. /// /// - /// Name of the fabric. + /// Unique fabric name. /// /// /// Protection container name. /// /// - /// A name for the replication protected item. + /// Replication protected item name. /// - /// - /// Enable Protection Input. + /// + /// Test failover cleanup input. /// /// /// Headers that will be added to request. @@ -3415,7 +3379,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, EnableProtectionInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginTestFailoverCleanupWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -3445,9 +3409,13 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); } - if (input == null) + if (cleanupInput == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "input"); + throw new ValidationException(ValidationRules.CannotBeNull, "cleanupInput"); + } + if (cleanupInput != null) + { + cleanupInput.Validate(); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -3459,13 +3427,13 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); - tracingParameters.Add("input", input); + tracingParameters.Add("cleanupInput", cleanupInput); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginTestFailoverCleanup", 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}").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}/testFailoverCleanup").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)); @@ -3484,7 +3452,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -3515,9 +3483,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Serialize Request string _requestContent = null; - if(input != null) + if(cleanupInput != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(input, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(cleanupInput, 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"); } @@ -3609,16 +3577,13 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Purges protection. + /// Execute unplanned failover /// /// - /// The operation to delete or purge a replication protected item. This - /// operation will force delete the replication protected item. Use the remove - /// operation on replication protected item to perform a clean disable - /// replication for the item. + /// Operation to initiate a failover of the replication protected item. /// /// - /// Fabric name. + /// Unique fabric name. /// /// /// Protection container name. @@ -3626,6 +3591,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// Replication protected item name. /// + /// + /// Disable protection input. + /// /// /// Headers that will be added to request. /// @@ -3635,6 +3603,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 /// @@ -3644,7 +3615,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// A response object containing the response body and response headers. /// - public async Task BeginPurgeWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginUnplannedFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -3674,6 +3645,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; @@ -3684,12 +3659,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, "BeginPurge", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginUnplannedFailover", 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}").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}/unplannedFailover").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)); @@ -3708,7 +3684,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -3739,6 +3715,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) { @@ -3759,7 +3741,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 @@ -3794,13 +3776,31 @@ 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); @@ -3809,23 +3809,23 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Updates protection. + /// Update the mobility service on a protected item. /// /// - /// The operation to update the recovery settings of an ASR replication - /// protected item. + /// The operation to update(push update) the installed mobility service + /// software on a replication protected item to the latest available version. /// /// - /// Fabric name. + /// The name of the fabric containing the protected item. /// /// - /// Protection container name. + /// The name of the container containing the protected item. /// - /// - /// Replication protected item name. + /// + /// The name of the protected item on which the agent is to be updated. /// - /// - /// Update protection input. + /// + /// Request to update the mobility service on the protected item. /// /// /// Headers that will be added to request. @@ -3848,7 +3848,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// A response object containing the response body and response headers. /// - public async Task> BeginUpdateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginUpdateMobilityServiceWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicationProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -3874,13 +3874,13 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "protectionContainerName"); } - if (replicatedProtectedItemName == null) + if (replicationProtectedItemName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); + throw new ValidationException(ValidationRules.CannotBeNull, "replicationProtectedItemName"); } - if (updateProtectionInput == null) + if (updateMobilityServiceRequest == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "updateProtectionInput"); + throw new ValidationException(ValidationRules.CannotBeNull, "updateMobilityServiceRequest"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -3891,20 +3891,20 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); - tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); - tracingParameters.Add("updateProtectionInput", updateProtectionInput); + tracingParameters.Add("replicationProtectedItemName", replicationProtectedItemName); + tracingParameters.Add("updateMobilityServiceRequest", updateMobilityServiceRequest); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdateMobilityService", 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}").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/{replicationProtectedItemName}/updateMobilityService").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)); + _url = _url.Replace("{replicationProtectedItemName}", System.Uri.EscapeDataString(replicationProtectedItemName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -3917,7 +3917,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -3948,9 +3948,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Serialize Request string _requestContent = null; - if(updateProtectionInput != null) + if(updateMobilityServiceRequest != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(updateProtectionInput, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(updateMobilityServiceRequest, 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"); } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectedItemsOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectedItemsOperationsExtensions.cs index d6e5a914f24d..f1e689e693c3 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectedItemsOperationsExtensions.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectedItemsOperationsExtensions.cs @@ -71,282 +71,287 @@ public static IPage ListByReplicationProtectionContain } /// - /// Gets the list of replication protected items. + /// Gets the details of a Replication protected item. /// /// - /// Gets the list of ASR replication protected items in the vault. + /// Gets the details of an ASR replication protected item. /// /// /// The operations group for this extension method. /// - /// - /// OData parameters to apply to the operation. + /// + /// Fabric unique name. /// - /// - /// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or - /// null + /// + /// Protection container name. /// - public static IPage List(this IReplicationProtectedItemsOperations operations, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string)) + /// + /// Replication protected item name. + /// + public static ReplicationProtectedItem Get(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName) { - return operations.ListAsync(odataQuery, skipToken).GetAwaiter().GetResult(); + return operations.GetAsync(fabricName, protectionContainerName, replicatedProtectedItemName).GetAwaiter().GetResult(); } /// - /// Gets the list of replication protected items. + /// Gets the details of a Replication protected item. /// /// - /// Gets the list of ASR replication protected items in the vault. + /// Gets the details of an ASR replication protected item. /// /// /// The operations group for this extension method. /// - /// - /// OData parameters to apply to the operation. + /// + /// Fabric unique name. /// - /// - /// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or - /// null + /// + /// Protection container name. + /// + /// + /// Replication protected item name. /// /// /// The cancellation token. /// - public static async Task> ListAsync(this IReplicationProtectedItemsOperations operations, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(odataQuery, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Change or apply recovery point. + /// Enables protection. /// /// - /// The operation to change the recovery point of a failed over replication - /// protected item. + /// The operation to create an ASR replication protected item (Enable + /// replication). /// /// /// The operations group for this extension method. /// /// - /// The ARM fabric name. + /// Name of the fabric. /// /// - /// The protection container name. + /// Protection container name. /// /// - /// The replicated protected item's name. + /// A name for the replication protected item. /// - /// - /// The ApplyRecoveryPointInput. + /// + /// Enable Protection Input. /// - public static ReplicationProtectedItem ApplyRecoveryPoint(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput) + public static ReplicationProtectedItem Create(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, EnableProtectionInput input) { - return operations.ApplyRecoveryPointAsync(fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput).GetAwaiter().GetResult(); + return operations.CreateAsync(fabricName, protectionContainerName, replicatedProtectedItemName, input).GetAwaiter().GetResult(); } /// - /// Change or apply recovery point. + /// Enables protection. /// /// - /// The operation to change the recovery point of a failed over replication - /// protected item. + /// The operation to create an ASR replication protected item (Enable + /// replication). /// /// /// The operations group for this extension method. /// /// - /// The ARM fabric name. + /// Name of the fabric. /// /// - /// The protection container name. + /// Protection container name. /// /// - /// The replicated protected item's name. + /// A name for the replication protected item. /// - /// - /// The ApplyRecoveryPointInput. + /// + /// Enable Protection Input. /// /// /// The cancellation token. /// - public static async Task ApplyRecoveryPointAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, EnableProtectionInput input, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ApplyRecoveryPointWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, input, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Resynchronize or repair replication. + /// Purges protection. /// /// - /// The operation to start resynchronize/repair replication for a replication - /// protected item requiring resynchronization. + /// The operation to delete or purge a replication protected item. This + /// operation will force delete the replication protected item. Use the remove + /// operation on replication protected item to perform a clean disable + /// replication for the item. /// /// /// The operations group for this extension method. /// /// - /// The name of the fabric. + /// Fabric name. /// /// - /// The name of the container. + /// Protection container name. /// /// - /// The name of the replication protected item. + /// Replication protected item name. /// - public static ReplicationProtectedItem RepairReplication(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName) + public static void Purge(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName) { - return operations.RepairReplicationAsync(fabricName, protectionContainerName, replicatedProtectedItemName).GetAwaiter().GetResult(); + operations.PurgeAsync(fabricName, protectionContainerName, replicatedProtectedItemName).GetAwaiter().GetResult(); } /// - /// Resynchronize or repair replication. + /// Purges protection. /// /// - /// The operation to start resynchronize/repair replication for a replication - /// protected item requiring resynchronization. + /// The operation to delete or purge a replication protected item. This + /// operation will force delete the replication protected item. Use the remove + /// operation on replication protected item to perform a clean disable + /// replication for the item. /// /// /// The operations group for this extension method. /// /// - /// The name of the fabric. + /// Fabric name. /// /// - /// The name of the container. + /// Protection container name. /// /// - /// The name of the replication protected item. + /// Replication protected item name. /// /// /// The cancellation token. /// - public static async Task RepairReplicationAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task PurgeAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.RepairReplicationWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.PurgeWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Update the mobility service on a protected item. + /// Updates protection. /// /// - /// The operation to update(push update) the installed mobility service - /// software on a replication protected item to the latest available version. + /// The operation to update the recovery settings of an ASR replication + /// protected item. /// /// /// The operations group for this extension method. /// /// - /// The name of the fabric containing the protected item. + /// Fabric name. /// /// - /// The name of the container containing the protected item. + /// Protection container name. /// - /// - /// The name of the protected item on which the agent is to be updated. + /// + /// Replication protected item name. /// - /// - /// Request to update the mobility service on the protected item. + /// + /// Update protection input. /// - public static ReplicationProtectedItem UpdateMobilityService(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicationProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest) + public static ReplicationProtectedItem Update(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput) { - return operations.UpdateMobilityServiceAsync(fabricName, protectionContainerName, replicationProtectedItemName, updateMobilityServiceRequest).GetAwaiter().GetResult(); + return operations.UpdateAsync(fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput).GetAwaiter().GetResult(); } /// - /// Update the mobility service on a protected item. + /// Updates protection. /// /// - /// The operation to update(push update) the installed mobility service - /// software on a replication protected item to the latest available version. + /// The operation to update the recovery settings of an ASR replication + /// protected item. /// /// /// The operations group for this extension method. /// /// - /// The name of the fabric containing the protected item. + /// Fabric name. /// /// - /// The name of the container containing the protected item. + /// Protection container name. /// - /// - /// The name of the protected item on which the agent is to be updated. + /// + /// Replication protected item name. /// - /// - /// Request to update the mobility service on the protected item. + /// + /// Update protection input. /// /// /// The cancellation token. /// - public static async Task UpdateMobilityServiceAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicationProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateMobilityServiceWithHttpMessagesAsync(fabricName, protectionContainerName, replicationProtectedItemName, updateMobilityServiceRequest, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Execute Reverse Replication\Reprotect + /// Change or apply recovery point. /// /// - /// Operation to reprotect or reverse replicate a failed over replication + /// The operation to change the recovery point of a failed over replication /// protected item. /// /// /// The operations group for this extension method. /// /// - /// Unique fabric name. + /// The ARM fabric name. /// /// - /// Protection container name. + /// The protection container name. /// /// - /// Replication protected item name. + /// The replicated protected item's name. /// - /// - /// Disable protection input. + /// + /// The ApplyRecoveryPointInput. /// - public static ReplicationProtectedItem Reprotect(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput) + public static ReplicationProtectedItem ApplyRecoveryPoint(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput) { - return operations.ReprotectAsync(fabricName, protectionContainerName, replicatedProtectedItemName, rrInput).GetAwaiter().GetResult(); + return operations.ApplyRecoveryPointAsync(fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput).GetAwaiter().GetResult(); } /// - /// Execute Reverse Replication\Reprotect + /// Change or apply recovery point. /// /// - /// Operation to reprotect or reverse replicate a failed over replication + /// The operation to change the recovery point of a failed over replication /// protected item. /// /// /// The operations group for this extension method. /// /// - /// Unique fabric name. + /// The ARM fabric name. /// /// - /// Protection container name. + /// The protection container name. /// /// - /// Replication protected item name. + /// The replicated protected item's name. /// - /// - /// Disable protection input. + /// + /// The ApplyRecoveryPointInput. /// /// /// The cancellation token. /// - public static async Task ReprotectAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ApplyRecoveryPointAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ReprotectWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, rrInput, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ApplyRecoveryPointWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -405,10 +410,10 @@ public static ReplicationProtectedItem FailoverCommit(this IReplicationProtected } /// - /// Execute test failover cleanup. + /// Execute planned failover /// /// - /// Operation to clean up the test failover of a replication protected item. + /// Operation to initiate a planned failover of the replication protected item. /// /// /// The operations group for this extension method. @@ -422,19 +427,19 @@ public static ReplicationProtectedItem FailoverCommit(this IReplicationProtected /// /// Replication protected item name. /// - /// - /// Test failover cleanup input. + /// + /// Disable protection input. /// - public static ReplicationProtectedItem TestFailoverCleanup(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput) + public static ReplicationProtectedItem PlannedFailover(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, PlannedFailoverInput failoverInput) { - return operations.TestFailoverCleanupAsync(fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput).GetAwaiter().GetResult(); + return operations.PlannedFailoverAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput).GetAwaiter().GetResult(); } /// - /// Execute test failover cleanup. + /// Execute planned failover /// /// - /// Operation to clean up the test failover of a replication protected item. + /// Operation to initiate a planned failover of the replication protected item. /// /// /// The operations group for this extension method. @@ -448,31 +453,32 @@ public static ReplicationProtectedItem TestFailoverCleanup(this IReplicationProt /// /// Replication protected item name. /// - /// - /// Test failover cleanup input. + /// + /// Disable protection input. /// /// /// The cancellation token. /// - public static async Task TestFailoverCleanupAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task PlannedFailoverAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, PlannedFailoverInput failoverInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.TestFailoverCleanupWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.PlannedFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Execute test failover + /// Disables protection. /// /// - /// Operation to perform a test failover of the replication protected item. + /// The operation to disable replication on a replication protected item. This + /// will also remove the item. /// /// /// The operations group for this extension method. /// /// - /// Unique fabric name. + /// Fabric name. /// /// /// Protection container name. @@ -480,25 +486,26 @@ public static ReplicationProtectedItem TestFailoverCleanup(this IReplicationProt /// /// Replication protected item name. /// - /// - /// Test failover input. + /// + /// Disable protection input. /// - public static ReplicationProtectedItem TestFailover(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput) + public static void Delete(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, DisableProtectionInput disableProtectionInput) { - return operations.TestFailoverAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput).GetAwaiter().GetResult(); + operations.DeleteAsync(fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput).GetAwaiter().GetResult(); } /// - /// Execute test failover + /// Disables protection. /// /// - /// Operation to perform a test failover of the replication protected item. + /// The operation to disable replication on a replication protected item. This + /// will also remove the item. /// /// /// The operations group for this extension method. /// /// - /// Unique fabric name. + /// Fabric name. /// /// /// Protection container name. @@ -506,83 +513,77 @@ public static ReplicationProtectedItem TestFailover(this IReplicationProtectedIt /// /// Replication protected item name. /// - /// - /// Test failover input. + /// + /// Disable protection input. /// /// /// The cancellation token. /// - public static async Task TestFailoverAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.TestFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.DeleteWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Execute unplanned failover + /// Resynchronize or repair replication. /// /// - /// Operation to initiate a failover of the replication protected item. + /// The operation to start resynchronize/repair replication for a replication + /// protected item requiring resynchronization. /// /// /// The operations group for this extension method. /// /// - /// Unique 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. /// - public static ReplicationProtectedItem UnplannedFailover(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverInput failoverInput) + public static ReplicationProtectedItem RepairReplication(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName) { - return operations.UnplannedFailoverAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput).GetAwaiter().GetResult(); + return operations.RepairReplicationAsync(fabricName, protectionContainerName, replicatedProtectedItemName).GetAwaiter().GetResult(); } /// - /// Execute unplanned failover + /// Resynchronize or repair replication. /// /// - /// Operation to initiate a failover of the replication protected item. + /// The operation to start resynchronize/repair replication for a replication + /// protected item requiring resynchronization. /// /// /// The operations group for this extension method. /// /// - /// Unique 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. /// /// /// The cancellation token. /// - public static async Task UnplannedFailoverAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverInput failoverInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task RepairReplicationAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UnplannedFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.RepairReplicationWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Execute planned failover + /// Execute Reverse Replication\Reprotect /// /// - /// Operation to initiate a planned failover of the replication protected item. + /// Operation to reprotect or reverse replicate a failed over replication + /// protected item. /// /// /// The operations group for this extension method. @@ -596,19 +597,20 @@ public static ReplicationProtectedItem UnplannedFailover(this IReplicationProtec /// /// Replication protected item name. /// - /// + /// /// Disable protection input. /// - public static ReplicationProtectedItem PlannedFailover(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, PlannedFailoverInput failoverInput) + public static ReplicationProtectedItem Reprotect(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput) { - return operations.PlannedFailoverAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput).GetAwaiter().GetResult(); + return operations.ReprotectAsync(fabricName, protectionContainerName, replicatedProtectedItemName, rrInput).GetAwaiter().GetResult(); } /// - /// Execute planned failover + /// Execute Reverse Replication\Reprotect /// /// - /// Operation to initiate a planned failover of the replication protected item. + /// Operation to reprotect or reverse replicate a failed over replication + /// protected item. /// /// /// The operations group for this extension method. @@ -622,32 +624,31 @@ public static ReplicationProtectedItem PlannedFailover(this IReplicationProtecte /// /// Replication protected item name. /// - /// + /// /// Disable protection input. /// /// /// The cancellation token. /// - public static async Task PlannedFailoverAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, PlannedFailoverInput failoverInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ReprotectAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.PlannedFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ReprotectWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, rrInput, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Disables protection. + /// Execute test failover /// /// - /// The operation to disable replication on a replication protected item. This - /// will also remove the item. + /// Operation to perform a test failover of the replication protected item. /// /// /// The operations group for this extension method. /// /// - /// Fabric name. + /// Unique fabric name. /// /// /// Protection container name. @@ -655,26 +656,25 @@ public static ReplicationProtectedItem PlannedFailover(this IReplicationProtecte /// /// Replication protected item name. /// - /// - /// Disable protection input. + /// + /// Test failover input. /// - public static void Delete(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, DisableProtectionInput disableProtectionInput) + public static ReplicationProtectedItem TestFailover(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput) { - operations.DeleteAsync(fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput).GetAwaiter().GetResult(); + return operations.TestFailoverAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput).GetAwaiter().GetResult(); } /// - /// Disables protection. + /// Execute test failover /// /// - /// The operation to disable replication on a replication protected item. This - /// will also remove the item. + /// Operation to perform a test failover of the replication protected item. /// /// /// The operations group for this extension method. /// /// - /// Fabric name. + /// Unique fabric name. /// /// /// Protection container name. @@ -682,28 +682,31 @@ public static void Delete(this IReplicationProtectedItemsOperations operations, /// /// Replication protected item name. /// - /// - /// Disable protection input. + /// + /// Test failover input. /// /// /// The cancellation token. /// - public static async Task DeleteAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task TestFailoverAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.TestFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// - /// Gets the details of a Replication protected item. + /// Execute test failover cleanup. /// /// - /// Gets the details of an ASR replication protected item. + /// Operation to clean up the test failover of a replication protected item. /// /// /// The operations group for this extension method. /// /// - /// Fabric unique name. + /// Unique fabric name. /// /// /// Protection container name. @@ -711,22 +714,25 @@ public static void Delete(this IReplicationProtectedItemsOperations operations, /// /// Replication protected item name. /// - public static ReplicationProtectedItem Get(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName) + /// + /// Test failover cleanup input. + /// + public static ReplicationProtectedItem TestFailoverCleanup(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput) { - return operations.GetAsync(fabricName, protectionContainerName, replicatedProtectedItemName).GetAwaiter().GetResult(); + return operations.TestFailoverCleanupAsync(fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput).GetAwaiter().GetResult(); } /// - /// Gets the details of a Replication protected item. + /// Execute test failover cleanup. /// /// - /// Gets the details of an ASR replication protected item. + /// Operation to clean up the test failover of a replication protected item. /// /// /// The operations group for this extension method. /// /// - /// Fabric unique name. + /// Unique fabric name. /// /// /// Protection container name. @@ -734,421 +740,416 @@ public static ReplicationProtectedItem Get(this IReplicationProtectedItemsOperat /// /// Replication protected item name. /// + /// + /// Test failover cleanup input. + /// /// /// The cancellation token. /// - public static async Task GetAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task TestFailoverCleanupAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.TestFailoverCleanupWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Enables protection. + /// Execute unplanned failover /// /// - /// The operation to create an ASR replication protected item (Enable - /// replication). + /// Operation to initiate a failover of the replication protected item. /// /// /// The operations group for this extension method. /// /// - /// Name of the fabric. + /// Unique fabric name. /// /// /// Protection container name. /// /// - /// A name for the replication protected item. + /// Replication protected item name. /// - /// - /// Enable Protection Input. + /// + /// Disable protection input. /// - public static ReplicationProtectedItem Create(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, EnableProtectionInput input) + public static ReplicationProtectedItem UnplannedFailover(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverInput failoverInput) { - return operations.CreateAsync(fabricName, protectionContainerName, replicatedProtectedItemName, input).GetAwaiter().GetResult(); + return operations.UnplannedFailoverAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput).GetAwaiter().GetResult(); } /// - /// Enables protection. + /// Execute unplanned failover /// /// - /// The operation to create an ASR replication protected item (Enable - /// replication). + /// Operation to initiate a failover of the replication protected item. /// /// /// The operations group for this extension method. /// /// - /// Name of the fabric. + /// Unique fabric name. /// /// /// Protection container name. /// /// - /// A name for the replication protected item. + /// Replication protected item name. /// - /// - /// Enable Protection Input. + /// + /// Disable protection input. /// /// /// The cancellation token. /// - public static async Task CreateAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, EnableProtectionInput input, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UnplannedFailoverAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverInput failoverInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, input, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UnplannedFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Purges protection. + /// Update the mobility service on a protected item. /// /// - /// The operation to delete or purge a replication protected item. This - /// operation will force delete the replication protected item. Use the remove - /// operation on replication protected item to perform a clean disable - /// replication for the item. + /// The operation to update(push update) the installed mobility service + /// software on a replication protected item to the latest available version. /// /// /// The operations group for this extension method. /// /// - /// Fabric name. + /// The name of the fabric containing the protected item. /// /// - /// Protection container name. + /// The name of the container containing the protected item. /// - /// - /// Replication protected item name. + /// + /// The name of the protected item on which the agent is to be updated. /// - public static void Purge(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName) + /// + /// Request to update the mobility service on the protected item. + /// + public static ReplicationProtectedItem UpdateMobilityService(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicationProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest) { - operations.PurgeAsync(fabricName, protectionContainerName, replicatedProtectedItemName).GetAwaiter().GetResult(); + return operations.UpdateMobilityServiceAsync(fabricName, protectionContainerName, replicationProtectedItemName, updateMobilityServiceRequest).GetAwaiter().GetResult(); } /// - /// Purges protection. + /// Update the mobility service on a protected item. /// /// - /// The operation to delete or purge a replication protected item. This - /// operation will force delete the replication protected item. Use the remove - /// operation on replication protected item to perform a clean disable - /// replication for the item. + /// The operation to update(push update) the installed mobility service + /// software on a replication protected item to the latest available version. /// /// /// The operations group for this extension method. /// /// - /// Fabric name. + /// The name of the fabric containing the protected item. /// /// - /// Protection container name. + /// The name of the container containing the protected item. /// - /// - /// Replication protected item name. + /// + /// The name of the protected item on which the agent is to be updated. + /// + /// + /// Request to update the mobility service on the protected item. /// /// /// The cancellation token. /// - public static async Task PurgeAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateMobilityServiceAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicationProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.PurgeWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.UpdateMobilityServiceWithHttpMessagesAsync(fabricName, protectionContainerName, replicationProtectedItemName, updateMobilityServiceRequest, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// - /// Updates protection. + /// Gets the list of replication protected items. /// /// - /// The operation to update the recovery settings of an ASR replication - /// protected item. + /// Gets the list of ASR replication protected items in the vault. /// /// /// The operations group for this extension method. /// - /// - /// Fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. + /// + /// OData parameters to apply to the operation. /// - /// - /// Update protection input. + /// + /// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or + /// null /// - public static ReplicationProtectedItem Update(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput) + public static IPage List(this IReplicationProtectedItemsOperations operations, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string)) { - return operations.UpdateAsync(fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput).GetAwaiter().GetResult(); + return operations.ListAsync(odataQuery, skipToken).GetAwaiter().GetResult(); } /// - /// Updates protection. + /// Gets the list of replication protected items. /// /// - /// The operation to update the recovery settings of an ASR replication - /// protected item. + /// Gets the list of ASR replication protected items in the vault. /// /// /// The operations group for this extension method. /// - /// - /// Fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Replication protected item name. + /// + /// OData parameters to apply to the operation. /// - /// - /// Update protection input. + /// + /// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or + /// null /// /// /// The cancellation token. /// - public static async Task UpdateAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IReplicationProtectedItemsOperations operations, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(odataQuery, skipToken, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Change or apply recovery point. + /// Enables protection. /// /// - /// The operation to change the recovery point of a failed over replication - /// protected item. + /// The operation to create an ASR replication protected item (Enable + /// replication). /// /// /// The operations group for this extension method. /// /// - /// The ARM fabric name. + /// Name of the fabric. /// /// - /// The protection container name. + /// Protection container name. /// /// - /// The replicated protected item's name. + /// A name for the replication protected item. /// - /// - /// The ApplyRecoveryPointInput. + /// + /// Enable Protection Input. /// - public static ReplicationProtectedItem BeginApplyRecoveryPoint(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput) + public static ReplicationProtectedItem BeginCreate(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, EnableProtectionInput input) { - return operations.BeginApplyRecoveryPointAsync(fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput).GetAwaiter().GetResult(); + return operations.BeginCreateAsync(fabricName, protectionContainerName, replicatedProtectedItemName, input).GetAwaiter().GetResult(); } /// - /// Change or apply recovery point. + /// Enables protection. /// /// - /// The operation to change the recovery point of a failed over replication - /// protected item. + /// The operation to create an ASR replication protected item (Enable + /// replication). /// /// /// The operations group for this extension method. /// /// - /// The ARM fabric name. + /// Name of the fabric. /// /// - /// The protection container name. + /// Protection container name. /// /// - /// The replicated protected item's name. + /// A name for the replication protected item. /// - /// - /// The ApplyRecoveryPointInput. + /// + /// Enable Protection Input. /// /// /// The cancellation token. /// - public static async Task BeginApplyRecoveryPointAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCreateAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, EnableProtectionInput input, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginApplyRecoveryPointWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, input, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Resynchronize or repair replication. + /// Purges protection. /// /// - /// The operation to start resynchronize/repair replication for a replication - /// protected item requiring resynchronization. + /// The operation to delete or purge a replication protected item. This + /// operation will force delete the replication protected item. Use the remove + /// operation on replication protected item to perform a clean disable + /// replication for the item. /// /// /// The operations group for this extension method. /// /// - /// The name of the fabric. + /// Fabric name. /// /// - /// The name of the container. + /// Protection container name. /// /// - /// The name of the replication protected item. + /// Replication protected item name. /// - public static ReplicationProtectedItem BeginRepairReplication(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName) + public static void BeginPurge(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName) { - return operations.BeginRepairReplicationAsync(fabricName, protectionContainerName, replicatedProtectedItemName).GetAwaiter().GetResult(); + operations.BeginPurgeAsync(fabricName, protectionContainerName, replicatedProtectedItemName).GetAwaiter().GetResult(); } /// - /// Resynchronize or repair replication. + /// Purges protection. /// /// - /// The operation to start resynchronize/repair replication for a replication - /// protected item requiring resynchronization. + /// The operation to delete or purge a replication protected item. This + /// operation will force delete the replication protected item. Use the remove + /// operation on replication protected item to perform a clean disable + /// replication for the item. /// /// /// The operations group for this extension method. /// /// - /// The name of the fabric. + /// Fabric name. /// /// - /// The name of the container. + /// Protection container name. /// /// - /// The name of the replication protected item. + /// Replication protected item name. /// /// /// The cancellation token. /// - public static async Task BeginRepairReplicationAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginPurgeAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginRepairReplicationWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.BeginPurgeWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Update the mobility service on a protected item. + /// Updates protection. /// /// - /// The operation to update(push update) the installed mobility service - /// software on a replication protected item to the latest available version. + /// The operation to update the recovery settings of an ASR replication + /// protected item. /// /// /// The operations group for this extension method. /// /// - /// The name of the fabric containing the protected item. + /// Fabric name. /// /// - /// The name of the container containing the protected item. + /// Protection container name. /// - /// - /// The name of the protected item on which the agent is to be updated. + /// + /// Replication protected item name. /// - /// - /// Request to update the mobility service on the protected item. + /// + /// Update protection input. /// - public static ReplicationProtectedItem BeginUpdateMobilityService(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicationProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest) + public static ReplicationProtectedItem BeginUpdate(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput) { - return operations.BeginUpdateMobilityServiceAsync(fabricName, protectionContainerName, replicationProtectedItemName, updateMobilityServiceRequest).GetAwaiter().GetResult(); + return operations.BeginUpdateAsync(fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput).GetAwaiter().GetResult(); } /// - /// Update the mobility service on a protected item. + /// Updates protection. /// /// - /// The operation to update(push update) the installed mobility service - /// software on a replication protected item to the latest available version. + /// The operation to update the recovery settings of an ASR replication + /// protected item. /// /// /// The operations group for this extension method. /// /// - /// The name of the fabric containing the protected item. + /// Fabric name. /// /// - /// The name of the container containing the protected item. + /// Protection container name. /// - /// - /// The name of the protected item on which the agent is to be updated. + /// + /// Replication protected item name. /// - /// - /// Request to update the mobility service on the protected item. + /// + /// Update protection input. /// /// /// The cancellation token. /// - public static async Task BeginUpdateMobilityServiceAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicationProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginUpdateAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginUpdateMobilityServiceWithHttpMessagesAsync(fabricName, protectionContainerName, replicationProtectedItemName, updateMobilityServiceRequest, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Execute Reverse Replication\Reprotect + /// Change or apply recovery point. /// /// - /// Operation to reprotect or reverse replicate a failed over replication + /// The operation to change the recovery point of a failed over replication /// protected item. /// /// /// The operations group for this extension method. /// /// - /// Unique fabric name. + /// The ARM fabric name. /// /// - /// Protection container name. + /// The protection container name. /// /// - /// Replication protected item name. + /// The replicated protected item's name. /// - /// - /// Disable protection input. + /// + /// The ApplyRecoveryPointInput. /// - public static ReplicationProtectedItem BeginReprotect(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput) + public static ReplicationProtectedItem BeginApplyRecoveryPoint(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput) { - return operations.BeginReprotectAsync(fabricName, protectionContainerName, replicatedProtectedItemName, rrInput).GetAwaiter().GetResult(); + return operations.BeginApplyRecoveryPointAsync(fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput).GetAwaiter().GetResult(); } /// - /// Execute Reverse Replication\Reprotect + /// Change or apply recovery point. /// /// - /// Operation to reprotect or reverse replicate a failed over replication + /// The operation to change the recovery point of a failed over replication /// protected item. /// /// /// The operations group for this extension method. /// /// - /// Unique fabric name. + /// The ARM fabric name. /// /// - /// Protection container name. + /// The protection container name. /// /// - /// Replication protected item name. + /// The replicated protected item's name. /// - /// - /// Disable protection input. + /// + /// The ApplyRecoveryPointInput. /// /// /// The cancellation token. /// - public static async Task BeginReprotectAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginApplyRecoveryPointAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginReprotectWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, rrInput, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginApplyRecoveryPointWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1207,10 +1208,10 @@ public static ReplicationProtectedItem BeginFailoverCommit(this IReplicationProt } /// - /// Execute test failover cleanup. + /// Execute planned failover /// /// - /// Operation to clean up the test failover of a replication protected item. + /// Operation to initiate a planned failover of the replication protected item. /// /// /// The operations group for this extension method. @@ -1224,19 +1225,19 @@ public static ReplicationProtectedItem BeginFailoverCommit(this IReplicationProt /// /// Replication protected item name. /// - /// - /// Test failover cleanup input. - /// - public static ReplicationProtectedItem BeginTestFailoverCleanup(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput) + /// + /// Disable protection input. + /// + public static ReplicationProtectedItem BeginPlannedFailover(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, PlannedFailoverInput failoverInput) { - return operations.BeginTestFailoverCleanupAsync(fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput).GetAwaiter().GetResult(); + return operations.BeginPlannedFailoverAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput).GetAwaiter().GetResult(); } /// - /// Execute test failover cleanup. + /// Execute planned failover /// /// - /// Operation to clean up the test failover of a replication protected item. + /// Operation to initiate a planned failover of the replication protected item. /// /// /// The operations group for this extension method. @@ -1250,31 +1251,32 @@ public static ReplicationProtectedItem BeginTestFailoverCleanup(this IReplicatio /// /// Replication protected item name. /// - /// - /// Test failover cleanup input. + /// + /// Disable protection input. /// /// /// The cancellation token. /// - public static async Task BeginTestFailoverCleanupAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginPlannedFailoverAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, PlannedFailoverInput failoverInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginTestFailoverCleanupWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginPlannedFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Execute test failover + /// Disables protection. /// /// - /// Operation to perform a test failover of the replication protected item. + /// The operation to disable replication on a replication protected item. This + /// will also remove the item. /// /// /// The operations group for this extension method. /// /// - /// Unique fabric name. + /// Fabric name. /// /// /// Protection container name. @@ -1282,25 +1284,26 @@ public static ReplicationProtectedItem BeginTestFailoverCleanup(this IReplicatio /// /// Replication protected item name. /// - /// - /// Test failover input. + /// + /// Disable protection input. /// - public static ReplicationProtectedItem BeginTestFailover(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput) + public static void BeginDelete(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, DisableProtectionInput disableProtectionInput) { - return operations.BeginTestFailoverAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput).GetAwaiter().GetResult(); + operations.BeginDeleteAsync(fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput).GetAwaiter().GetResult(); } /// - /// Execute test failover + /// Disables protection. /// /// - /// Operation to perform a test failover of the replication protected item. + /// The operation to disable replication on a replication protected item. This + /// will also remove the item. /// /// /// The operations group for this extension method. /// /// - /// Unique fabric name. + /// Fabric name. /// /// /// Protection container name. @@ -1308,83 +1311,77 @@ public static ReplicationProtectedItem BeginTestFailover(this IReplicationProtec /// /// Replication protected item name. /// - /// - /// Test failover input. + /// + /// Disable protection input. /// /// /// The cancellation token. /// - public static async Task BeginTestFailoverAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginDeleteAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginTestFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.BeginDeleteWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Execute unplanned failover + /// Resynchronize or repair replication. /// /// - /// Operation to initiate a failover of the replication protected item. + /// The operation to start resynchronize/repair replication for a replication + /// protected item requiring resynchronization. /// /// /// The operations group for this extension method. /// /// - /// Unique 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. /// - public static ReplicationProtectedItem BeginUnplannedFailover(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverInput failoverInput) + public static ReplicationProtectedItem BeginRepairReplication(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName) { - return operations.BeginUnplannedFailoverAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput).GetAwaiter().GetResult(); + return operations.BeginRepairReplicationAsync(fabricName, protectionContainerName, replicatedProtectedItemName).GetAwaiter().GetResult(); } /// - /// Execute unplanned failover + /// Resynchronize or repair replication. /// /// - /// Operation to initiate a failover of the replication protected item. + /// The operation to start resynchronize/repair replication for a replication + /// protected item requiring resynchronization. /// /// /// The operations group for this extension method. /// /// - /// Unique 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. /// /// /// The cancellation token. /// - public static async Task BeginUnplannedFailoverAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverInput failoverInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginRepairReplicationAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginUnplannedFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginRepairReplicationWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Execute planned failover + /// Execute Reverse Replication\Reprotect /// /// - /// Operation to initiate a planned failover of the replication protected item. + /// Operation to reprotect or reverse replicate a failed over replication + /// protected item. /// /// /// The operations group for this extension method. @@ -1398,19 +1395,20 @@ public static ReplicationProtectedItem BeginUnplannedFailover(this IReplicationP /// /// Replication protected item name. /// - /// + /// /// Disable protection input. /// - public static ReplicationProtectedItem BeginPlannedFailover(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, PlannedFailoverInput failoverInput) + public static ReplicationProtectedItem BeginReprotect(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput) { - return operations.BeginPlannedFailoverAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput).GetAwaiter().GetResult(); + return operations.BeginReprotectAsync(fabricName, protectionContainerName, replicatedProtectedItemName, rrInput).GetAwaiter().GetResult(); } /// - /// Execute planned failover + /// Execute Reverse Replication\Reprotect /// /// - /// Operation to initiate a planned failover of the replication protected item. + /// Operation to reprotect or reverse replicate a failed over replication + /// protected item. /// /// /// The operations group for this extension method. @@ -1424,32 +1422,31 @@ public static ReplicationProtectedItem BeginPlannedFailover(this IReplicationPro /// /// Replication protected item name. /// - /// + /// /// Disable protection input. /// /// /// The cancellation token. /// - public static async Task BeginPlannedFailoverAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, PlannedFailoverInput failoverInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginReprotectAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginPlannedFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginReprotectWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, rrInput, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Disables protection. + /// Execute test failover /// /// - /// The operation to disable replication on a replication protected item. This - /// will also remove the item. + /// Operation to perform a test failover of the replication protected item. /// /// /// The operations group for this extension method. /// /// - /// Fabric name. + /// Unique fabric name. /// /// /// Protection container name. @@ -1457,26 +1454,25 @@ public static ReplicationProtectedItem BeginPlannedFailover(this IReplicationPro /// /// Replication protected item name. /// - /// - /// Disable protection input. + /// + /// Test failover input. /// - public static void BeginDelete(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, DisableProtectionInput disableProtectionInput) + public static ReplicationProtectedItem BeginTestFailover(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput) { - operations.BeginDeleteAsync(fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput).GetAwaiter().GetResult(); + return operations.BeginTestFailoverAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput).GetAwaiter().GetResult(); } /// - /// Disables protection. + /// Execute test failover /// /// - /// The operation to disable replication on a replication protected item. This - /// will also remove the item. + /// Operation to perform a test failover of the replication protected item. /// /// /// The operations group for this extension method. /// /// - /// Fabric name. + /// Unique fabric name. /// /// /// Protection container name. @@ -1484,91 +1480,89 @@ public static void BeginDelete(this IReplicationProtectedItemsOperations operati /// /// Replication protected item name. /// - /// - /// Disable protection input. + /// + /// Test failover input. /// /// /// The cancellation token. /// - public static async Task BeginDeleteAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, DisableProtectionInput disableProtectionInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginTestFailoverAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginDeleteWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.BeginTestFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// - /// Enables protection. + /// Execute test failover cleanup. /// /// - /// The operation to create an ASR replication protected item (Enable - /// replication). + /// Operation to clean up the test failover of a replication protected item. /// /// /// The operations group for this extension method. /// /// - /// Name of the fabric. + /// Unique fabric name. /// /// /// Protection container name. /// /// - /// A name for the replication protected item. + /// Replication protected item name. /// - /// - /// Enable Protection Input. + /// + /// Test failover cleanup input. /// - public static ReplicationProtectedItem BeginCreate(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, EnableProtectionInput input) + public static ReplicationProtectedItem BeginTestFailoverCleanup(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput) { - return operations.BeginCreateAsync(fabricName, protectionContainerName, replicatedProtectedItemName, input).GetAwaiter().GetResult(); + return operations.BeginTestFailoverCleanupAsync(fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput).GetAwaiter().GetResult(); } /// - /// Enables protection. + /// Execute test failover cleanup. /// /// - /// The operation to create an ASR replication protected item (Enable - /// replication). + /// Operation to clean up the test failover of a replication protected item. /// /// /// The operations group for this extension method. /// /// - /// Name of the fabric. + /// Unique fabric name. /// /// /// Protection container name. /// /// - /// A name for the replication protected item. + /// Replication protected item name. /// - /// - /// Enable Protection Input. + /// + /// Test failover cleanup input. /// /// /// The cancellation token. /// - public static async Task BeginCreateAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, EnableProtectionInput input, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginTestFailoverCleanupAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginCreateWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, input, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginTestFailoverCleanupWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Purges protection. + /// Execute unplanned failover /// /// - /// The operation to delete or purge a replication protected item. This - /// operation will force delete the replication protected item. Use the remove - /// operation on replication protected item to perform a clean disable - /// replication for the item. + /// Operation to initiate a failover of the replication protected item. /// /// /// The operations group for this extension method. /// /// - /// Fabric name. + /// Unique fabric name. /// /// /// Protection container name. @@ -1576,25 +1570,25 @@ public static ReplicationProtectedItem BeginCreate(this IReplicationProtectedIte /// /// Replication protected item name. /// - public static void BeginPurge(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName) + /// + /// Disable protection input. + /// + public static ReplicationProtectedItem BeginUnplannedFailover(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverInput failoverInput) { - operations.BeginPurgeAsync(fabricName, protectionContainerName, replicatedProtectedItemName).GetAwaiter().GetResult(); + return operations.BeginUnplannedFailoverAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput).GetAwaiter().GetResult(); } /// - /// Purges protection. + /// Execute unplanned failover /// /// - /// The operation to delete or purge a replication protected item. This - /// operation will force delete the replication protected item. Use the remove - /// operation on replication protected item to perform a clean disable - /// replication for the item. + /// Operation to initiate a failover of the replication protected item. /// /// /// The operations group for this extension method. /// /// - /// Fabric name. + /// Unique fabric name. /// /// /// Protection container name. @@ -1602,69 +1596,75 @@ public static void BeginPurge(this IReplicationProtectedItemsOperations operatio /// /// Replication protected item name. /// + /// + /// Disable protection input. + /// /// /// The cancellation token. /// - public static async Task BeginPurgeAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginUnplannedFailoverAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverInput failoverInput, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginPurgeWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.BeginUnplannedFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// - /// Updates protection. + /// Update the mobility service on a protected item. /// /// - /// The operation to update the recovery settings of an ASR replication - /// protected item. + /// The operation to update(push update) the installed mobility service + /// software on a replication protected item to the latest available version. /// /// /// The operations group for this extension method. /// /// - /// Fabric name. + /// The name of the fabric containing the protected item. /// /// - /// Protection container name. + /// The name of the container containing the protected item. /// - /// - /// Replication protected item name. + /// + /// The name of the protected item on which the agent is to be updated. /// - /// - /// Update protection input. + /// + /// Request to update the mobility service on the protected item. /// - public static ReplicationProtectedItem BeginUpdate(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput) + public static ReplicationProtectedItem BeginUpdateMobilityService(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicationProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest) { - return operations.BeginUpdateAsync(fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput).GetAwaiter().GetResult(); + return operations.BeginUpdateMobilityServiceAsync(fabricName, protectionContainerName, replicationProtectedItemName, updateMobilityServiceRequest).GetAwaiter().GetResult(); } /// - /// Updates protection. + /// Update the mobility service on a protected item. /// /// - /// The operation to update the recovery settings of an ASR replication - /// protected item. + /// The operation to update(push update) the installed mobility service + /// software on a replication protected item to the latest available version. /// /// /// The operations group for this extension method. /// /// - /// Fabric name. + /// The name of the fabric containing the protected item. /// /// - /// Protection container name. + /// The name of the container containing the protected item. /// - /// - /// Replication protected item name. + /// + /// The name of the protected item on which the agent is to be updated. /// - /// - /// Update protection input. + /// + /// Request to update the mobility service on the protected item. /// /// /// The cancellation token. /// - public static async Task BeginUpdateAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateReplicationProtectedItemInput updateProtectionInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginUpdateMobilityServiceAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicationProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginUpdateMobilityServiceWithHttpMessagesAsync(fabricName, protectionContainerName, replicationProtectedItemName, updateMobilityServiceRequest, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainerMappingsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainerMappingsOperations.cs index 547cac414e8b..bafaaeedaa81 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainerMappingsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainerMappingsOperations.cs @@ -51,41 +51,10 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement public SiteRecoveryManagementClient Client { get; private set; } /// - /// Remove protection container mapping. - /// - /// - /// The operation to delete or remove a protection container mapping. - /// - /// - /// Fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Protection container mapping name. - /// - /// - /// Removal input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task DeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, RemoveProtectionContainerMappingInput removalInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(fabricName, protectionContainerName, mappingName, removalInput, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets a protection container mapping/ + /// Gets the list of protection container mappings for a protection container. /// /// - /// Gets the details of a protection container mapping. + /// Lists the protection container mappings for a protection container. /// /// /// Fabric name. @@ -93,9 +62,6 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement /// /// Protection container name. /// - /// - /// Protection Container mapping name. - /// /// /// Headers that will be added to request. /// @@ -117,7 +83,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -143,10 +109,6 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement { throw new ValidationException(ValidationRules.CannotBeNull, "protectionContainerName"); } - if (mappingName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "mappingName"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -156,19 +118,17 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); - tracingParameters.Add("mappingName", mappingName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationProtectionContainers", 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}/replicationProtectionContainerMappings/{mappingName}").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}/replicationProtectionContainerMappings").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("{mappingName}", System.Uri.EscapeDataString(mappingName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -267,7 +227,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement 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")) @@ -280,7 +240,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -300,41 +260,10 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement } /// - /// Create protection container mapping. - /// - /// - /// The operation to create a protection container mapping. - /// - /// - /// Fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Protection container mapping name. - /// - /// - /// Mapping creation input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, CreateProtectionContainerMappingInput creationInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(fabricName, protectionContainerName, mappingName, creationInput, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Purge protection container mapping. + /// Gets a protection container mapping/ /// /// - /// The operation to purge(force delete) a protection container mapping + /// Gets the details of a protection container mapping. /// /// /// Fabric name. @@ -343,32 +272,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement /// Protection container name. /// /// - /// Protection container mapping name. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task PurgeWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginPurgeWithHttpMessagesAsync(fabricName, protectionContainerName, mappingName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the list of protection container mappings for a protection container. - /// - /// - /// Lists the protection container mappings for a protection container. - /// - /// - /// Fabric name. - /// - /// - /// Protection container name. + /// Protection Container mapping name. /// /// /// Headers that will be added to request. @@ -391,7 +295,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement /// /// A response object containing the response body and response headers. /// - public async Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -417,6 +321,10 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement { throw new ValidationException(ValidationRules.CannotBeNull, "protectionContainerName"); } + if (mappingName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "mappingName"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -426,17 +334,19 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); + tracingParameters.Add("mappingName", mappingName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationProtectionContainers", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", 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}/replicationProtectionContainerMappings").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}/replicationProtectionContainerMappings/{mappingName}").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("{mappingName}", System.Uri.EscapeDataString(mappingName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -535,7 +445,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement 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")) @@ -548,7 +458,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -567,6 +477,96 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement return _result; } + /// + /// Create protection container mapping. + /// + /// + /// The operation to create a protection container mapping. + /// + /// + /// Fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Protection container mapping name. + /// + /// + /// Mapping creation input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, CreateProtectionContainerMappingInput creationInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(fabricName, protectionContainerName, mappingName, creationInput, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Purge protection container mapping. + /// + /// + /// The operation to purge(force delete) a protection container mapping + /// + /// + /// Fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Protection container mapping name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task PurgeWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginPurgeWithHttpMessagesAsync(fabricName, protectionContainerName, mappingName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Remove protection container mapping. + /// + /// + /// The operation to delete or remove a protection container mapping. + /// + /// + /// Fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Protection container mapping name. + /// + /// + /// Removal input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, RemoveProtectionContainerMappingInput removalInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(fabricName, protectionContainerName, mappingName, removalInput, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Gets the list of all protection container mappings in a vault. /// @@ -759,10 +759,10 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement } /// - /// Remove protection container mapping. + /// Create protection container mapping. /// /// - /// The operation to delete or remove a protection container mapping. + /// The operation to create a protection container mapping. /// /// /// Fabric name. @@ -773,8 +773,8 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement /// /// Protection container mapping name. /// - /// - /// Removal input. + /// + /// Mapping creation input. /// /// /// Headers that will be added to request. @@ -785,6 +785,9 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -794,7 +797,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, RemoveProtectionContainerMappingInput removalInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, CreateProtectionContainerMappingInput creationInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -824,9 +827,9 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement { throw new ValidationException(ValidationRules.CannotBeNull, "mappingName"); } - if (removalInput == null) + if (creationInput == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "removalInput"); + throw new ValidationException(ValidationRules.CannotBeNull, "creationInput"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -838,13 +841,13 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("mappingName", mappingName); - tracingParameters.Add("removalInput", removalInput); + tracingParameters.Add("creationInput", creationInput); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", 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}/replicationProtectionContainerMappings/{mappingName}/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}/replicationProtectionContainerMappings/{mappingName}").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)); @@ -863,7 +866,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -894,9 +897,9 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement // Serialize Request string _requestContent = null; - if(removalInput != null) + if(creationInput != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(removalInput, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(creationInput, 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"); } @@ -920,7 +923,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement 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 @@ -955,13 +958,31 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement 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); @@ -970,10 +991,10 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement } /// - /// Create protection container mapping. + /// Purge protection container mapping. /// /// - /// The operation to create a protection container mapping. + /// The operation to purge(force delete) a protection container mapping /// /// /// Fabric name. @@ -984,9 +1005,6 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement /// /// Protection container mapping name. /// - /// - /// Mapping creation input. - /// /// /// Headers that will be added to request. /// @@ -996,9 +1014,6 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -1008,7 +1023,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, CreateProtectionContainerMappingInput creationInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginPurgeWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1038,10 +1053,6 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement { throw new ValidationException(ValidationRules.CannotBeNull, "mappingName"); } - if (creationInput == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "creationInput"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1052,9 +1063,8 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("mappingName", mappingName); - tracingParameters.Add("creationInput", creationInput); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginPurge", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -1077,7 +1087,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1108,12 +1118,6 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement // Serialize Request string _requestContent = null; - if(creationInput != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(creationInput, 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) { @@ -1134,7 +1138,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement 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 @@ -1169,31 +1173,13 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement 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); @@ -1202,10 +1188,10 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement } /// - /// Purge protection container mapping. + /// Remove protection container mapping. /// /// - /// The operation to purge(force delete) a protection container mapping + /// The operation to delete or remove a protection container mapping. /// /// /// Fabric name. @@ -1216,6 +1202,9 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement /// /// Protection container mapping name. /// + /// + /// Removal input. + /// /// /// Headers that will be added to request. /// @@ -1234,7 +1223,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement /// /// A response object containing the response body and response headers. /// - public async Task BeginPurgeWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginDeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, string mappingName, RemoveProtectionContainerMappingInput removalInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1264,6 +1253,10 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement { throw new ValidationException(ValidationRules.CannotBeNull, "mappingName"); } + if (removalInput == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "removalInput"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1274,12 +1267,13 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("mappingName", mappingName); + tracingParameters.Add("removalInput", removalInput); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginPurge", 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}/replicationProtectionContainerMappings/{mappingName}").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}/replicationProtectionContainerMappings/{mappingName}/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)); @@ -1298,7 +1292,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1329,6 +1323,12 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement // Serialize Request string _requestContent = null; + if(removalInput != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(removalInput, 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) { diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainerMappingsOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainerMappingsOperationsExtensions.cs index 6de5b98da574..e6deec9da7d9 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainerMappingsOperationsExtensions.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainerMappingsOperationsExtensions.cs @@ -22,10 +22,10 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public static partial class ReplicationProtectionContainerMappingsOperationsExtensions { /// - /// Remove protection container mapping. + /// Gets the list of protection container mappings for a protection container. /// /// - /// The operation to delete or remove a protection container mapping. + /// Lists the protection container mappings for a protection container. /// /// /// The operations group for this extension method. @@ -36,22 +36,16 @@ public static partial class ReplicationProtectionContainerMappingsOperationsExte /// /// Protection container name. /// - /// - /// Protection container mapping name. - /// - /// - /// Removal input. - /// - public static void Delete(this IReplicationProtectionContainerMappingsOperations operations, string fabricName, string protectionContainerName, string mappingName, RemoveProtectionContainerMappingInput removalInput) + public static IPage ListByReplicationProtectionContainers(this IReplicationProtectionContainerMappingsOperations operations, string fabricName, string protectionContainerName) { - operations.DeleteAsync(fabricName, protectionContainerName, mappingName, removalInput).GetAwaiter().GetResult(); + return operations.ListByReplicationProtectionContainersAsync(fabricName, protectionContainerName).GetAwaiter().GetResult(); } /// - /// Remove protection container mapping. + /// Gets the list of protection container mappings for a protection container. /// /// - /// The operation to delete or remove a protection container mapping. + /// Lists the protection container mappings for a protection container. /// /// /// The operations group for this extension method. @@ -62,18 +56,15 @@ public static void Delete(this IReplicationProtectionContainerMappingsOperations /// /// Protection container name. /// - /// - /// Protection container mapping name. - /// - /// - /// Removal input. - /// /// /// The cancellation token. /// - public static async Task DeleteAsync(this IReplicationProtectionContainerMappingsOperations operations, string fabricName, string protectionContainerName, string mappingName, RemoveProtectionContainerMappingInput removalInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByReplicationProtectionContainersAsync(this IReplicationProtectionContainerMappingsOperations operations, string fabricName, string protectionContainerName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(fabricName, protectionContainerName, mappingName, removalInput, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.ListByReplicationProtectionContainersWithHttpMessagesAsync(fabricName, protectionContainerName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// @@ -236,10 +227,10 @@ public static void Purge(this IReplicationProtectionContainerMappingsOperations } /// - /// Gets the list of protection container mappings for a protection container. + /// Remove protection container mapping. /// /// - /// Lists the protection container mappings for a protection container. + /// The operation to delete or remove a protection container mapping. /// /// /// The operations group for this extension method. @@ -250,16 +241,22 @@ public static void Purge(this IReplicationProtectionContainerMappingsOperations /// /// Protection container name. /// - public static IPage ListByReplicationProtectionContainers(this IReplicationProtectionContainerMappingsOperations operations, string fabricName, string protectionContainerName) + /// + /// Protection container mapping name. + /// + /// + /// Removal input. + /// + public static void Delete(this IReplicationProtectionContainerMappingsOperations operations, string fabricName, string protectionContainerName, string mappingName, RemoveProtectionContainerMappingInput removalInput) { - return operations.ListByReplicationProtectionContainersAsync(fabricName, protectionContainerName).GetAwaiter().GetResult(); + operations.DeleteAsync(fabricName, protectionContainerName, mappingName, removalInput).GetAwaiter().GetResult(); } /// - /// Gets the list of protection container mappings for a protection container. + /// Remove protection container mapping. /// /// - /// Lists the protection container mappings for a protection container. + /// The operation to delete or remove a protection container mapping. /// /// /// The operations group for this extension method. @@ -270,15 +267,18 @@ public static IPage ListByReplicationProtectionConta /// /// Protection container name. /// + /// + /// Protection container mapping name. + /// + /// + /// Removal input. + /// /// /// The cancellation token. /// - public static async Task> ListByReplicationProtectionContainersAsync(this IReplicationProtectionContainerMappingsOperations operations, string fabricName, string protectionContainerName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IReplicationProtectionContainerMappingsOperations operations, string fabricName, string protectionContainerName, string mappingName, RemoveProtectionContainerMappingInput removalInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByReplicationProtectionContainersWithHttpMessagesAsync(fabricName, protectionContainerName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.DeleteWithHttpMessagesAsync(fabricName, protectionContainerName, mappingName, removalInput, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -316,10 +316,10 @@ public static IPage List(this IReplicationProtection } /// - /// Remove protection container mapping. + /// Create protection container mapping. /// /// - /// The operation to delete or remove a protection container mapping. + /// The operation to create a protection container mapping. /// /// /// The operations group for this extension method. @@ -333,19 +333,19 @@ public static IPage List(this IReplicationProtection /// /// Protection container mapping name. /// - /// - /// Removal input. + /// + /// Mapping creation input. /// - public static void BeginDelete(this IReplicationProtectionContainerMappingsOperations operations, string fabricName, string protectionContainerName, string mappingName, RemoveProtectionContainerMappingInput removalInput) + public static ProtectionContainerMapping BeginCreate(this IReplicationProtectionContainerMappingsOperations operations, string fabricName, string protectionContainerName, string mappingName, CreateProtectionContainerMappingInput creationInput) { - operations.BeginDeleteAsync(fabricName, protectionContainerName, mappingName, removalInput).GetAwaiter().GetResult(); + return operations.BeginCreateAsync(fabricName, protectionContainerName, mappingName, creationInput).GetAwaiter().GetResult(); } /// - /// Remove protection container mapping. + /// Create protection container mapping. /// /// - /// The operation to delete or remove a protection container mapping. + /// The operation to create a protection container mapping. /// /// /// The operations group for this extension method. @@ -359,22 +359,25 @@ public static void BeginDelete(this IReplicationProtectionContainerMappingsOpera /// /// Protection container mapping name. /// - /// - /// Removal input. + /// + /// Mapping creation input. /// /// /// The cancellation token. /// - public static async Task BeginDeleteAsync(this IReplicationProtectionContainerMappingsOperations operations, string fabricName, string protectionContainerName, string mappingName, RemoveProtectionContainerMappingInput removalInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCreateAsync(this IReplicationProtectionContainerMappingsOperations operations, string fabricName, string protectionContainerName, string mappingName, CreateProtectionContainerMappingInput creationInput, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginDeleteWithHttpMessagesAsync(fabricName, protectionContainerName, mappingName, removalInput, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(fabricName, protectionContainerName, mappingName, creationInput, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// - /// Create protection container mapping. + /// Purge protection container mapping. /// /// - /// The operation to create a protection container mapping. + /// The operation to purge(force delete) a protection container mapping /// /// /// The operations group for this extension method. @@ -388,19 +391,16 @@ public static void BeginDelete(this IReplicationProtectionContainerMappingsOpera /// /// Protection container mapping name. /// - /// - /// Mapping creation input. - /// - public static ProtectionContainerMapping BeginCreate(this IReplicationProtectionContainerMappingsOperations operations, string fabricName, string protectionContainerName, string mappingName, CreateProtectionContainerMappingInput creationInput) + public static void BeginPurge(this IReplicationProtectionContainerMappingsOperations operations, string fabricName, string protectionContainerName, string mappingName) { - return operations.BeginCreateAsync(fabricName, protectionContainerName, mappingName, creationInput).GetAwaiter().GetResult(); + operations.BeginPurgeAsync(fabricName, protectionContainerName, mappingName).GetAwaiter().GetResult(); } /// - /// Create protection container mapping. + /// Purge protection container mapping. /// /// - /// The operation to create a protection container mapping. + /// The operation to purge(force delete) a protection container mapping /// /// /// The operations group for this extension method. @@ -414,25 +414,19 @@ public static ProtectionContainerMapping BeginCreate(this IReplicationProtection /// /// Protection container mapping name. /// - /// - /// Mapping creation input. - /// /// /// The cancellation token. /// - public static async Task BeginCreateAsync(this IReplicationProtectionContainerMappingsOperations operations, string fabricName, string protectionContainerName, string mappingName, CreateProtectionContainerMappingInput creationInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginPurgeAsync(this IReplicationProtectionContainerMappingsOperations operations, string fabricName, string protectionContainerName, string mappingName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginCreateWithHttpMessagesAsync(fabricName, protectionContainerName, mappingName, creationInput, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.BeginPurgeWithHttpMessagesAsync(fabricName, protectionContainerName, mappingName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Purge protection container mapping. + /// Remove protection container mapping. /// /// - /// The operation to purge(force delete) a protection container mapping + /// The operation to delete or remove a protection container mapping. /// /// /// The operations group for this extension method. @@ -446,16 +440,19 @@ public static ProtectionContainerMapping BeginCreate(this IReplicationProtection /// /// Protection container mapping name. /// - public static void BeginPurge(this IReplicationProtectionContainerMappingsOperations operations, string fabricName, string protectionContainerName, string mappingName) + /// + /// Removal input. + /// + public static void BeginDelete(this IReplicationProtectionContainerMappingsOperations operations, string fabricName, string protectionContainerName, string mappingName, RemoveProtectionContainerMappingInput removalInput) { - operations.BeginPurgeAsync(fabricName, protectionContainerName, mappingName).GetAwaiter().GetResult(); + operations.BeginDeleteAsync(fabricName, protectionContainerName, mappingName, removalInput).GetAwaiter().GetResult(); } /// - /// Purge protection container mapping. + /// Remove protection container mapping. /// /// - /// The operation to purge(force delete) a protection container mapping + /// The operation to delete or remove a protection container mapping. /// /// /// The operations group for this extension method. @@ -469,12 +466,15 @@ public static void BeginPurge(this IReplicationProtectionContainerMappingsOperat /// /// Protection container mapping name. /// + /// + /// Removal input. + /// /// /// The cancellation token. /// - public static async Task BeginPurgeAsync(this IReplicationProtectionContainerMappingsOperations operations, string fabricName, string protectionContainerName, string mappingName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginDeleteAsync(this IReplicationProtectionContainerMappingsOperations operations, string fabricName, string protectionContainerName, string mappingName, RemoveProtectionContainerMappingInput removalInput, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginPurgeWithHttpMessagesAsync(fabricName, protectionContainerName, mappingName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.BeginDeleteWithHttpMessagesAsync(fabricName, protectionContainerName, mappingName, removalInput, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainersOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainersOperations.cs index f9324cbeff80..2bce3b9c0012 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainersOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainersOperations.cs @@ -51,101 +51,14 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient public SiteRecoveryManagementClient Client { get; private set; } /// - /// Switches protection from one container to another or one replication - /// provider to another. - /// - /// - /// Operation to switch protection from one container to another or one - /// replication provider to another. - /// - /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Switch protection input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> SwitchProtectionWithHttpMessagesAsync(string fabricName, string protectionContainerName, SwitchProtectionInput switchInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginSwitchProtectionWithHttpMessagesAsync(fabricName, protectionContainerName, switchInput, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Removes a protection container. - /// - /// - /// Operation to remove a protection container. - /// - /// - /// Unique fabric ARM name. - /// - /// - /// Unique protection container ARM name. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task DeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(fabricName, protectionContainerName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Adds a protectable item to the replication protection container. - /// - /// - /// The operation to a add a protectable item to a protection container(Add - /// physical server.) - /// - /// - /// The name of the fabric. - /// - /// - /// The name of the protection container. - /// - /// - /// The request object to add a protectable item. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> DiscoverProtectableItemWithHttpMessagesAsync(string fabricName, string protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDiscoverProtectableItemWithHttpMessagesAsync(fabricName, protectionContainerName, discoverProtectableItemRequest, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the protection container details. + /// Gets the list of protection container for a fabric. /// /// - /// Gets the details of a protection container. + /// Lists the protection containers in the specified fabric. /// /// /// Fabric name. /// - /// - /// Protection container name. - /// /// /// Headers that will be added to request. /// @@ -167,7 +80,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -189,10 +102,6 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); } - if (protectionContainerName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "protectionContainerName"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -201,18 +110,16 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); - tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationFabrics", 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}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers").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)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -311,7 +218,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient 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")) @@ -324,7 +231,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -344,41 +251,16 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient } /// - /// Create a protection container. + /// Gets the protection container details. /// /// - /// Operation to create a protection container. + /// Gets the details of a protection container. /// /// - /// Unique fabric ARM name. + /// Fabric name. /// /// - /// Unique protection container ARM name. - /// - /// - /// Creation input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, CreateProtectionContainerInput creationInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(fabricName, protectionContainerName, creationInput, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the list of protection container for a fabric. - /// - /// - /// Lists the protection containers in the specified fabric. - /// - /// - /// Fabric name. + /// Protection container name. /// /// /// Headers that will be added to request. @@ -401,7 +283,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient /// /// A response object containing the response body and response headers. /// - public async Task>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -423,6 +305,10 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); } + if (protectionContainerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "protectionContainerName"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -431,16 +317,18 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); + tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationFabrics", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", 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").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}").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)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -539,7 +427,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient 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")) @@ -552,7 +440,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -571,6 +459,118 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient return _result; } + /// + /// Create a protection container. + /// + /// + /// Operation to create a protection container. + /// + /// + /// Unique fabric ARM name. + /// + /// + /// Unique protection container ARM name. + /// + /// + /// Creation input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, CreateProtectionContainerInput creationInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(fabricName, protectionContainerName, creationInput, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Adds a protectable item to the replication protection container. + /// + /// + /// The operation to a add a protectable item to a protection container(Add + /// physical server.) + /// + /// + /// The name of the fabric. + /// + /// + /// The name of the protection container. + /// + /// + /// The request object to add a protectable item. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> DiscoverProtectableItemWithHttpMessagesAsync(string fabricName, string protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDiscoverProtectableItemWithHttpMessagesAsync(fabricName, protectionContainerName, discoverProtectableItemRequest, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Removes a protection container. + /// + /// + /// Operation to remove a protection container. + /// + /// + /// Unique fabric ARM name. + /// + /// + /// Unique protection container ARM name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(fabricName, protectionContainerName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Switches protection from one container to another or one replication + /// provider to another. + /// + /// + /// Operation to switch protection from one container to another or one + /// replication provider to another. + /// + /// + /// Unique fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Switch protection input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> SwitchProtectionWithHttpMessagesAsync(string fabricName, string protectionContainerName, SwitchProtectionInput switchInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginSwitchProtectionWithHttpMessagesAsync(fabricName, protectionContainerName, switchInput, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Gets the list of all protection containers in a vault. /// @@ -763,21 +763,19 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient } /// - /// Switches protection from one container to another or one replication - /// provider to another. + /// Create a protection container. /// /// - /// Operation to switch protection from one container to another or one - /// replication provider to another. + /// Operation to create a protection container. /// /// - /// Unique fabric name. + /// Unique fabric ARM name. /// /// - /// Protection container name. + /// Unique protection container ARM name. /// - /// - /// Switch protection input. + /// + /// Creation input. /// /// /// Headers that will be added to request. @@ -800,7 +798,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient /// /// A response object containing the response body and response headers. /// - public async Task> BeginSwitchProtectionWithHttpMessagesAsync(string fabricName, string protectionContainerName, SwitchProtectionInput switchInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, CreateProtectionContainerInput creationInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -826,9 +824,9 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "protectionContainerName"); } - if (switchInput == null) + if (creationInput == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "switchInput"); + throw new ValidationException(ValidationRules.CannotBeNull, "creationInput"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -839,13 +837,13 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); - tracingParameters.Add("switchInput", switchInput); + tracingParameters.Add("creationInput", creationInput); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginSwitchProtection", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", 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}/switchprotection").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}").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)); @@ -863,7 +861,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -894,9 +892,9 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient // Serialize Request string _requestContent = null; - if(switchInput != null) + if(creationInput != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(switchInput, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(creationInput, 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"); } @@ -988,16 +986,20 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient } /// - /// Removes a protection container. + /// Adds a protectable item to the replication protection container. /// /// - /// Operation to remove a protection container. + /// The operation to a add a protectable item to a protection container(Add + /// physical server.) /// /// - /// Unique fabric ARM name. + /// The name of the fabric. /// /// - /// Unique protection container ARM name. + /// The name of the protection container. + /// + /// + /// The request object to add a protectable item. /// /// /// Headers that will be added to request. @@ -1008,6 +1010,9 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -1017,7 +1022,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginDiscoverProtectableItemWithHttpMessagesAsync(string fabricName, string protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1043,6 +1048,10 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "protectionContainerName"); } + if (discoverProtectableItemRequest == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "discoverProtectableItemRequest"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1052,12 +1061,13 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); + tracingParameters.Add("discoverProtectableItemRequest", discoverProtectableItemRequest); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginDiscoverProtectableItem", 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}/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}/discoverProtectableItem").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)); @@ -1106,6 +1116,12 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient // Serialize Request string _requestContent = null; + if(discoverProtectableItemRequest != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(discoverProtectableItemRequest, 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) { @@ -1126,7 +1142,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient 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 @@ -1161,13 +1177,31 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient 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); @@ -1176,20 +1210,16 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient } /// - /// Adds a protectable item to the replication protection container. + /// Removes a protection container. /// /// - /// The operation to a add a protectable item to a protection container(Add - /// physical server.) + /// Operation to remove a protection container. /// /// - /// The name of the fabric. + /// Unique fabric ARM name. /// /// - /// The name of the protection container. - /// - /// - /// The request object to add a protectable item. + /// Unique protection container ARM name. /// /// /// Headers that will be added to request. @@ -1200,9 +1230,6 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -1212,7 +1239,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient /// /// A response object containing the response body and response headers. /// - public async Task> BeginDiscoverProtectableItemWithHttpMessagesAsync(string fabricName, string protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginDeleteWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1238,10 +1265,6 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "protectionContainerName"); } - if (discoverProtectableItemRequest == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "discoverProtectableItemRequest"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1251,13 +1274,12 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); - tracingParameters.Add("discoverProtectableItemRequest", discoverProtectableItemRequest); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginDiscoverProtectableItem", 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}/discoverProtectableItem").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}/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)); @@ -1306,12 +1328,6 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient // Serialize Request string _requestContent = null; - if(discoverProtectableItemRequest != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(discoverProtectableItemRequest, 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) { @@ -1332,7 +1348,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient 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 @@ -1367,31 +1383,13 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient 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); @@ -1400,19 +1398,21 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient } /// - /// Create a protection container. + /// Switches protection from one container to another or one replication + /// provider to another. /// /// - /// Operation to create a protection container. + /// Operation to switch protection from one container to another or one + /// replication provider to another. /// /// - /// Unique fabric ARM name. + /// Unique fabric name. /// /// - /// Unique protection container ARM name. + /// Protection container name. /// - /// - /// Creation input. + /// + /// Switch protection input. /// /// /// Headers that will be added to request. @@ -1435,7 +1435,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateWithHttpMessagesAsync(string fabricName, string protectionContainerName, CreateProtectionContainerInput creationInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginSwitchProtectionWithHttpMessagesAsync(string fabricName, string protectionContainerName, SwitchProtectionInput switchInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1461,9 +1461,9 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "protectionContainerName"); } - if (creationInput == null) + if (switchInput == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "creationInput"); + throw new ValidationException(ValidationRules.CannotBeNull, "switchInput"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -1474,13 +1474,13 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); - tracingParameters.Add("creationInput", creationInput); + tracingParameters.Add("switchInput", switchInput); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginSwitchProtection", 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}").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}/switchprotection").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)); @@ -1498,7 +1498,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1529,9 +1529,9 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient // Serialize Request string _requestContent = null; - if(creationInput != null) + if(switchInput != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(creationInput, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(switchInput, 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"); } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainersOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainersOperationsExtensions.cs index 1e38b6c1691d..3cf4004a316f 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainersOperationsExtensions.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainersOperationsExtensions.cs @@ -22,209 +22,202 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public static partial class ReplicationProtectionContainersOperationsExtensions { /// - /// Switches protection from one container to another or one replication - /// provider to another. + /// Gets the list of protection container for a fabric. /// /// - /// Operation to switch protection from one container to another or one - /// replication provider to another. + /// Lists the protection containers in the specified fabric. /// /// /// The operations group for this extension method. /// /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Switch protection input. + /// Fabric name. /// - public static ProtectionContainer SwitchProtection(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, SwitchProtectionInput switchInput) + public static IPage ListByReplicationFabrics(this IReplicationProtectionContainersOperations operations, string fabricName) { - return operations.SwitchProtectionAsync(fabricName, protectionContainerName, switchInput).GetAwaiter().GetResult(); + return operations.ListByReplicationFabricsAsync(fabricName).GetAwaiter().GetResult(); } /// - /// Switches protection from one container to another or one replication - /// provider to another. + /// Gets the list of protection container for a fabric. /// /// - /// Operation to switch protection from one container to another or one - /// replication provider to another. + /// Lists the protection containers in the specified fabric. /// /// /// The operations group for this extension method. /// /// - /// Unique fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Switch protection input. + /// Fabric name. /// /// /// The cancellation token. /// - public static async Task SwitchProtectionAsync(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, SwitchProtectionInput switchInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByReplicationFabricsAsync(this IReplicationProtectionContainersOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.SwitchProtectionWithHttpMessagesAsync(fabricName, protectionContainerName, switchInput, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByReplicationFabricsWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Removes a protection container. + /// Gets the protection container details. /// /// - /// Operation to remove a protection container. + /// Gets the details of a protection container. /// /// /// The operations group for this extension method. /// /// - /// Unique fabric ARM name. + /// Fabric name. /// /// - /// Unique protection container ARM name. + /// Protection container name. /// - public static void Delete(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName) + public static ProtectionContainer Get(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName) { - operations.DeleteAsync(fabricName, protectionContainerName).GetAwaiter().GetResult(); + return operations.GetAsync(fabricName, protectionContainerName).GetAwaiter().GetResult(); } /// - /// Removes a protection container. + /// Gets the protection container details. /// /// - /// Operation to remove a protection container. + /// Gets the details of a protection container. /// /// /// The operations group for this extension method. /// /// - /// Unique fabric ARM name. + /// Fabric name. /// /// - /// Unique protection container ARM name. + /// Protection container name. /// /// /// The cancellation token. /// - public static async Task DeleteAsync(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(fabricName, protectionContainerName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.GetWithHttpMessagesAsync(fabricName, protectionContainerName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// - /// Adds a protectable item to the replication protection container. + /// Create a protection container. /// /// - /// The operation to a add a protectable item to a protection container(Add - /// physical server.) + /// Operation to create a protection container. /// /// /// The operations group for this extension method. /// /// - /// The name of the fabric. + /// Unique fabric ARM name. /// /// - /// The name of the protection container. + /// Unique protection container ARM name. /// - /// - /// The request object to add a protectable item. + /// + /// Creation input. /// - public static ProtectionContainer DiscoverProtectableItem(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest) + public static ProtectionContainer Create(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, CreateProtectionContainerInput creationInput) { - return operations.DiscoverProtectableItemAsync(fabricName, protectionContainerName, discoverProtectableItemRequest).GetAwaiter().GetResult(); + return operations.CreateAsync(fabricName, protectionContainerName, creationInput).GetAwaiter().GetResult(); } /// - /// Adds a protectable item to the replication protection container. + /// Create a protection container. /// /// - /// The operation to a add a protectable item to a protection container(Add - /// physical server.) + /// Operation to create a protection container. /// /// /// The operations group for this extension method. /// /// - /// The name of the fabric. + /// Unique fabric ARM name. /// /// - /// The name of the protection container. + /// Unique protection container ARM name. /// - /// - /// The request object to add a protectable item. + /// + /// Creation input. /// /// /// The cancellation token. /// - public static async Task DiscoverProtectableItemAsync(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, CreateProtectionContainerInput creationInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DiscoverProtectableItemWithHttpMessagesAsync(fabricName, protectionContainerName, discoverProtectableItemRequest, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateWithHttpMessagesAsync(fabricName, protectionContainerName, creationInput, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets the protection container details. + /// Adds a protectable item to the replication protection container. /// /// - /// Gets the details of a protection container. + /// The operation to a add a protectable item to a protection container(Add + /// physical server.) /// /// /// The operations group for this extension method. /// /// - /// Fabric name. + /// The name of the fabric. /// /// - /// Protection container name. + /// The name of the protection container. /// - public static ProtectionContainer Get(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName) + /// + /// The request object to add a protectable item. + /// + public static ProtectionContainer DiscoverProtectableItem(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest) { - return operations.GetAsync(fabricName, protectionContainerName).GetAwaiter().GetResult(); + return operations.DiscoverProtectableItemAsync(fabricName, protectionContainerName, discoverProtectableItemRequest).GetAwaiter().GetResult(); } /// - /// Gets the protection container details. + /// Adds a protectable item to the replication protection container. /// /// - /// Gets the details of a protection container. + /// The operation to a add a protectable item to a protection container(Add + /// physical server.) /// /// /// The operations group for this extension method. /// /// - /// Fabric name. + /// The name of the fabric. /// /// - /// Protection container name. + /// The name of the protection container. + /// + /// + /// The request object to add a protectable item. /// /// /// The cancellation token. /// - public static async Task GetAsync(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DiscoverProtectableItemAsync(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(fabricName, protectionContainerName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DiscoverProtectableItemWithHttpMessagesAsync(fabricName, protectionContainerName, discoverProtectableItemRequest, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Create a protection container. + /// Removes a protection container. /// /// - /// Operation to create a protection container. + /// Operation to remove a protection container. /// /// /// The operations group for this extension method. @@ -235,19 +228,16 @@ public static ProtectionContainer Get(this IReplicationProtectionContainersOpera /// /// Unique protection container ARM name. /// - /// - /// Creation input. - /// - public static ProtectionContainer Create(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, CreateProtectionContainerInput creationInput) + public static void Delete(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName) { - return operations.CreateAsync(fabricName, protectionContainerName, creationInput).GetAwaiter().GetResult(); + operations.DeleteAsync(fabricName, protectionContainerName).GetAwaiter().GetResult(); } /// - /// Create a protection container. + /// Removes a protection container. /// /// - /// Operation to create a protection container. + /// Operation to remove a protection container. /// /// /// The operations group for this extension method. @@ -258,55 +248,65 @@ public static ProtectionContainer Create(this IReplicationProtectionContainersOp /// /// Unique protection container ARM name. /// - /// - /// Creation input. - /// /// /// The cancellation token. /// - public static async Task CreateAsync(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, CreateProtectionContainerInput creationInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateWithHttpMessagesAsync(fabricName, protectionContainerName, creationInput, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.DeleteWithHttpMessagesAsync(fabricName, protectionContainerName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Gets the list of protection container for a fabric. + /// Switches protection from one container to another or one replication + /// provider to another. /// /// - /// Lists the protection containers in the specified fabric. + /// Operation to switch protection from one container to another or one + /// replication provider to another. /// /// /// The operations group for this extension method. /// /// - /// Fabric name. + /// Unique fabric name. /// - public static IPage ListByReplicationFabrics(this IReplicationProtectionContainersOperations operations, string fabricName) + /// + /// Protection container name. + /// + /// + /// Switch protection input. + /// + public static ProtectionContainer SwitchProtection(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, SwitchProtectionInput switchInput) { - return operations.ListByReplicationFabricsAsync(fabricName).GetAwaiter().GetResult(); + return operations.SwitchProtectionAsync(fabricName, protectionContainerName, switchInput).GetAwaiter().GetResult(); } /// - /// Gets the list of protection container for a fabric. + /// Switches protection from one container to another or one replication + /// provider to another. /// /// - /// Lists the protection containers in the specified fabric. + /// Operation to switch protection from one container to another or one + /// replication provider to another. /// /// /// The operations group for this extension method. /// /// - /// Fabric name. + /// Unique fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Switch protection input. /// /// /// The cancellation token. /// - public static async Task> ListByReplicationFabricsAsync(this IReplicationProtectionContainersOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task SwitchProtectionAsync(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, SwitchProtectionInput switchInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByReplicationFabricsWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.SwitchProtectionWithHttpMessagesAsync(fabricName, protectionContainerName, switchInput, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -347,205 +347,205 @@ public static IPage List(this IReplicationProtectionContain } /// - /// Switches protection from one container to another or one replication - /// provider to another. + /// Create a protection container. /// /// - /// Operation to switch protection from one container to another or one - /// replication provider to another. + /// Operation to create a protection container. /// /// /// The operations group for this extension method. /// /// - /// Unique fabric name. + /// Unique fabric ARM name. /// /// - /// Protection container name. + /// Unique protection container ARM name. /// - /// - /// Switch protection input. + /// + /// Creation input. /// - public static ProtectionContainer BeginSwitchProtection(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, SwitchProtectionInput switchInput) + public static ProtectionContainer BeginCreate(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, CreateProtectionContainerInput creationInput) { - return operations.BeginSwitchProtectionAsync(fabricName, protectionContainerName, switchInput).GetAwaiter().GetResult(); + return operations.BeginCreateAsync(fabricName, protectionContainerName, creationInput).GetAwaiter().GetResult(); } /// - /// Switches protection from one container to another or one replication - /// provider to another. + /// Create a protection container. /// /// - /// Operation to switch protection from one container to another or one - /// replication provider to another. + /// Operation to create a protection container. /// /// /// The operations group for this extension method. /// /// - /// Unique fabric name. + /// Unique fabric ARM name. /// /// - /// Protection container name. + /// Unique protection container ARM name. /// - /// - /// Switch protection input. + /// + /// Creation input. /// /// /// The cancellation token. /// - public static async Task BeginSwitchProtectionAsync(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, SwitchProtectionInput switchInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCreateAsync(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, CreateProtectionContainerInput creationInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginSwitchProtectionWithHttpMessagesAsync(fabricName, protectionContainerName, switchInput, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(fabricName, protectionContainerName, creationInput, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Removes a protection container. + /// Adds a protectable item to the replication protection container. /// /// - /// Operation to remove a protection container. + /// The operation to a add a protectable item to a protection container(Add + /// physical server.) /// /// /// The operations group for this extension method. /// /// - /// Unique fabric ARM name. + /// The name of the fabric. /// /// - /// Unique protection container ARM name. + /// The name of the protection container. /// - public static void BeginDelete(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName) + /// + /// The request object to add a protectable item. + /// + public static ProtectionContainer BeginDiscoverProtectableItem(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest) { - operations.BeginDeleteAsync(fabricName, protectionContainerName).GetAwaiter().GetResult(); + return operations.BeginDiscoverProtectableItemAsync(fabricName, protectionContainerName, discoverProtectableItemRequest).GetAwaiter().GetResult(); } /// - /// Removes a protection container. + /// Adds a protectable item to the replication protection container. /// /// - /// Operation to remove a protection container. + /// The operation to a add a protectable item to a protection container(Add + /// physical server.) /// /// /// The operations group for this extension method. /// /// - /// Unique fabric ARM name. + /// The name of the fabric. /// /// - /// Unique protection container ARM name. + /// The name of the protection container. + /// + /// + /// The request object to add a protectable item. /// /// /// The cancellation token. /// - public static async Task BeginDeleteAsync(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginDiscoverProtectableItemAsync(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginDeleteWithHttpMessagesAsync(fabricName, protectionContainerName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.BeginDiscoverProtectableItemWithHttpMessagesAsync(fabricName, protectionContainerName, discoverProtectableItemRequest, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// - /// Adds a protectable item to the replication protection container. + /// Removes a protection container. /// /// - /// The operation to a add a protectable item to a protection container(Add - /// physical server.) + /// Operation to remove a protection container. /// /// /// The operations group for this extension method. /// /// - /// The name of the fabric. + /// Unique fabric ARM name. /// /// - /// The name of the protection container. - /// - /// - /// The request object to add a protectable item. + /// Unique protection container ARM name. /// - public static ProtectionContainer BeginDiscoverProtectableItem(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest) + public static void BeginDelete(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName) { - return operations.BeginDiscoverProtectableItemAsync(fabricName, protectionContainerName, discoverProtectableItemRequest).GetAwaiter().GetResult(); + operations.BeginDeleteAsync(fabricName, protectionContainerName).GetAwaiter().GetResult(); } /// - /// Adds a protectable item to the replication protection container. + /// Removes a protection container. /// /// - /// The operation to a add a protectable item to a protection container(Add - /// physical server.) + /// Operation to remove a protection container. /// /// /// The operations group for this extension method. /// /// - /// The name of the fabric. + /// Unique fabric ARM name. /// /// - /// The name of the protection container. - /// - /// - /// The request object to add a protectable item. + /// Unique protection container ARM name. /// /// /// The cancellation token. /// - public static async Task BeginDiscoverProtectableItemAsync(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginDeleteAsync(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginDiscoverProtectableItemWithHttpMessagesAsync(fabricName, protectionContainerName, discoverProtectableItemRequest, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.BeginDeleteWithHttpMessagesAsync(fabricName, protectionContainerName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Create a protection container. + /// Switches protection from one container to another or one replication + /// provider to another. /// /// - /// Operation to create a protection container. + /// Operation to switch protection from one container to another or one + /// replication provider to another. /// /// /// The operations group for this extension method. /// /// - /// Unique fabric ARM name. + /// Unique fabric name. /// /// - /// Unique protection container ARM name. + /// Protection container name. /// - /// - /// Creation input. + /// + /// Switch protection input. /// - public static ProtectionContainer BeginCreate(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, CreateProtectionContainerInput creationInput) + public static ProtectionContainer BeginSwitchProtection(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, SwitchProtectionInput switchInput) { - return operations.BeginCreateAsync(fabricName, protectionContainerName, creationInput).GetAwaiter().GetResult(); + return operations.BeginSwitchProtectionAsync(fabricName, protectionContainerName, switchInput).GetAwaiter().GetResult(); } /// - /// Create a protection container. + /// Switches protection from one container to another or one replication + /// provider to another. /// /// - /// Operation to create a protection container. + /// Operation to switch protection from one container to another or one + /// replication provider to another. /// /// /// The operations group for this extension method. /// /// - /// Unique fabric ARM name. + /// Unique fabric name. /// /// - /// Unique protection container ARM name. + /// Protection container name. /// - /// - /// Creation input. + /// + /// Switch protection input. /// /// /// The cancellation token. /// - public static async Task BeginCreateAsync(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, CreateProtectionContainerInput creationInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginSwitchProtectionAsync(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, SwitchProtectionInput switchInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginCreateWithHttpMessagesAsync(fabricName, protectionContainerName, creationInput, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginSwitchProtectionWithHttpMessagesAsync(fabricName, protectionContainerName, switchInput, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationRecoveryPlansOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationRecoveryPlansOperations.cs index 260890cd38df..bbd47beb211c 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationRecoveryPlansOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationRecoveryPlansOperations.cs @@ -51,158 +51,11 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) public SiteRecoveryManagementClient Client { get; private set; } /// - /// Execute reprotect of the recovery plan. - /// - /// - /// The operation to reprotect(reverse replicate) a recovery plan. - /// - /// - /// Recovery plan name. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> ReprotectWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginReprotectWithHttpMessagesAsync(recoveryPlanName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Execute commit failover of the recovery plan. - /// - /// - /// The operation to commit the fail over of a recovery plan. - /// - /// - /// Recovery plan name. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> FailoverCommitWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginFailoverCommitWithHttpMessagesAsync(recoveryPlanName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Execute test failover cleanup of the recovery plan. - /// - /// - /// The operation to cleanup test failover of a recovery plan. - /// - /// - /// Recovery plan name. - /// - /// - /// Test failover cleanup input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> TestFailoverCleanupWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginTestFailoverCleanupWithHttpMessagesAsync(recoveryPlanName, input, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Execute test failover of the recovery plan. - /// - /// - /// The operation to start the test failover of a recovery plan. - /// - /// - /// Recovery plan name. - /// - /// - /// Failover input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> TestFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanTestFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginTestFailoverWithHttpMessagesAsync(recoveryPlanName, input, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Execute unplanned failover of the recovery plan. - /// - /// - /// The operation to start the failover of a recovery plan. - /// - /// - /// Recovery plan name. - /// - /// - /// Failover input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> UnplannedFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginUnplannedFailoverWithHttpMessagesAsync(recoveryPlanName, input, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Execute planned failover of the recovery plan. - /// - /// - /// The operation to start the planned failover of a recovery plan. - /// - /// - /// Recovery plan name. - /// - /// - /// Failover input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> PlannedFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanPlannedFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginPlannedFailoverWithHttpMessagesAsync(recoveryPlanName, input, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the requested recovery plan. + /// Gets the list of recovery plans. /// /// - /// Gets the details of the recovery plan. + /// Lists the recovery plans in the vault. /// - /// - /// Name of the recovery plan. - /// /// /// Headers that will be added to request. /// @@ -224,7 +77,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -242,10 +95,6 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (recoveryPlanName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "recoveryPlanName"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -253,17 +102,15 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("recoveryPlanName", recoveryPlanName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", 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}/replicationRecoveryPlans/{recoveryPlanName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans").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("{recoveryPlanName}", System.Uri.EscapeDataString(recoveryPlanName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -362,7 +209,7 @@ internal ReplicationRecoveryPlansOperations(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")) @@ -375,7 +222,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -395,83 +242,14 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } /// - /// Creates a recovery plan with the given details. - /// - /// - /// The operation to create a recovery plan. - /// - /// - /// Recovery plan name. - /// - /// - /// Recovery Plan creation input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CreateWithHttpMessagesAsync(string recoveryPlanName, CreateRecoveryPlanInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(recoveryPlanName, input, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Deletes the specified recovery plan. - /// - /// - /// Delete a recovery plan. - /// - /// - /// Recovery plan name. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task DeleteWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(recoveryPlanName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Updates the given recovery plan. + /// Gets the requested recovery plan. /// /// - /// The operation to update a recovery plan. + /// Gets the details of the recovery plan. /// /// - /// Recovery plan name. - /// - /// - /// Update recovery plan input - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. + /// Name of the recovery plan. /// - public async Task> UpdateWithHttpMessagesAsync(string recoveryPlanName, UpdateRecoveryPlanInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(recoveryPlanName, input, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the list of recovery plans. - /// - /// - /// Lists the recovery plans in the vault. - /// /// /// Headers that will be added to request. /// @@ -493,7 +271,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -511,6 +289,10 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (recoveryPlanName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "recoveryPlanName"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -518,15 +300,17 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("recoveryPlanName", recoveryPlanName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", 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}/replicationRecoveryPlans").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}").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("{recoveryPlanName}", System.Uri.EscapeDataString(recoveryPlanName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -625,7 +409,7 @@ internal ReplicationRecoveryPlansOperations(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")) @@ -638,7 +422,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -658,14 +442,233 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } /// - /// Execute reprotect of the recovery plan. + /// Creates a recovery plan with the given details. + /// + /// + /// The operation to create a recovery plan. + /// + /// + /// Recovery plan name. + /// + /// + /// Recovery Plan creation input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string recoveryPlanName, CreateRecoveryPlanInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(recoveryPlanName, input, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified recovery plan. + /// + /// + /// Delete a recovery plan. + /// + /// + /// Recovery plan name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(recoveryPlanName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates the given recovery plan. + /// + /// + /// The operation to update a recovery plan. + /// + /// + /// Recovery plan name. + /// + /// + /// Update recovery plan input + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string recoveryPlanName, UpdateRecoveryPlanInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(recoveryPlanName, input, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Execute commit failover of the recovery plan. + /// + /// + /// The operation to commit the fail over of a recovery plan. + /// + /// + /// Recovery plan name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> FailoverCommitWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginFailoverCommitWithHttpMessagesAsync(recoveryPlanName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Execute planned failover of the recovery plan. + /// + /// + /// The operation to start the planned failover of a recovery plan. + /// + /// + /// Recovery plan name. + /// + /// + /// Failover input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> PlannedFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanPlannedFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginPlannedFailoverWithHttpMessagesAsync(recoveryPlanName, input, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Execute reprotect of the recovery plan. + /// + /// + /// The operation to reprotect(reverse replicate) a recovery plan. + /// + /// + /// Recovery plan name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ReprotectWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginReprotectWithHttpMessagesAsync(recoveryPlanName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Execute test failover of the recovery plan. + /// + /// + /// The operation to start the test failover of a recovery plan. + /// + /// + /// Recovery plan name. + /// + /// + /// Failover input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> TestFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanTestFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginTestFailoverWithHttpMessagesAsync(recoveryPlanName, input, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Execute test failover cleanup of the recovery plan. + /// + /// + /// The operation to cleanup test failover of a recovery plan. + /// + /// + /// Recovery plan name. + /// + /// + /// Test failover cleanup input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> TestFailoverCleanupWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginTestFailoverCleanupWithHttpMessagesAsync(recoveryPlanName, input, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Execute unplanned failover of the recovery plan. + /// + /// + /// The operation to start the failover of a recovery plan. + /// + /// + /// Recovery plan name. + /// + /// + /// Failover input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UnplannedFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginUnplannedFailoverWithHttpMessagesAsync(recoveryPlanName, input, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates a recovery plan with the given details. /// /// - /// The operation to reprotect(reverse replicate) a recovery plan. + /// The operation to create a recovery plan. /// /// /// Recovery plan name. /// + /// + /// Recovery Plan creation input. + /// /// /// Headers that will be added to request. /// @@ -687,7 +690,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginReprotectWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateWithHttpMessagesAsync(string recoveryPlanName, CreateRecoveryPlanInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -709,6 +712,14 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "recoveryPlanName"); } + if (input == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "input"); + } + if (input != null) + { + input.Validate(); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -717,12 +728,13 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("recoveryPlanName", recoveryPlanName); + tracingParameters.Add("input", input); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginReprotect", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", 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}/replicationRecoveryPlans/{recoveryPlanName}/reProtect").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}").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)); @@ -739,7 +751,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -770,6 +782,12 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) // Serialize Request string _requestContent = null; + if(input != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(input, 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) { @@ -858,10 +876,10 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } /// - /// Execute commit failover of the recovery plan. + /// Deletes the specified recovery plan. /// /// - /// The operation to commit the fail over of a recovery plan. + /// Delete a recovery plan. /// /// /// Recovery plan name. @@ -875,9 +893,6 @@ internal ReplicationRecoveryPlansOperations(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 /// @@ -887,7 +902,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginFailoverCommitWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginDeleteWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -918,11 +933,11 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("recoveryPlanName", recoveryPlanName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginFailoverCommit", 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}/replicationRecoveryPlans/{recoveryPlanName}/failoverCommit").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}").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)); @@ -939,7 +954,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -990,7 +1005,7 @@ internal ReplicationRecoveryPlansOperations(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 @@ -1025,31 +1040,13 @@ internal ReplicationRecoveryPlansOperations(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); @@ -1058,16 +1055,16 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } /// - /// Execute test failover cleanup of the recovery plan. + /// Updates the given recovery plan. /// /// - /// The operation to cleanup test failover of a recovery plan. + /// The operation to update a recovery plan. /// /// /// Recovery plan name. /// /// - /// Test failover cleanup input. + /// Update recovery plan input /// /// /// Headers that will be added to request. @@ -1090,7 +1087,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginTestFailoverCleanupWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginUpdateWithHttpMessagesAsync(string recoveryPlanName, UpdateRecoveryPlanInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1116,10 +1113,6 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "input"); } - if (input != null) - { - input.Validate(); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1130,11 +1123,11 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) tracingParameters.Add("recoveryPlanName", recoveryPlanName); tracingParameters.Add("input", input); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginTestFailoverCleanup", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", 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}/replicationRecoveryPlans/{recoveryPlanName}/testFailoverCleanup").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}").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)); @@ -1151,7 +1144,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("PATCH"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1276,17 +1269,14 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } /// - /// Execute test failover of the recovery plan. + /// Execute commit failover of the recovery plan. /// /// - /// The operation to start the test failover of a recovery plan. + /// The operation to commit the fail over of a recovery plan. /// /// /// Recovery plan name. /// - /// - /// Failover input. - /// /// /// Headers that will be added to request. /// @@ -1308,7 +1298,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginTestFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanTestFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginFailoverCommitWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1330,14 +1320,6 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "recoveryPlanName"); } - if (input == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "input"); - } - if (input != null) - { - input.Validate(); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1346,13 +1328,12 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("recoveryPlanName", recoveryPlanName); - tracingParameters.Add("input", input); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginTestFailover", 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}/replicationRecoveryPlans/{recoveryPlanName}/testFailover").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/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)); @@ -1400,12 +1381,6 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) // Serialize Request string _requestContent = null; - if(input != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(input, 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) { @@ -1494,10 +1469,10 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } /// - /// Execute unplanned failover of the recovery plan. + /// Execute planned failover of the recovery plan. /// /// - /// The operation to start the failover of a recovery plan. + /// The operation to start the planned failover of a recovery plan. /// /// /// Recovery plan name. @@ -1526,7 +1501,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginUnplannedFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginPlannedFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanPlannedFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1566,11 +1541,11 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) tracingParameters.Add("recoveryPlanName", recoveryPlanName); tracingParameters.Add("input", input); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginUnplannedFailover", 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}/replicationRecoveryPlans/{recoveryPlanName}/unplannedFailover").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/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)); @@ -1712,17 +1687,14 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } /// - /// Execute planned failover of the recovery plan. + /// Execute reprotect of the recovery plan. /// /// - /// The operation to start the planned failover of a recovery plan. + /// The operation to reprotect(reverse replicate) a recovery plan. /// /// /// Recovery plan name. /// - /// - /// Failover input. - /// /// /// Headers that will be added to request. /// @@ -1744,7 +1716,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginPlannedFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanPlannedFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginReprotectWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1766,14 +1738,6 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "recoveryPlanName"); } - if (input == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "input"); - } - if (input != null) - { - input.Validate(); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1782,13 +1746,12 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("recoveryPlanName", recoveryPlanName); - tracingParameters.Add("input", input); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginPlannedFailover", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginReprotect", 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}/replicationRecoveryPlans/{recoveryPlanName}/plannedFailover").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/reProtect").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)); @@ -1836,12 +1799,6 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) // Serialize Request string _requestContent = null; - if(input != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(input, 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) { @@ -1930,16 +1887,16 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } /// - /// Creates a recovery plan with the given details. + /// Execute test failover of the recovery plan. /// /// - /// The operation to create a recovery plan. + /// The operation to start the test failover of a recovery plan. /// /// /// Recovery plan name. /// /// - /// Recovery Plan creation input. + /// Failover input. /// /// /// Headers that will be added to request. @@ -1962,7 +1919,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateWithHttpMessagesAsync(string recoveryPlanName, CreateRecoveryPlanInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginTestFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanTestFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -2002,11 +1959,11 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) tracingParameters.Add("recoveryPlanName", recoveryPlanName); tracingParameters.Add("input", input); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginTestFailover", 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}/replicationRecoveryPlans/{recoveryPlanName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailover").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)); @@ -2023,7 +1980,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2148,14 +2105,17 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } /// - /// Deletes the specified recovery plan. + /// Execute test failover cleanup of the recovery plan. /// /// - /// Delete a recovery plan. + /// The operation to cleanup test failover of a recovery plan. /// /// /// Recovery plan name. /// + /// + /// Test failover cleanup input. + /// /// /// Headers that will be added to request. /// @@ -2165,6 +2125,9 @@ internal ReplicationRecoveryPlansOperations(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 /// @@ -2174,7 +2137,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginTestFailoverCleanupWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -2196,6 +2159,14 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "recoveryPlanName"); } + if (input == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "input"); + } + if (input != null) + { + input.Validate(); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2204,12 +2175,13 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("recoveryPlanName", recoveryPlanName); + tracingParameters.Add("input", input); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginTestFailoverCleanup", 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}/replicationRecoveryPlans/{recoveryPlanName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailoverCleanup").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,7 +2198,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2257,6 +2229,12 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) // Serialize Request string _requestContent = null; + if(input != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(input, 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) { @@ -2277,7 +2255,7 @@ internal ReplicationRecoveryPlansOperations(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 @@ -2312,13 +2290,31 @@ internal ReplicationRecoveryPlansOperations(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); @@ -2327,16 +2323,16 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } /// - /// Updates the given recovery plan. + /// Execute unplanned failover of the recovery plan. /// /// - /// The operation to update a recovery plan. + /// The operation to start the failover of a recovery plan. /// /// /// Recovery plan name. /// /// - /// Update recovery plan input + /// Failover input. /// /// /// Headers that will be added to request. @@ -2359,7 +2355,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginUpdateWithHttpMessagesAsync(string recoveryPlanName, UpdateRecoveryPlanInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginUnplannedFailoverWithHttpMessagesAsync(string recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -2385,6 +2381,10 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "input"); } + if (input != null) + { + input.Validate(); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2395,11 +2395,11 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) tracingParameters.Add("recoveryPlanName", recoveryPlanName); tracingParameters.Add("input", input); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginUnplannedFailover", 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}/replicationRecoveryPlans/{recoveryPlanName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/unplannedFailover").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)); @@ -2416,7 +2416,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationRecoveryPlansOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationRecoveryPlansOperationsExtensions.cs index 5912fd5c6f76..be3bc8457e26 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationRecoveryPlansOperationsExtensions.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationRecoveryPlansOperationsExtensions.cs @@ -22,90 +22,84 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public static partial class ReplicationRecoveryPlansOperationsExtensions { /// - /// Execute reprotect of the recovery plan. + /// Gets the list of recovery plans. /// /// - /// The operation to reprotect(reverse replicate) a recovery plan. + /// Lists the recovery plans in the vault. /// /// /// The operations group for this extension method. /// - /// - /// Recovery plan name. - /// - public static RecoveryPlan Reprotect(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName) + public static IPage List(this IReplicationRecoveryPlansOperations operations) { - return operations.ReprotectAsync(recoveryPlanName).GetAwaiter().GetResult(); + return operations.ListAsync().GetAwaiter().GetResult(); } /// - /// Execute reprotect of the recovery plan. + /// Gets the list of recovery plans. /// /// - /// The operation to reprotect(reverse replicate) a recovery plan. + /// Lists the recovery plans in the vault. /// /// /// The operations group for this extension method. /// - /// - /// Recovery plan name. - /// /// /// The cancellation token. /// - public static async Task ReprotectAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IReplicationRecoveryPlansOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ReprotectWithHttpMessagesAsync(recoveryPlanName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Execute commit failover of the recovery plan. + /// Gets the requested recovery plan. /// /// - /// The operation to commit the fail over of a recovery plan. + /// Gets the details of the recovery plan. /// /// /// The operations group for this extension method. /// /// - /// Recovery plan name. + /// Name of the recovery plan. /// - public static RecoveryPlan FailoverCommit(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName) + public static RecoveryPlan Get(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName) { - return operations.FailoverCommitAsync(recoveryPlanName).GetAwaiter().GetResult(); + return operations.GetAsync(recoveryPlanName).GetAwaiter().GetResult(); } /// - /// Execute commit failover of the recovery plan. + /// Gets the requested recovery plan. /// /// - /// The operation to commit the fail over of a recovery plan. + /// Gets the details of the recovery plan. /// /// /// The operations group for this extension method. /// /// - /// Recovery plan name. + /// Name of the recovery plan. /// /// /// The cancellation token. /// - public static async Task FailoverCommitAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.FailoverCommitWithHttpMessagesAsync(recoveryPlanName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(recoveryPlanName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Execute test failover cleanup of the recovery plan. + /// Creates a recovery plan with the given details. /// /// - /// The operation to cleanup test failover of a recovery plan. + /// The operation to create a recovery plan. /// /// /// The operations group for this extension method. @@ -114,18 +108,18 @@ public static RecoveryPlan FailoverCommit(this IReplicationRecoveryPlansOperatio /// Recovery plan name. /// /// - /// Test failover cleanup input. + /// Recovery Plan creation input. /// - public static RecoveryPlan TestFailoverCleanup(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input) + public static RecoveryPlan Create(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CreateRecoveryPlanInput input) { - return operations.TestFailoverCleanupAsync(recoveryPlanName, input).GetAwaiter().GetResult(); + return operations.CreateAsync(recoveryPlanName, input).GetAwaiter().GetResult(); } /// - /// Execute test failover cleanup of the recovery plan. + /// Creates a recovery plan with the given details. /// /// - /// The operation to cleanup test failover of a recovery plan. + /// The operation to create a recovery plan. /// /// /// The operations group for this extension method. @@ -134,24 +128,24 @@ public static RecoveryPlan TestFailoverCleanup(this IReplicationRecoveryPlansOpe /// Recovery plan name. /// /// - /// Test failover cleanup input. + /// Recovery Plan creation input. /// /// /// The cancellation token. /// - public static async Task TestFailoverCleanupAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CreateRecoveryPlanInput input, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.TestFailoverCleanupWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Execute test failover of the recovery plan. + /// Deletes the specified recovery plan. /// /// - /// The operation to start the test failover of a recovery plan. + /// Delete a recovery plan. /// /// /// The operations group for this extension method. @@ -159,19 +153,16 @@ public static RecoveryPlan TestFailoverCleanup(this IReplicationRecoveryPlansOpe /// /// Recovery plan name. /// - /// - /// Failover input. - /// - public static RecoveryPlan TestFailover(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverInput input) + public static void Delete(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName) { - return operations.TestFailoverAsync(recoveryPlanName, input).GetAwaiter().GetResult(); + operations.DeleteAsync(recoveryPlanName).GetAwaiter().GetResult(); } /// - /// Execute test failover of the recovery plan. + /// Deletes the specified recovery plan. /// /// - /// The operation to start the test failover of a recovery plan. + /// Delete a recovery plan. /// /// /// The operations group for this extension method. @@ -179,25 +170,19 @@ public static RecoveryPlan TestFailover(this IReplicationRecoveryPlansOperations /// /// Recovery plan name. /// - /// - /// Failover input. - /// /// /// The cancellation token. /// - public static async Task TestFailoverAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverInput input, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.TestFailoverWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.DeleteWithHttpMessagesAsync(recoveryPlanName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Execute unplanned failover of the recovery plan. + /// Updates the given recovery plan. /// /// - /// The operation to start the failover of a recovery plan. + /// The operation to update a recovery plan. /// /// /// The operations group for this extension method. @@ -206,18 +191,18 @@ public static RecoveryPlan TestFailover(this IReplicationRecoveryPlansOperations /// Recovery plan name. /// /// - /// Failover input. + /// Update recovery plan input /// - public static RecoveryPlan UnplannedFailover(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanUnplannedFailoverInput input) + public static RecoveryPlan Update(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, UpdateRecoveryPlanInput input) { - return operations.UnplannedFailoverAsync(recoveryPlanName, input).GetAwaiter().GetResult(); + return operations.UpdateAsync(recoveryPlanName, input).GetAwaiter().GetResult(); } /// - /// Execute unplanned failover of the recovery plan. + /// Updates the given recovery plan. /// /// - /// The operation to start the failover of a recovery plan. + /// The operation to update a recovery plan. /// /// /// The operations group for this extension method. @@ -226,24 +211,24 @@ public static RecoveryPlan UnplannedFailover(this IReplicationRecoveryPlansOpera /// Recovery plan name. /// /// - /// Failover input. + /// Update recovery plan input /// /// /// The cancellation token. /// - public static async Task UnplannedFailoverAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, UpdateRecoveryPlanInput input, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UnplannedFailoverWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Execute planned failover of the recovery plan. + /// Execute commit failover of the recovery plan. /// /// - /// The operation to start the planned failover of a recovery plan. + /// The operation to commit the fail over of a recovery plan. /// /// /// The operations group for this extension method. @@ -251,19 +236,16 @@ public static RecoveryPlan UnplannedFailover(this IReplicationRecoveryPlansOpera /// /// Recovery plan name. /// - /// - /// Failover input. - /// - public static RecoveryPlan PlannedFailover(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanPlannedFailoverInput input) + public static RecoveryPlan FailoverCommit(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName) { - return operations.PlannedFailoverAsync(recoveryPlanName, input).GetAwaiter().GetResult(); + return operations.FailoverCommitAsync(recoveryPlanName).GetAwaiter().GetResult(); } /// - /// Execute planned failover of the recovery plan. + /// Execute commit failover of the recovery plan. /// /// - /// The operation to start the planned failover of a recovery plan. + /// The operation to commit the fail over of a recovery plan. /// /// /// The operations group for this extension method. @@ -271,65 +253,68 @@ public static RecoveryPlan PlannedFailover(this IReplicationRecoveryPlansOperati /// /// Recovery plan name. /// - /// - /// Failover input. - /// /// /// The cancellation token. /// - public static async Task PlannedFailoverAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanPlannedFailoverInput input, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task FailoverCommitAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.PlannedFailoverWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.FailoverCommitWithHttpMessagesAsync(recoveryPlanName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets the requested recovery plan. + /// Execute planned failover of the recovery plan. /// /// - /// Gets the details of the recovery plan. + /// The operation to start the planned failover of a recovery plan. /// /// /// The operations group for this extension method. /// /// - /// Name of the recovery plan. + /// Recovery plan name. /// - public static RecoveryPlan Get(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName) + /// + /// Failover input. + /// + public static RecoveryPlan PlannedFailover(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanPlannedFailoverInput input) { - return operations.GetAsync(recoveryPlanName).GetAwaiter().GetResult(); + return operations.PlannedFailoverAsync(recoveryPlanName, input).GetAwaiter().GetResult(); } /// - /// Gets the requested recovery plan. + /// Execute planned failover of the recovery plan. /// /// - /// Gets the details of the recovery plan. + /// The operation to start the planned failover of a recovery plan. /// /// /// The operations group for this extension method. /// /// - /// Name of the recovery plan. + /// Recovery plan name. + /// + /// + /// Failover input. /// /// /// The cancellation token. /// - public static async Task GetAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task PlannedFailoverAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanPlannedFailoverInput input, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(recoveryPlanName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.PlannedFailoverWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Creates a recovery plan with the given details. + /// Execute reprotect of the recovery plan. /// /// - /// The operation to create a recovery plan. + /// The operation to reprotect(reverse replicate) a recovery plan. /// /// /// The operations group for this extension method. @@ -337,19 +322,16 @@ public static RecoveryPlan Get(this IReplicationRecoveryPlansOperations operatio /// /// Recovery plan name. /// - /// - /// Recovery Plan creation input. - /// - public static RecoveryPlan Create(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CreateRecoveryPlanInput input) + public static RecoveryPlan Reprotect(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName) { - return operations.CreateAsync(recoveryPlanName, input).GetAwaiter().GetResult(); + return operations.ReprotectAsync(recoveryPlanName).GetAwaiter().GetResult(); } /// - /// Creates a recovery plan with the given details. + /// Execute reprotect of the recovery plan. /// /// - /// The operation to create a recovery plan. + /// The operation to reprotect(reverse replicate) a recovery plan. /// /// /// The operations group for this extension method. @@ -357,25 +339,22 @@ public static RecoveryPlan Create(this IReplicationRecoveryPlansOperations opera /// /// Recovery plan name. /// - /// - /// Recovery Plan creation input. - /// /// /// The cancellation token. /// - public static async Task CreateAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CreateRecoveryPlanInput input, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ReprotectAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ReprotectWithHttpMessagesAsync(recoveryPlanName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes the specified recovery plan. + /// Execute test failover of the recovery plan. /// /// - /// Delete a recovery plan. + /// The operation to start the test failover of a recovery plan. /// /// /// The operations group for this extension method. @@ -383,16 +362,19 @@ public static RecoveryPlan Create(this IReplicationRecoveryPlansOperations opera /// /// Recovery plan name. /// - public static void Delete(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName) + /// + /// Failover input. + /// + public static RecoveryPlan TestFailover(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverInput input) { - operations.DeleteAsync(recoveryPlanName).GetAwaiter().GetResult(); + return operations.TestFailoverAsync(recoveryPlanName, input).GetAwaiter().GetResult(); } /// - /// Deletes the specified recovery plan. + /// Execute test failover of the recovery plan. /// /// - /// Delete a recovery plan. + /// The operation to start the test failover of a recovery plan. /// /// /// The operations group for this extension method. @@ -400,19 +382,25 @@ public static void Delete(this IReplicationRecoveryPlansOperations operations, s /// /// Recovery plan name. /// + /// + /// Failover input. + /// /// /// The cancellation token. /// - public static async Task DeleteAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task TestFailoverAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverInput input, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(recoveryPlanName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.TestFailoverWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// - /// Updates the given recovery plan. + /// Execute test failover cleanup of the recovery plan. /// /// - /// The operation to update a recovery plan. + /// The operation to cleanup test failover of a recovery plan. /// /// /// The operations group for this extension method. @@ -421,18 +409,18 @@ public static void Delete(this IReplicationRecoveryPlansOperations operations, s /// Recovery plan name. /// /// - /// Update recovery plan input + /// Test failover cleanup input. /// - public static RecoveryPlan Update(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, UpdateRecoveryPlanInput input) + public static RecoveryPlan TestFailoverCleanup(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input) { - return operations.UpdateAsync(recoveryPlanName, input).GetAwaiter().GetResult(); + return operations.TestFailoverCleanupAsync(recoveryPlanName, input).GetAwaiter().GetResult(); } /// - /// Updates the given recovery plan. + /// Execute test failover cleanup of the recovery plan. /// /// - /// The operation to update a recovery plan. + /// The operation to cleanup test failover of a recovery plan. /// /// /// The operations group for this extension method. @@ -441,58 +429,70 @@ public static RecoveryPlan Update(this IReplicationRecoveryPlansOperations opera /// Recovery plan name. /// /// - /// Update recovery plan input + /// Test failover cleanup input. /// /// /// The cancellation token. /// - public static async Task UpdateAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, UpdateRecoveryPlanInput input, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task TestFailoverCleanupAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.TestFailoverCleanupWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets the list of recovery plans. + /// Execute unplanned failover of the recovery plan. /// /// - /// Lists the recovery plans in the vault. + /// The operation to start the failover of a recovery plan. /// /// /// The operations group for this extension method. /// - public static IPage List(this IReplicationRecoveryPlansOperations operations) + /// + /// Recovery plan name. + /// + /// + /// Failover input. + /// + public static RecoveryPlan UnplannedFailover(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanUnplannedFailoverInput input) { - return operations.ListAsync().GetAwaiter().GetResult(); + return operations.UnplannedFailoverAsync(recoveryPlanName, input).GetAwaiter().GetResult(); } /// - /// Gets the list of recovery plans. + /// Execute unplanned failover of the recovery plan. /// /// - /// Lists the recovery plans in the vault. + /// The operation to start the failover of a recovery plan. /// /// /// The operations group for this extension method. /// + /// + /// Recovery plan name. + /// + /// + /// Failover input. + /// /// /// The cancellation token. /// - public static async Task> ListAsync(this IReplicationRecoveryPlansOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UnplannedFailoverAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UnplannedFailoverWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Execute reprotect of the recovery plan. + /// Creates a recovery plan with the given details. /// /// - /// The operation to reprotect(reverse replicate) a recovery plan. + /// The operation to create a recovery plan. /// /// /// The operations group for this extension method. @@ -500,16 +500,19 @@ public static IPage List(this IReplicationRecoveryPlansOperations /// /// Recovery plan name. /// - public static RecoveryPlan BeginReprotect(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName) + /// + /// Recovery Plan creation input. + /// + public static RecoveryPlan BeginCreate(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CreateRecoveryPlanInput input) { - return operations.BeginReprotectAsync(recoveryPlanName).GetAwaiter().GetResult(); + return operations.BeginCreateAsync(recoveryPlanName, input).GetAwaiter().GetResult(); } /// - /// Execute reprotect of the recovery plan. + /// Creates a recovery plan with the given details. /// /// - /// The operation to reprotect(reverse replicate) a recovery plan. + /// The operation to create a recovery plan. /// /// /// The operations group for this extension method. @@ -517,22 +520,25 @@ public static RecoveryPlan BeginReprotect(this IReplicationRecoveryPlansOperatio /// /// Recovery plan name. /// + /// + /// Recovery Plan creation input. + /// /// /// The cancellation token. /// - public static async Task BeginReprotectAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCreateAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CreateRecoveryPlanInput input, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginReprotectWithHttpMessagesAsync(recoveryPlanName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Execute commit failover of the recovery plan. + /// Deletes the specified recovery plan. /// /// - /// The operation to commit the fail over of a recovery plan. + /// Delete a recovery plan. /// /// /// The operations group for this extension method. @@ -540,16 +546,16 @@ public static RecoveryPlan BeginReprotect(this IReplicationRecoveryPlansOperatio /// /// Recovery plan name. /// - public static RecoveryPlan BeginFailoverCommit(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName) + public static void BeginDelete(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName) { - return operations.BeginFailoverCommitAsync(recoveryPlanName).GetAwaiter().GetResult(); + operations.BeginDeleteAsync(recoveryPlanName).GetAwaiter().GetResult(); } /// - /// Execute commit failover of the recovery plan. + /// Deletes the specified recovery plan. /// /// - /// The operation to commit the fail over of a recovery plan. + /// Delete a recovery plan. /// /// /// The operations group for this extension method. @@ -560,19 +566,16 @@ public static RecoveryPlan BeginFailoverCommit(this IReplicationRecoveryPlansOpe /// /// The cancellation token. /// - public static async Task BeginFailoverCommitAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginDeleteAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginFailoverCommitWithHttpMessagesAsync(recoveryPlanName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.BeginDeleteWithHttpMessagesAsync(recoveryPlanName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Execute test failover cleanup of the recovery plan. + /// Updates the given recovery plan. /// /// - /// The operation to cleanup test failover of a recovery plan. + /// The operation to update a recovery plan. /// /// /// The operations group for this extension method. @@ -581,18 +584,18 @@ public static RecoveryPlan BeginFailoverCommit(this IReplicationRecoveryPlansOpe /// Recovery plan name. /// /// - /// Test failover cleanup input. + /// Update recovery plan input /// - public static RecoveryPlan BeginTestFailoverCleanup(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input) + public static RecoveryPlan BeginUpdate(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, UpdateRecoveryPlanInput input) { - return operations.BeginTestFailoverCleanupAsync(recoveryPlanName, input).GetAwaiter().GetResult(); + return operations.BeginUpdateAsync(recoveryPlanName, input).GetAwaiter().GetResult(); } /// - /// Execute test failover cleanup of the recovery plan. + /// Updates the given recovery plan. /// /// - /// The operation to cleanup test failover of a recovery plan. + /// The operation to update a recovery plan. /// /// /// The operations group for this extension method. @@ -601,24 +604,24 @@ public static RecoveryPlan BeginTestFailoverCleanup(this IReplicationRecoveryPla /// Recovery plan name. /// /// - /// Test failover cleanup input. + /// Update recovery plan input /// /// /// The cancellation token. /// - public static async Task BeginTestFailoverCleanupAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginUpdateAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, UpdateRecoveryPlanInput input, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginTestFailoverCleanupWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Execute test failover of the recovery plan. + /// Execute commit failover of the recovery plan. /// /// - /// The operation to start the test failover of a recovery plan. + /// The operation to commit the fail over of a recovery plan. /// /// /// The operations group for this extension method. @@ -626,19 +629,16 @@ public static RecoveryPlan BeginTestFailoverCleanup(this IReplicationRecoveryPla /// /// Recovery plan name. /// - /// - /// Failover input. - /// - public static RecoveryPlan BeginTestFailover(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverInput input) + public static RecoveryPlan BeginFailoverCommit(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName) { - return operations.BeginTestFailoverAsync(recoveryPlanName, input).GetAwaiter().GetResult(); + return operations.BeginFailoverCommitAsync(recoveryPlanName).GetAwaiter().GetResult(); } /// - /// Execute test failover of the recovery plan. + /// Execute commit failover of the recovery plan. /// /// - /// The operation to start the test failover of a recovery plan. + /// The operation to commit the fail over of a recovery plan. /// /// /// The operations group for this extension method. @@ -646,25 +646,22 @@ public static RecoveryPlan BeginTestFailover(this IReplicationRecoveryPlansOpera /// /// Recovery plan name. /// - /// - /// Failover input. - /// /// /// The cancellation token. /// - public static async Task BeginTestFailoverAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverInput input, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginFailoverCommitAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginTestFailoverWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginFailoverCommitWithHttpMessagesAsync(recoveryPlanName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Execute unplanned failover of the recovery plan. + /// Execute planned failover of the recovery plan. /// /// - /// The operation to start the failover of a recovery plan. + /// The operation to start the planned failover of a recovery plan. /// /// /// The operations group for this extension method. @@ -675,16 +672,16 @@ public static RecoveryPlan BeginTestFailover(this IReplicationRecoveryPlansOpera /// /// Failover input. /// - public static RecoveryPlan BeginUnplannedFailover(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanUnplannedFailoverInput input) + public static RecoveryPlan BeginPlannedFailover(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanPlannedFailoverInput input) { - return operations.BeginUnplannedFailoverAsync(recoveryPlanName, input).GetAwaiter().GetResult(); + return operations.BeginPlannedFailoverAsync(recoveryPlanName, input).GetAwaiter().GetResult(); } /// - /// Execute unplanned failover of the recovery plan. + /// Execute planned failover of the recovery plan. /// /// - /// The operation to start the failover of a recovery plan. + /// The operation to start the planned failover of a recovery plan. /// /// /// The operations group for this extension method. @@ -698,19 +695,19 @@ public static RecoveryPlan BeginUnplannedFailover(this IReplicationRecoveryPlans /// /// The cancellation token. /// - public static async Task BeginUnplannedFailoverAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginPlannedFailoverAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanPlannedFailoverInput input, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginUnplannedFailoverWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginPlannedFailoverWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Execute planned failover of the recovery plan. + /// Execute reprotect of the recovery plan. /// /// - /// The operation to start the planned failover of a recovery plan. + /// The operation to reprotect(reverse replicate) a recovery plan. /// /// /// The operations group for this extension method. @@ -718,19 +715,16 @@ public static RecoveryPlan BeginUnplannedFailover(this IReplicationRecoveryPlans /// /// Recovery plan name. /// - /// - /// Failover input. - /// - public static RecoveryPlan BeginPlannedFailover(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanPlannedFailoverInput input) + public static RecoveryPlan BeginReprotect(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName) { - return operations.BeginPlannedFailoverAsync(recoveryPlanName, input).GetAwaiter().GetResult(); + return operations.BeginReprotectAsync(recoveryPlanName).GetAwaiter().GetResult(); } /// - /// Execute planned failover of the recovery plan. + /// Execute reprotect of the recovery plan. /// /// - /// The operation to start the planned failover of a recovery plan. + /// The operation to reprotect(reverse replicate) a recovery plan. /// /// /// The operations group for this extension method. @@ -738,25 +732,22 @@ public static RecoveryPlan BeginPlannedFailover(this IReplicationRecoveryPlansOp /// /// Recovery plan name. /// - /// - /// Failover input. - /// /// /// The cancellation token. /// - public static async Task BeginPlannedFailoverAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanPlannedFailoverInput input, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginReprotectAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginPlannedFailoverWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginReprotectWithHttpMessagesAsync(recoveryPlanName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Creates a recovery plan with the given details. + /// Execute test failover of the recovery plan. /// /// - /// The operation to create a recovery plan. + /// The operation to start the test failover of a recovery plan. /// /// /// The operations group for this extension method. @@ -765,18 +756,18 @@ public static RecoveryPlan BeginPlannedFailover(this IReplicationRecoveryPlansOp /// Recovery plan name. /// /// - /// Recovery Plan creation input. + /// Failover input. /// - public static RecoveryPlan BeginCreate(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CreateRecoveryPlanInput input) + public static RecoveryPlan BeginTestFailover(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverInput input) { - return operations.BeginCreateAsync(recoveryPlanName, input).GetAwaiter().GetResult(); + return operations.BeginTestFailoverAsync(recoveryPlanName, input).GetAwaiter().GetResult(); } /// - /// Creates a recovery plan with the given details. + /// Execute test failover of the recovery plan. /// /// - /// The operation to create a recovery plan. + /// The operation to start the test failover of a recovery plan. /// /// /// The operations group for this extension method. @@ -785,24 +776,24 @@ public static RecoveryPlan BeginCreate(this IReplicationRecoveryPlansOperations /// Recovery plan name. /// /// - /// Recovery Plan creation input. + /// Failover input. /// /// /// The cancellation token. /// - public static async Task BeginCreateAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CreateRecoveryPlanInput input, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginTestFailoverAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverInput input, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginCreateWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginTestFailoverWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes the specified recovery plan. + /// Execute test failover cleanup of the recovery plan. /// /// - /// Delete a recovery plan. + /// The operation to cleanup test failover of a recovery plan. /// /// /// The operations group for this extension method. @@ -810,16 +801,19 @@ public static RecoveryPlan BeginCreate(this IReplicationRecoveryPlansOperations /// /// Recovery plan name. /// - public static void BeginDelete(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName) + /// + /// Test failover cleanup input. + /// + public static RecoveryPlan BeginTestFailoverCleanup(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input) { - operations.BeginDeleteAsync(recoveryPlanName).GetAwaiter().GetResult(); + return operations.BeginTestFailoverCleanupAsync(recoveryPlanName, input).GetAwaiter().GetResult(); } /// - /// Deletes the specified recovery plan. + /// Execute test failover cleanup of the recovery plan. /// /// - /// Delete a recovery plan. + /// The operation to cleanup test failover of a recovery plan. /// /// /// The operations group for this extension method. @@ -827,19 +821,25 @@ public static void BeginDelete(this IReplicationRecoveryPlansOperations operatio /// /// Recovery plan name. /// + /// + /// Test failover cleanup input. + /// /// /// The cancellation token. /// - public static async Task BeginDeleteAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginTestFailoverCleanupAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginDeleteWithHttpMessagesAsync(recoveryPlanName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.BeginTestFailoverCleanupWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// - /// Updates the given recovery plan. + /// Execute unplanned failover of the recovery plan. /// /// - /// The operation to update a recovery plan. + /// The operation to start the failover of a recovery plan. /// /// /// The operations group for this extension method. @@ -848,18 +848,18 @@ public static void BeginDelete(this IReplicationRecoveryPlansOperations operatio /// Recovery plan name. /// /// - /// Update recovery plan input + /// Failover input. /// - public static RecoveryPlan BeginUpdate(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, UpdateRecoveryPlanInput input) + public static RecoveryPlan BeginUnplannedFailover(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanUnplannedFailoverInput input) { - return operations.BeginUpdateAsync(recoveryPlanName, input).GetAwaiter().GetResult(); + return operations.BeginUnplannedFailoverAsync(recoveryPlanName, input).GetAwaiter().GetResult(); } /// - /// Updates the given recovery plan. + /// Execute unplanned failover of the recovery plan. /// /// - /// The operation to update a recovery plan. + /// The operation to start the failover of a recovery plan. /// /// /// The operations group for this extension method. @@ -868,14 +868,14 @@ public static RecoveryPlan BeginUpdate(this IReplicationRecoveryPlansOperations /// Recovery plan name. /// /// - /// Update recovery plan input + /// Failover input. /// /// /// The cancellation token. /// - public static async Task BeginUpdateAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, UpdateRecoveryPlanInput input, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginUnplannedFailoverAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanUnplannedFailoverInput input, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginUnplannedFailoverWithHttpMessagesAsync(recoveryPlanName, input, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationRecoveryServicesProvidersOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationRecoveryServicesProvidersOperations.cs index a860a65571ed..4af10cecbd78 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationRecoveryServicesProvidersOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationRecoveryServicesProvidersOperations.cs @@ -51,71 +51,13 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl public SiteRecoveryManagementClient Client { get; private set; } /// - /// Refresh details from the recovery services provider. - /// - /// - /// The operation to refresh the information from the recovery services - /// provider. - /// - /// - /// Fabric name. - /// - /// - /// Recovery services provider name. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> RefreshProviderWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginRefreshProviderWithHttpMessagesAsync(fabricName, providerName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Deletes provider from fabric. Note: Deleting provider for any fabric other - /// than SingleHost is unsupported. To maintain backward compatibility for - /// released clients the object "deleteRspInput" is used (if the object is - /// empty we assume that it is old client and continue the old behavior). - /// - /// - /// The operation to removes/delete(unregister) a recovery services provider - /// from the vault - /// - /// - /// Fabric name. - /// - /// - /// Recovery services provider name. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task DeleteWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(fabricName, providerName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the details of a recovery services provider. + /// Gets the list of registered recovery services providers for the fabric. /// /// - /// Gets the details of registered recovery services provider. + /// Lists the registered recovery services providers for the specified fabric. /// /// - /// Fabric name. - /// - /// - /// Recovery services provider name + /// Fabric name /// /// /// Headers that will be added to request. @@ -138,7 +80,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -160,10 +102,6 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl { throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); } - if (providerName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "providerName"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -172,18 +110,16 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); - tracingParameters.Add("providerName", providerName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationFabrics", 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}/replicationRecoveryServicesProviders/{providerName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders").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("{providerName}", System.Uri.EscapeDataString(providerName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -282,7 +218,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl 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")) @@ -295,7 +231,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -315,39 +251,16 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl } /// - /// Purges recovery service provider from fabric + /// Gets the details of a recovery services provider. /// /// - /// The operation to purge(force delete) a recovery services provider from the - /// vault. + /// Gets the details of registered recovery services provider. /// /// /// Fabric name. /// /// - /// Recovery services provider name. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task PurgeWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginPurgeWithHttpMessagesAsync(fabricName, providerName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the list of registered recovery services providers for the fabric. - /// - /// - /// Lists the registered recovery services providers for the specified fabric. - /// - /// - /// Fabric name + /// Recovery services provider name /// /// /// Headers that will be added to request. @@ -370,7 +283,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl /// /// A response object containing the response body and response headers. /// - public async Task>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -392,6 +305,10 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl { throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); } + if (providerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "providerName"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -400,16 +317,18 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); + tracingParameters.Add("providerName", providerName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationFabrics", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", 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}/replicationRecoveryServicesProviders").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}").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("{providerName}", System.Uri.EscapeDataString(providerName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -508,7 +427,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl 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")) @@ -521,7 +440,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -540,6 +459,87 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl return _result; } + /// + /// Purges recovery service provider from fabric + /// + /// + /// The operation to purge(force delete) a recovery services provider from the + /// vault. + /// + /// + /// Fabric name. + /// + /// + /// Recovery services provider name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task PurgeWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginPurgeWithHttpMessagesAsync(fabricName, providerName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Refresh details from the recovery services provider. + /// + /// + /// The operation to refresh the information from the recovery services + /// provider. + /// + /// + /// Fabric name. + /// + /// + /// Recovery services provider name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> RefreshProviderWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginRefreshProviderWithHttpMessagesAsync(fabricName, providerName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes provider from fabric. Note: Deleting provider for any fabric other + /// than SingleHost is unsupported. To maintain backward compatibility for + /// released clients the object "deleteRspInput" is used (if the object is + /// empty we assume that it is old client and continue the old behavior). + /// + /// + /// The operation to removes/delete(unregister) a recovery services provider + /// from the vault + /// + /// + /// Fabric name. + /// + /// + /// Recovery services provider name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(fabricName, providerName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Gets the list of registered recovery services providers in the vault. This /// is a view only api. @@ -733,11 +733,11 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl } /// - /// Refresh details from the recovery services provider. + /// Purges recovery service provider from fabric /// /// - /// The operation to refresh the information from the recovery services - /// provider. + /// The operation to purge(force delete) a recovery services provider from the + /// vault. /// /// /// Fabric name. @@ -754,9 +754,6 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -766,7 +763,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl /// /// A response object containing the response body and response headers. /// - public async Task> BeginRefreshProviderWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginPurgeWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -802,11 +799,11 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("providerName", providerName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginRefreshProvider", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginPurge", 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}/replicationRecoveryServicesProviders/{providerName}/refreshProvider").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}").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)); @@ -824,7 +821,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -875,7 +872,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl 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 @@ -910,31 +907,13 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl 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); @@ -943,14 +922,11 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl } /// - /// Deletes provider from fabric. Note: Deleting provider for any fabric other - /// than SingleHost is unsupported. To maintain backward compatibility for - /// released clients the object "deleteRspInput" is used (if the object is - /// empty we assume that it is old client and continue the old behavior). + /// Refresh details from the recovery services provider. /// /// - /// The operation to removes/delete(unregister) a recovery services provider - /// from the vault + /// The operation to refresh the information from the recovery services + /// provider. /// /// /// Fabric name. @@ -967,6 +943,9 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -976,7 +955,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginRefreshProviderWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1012,11 +991,11 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("providerName", providerName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginRefreshProvider", 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}/replicationRecoveryServicesProviders/{providerName}/remove").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}/refreshProvider").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)); @@ -1085,7 +1064,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl 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 @@ -1120,13 +1099,31 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl 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); @@ -1135,11 +1132,14 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl } /// - /// Purges recovery service provider from fabric + /// Deletes provider from fabric. Note: Deleting provider for any fabric other + /// than SingleHost is unsupported. To maintain backward compatibility for + /// released clients the object "deleteRspInput" is used (if the object is + /// empty we assume that it is old client and continue the old behavior). /// /// - /// The operation to purge(force delete) a recovery services provider from the - /// vault. + /// The operation to removes/delete(unregister) a recovery services provider + /// from the vault /// /// /// Fabric name. @@ -1165,7 +1165,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl /// /// A response object containing the response body and response headers. /// - public async Task BeginPurgeWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginDeleteWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1201,11 +1201,11 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("providerName", providerName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginPurge", 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}/replicationRecoveryServicesProviders/{providerName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}/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)); @@ -1223,7 +1223,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationRecoveryServicesProvidersOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationRecoveryServicesProvidersOperationsExtensions.cs index 0b4ae6279411..34c65f39c16c 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationRecoveryServicesProvidersOperationsExtensions.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationRecoveryServicesProvidersOperationsExtensions.cs @@ -22,62 +22,50 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public static partial class ReplicationRecoveryServicesProvidersOperationsExtensions { /// - /// Refresh details from the recovery services provider. + /// Gets the list of registered recovery services providers for the fabric. /// /// - /// The operation to refresh the information from the recovery services - /// provider. + /// Lists the registered recovery services providers for the specified fabric. /// /// /// The operations group for this extension method. /// /// - /// Fabric name. - /// - /// - /// Recovery services provider name. + /// Fabric name /// - public static RecoveryServicesProvider RefreshProvider(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName) + public static IPage ListByReplicationFabrics(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName) { - return operations.RefreshProviderAsync(fabricName, providerName).GetAwaiter().GetResult(); + return operations.ListByReplicationFabricsAsync(fabricName).GetAwaiter().GetResult(); } /// - /// Refresh details from the recovery services provider. + /// Gets the list of registered recovery services providers for the fabric. /// /// - /// The operation to refresh the information from the recovery services - /// provider. + /// Lists the registered recovery services providers for the specified fabric. /// /// /// The operations group for this extension method. /// /// - /// Fabric name. - /// - /// - /// Recovery services provider name. + /// Fabric name /// /// /// The cancellation token. /// - public static async Task RefreshProviderAsync(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByReplicationFabricsAsync(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.RefreshProviderWithHttpMessagesAsync(fabricName, providerName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByReplicationFabricsWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes provider from fabric. Note: Deleting provider for any fabric other - /// than SingleHost is unsupported. To maintain backward compatibility for - /// released clients the object "deleteRspInput" is used (if the object is - /// empty we assume that it is old client and continue the old behavior). + /// Gets the details of a recovery services provider. /// /// - /// The operation to removes/delete(unregister) a recovery services provider - /// from the vault + /// Gets the details of registered recovery services provider. /// /// /// The operations group for this extension method. @@ -86,22 +74,18 @@ public static RecoveryServicesProvider RefreshProvider(this IReplicationRecovery /// Fabric name. /// /// - /// Recovery services provider name. + /// Recovery services provider name /// - public static void Delete(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName) + public static RecoveryServicesProvider Get(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName) { - operations.DeleteAsync(fabricName, providerName).GetAwaiter().GetResult(); + return operations.GetAsync(fabricName, providerName).GetAwaiter().GetResult(); } /// - /// Deletes provider from fabric. Note: Deleting provider for any fabric other - /// than SingleHost is unsupported. To maintain backward compatibility for - /// released clients the object "deleteRspInput" is used (if the object is - /// empty we assume that it is old client and continue the old behavior). + /// Gets the details of a recovery services provider. /// /// - /// The operation to removes/delete(unregister) a recovery services provider - /// from the vault + /// Gets the details of registered recovery services provider. /// /// /// The operations group for this extension method. @@ -110,21 +94,25 @@ public static void Delete(this IReplicationRecoveryServicesProvidersOperations o /// Fabric name. /// /// - /// Recovery services provider name. + /// Recovery services provider name /// /// /// The cancellation token. /// - public static async Task DeleteAsync(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(fabricName, providerName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.GetWithHttpMessagesAsync(fabricName, providerName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// - /// Gets the details of a recovery services provider. + /// Purges recovery service provider from fabric /// /// - /// Gets the details of registered recovery services provider. + /// The operation to purge(force delete) a recovery services provider from the + /// vault. /// /// /// The operations group for this extension method. @@ -133,18 +121,19 @@ public static void Delete(this IReplicationRecoveryServicesProvidersOperations o /// Fabric name. /// /// - /// Recovery services provider name + /// Recovery services provider name. /// - public static RecoveryServicesProvider Get(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName) + public static void Purge(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName) { - return operations.GetAsync(fabricName, providerName).GetAwaiter().GetResult(); + operations.PurgeAsync(fabricName, providerName).GetAwaiter().GetResult(); } /// - /// Gets the details of a recovery services provider. + /// Purges recovery service provider from fabric /// /// - /// Gets the details of registered recovery services provider. + /// The operation to purge(force delete) a recovery services provider from the + /// vault. /// /// /// The operations group for this extension method. @@ -153,25 +142,22 @@ public static RecoveryServicesProvider Get(this IReplicationRecoveryServicesProv /// Fabric name. /// /// - /// Recovery services provider name + /// Recovery services provider name. /// /// /// The cancellation token. /// - public static async Task GetAsync(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task PurgeAsync(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(fabricName, providerName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.PurgeWithHttpMessagesAsync(fabricName, providerName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Purges recovery service provider from fabric + /// Refresh details from the recovery services provider. /// /// - /// The operation to purge(force delete) a recovery services provider from the - /// vault. + /// The operation to refresh the information from the recovery services + /// provider. /// /// /// The operations group for this extension method. @@ -182,17 +168,17 @@ public static RecoveryServicesProvider Get(this IReplicationRecoveryServicesProv /// /// Recovery services provider name. /// - public static void Purge(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName) + public static RecoveryServicesProvider RefreshProvider(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName) { - operations.PurgeAsync(fabricName, providerName).GetAwaiter().GetResult(); + return operations.RefreshProviderAsync(fabricName, providerName).GetAwaiter().GetResult(); } /// - /// Purges recovery service provider from fabric + /// Refresh details from the recovery services provider. /// /// - /// The operation to purge(force delete) a recovery services provider from the - /// vault. + /// The operation to refresh the information from the recovery services + /// provider. /// /// /// The operations group for this extension method. @@ -206,49 +192,63 @@ public static void Purge(this IReplicationRecoveryServicesProvidersOperations op /// /// The cancellation token. /// - public static async Task PurgeAsync(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task RefreshProviderAsync(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.PurgeWithHttpMessagesAsync(fabricName, providerName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.RefreshProviderWithHttpMessagesAsync(fabricName, providerName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// - /// Gets the list of registered recovery services providers for the fabric. + /// Deletes provider from fabric. Note: Deleting provider for any fabric other + /// than SingleHost is unsupported. To maintain backward compatibility for + /// released clients the object "deleteRspInput" is used (if the object is + /// empty we assume that it is old client and continue the old behavior). /// /// - /// Lists the registered recovery services providers for the specified fabric. + /// The operation to removes/delete(unregister) a recovery services provider + /// from the vault /// /// /// The operations group for this extension method. /// /// - /// Fabric name + /// Fabric name. /// - public static IPage ListByReplicationFabrics(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName) + /// + /// Recovery services provider name. + /// + public static void Delete(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName) { - return operations.ListByReplicationFabricsAsync(fabricName).GetAwaiter().GetResult(); + operations.DeleteAsync(fabricName, providerName).GetAwaiter().GetResult(); } /// - /// Gets the list of registered recovery services providers for the fabric. + /// Deletes provider from fabric. Note: Deleting provider for any fabric other + /// than SingleHost is unsupported. To maintain backward compatibility for + /// released clients the object "deleteRspInput" is used (if the object is + /// empty we assume that it is old client and continue the old behavior). /// /// - /// Lists the registered recovery services providers for the specified fabric. + /// The operation to removes/delete(unregister) a recovery services provider + /// from the vault /// /// /// The operations group for this extension method. /// /// - /// Fabric name + /// Fabric name. + /// + /// + /// Recovery services provider name. /// /// /// The cancellation token. /// - public static async Task> ListByReplicationFabricsAsync(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByReplicationFabricsWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.DeleteWithHttpMessagesAsync(fabricName, providerName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -288,11 +288,11 @@ public static IPage List(this IReplicationRecoveryServ } /// - /// Refresh details from the recovery services provider. + /// Purges recovery service provider from fabric /// /// - /// The operation to refresh the information from the recovery services - /// provider. + /// The operation to purge(force delete) a recovery services provider from the + /// vault. /// /// /// The operations group for this extension method. @@ -303,17 +303,17 @@ public static IPage List(this IReplicationRecoveryServ /// /// Recovery services provider name. /// - public static RecoveryServicesProvider BeginRefreshProvider(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName) + public static void BeginPurge(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName) { - return operations.BeginRefreshProviderAsync(fabricName, providerName).GetAwaiter().GetResult(); + operations.BeginPurgeAsync(fabricName, providerName).GetAwaiter().GetResult(); } /// - /// Refresh details from the recovery services provider. + /// Purges recovery service provider from fabric /// /// - /// The operation to refresh the information from the recovery services - /// provider. + /// The operation to purge(force delete) a recovery services provider from the + /// vault. /// /// /// The operations group for this extension method. @@ -327,23 +327,17 @@ public static RecoveryServicesProvider BeginRefreshProvider(this IReplicationRec /// /// The cancellation token. /// - public static async Task BeginRefreshProviderAsync(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginPurgeAsync(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginRefreshProviderWithHttpMessagesAsync(fabricName, providerName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.BeginPurgeWithHttpMessagesAsync(fabricName, providerName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Deletes provider from fabric. Note: Deleting provider for any fabric other - /// than SingleHost is unsupported. To maintain backward compatibility for - /// released clients the object "deleteRspInput" is used (if the object is - /// empty we assume that it is old client and continue the old behavior). + /// Refresh details from the recovery services provider. /// /// - /// The operation to removes/delete(unregister) a recovery services provider - /// from the vault + /// The operation to refresh the information from the recovery services + /// provider. /// /// /// The operations group for this extension method. @@ -354,20 +348,17 @@ public static RecoveryServicesProvider BeginRefreshProvider(this IReplicationRec /// /// Recovery services provider name. /// - public static void BeginDelete(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName) + public static RecoveryServicesProvider BeginRefreshProvider(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName) { - operations.BeginDeleteAsync(fabricName, providerName).GetAwaiter().GetResult(); + return operations.BeginRefreshProviderAsync(fabricName, providerName).GetAwaiter().GetResult(); } /// - /// Deletes provider from fabric. Note: Deleting provider for any fabric other - /// than SingleHost is unsupported. To maintain backward compatibility for - /// released clients the object "deleteRspInput" is used (if the object is - /// empty we assume that it is old client and continue the old behavior). + /// Refresh details from the recovery services provider. /// /// - /// The operation to removes/delete(unregister) a recovery services provider - /// from the vault + /// The operation to refresh the information from the recovery services + /// provider. /// /// /// The operations group for this extension method. @@ -381,17 +372,23 @@ public static void BeginDelete(this IReplicationRecoveryServicesProvidersOperati /// /// The cancellation token. /// - public static async Task BeginDeleteAsync(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginRefreshProviderAsync(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginDeleteWithHttpMessagesAsync(fabricName, providerName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.BeginRefreshProviderWithHttpMessagesAsync(fabricName, providerName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// - /// Purges recovery service provider from fabric + /// Deletes provider from fabric. Note: Deleting provider for any fabric other + /// than SingleHost is unsupported. To maintain backward compatibility for + /// released clients the object "deleteRspInput" is used (if the object is + /// empty we assume that it is old client and continue the old behavior). /// /// - /// The operation to purge(force delete) a recovery services provider from the - /// vault. + /// The operation to removes/delete(unregister) a recovery services provider + /// from the vault /// /// /// The operations group for this extension method. @@ -402,17 +399,20 @@ public static void BeginDelete(this IReplicationRecoveryServicesProvidersOperati /// /// Recovery services provider name. /// - public static void BeginPurge(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName) + public static void BeginDelete(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName) { - operations.BeginPurgeAsync(fabricName, providerName).GetAwaiter().GetResult(); + operations.BeginDeleteAsync(fabricName, providerName).GetAwaiter().GetResult(); } /// - /// Purges recovery service provider from fabric + /// Deletes provider from fabric. Note: Deleting provider for any fabric other + /// than SingleHost is unsupported. To maintain backward compatibility for + /// released clients the object "deleteRspInput" is used (if the object is + /// empty we assume that it is old client and continue the old behavior). /// /// - /// The operation to purge(force delete) a recovery services provider from the - /// vault. + /// The operation to removes/delete(unregister) a recovery services provider + /// from the vault /// /// /// The operations group for this extension method. @@ -426,9 +426,9 @@ public static void BeginPurge(this IReplicationRecoveryServicesProvidersOperatio /// /// The cancellation token. /// - public static async Task BeginPurgeAsync(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginDeleteAsync(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginPurgeWithHttpMessagesAsync(fabricName, providerName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.BeginDeleteWithHttpMessagesAsync(fabricName, providerName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationStorageClassificationMappingsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationStorageClassificationMappingsOperations.cs index c90818c3c49c..90345a925245 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationStorageClassificationMappingsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationStorageClassificationMappingsOperations.cs @@ -51,19 +51,16 @@ internal ReplicationStorageClassificationMappingsOperations(SiteRecoveryManageme public SiteRecoveryManagementClient Client { get; private set; } /// - /// Gets the details of a storage classification mapping. + /// Gets the list of storage classification mappings objects under a storage. /// /// - /// Gets the details of the specified storage classification mapping. + /// Lists the storage classification mappings for the fabric. /// /// /// Fabric name. /// /// - /// Storage classification name. - /// - /// - /// Storage classification mapping name. + /// Storage classfication name. /// /// /// Headers that will be added to request. @@ -86,7 +83,7 @@ internal ReplicationStorageClassificationMappingsOperations(SiteRecoveryManageme /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string fabricName, string storageClassificationName, string storageClassificationMappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByReplicationStorageClassificationsWithHttpMessagesAsync(string fabricName, string storageClassificationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -112,10 +109,6 @@ internal ReplicationStorageClassificationMappingsOperations(SiteRecoveryManageme { throw new ValidationException(ValidationRules.CannotBeNull, "storageClassificationName"); } - if (storageClassificationMappingName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "storageClassificationMappingName"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -125,19 +118,17 @@ internal ReplicationStorageClassificationMappingsOperations(SiteRecoveryManageme Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("storageClassificationName", storageClassificationName); - tracingParameters.Add("storageClassificationMappingName", storageClassificationMappingName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationStorageClassifications", 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}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings/{storageClassificationMappingName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings").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("{storageClassificationName}", System.Uri.EscapeDataString(storageClassificationName)); - _url = _url.Replace("{storageClassificationMappingName}", System.Uri.EscapeDataString(storageClassificationMappingName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -236,7 +227,7 @@ internal ReplicationStorageClassificationMappingsOperations(SiteRecoveryManageme 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")) @@ -249,7 +240,7 @@ internal ReplicationStorageClassificationMappingsOperations(SiteRecoveryManageme _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -269,41 +260,10 @@ internal ReplicationStorageClassificationMappingsOperations(SiteRecoveryManageme } /// - /// Create storage classification mapping. - /// - /// - /// The operation to create a storage classification mapping. - /// - /// - /// Fabric name. - /// - /// - /// Storage classification name. - /// - /// - /// Storage classification mapping name. - /// - /// - /// Pairing input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CreateWithHttpMessagesAsync(string fabricName, string storageClassificationName, string storageClassificationMappingName, StorageClassificationMappingInput pairingInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(fabricName, storageClassificationName, storageClassificationMappingName, pairingInput, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Delete a storage classification mapping. + /// Gets the details of a storage classification mapping. /// /// - /// The operation to delete a storage classification mapping. + /// Gets the details of the specified storage classification mapping. /// /// /// Fabric name. @@ -315,31 +275,6 @@ internal ReplicationStorageClassificationMappingsOperations(SiteRecoveryManageme /// Storage classification mapping name. /// /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task DeleteWithHttpMessagesAsync(string fabricName, string storageClassificationName, string storageClassificationMappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(fabricName, storageClassificationName, storageClassificationMappingName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the list of storage classification mappings objects under a storage. - /// - /// - /// Lists the storage classification mappings for the fabric. - /// - /// - /// Fabric name. - /// - /// - /// Storage classfication name. - /// - /// /// Headers that will be added to request. /// /// @@ -360,7 +295,7 @@ internal ReplicationStorageClassificationMappingsOperations(SiteRecoveryManageme /// /// A response object containing the response body and response headers. /// - public async Task>> ListByReplicationStorageClassificationsWithHttpMessagesAsync(string fabricName, string storageClassificationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string fabricName, string storageClassificationName, string storageClassificationMappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -386,6 +321,10 @@ internal ReplicationStorageClassificationMappingsOperations(SiteRecoveryManageme { throw new ValidationException(ValidationRules.CannotBeNull, "storageClassificationName"); } + if (storageClassificationMappingName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageClassificationMappingName"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -395,17 +334,19 @@ internal ReplicationStorageClassificationMappingsOperations(SiteRecoveryManageme Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("storageClassificationName", storageClassificationName); + tracingParameters.Add("storageClassificationMappingName", storageClassificationMappingName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationStorageClassifications", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", 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}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings/{storageClassificationMappingName}").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("{storageClassificationName}", System.Uri.EscapeDataString(storageClassificationName)); + _url = _url.Replace("{storageClassificationMappingName}", System.Uri.EscapeDataString(storageClassificationMappingName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -504,7 +445,7 @@ internal ReplicationStorageClassificationMappingsOperations(SiteRecoveryManageme 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")) @@ -517,7 +458,7 @@ internal ReplicationStorageClassificationMappingsOperations(SiteRecoveryManageme _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -536,6 +477,65 @@ internal ReplicationStorageClassificationMappingsOperations(SiteRecoveryManageme return _result; } + /// + /// Create storage classification mapping. + /// + /// + /// The operation to create a storage classification mapping. + /// + /// + /// Fabric name. + /// + /// + /// Storage classification name. + /// + /// + /// Storage classification mapping name. + /// + /// + /// Pairing input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string fabricName, string storageClassificationName, string storageClassificationMappingName, StorageClassificationMappingInput pairingInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(fabricName, storageClassificationName, storageClassificationMappingName, pairingInput, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a storage classification mapping. + /// + /// + /// The operation to delete a storage classification mapping. + /// + /// + /// Fabric name. + /// + /// + /// Storage classification name. + /// + /// + /// Storage classification mapping name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string fabricName, string storageClassificationName, string storageClassificationMappingName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(fabricName, storageClassificationName, storageClassificationMappingName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Gets the list of storage classification mappings objects under a vault. /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationStorageClassificationMappingsOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationStorageClassificationMappingsOperationsExtensions.cs index 5b23df832db5..1110073d8838 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationStorageClassificationMappingsOperationsExtensions.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationStorageClassificationMappingsOperationsExtensions.cs @@ -21,6 +21,52 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery /// public static partial class ReplicationStorageClassificationMappingsOperationsExtensions { + /// + /// Gets the list of storage classification mappings objects under a storage. + /// + /// + /// Lists the storage classification mappings for the fabric. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Fabric name. + /// + /// + /// Storage classfication name. + /// + public static IPage ListByReplicationStorageClassifications(this IReplicationStorageClassificationMappingsOperations operations, string fabricName, string storageClassificationName) + { + return operations.ListByReplicationStorageClassificationsAsync(fabricName, storageClassificationName).GetAwaiter().GetResult(); + } + + /// + /// Gets the list of storage classification mappings objects under a storage. + /// + /// + /// Lists the storage classification mappings for the fabric. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Fabric name. + /// + /// + /// Storage classfication name. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByReplicationStorageClassificationsAsync(this IReplicationStorageClassificationMappingsOperations operations, string fabricName, string storageClassificationName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByReplicationStorageClassificationsWithHttpMessagesAsync(fabricName, storageClassificationName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Gets the details of a storage classification mapping. /// @@ -180,52 +226,6 @@ public static void Delete(this IReplicationStorageClassificationMappingsOperatio (await operations.DeleteWithHttpMessagesAsync(fabricName, storageClassificationName, storageClassificationMappingName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } - /// - /// Gets the list of storage classification mappings objects under a storage. - /// - /// - /// Lists the storage classification mappings for the fabric. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Fabric name. - /// - /// - /// Storage classfication name. - /// - public static IPage ListByReplicationStorageClassifications(this IReplicationStorageClassificationMappingsOperations operations, string fabricName, string storageClassificationName) - { - return operations.ListByReplicationStorageClassificationsAsync(fabricName, storageClassificationName).GetAwaiter().GetResult(); - } - - /// - /// Gets the list of storage classification mappings objects under a storage. - /// - /// - /// Lists the storage classification mappings for the fabric. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Fabric name. - /// - /// - /// Storage classfication name. - /// - /// - /// The cancellation token. - /// - public static async Task> ListByReplicationStorageClassificationsAsync(this IReplicationStorageClassificationMappingsOperations operations, string fabricName, string storageClassificationName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByReplicationStorageClassificationsWithHttpMessagesAsync(fabricName, storageClassificationName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Gets the list of storage classification mappings objects under a vault. /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationStorageClassificationsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationStorageClassificationsOperations.cs index 4cc9909daa18..10c902f3f812 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationStorageClassificationsOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationStorageClassificationsOperations.cs @@ -51,16 +51,13 @@ internal ReplicationStorageClassificationsOperations(SiteRecoveryManagementClien public SiteRecoveryManagementClient Client { get; private set; } /// - /// Gets the details of a storage classification. + /// Gets the list of storage classification objects under a fabric. /// /// - /// Gets the details of the specified storage classification. + /// Lists the storage classifications available in the specified fabric. /// /// - /// Fabric name. - /// - /// - /// Storage classification name. + /// Site name of interest. /// /// /// Headers that will be added to request. @@ -83,7 +80,7 @@ internal ReplicationStorageClassificationsOperations(SiteRecoveryManagementClien /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string fabricName, string storageClassificationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -105,10 +102,6 @@ internal ReplicationStorageClassificationsOperations(SiteRecoveryManagementClien { throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); } - if (storageClassificationName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "storageClassificationName"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -117,18 +110,16 @@ internal ReplicationStorageClassificationsOperations(SiteRecoveryManagementClien _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); - tracingParameters.Add("storageClassificationName", storageClassificationName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationFabrics", 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}/replicationStorageClassifications/{storageClassificationName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications").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("{storageClassificationName}", System.Uri.EscapeDataString(storageClassificationName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -227,7 +218,7 @@ internal ReplicationStorageClassificationsOperations(SiteRecoveryManagementClien 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")) @@ -240,7 +231,7 @@ internal ReplicationStorageClassificationsOperations(SiteRecoveryManagementClien _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -260,13 +251,16 @@ internal ReplicationStorageClassificationsOperations(SiteRecoveryManagementClien } /// - /// Gets the list of storage classification objects under a fabric. + /// Gets the details of a storage classification. /// /// - /// Lists the storage classifications available in the specified fabric. + /// Gets the details of the specified storage classification. /// /// - /// Site name of interest. + /// Fabric name. + /// + /// + /// Storage classification name. /// /// /// Headers that will be added to request. @@ -289,7 +283,7 @@ internal ReplicationStorageClassificationsOperations(SiteRecoveryManagementClien /// /// A response object containing the response body and response headers. /// - public async Task>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string fabricName, string storageClassificationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -311,6 +305,10 @@ internal ReplicationStorageClassificationsOperations(SiteRecoveryManagementClien { throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); } + if (storageClassificationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageClassificationName"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -319,16 +317,18 @@ internal ReplicationStorageClassificationsOperations(SiteRecoveryManagementClien _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); + tracingParameters.Add("storageClassificationName", storageClassificationName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationFabrics", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", 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}/replicationStorageClassifications").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}").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("{storageClassificationName}", System.Uri.EscapeDataString(storageClassificationName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -427,7 +427,7 @@ internal ReplicationStorageClassificationsOperations(SiteRecoveryManagementClien 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")) @@ -440,7 +440,7 @@ internal ReplicationStorageClassificationsOperations(SiteRecoveryManagementClien _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationStorageClassificationsOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationStorageClassificationsOperationsExtensions.cs index 6547b6e7fa08..acd79f97cf18 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationStorageClassificationsOperationsExtensions.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationStorageClassificationsOperationsExtensions.cs @@ -22,86 +22,86 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public static partial class ReplicationStorageClassificationsOperationsExtensions { /// - /// Gets the details of a storage classification. + /// Gets the list of storage classification objects under a fabric. /// /// - /// Gets the details of the specified storage classification. + /// Lists the storage classifications available in the specified fabric. /// /// /// The operations group for this extension method. /// /// - /// Fabric name. - /// - /// - /// Storage classification name. + /// Site name of interest. /// - public static StorageClassification Get(this IReplicationStorageClassificationsOperations operations, string fabricName, string storageClassificationName) + public static IPage ListByReplicationFabrics(this IReplicationStorageClassificationsOperations operations, string fabricName) { - return operations.GetAsync(fabricName, storageClassificationName).GetAwaiter().GetResult(); + return operations.ListByReplicationFabricsAsync(fabricName).GetAwaiter().GetResult(); } /// - /// Gets the details of a storage classification. + /// Gets the list of storage classification objects under a fabric. /// /// - /// Gets the details of the specified storage classification. + /// Lists the storage classifications available in the specified fabric. /// /// /// The operations group for this extension method. /// /// - /// Fabric name. - /// - /// - /// Storage classification name. + /// Site name of interest. /// /// /// The cancellation token. /// - public static async Task GetAsync(this IReplicationStorageClassificationsOperations operations, string fabricName, string storageClassificationName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByReplicationFabricsAsync(this IReplicationStorageClassificationsOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(fabricName, storageClassificationName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByReplicationFabricsWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets the list of storage classification objects under a fabric. + /// Gets the details of a storage classification. /// /// - /// Lists the storage classifications available in the specified fabric. + /// Gets the details of the specified storage classification. /// /// /// The operations group for this extension method. /// /// - /// Site name of interest. + /// Fabric name. /// - public static IPage ListByReplicationFabrics(this IReplicationStorageClassificationsOperations operations, string fabricName) + /// + /// Storage classification name. + /// + public static StorageClassification Get(this IReplicationStorageClassificationsOperations operations, string fabricName, string storageClassificationName) { - return operations.ListByReplicationFabricsAsync(fabricName).GetAwaiter().GetResult(); + return operations.GetAsync(fabricName, storageClassificationName).GetAwaiter().GetResult(); } /// - /// Gets the list of storage classification objects under a fabric. + /// Gets the details of a storage classification. /// /// - /// Lists the storage classifications available in the specified fabric. + /// Gets the details of the specified storage classification. /// /// /// The operations group for this extension method. /// /// - /// Site name of interest. + /// Fabric name. + /// + /// + /// Storage classification name. /// /// /// The cancellation token. /// - public static async Task> ListByReplicationFabricsAsync(this IReplicationStorageClassificationsOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IReplicationStorageClassificationsOperations operations, string fabricName, string storageClassificationName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByReplicationFabricsWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(fabricName, storageClassificationName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationVaultHealthOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationVaultHealthOperations.cs index 25ff2107a809..84570a72245a 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationVaultHealthOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationVaultHealthOperations.cs @@ -241,5 +241,209 @@ internal ReplicationVaultHealthOperations(SiteRecoveryManagementClient client) return _result; } + /// + /// Refreshes health summary of the vault. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> RefreshWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginRefreshWithHttpMessagesAsync(customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Refreshes health summary of the vault. + /// + /// + /// 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> BeginRefreshWithHttpMessagesAsync(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"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginRefresh", 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}/replicationVaultHealth/default/refresh").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)); + 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); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationVaultHealthOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationVaultHealthOperationsExtensions.cs index 3edd71501714..e027a80cd3ff 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationVaultHealthOperationsExtensions.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationVaultHealthOperationsExtensions.cs @@ -55,5 +55,61 @@ public static VaultHealthDetails Get(this IReplicationVaultHealthOperations oper } } + /// + /// Refreshes health summary of the vault. + /// + /// + /// The operations group for this extension method. + /// + public static VaultHealthDetails Refresh(this IReplicationVaultHealthOperations operations) + { + return operations.RefreshAsync().GetAwaiter().GetResult(); + } + + /// + /// Refreshes health summary of the vault. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task RefreshAsync(this IReplicationVaultHealthOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.RefreshWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Refreshes health summary of the vault. + /// + /// + /// The operations group for this extension method. + /// + public static VaultHealthDetails BeginRefresh(this IReplicationVaultHealthOperations operations) + { + return operations.BeginRefreshAsync().GetAwaiter().GetResult(); + } + + /// + /// Refreshes health summary of the vault. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task BeginRefreshAsync(this IReplicationVaultHealthOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginRefreshWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationvCentersOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationvCentersOperations.cs index 0292d6b10ea2..7f2e75ee5764 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationvCentersOperations.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationvCentersOperations.cs @@ -51,17 +51,14 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) public SiteRecoveryManagementClient Client { get; private set; } /// - /// Gets the details of a vCenter. + /// Gets the list of vCenter registered under a fabric. /// /// - /// Gets the details of a registered vCenter server(Add vCenter server.) + /// Lists the vCenter servers registered in a fabric. /// /// /// Fabric name. /// - /// - /// vCenter name. - /// /// /// Headers that will be added to request. /// @@ -83,7 +80,7 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string fabricName, string vCenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -105,10 +102,6 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); } - if (vCenterName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "vCenterName"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -117,18 +110,16 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); - tracingParameters.Add("vCenterName", vCenterName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationFabrics", 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}/replicationvCenters/{vCenterName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters").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("{vCenterName}", System.Uri.EscapeDataString(vCenterName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -227,7 +218,7 @@ internal ReplicationvCentersOperations(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")) @@ -240,7 +231,7 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -260,39 +251,10 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) } /// - /// Add vCenter. - /// - /// - /// The operation to create a vCenter object.. - /// - /// - /// Fabric name. - /// - /// - /// vCenter name. - /// - /// - /// The input to the add vCenter operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CreateWithHttpMessagesAsync(string fabricName, string vCenterName, AddVCenterRequest addVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(fabricName, vCenterName, addVCenterRequest, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Remove vCenter operation. + /// Gets the details of a vCenter. /// /// - /// The operation to remove(unregister) a registered vCenter server from the - /// vault. + /// Gets the details of a registered vCenter server(Add vCenter server.) /// /// /// Fabric name. @@ -301,56 +263,6 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) /// vCenter name. /// /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task DeleteWithHttpMessagesAsync(string fabricName, string vCenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(fabricName, vCenterName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Update vCenter operation. - /// - /// - /// The operation to update a registered vCenter. - /// - /// - /// Fabric name. - /// - /// - /// vCeneter name - /// - /// - /// The input to the update vCenter operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> UpdateWithHttpMessagesAsync(string fabricName, string vCenterName, UpdateVCenterRequest updateVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(fabricName, vCenterName, updateVCenterRequest, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the list of vCenter registered under a fabric. - /// - /// - /// Lists the vCenter servers registered in a fabric. - /// - /// - /// Fabric name. - /// - /// /// Headers that will be added to request. /// /// @@ -371,7 +283,7 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string fabricName, string vCenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -393,6 +305,10 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); } + if (vCenterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "vCenterName"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -401,16 +317,18 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); + tracingParameters.Add("vCenterName", vCenterName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationFabrics", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", 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}/replicationvCenters").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vCenterName}").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("{vCenterName}", System.Uri.EscapeDataString(vCenterName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -509,7 +427,7 @@ internal ReplicationvCentersOperations(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")) @@ -522,7 +440,7 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -541,6 +459,88 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) return _result; } + /// + /// Add vCenter. + /// + /// + /// The operation to create a vCenter object.. + /// + /// + /// Fabric name. + /// + /// + /// vCenter name. + /// + /// + /// The input to the add vCenter operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string fabricName, string vCenterName, AddVCenterRequest addVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(fabricName, vCenterName, addVCenterRequest, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Remove vCenter operation. + /// + /// + /// The operation to remove(unregister) a registered vCenter server from the + /// vault. + /// + /// + /// Fabric name. + /// + /// + /// vCenter name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string fabricName, string vCenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(fabricName, vCenterName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Update vCenter operation. + /// + /// + /// The operation to update a registered vCenter. + /// + /// + /// Fabric name. + /// + /// + /// vCeneter name + /// + /// + /// The input to the update vCenter operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string fabricName, string vCenterName, UpdateVCenterRequest updateVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(fabricName, vCenterName, updateVCenterRequest, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Gets the list of vCenter registered under the vault. /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationvCentersOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationvCentersOperationsExtensions.cs index 96fc27aad1a4..c1b038292697 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationvCentersOperationsExtensions.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationvCentersOperationsExtensions.cs @@ -21,6 +21,46 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery /// public static partial class ReplicationvCentersOperationsExtensions { + /// + /// Gets the list of vCenter registered under a fabric. + /// + /// + /// Lists the vCenter servers registered in a fabric. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Fabric name. + /// + public static IPage ListByReplicationFabrics(this IReplicationvCentersOperations operations, string fabricName) + { + return operations.ListByReplicationFabricsAsync(fabricName).GetAwaiter().GetResult(); + } + + /// + /// Gets the list of vCenter registered under a fabric. + /// + /// + /// Lists the vCenter servers registered in a fabric. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Fabric name. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByReplicationFabricsAsync(this IReplicationvCentersOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByReplicationFabricsWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Gets the details of a vCenter. /// @@ -216,46 +256,6 @@ public static VCenter Update(this IReplicationvCentersOperations operations, str } } - /// - /// Gets the list of vCenter registered under a fabric. - /// - /// - /// Lists the vCenter servers registered in a fabric. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Fabric name. - /// - public static IPage ListByReplicationFabrics(this IReplicationvCentersOperations operations, string fabricName) - { - return operations.ListByReplicationFabricsAsync(fabricName).GetAwaiter().GetResult(); - } - - /// - /// Gets the list of vCenter registered under a fabric. - /// - /// - /// Lists the vCenter servers registered in a fabric. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Fabric name. - /// - /// - /// The cancellation token. - /// - public static async Task> ListByReplicationFabricsAsync(this IReplicationvCentersOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByReplicationFabricsWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Gets the list of vCenter registered under the vault. /// diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/SdkInfo_SiteRecoveryManagementClient.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/SdkInfo_SiteRecoveryManagementClient.cs index e074d711ee85..ad92a8e7f7dc 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/SdkInfo_SiteRecoveryManagementClient.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/SdkInfo_SiteRecoveryManagementClient.cs @@ -11,26 +11,27 @@ public static IEnumerable> ApiInfo_SiteRecoveryMan { return new Tuple[] { - new Tuple("RecoveryServices", "Operations", "2016-08-10"), - new Tuple("RecoveryServices", "RecoveryPoints", "2016-08-10"), - new Tuple("RecoveryServices", "ReplicationAlertSettings", "2016-08-10"), - new Tuple("RecoveryServices", "ReplicationEvents", "2016-08-10"), - new Tuple("RecoveryServices", "ReplicationFabrics", "2016-08-10"), - new Tuple("RecoveryServices", "ReplicationJobs", "2016-08-10"), - new Tuple("RecoveryServices", "ReplicationLogicalNetworks", "2016-08-10"), - new Tuple("RecoveryServices", "ReplicationNetworkMappings", "2016-08-10"), - new Tuple("RecoveryServices", "ReplicationNetworks", "2016-08-10"), - new Tuple("RecoveryServices", "ReplicationPolicies", "2016-08-10"), - new Tuple("RecoveryServices", "ReplicationProtectableItems", "2016-08-10"), - new Tuple("RecoveryServices", "ReplicationProtectedItems", "2016-08-10"), - new Tuple("RecoveryServices", "ReplicationProtectionContainerMappings", "2016-08-10"), - new Tuple("RecoveryServices", "ReplicationProtectionContainers", "2016-08-10"), - new Tuple("RecoveryServices", "ReplicationRecoveryPlans", "2016-08-10"), - new Tuple("RecoveryServices", "ReplicationRecoveryServicesProviders", "2016-08-10"), - new Tuple("RecoveryServices", "ReplicationStorageClassificationMappings", "2016-08-10"), - new Tuple("RecoveryServices", "ReplicationStorageClassifications", "2016-08-10"), - new Tuple("RecoveryServices", "ReplicationVaultHealth", "2016-08-10"), - new Tuple("RecoveryServices", "ReplicationvCenters", "2016-08-10"), + new Tuple("RecoveryServices", "Operations", "2018-01-10"), + new Tuple("RecoveryServices", "RecoveryPoints", "2018-01-10"), + new Tuple("RecoveryServices", "ReplicationAlertSettings", "2018-01-10"), + new Tuple("RecoveryServices", "ReplicationEvents", "2018-01-10"), + new Tuple("RecoveryServices", "ReplicationFabrics", "2018-01-10"), + new Tuple("RecoveryServices", "ReplicationJobs", "2018-01-10"), + new Tuple("RecoveryServices", "ReplicationLogicalNetworks", "2018-01-10"), + new Tuple("RecoveryServices", "ReplicationNetworkMappings", "2018-01-10"), + new Tuple("RecoveryServices", "ReplicationNetworks", "2018-01-10"), + new Tuple("RecoveryServices", "ReplicationPolicies", "2018-01-10"), + new Tuple("RecoveryServices", "ReplicationProtectableItems", "2018-01-10"), + new Tuple("RecoveryServices", "ReplicationProtectedItems", "2018-01-10"), + new Tuple("RecoveryServices", "ReplicationProtectionContainerMappings", "2018-01-10"), + new Tuple("RecoveryServices", "ReplicationProtectionContainers", "2018-01-10"), + new Tuple("RecoveryServices", "ReplicationRecoveryPlans", "2018-01-10"), + new Tuple("RecoveryServices", "ReplicationRecoveryServicesProviders", "2018-01-10"), + new Tuple("RecoveryServices", "ReplicationStorageClassificationMappings", "2018-01-10"), + new Tuple("RecoveryServices", "ReplicationStorageClassifications", "2018-01-10"), + new Tuple("RecoveryServices", "ReplicationVaultHealth", "2018-01-10"), + new Tuple("RecoveryServices", "ReplicationvCenters", "2018-01-10"), + new Tuple("RecoveryServices", "TargetComputeSizes", "2018-01-10"), }.AsEnumerable(); } } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/SiteRecoveryManagementClient.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/SiteRecoveryManagementClient.cs index 4b24ac50eb66..cc925d2fab87 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/SiteRecoveryManagementClient.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/SiteRecoveryManagementClient.cs @@ -82,19 +82,19 @@ public partial class SiteRecoveryManagementClient : ServiceClient - /// Gets the IReplicationVaultHealthOperations. + /// Gets the IOperations. /// - public virtual IReplicationVaultHealthOperations ReplicationVaultHealth { get; private set; } + public virtual IOperations Operations { get; private set; } /// - /// Gets the IReplicationProtectedItemsOperations. + /// Gets the IReplicationAlertSettingsOperations. /// - public virtual IReplicationProtectedItemsOperations ReplicationProtectedItems { get; private set; } + public virtual IReplicationAlertSettingsOperations ReplicationAlertSettings { get; private set; } /// - /// Gets the IReplicationNetworkMappingsOperations. + /// Gets the IReplicationEventsOperations. /// - public virtual IReplicationNetworkMappingsOperations ReplicationNetworkMappings { get; private set; } + public virtual IReplicationEventsOperations ReplicationEvents { get; private set; } /// /// Gets the IReplicationFabricsOperations. @@ -102,69 +102,69 @@ public partial class SiteRecoveryManagementClient : ServiceClient - /// Gets the IReplicationvCentersOperations. + /// Gets the IReplicationLogicalNetworksOperations. /// - public virtual IReplicationvCentersOperations ReplicationvCenters { get; private set; } + public virtual IReplicationLogicalNetworksOperations ReplicationLogicalNetworks { get; private set; } /// - /// Gets the IReplicationStorageClassificationMappingsOperations. + /// Gets the IReplicationNetworksOperations. /// - public virtual IReplicationStorageClassificationMappingsOperations ReplicationStorageClassificationMappings { get; private set; } + public virtual IReplicationNetworksOperations ReplicationNetworks { get; private set; } /// - /// Gets the IReplicationStorageClassificationsOperations. + /// Gets the IReplicationNetworkMappingsOperations. /// - public virtual IReplicationStorageClassificationsOperations ReplicationStorageClassifications { get; private set; } + public virtual IReplicationNetworkMappingsOperations ReplicationNetworkMappings { get; private set; } /// - /// Gets the IReplicationRecoveryServicesProvidersOperations. + /// Gets the IReplicationProtectionContainersOperations. /// - public virtual IReplicationRecoveryServicesProvidersOperations ReplicationRecoveryServicesProviders { get; private set; } + public virtual IReplicationProtectionContainersOperations ReplicationProtectionContainers { get; private set; } /// - /// Gets the IRecoveryPointsOperations. + /// Gets the IReplicationProtectableItemsOperations. /// - public virtual IRecoveryPointsOperations RecoveryPoints { get; private set; } + public virtual IReplicationProtectableItemsOperations ReplicationProtectableItems { get; private set; } /// - /// Gets the IReplicationRecoveryPlansOperations. + /// Gets the IReplicationProtectedItemsOperations. /// - public virtual IReplicationRecoveryPlansOperations ReplicationRecoveryPlans { get; private set; } + public virtual IReplicationProtectedItemsOperations ReplicationProtectedItems { get; private set; } /// - /// Gets the IReplicationProtectionContainersOperations. + /// Gets the IRecoveryPointsOperations. /// - public virtual IReplicationProtectionContainersOperations ReplicationProtectionContainers { get; private set; } + public virtual IRecoveryPointsOperations RecoveryPoints { get; private set; } /// - /// Gets the IReplicationProtectionContainerMappingsOperations. + /// Gets the ITargetComputeSizesOperations. /// - public virtual IReplicationProtectionContainerMappingsOperations ReplicationProtectionContainerMappings { get; private set; } + public virtual ITargetComputeSizesOperations TargetComputeSizes { get; private set; } /// - /// Gets the IReplicationProtectableItemsOperations. + /// Gets the IReplicationProtectionContainerMappingsOperations. /// - public virtual IReplicationProtectableItemsOperations ReplicationProtectableItems { get; private set; } + public virtual IReplicationProtectionContainerMappingsOperations ReplicationProtectionContainerMappings { get; private set; } /// - /// Gets the IReplicationPoliciesOperations. + /// Gets the IReplicationRecoveryServicesProvidersOperations. /// - public virtual IReplicationPoliciesOperations ReplicationPolicies { get; private set; } + public virtual IReplicationRecoveryServicesProvidersOperations ReplicationRecoveryServicesProviders { get; private set; } /// - /// Gets the IOperations. + /// Gets the IReplicationStorageClassificationsOperations. /// - public virtual IOperations Operations { get; private set; } + public virtual IReplicationStorageClassificationsOperations ReplicationStorageClassifications { get; private set; } /// - /// Gets the IReplicationNetworksOperations. + /// Gets the IReplicationStorageClassificationMappingsOperations. /// - public virtual IReplicationNetworksOperations ReplicationNetworks { get; private set; } + public virtual IReplicationStorageClassificationMappingsOperations ReplicationStorageClassificationMappings { get; private set; } /// - /// Gets the IReplicationLogicalNetworksOperations. + /// Gets the IReplicationvCentersOperations. /// - public virtual IReplicationLogicalNetworksOperations ReplicationLogicalNetworks { get; private set; } + public virtual IReplicationvCentersOperations ReplicationvCenters { get; private set; } /// /// Gets the IReplicationJobsOperations. @@ -172,14 +172,19 @@ public partial class SiteRecoveryManagementClient : ServiceClient - /// Gets the IReplicationEventsOperations. + /// Gets the IReplicationPoliciesOperations. /// - public virtual IReplicationEventsOperations ReplicationEvents { get; private set; } + public virtual IReplicationPoliciesOperations ReplicationPolicies { get; private set; } /// - /// Gets the IReplicationAlertSettingsOperations. + /// Gets the IReplicationRecoveryPlansOperations. /// - public virtual IReplicationAlertSettingsOperations ReplicationAlertSettings { get; private set; } + public virtual IReplicationRecoveryPlansOperations ReplicationRecoveryPlans { get; private set; } + + /// + /// Gets the IReplicationVaultHealthOperations. + /// + public virtual IReplicationVaultHealthOperations ReplicationVaultHealth { get; private set; } /// /// Initializes a new instance of the SiteRecoveryManagementClient class. @@ -382,28 +387,29 @@ public SiteRecoveryManagementClient(System.Uri baseUri, ServiceClientCredentials /// private void Initialize() { - ReplicationVaultHealth = new ReplicationVaultHealthOperations(this); - ReplicationProtectedItems = new ReplicationProtectedItemsOperations(this); - ReplicationNetworkMappings = new ReplicationNetworkMappingsOperations(this); + Operations = new Operations(this); + ReplicationAlertSettings = new ReplicationAlertSettingsOperations(this); + ReplicationEvents = new ReplicationEventsOperations(this); ReplicationFabrics = new ReplicationFabricsOperations(this); - ReplicationvCenters = new ReplicationvCentersOperations(this); - ReplicationStorageClassificationMappings = new ReplicationStorageClassificationMappingsOperations(this); - ReplicationStorageClassifications = new ReplicationStorageClassificationsOperations(this); - ReplicationRecoveryServicesProviders = new ReplicationRecoveryServicesProvidersOperations(this); - RecoveryPoints = new RecoveryPointsOperations(this); - ReplicationRecoveryPlans = new ReplicationRecoveryPlansOperations(this); + ReplicationLogicalNetworks = new ReplicationLogicalNetworksOperations(this); + ReplicationNetworks = new ReplicationNetworksOperations(this); + ReplicationNetworkMappings = new ReplicationNetworkMappingsOperations(this); ReplicationProtectionContainers = new ReplicationProtectionContainersOperations(this); - ReplicationProtectionContainerMappings = new ReplicationProtectionContainerMappingsOperations(this); ReplicationProtectableItems = new ReplicationProtectableItemsOperations(this); - ReplicationPolicies = new ReplicationPoliciesOperations(this); - Operations = new Operations(this); - ReplicationNetworks = new ReplicationNetworksOperations(this); - ReplicationLogicalNetworks = new ReplicationLogicalNetworksOperations(this); + ReplicationProtectedItems = new ReplicationProtectedItemsOperations(this); + RecoveryPoints = new RecoveryPointsOperations(this); + TargetComputeSizes = new TargetComputeSizesOperations(this); + ReplicationProtectionContainerMappings = new ReplicationProtectionContainerMappingsOperations(this); + ReplicationRecoveryServicesProviders = new ReplicationRecoveryServicesProvidersOperations(this); + ReplicationStorageClassifications = new ReplicationStorageClassificationsOperations(this); + ReplicationStorageClassificationMappings = new ReplicationStorageClassificationMappingsOperations(this); + ReplicationvCenters = new ReplicationvCentersOperations(this); ReplicationJobs = new ReplicationJobsOperations(this); - ReplicationEvents = new ReplicationEventsOperations(this); - ReplicationAlertSettings = new ReplicationAlertSettingsOperations(this); + ReplicationPolicies = new ReplicationPoliciesOperations(this); + ReplicationRecoveryPlans = new ReplicationRecoveryPlansOperations(this); + ReplicationVaultHealth = new ReplicationVaultHealthOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2016-08-10"; + ApiVersion = "2018-01-10"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; @@ -432,6 +438,26 @@ 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")); + 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")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); @@ -440,46 +466,28 @@ 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")); - 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")); - 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")); - 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")); CustomInitialize(); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); } diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/TargetComputeSizesOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/TargetComputeSizesOperations.cs new file mode 100644 index 000000000000..d429cc8d28fa --- /dev/null +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/TargetComputeSizesOperations.cs @@ -0,0 +1,448 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// TargetComputeSizesOperations operations. + /// + internal partial class TargetComputeSizesOperations : IServiceOperations, ITargetComputeSizesOperations + { + /// + /// Initializes a new instance of the TargetComputeSizesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal TargetComputeSizesOperations(SiteRecoveryManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SiteRecoveryManagementClient + /// + public SiteRecoveryManagementClient Client { get; private set; } + + /// + /// Gets the list of target compute sizes for the replication protected item. + /// + /// + /// Lists the available target compute sizes for a replication protected item. + /// + /// + /// Fabric name. + /// + /// + /// protection container name. + /// + /// + /// Replication protected item name. + /// + /// + /// 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>> ListByReplicationProtectedItemsWithHttpMessagesAsync(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, "ListByReplicationProtectedItems", 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}/targetComputeSizes").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("GET"); + _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) + { + 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; + } + + /// + /// Gets the list of target compute sizes for the replication protected item. + /// + /// + /// Lists the available target compute sizes for a replication protected item. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListByReplicationProtectedItemsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationProtectedItemsNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + 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("GET"); + _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) + { + 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; + } + + } +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/TargetComputeSizesOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/TargetComputeSizesOperationsExtensions.cs new file mode 100644 index 000000000000..25d145734141 --- /dev/null +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/TargetComputeSizesOperationsExtensions.cs @@ -0,0 +1,117 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for TargetComputeSizesOperations. + /// + public static partial class TargetComputeSizesOperationsExtensions + { + /// + /// Gets the list of target compute sizes for the replication protected item. + /// + /// + /// Lists the available target compute sizes for a replication protected item. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Fabric name. + /// + /// + /// protection container name. + /// + /// + /// Replication protected item name. + /// + public static IPage ListByReplicationProtectedItems(this ITargetComputeSizesOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName) + { + return operations.ListByReplicationProtectedItemsAsync(fabricName, protectionContainerName, replicatedProtectedItemName).GetAwaiter().GetResult(); + } + + /// + /// Gets the list of target compute sizes for the replication protected item. + /// + /// + /// Lists the available target compute sizes for a replication protected item. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Fabric name. + /// + /// + /// protection container name. + /// + /// + /// Replication protected item name. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByReplicationProtectedItemsAsync(this ITargetComputeSizesOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByReplicationProtectedItemsWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the list of target compute sizes for the replication protected item. + /// + /// + /// Lists the available target compute sizes for a replication protected item. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByReplicationProtectedItemsNext(this ITargetComputeSizesOperations operations, string nextPageLink) + { + return operations.ListByReplicationProtectedItemsNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets the list of target compute sizes for the replication protected item. + /// + /// + /// Lists the available target compute sizes for a replication protected item. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByReplicationProtectedItemsNextAsync(this ITargetComputeSizesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByReplicationProtectedItemsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery.csproj b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery.csproj index b039d5fbacc9..c77063eeaf42 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery.csproj +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery.csproj @@ -6,10 +6,15 @@ Microsoft.Azure.Management.RecoveryServices.SiteRecovery Provides developers with libraries for the updated recovery services site recovery feature under Azure Resource manager. - 1.0.3-preview + 1.1.0-preview Microsoft.Azure.Management.RecoveryServices.SiteRecovery Recoveryservices;SiteRecovery; - Additional event search, migration support and Replication Health for site recovery. + + + net452;netstandard1.4 diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Properties/AssemblyInfo.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Properties/AssemblyInfo.cs index 1b58bebd85da..c0f2cc117318 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Properties/AssemblyInfo.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Properties/AssemblyInfo.cs @@ -8,7 +8,7 @@ [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure Recovery Services SiteRecovery Resources.")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.3.0")] +[assembly: AssemblyFileVersion("1.1.0.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Microsoft Azure .NET SDK")] diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/ScenarioTests/ASRTests.cs b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/ScenarioTests/ASRTests.cs index 0179a8ac45b4..7130f8e89cec 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/ScenarioTests/ASRTests.cs +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/ScenarioTests/ASRTests.cs @@ -303,7 +303,6 @@ public void CreatePolicy() ApplicationConsistentSnapshotFrequencyInHours = 2, ReplicationInterval = 300, OnlineReplicationStartTime = null, - Encryption = "Disable", StorageAccounts = new List() { storageAccountId } }; @@ -363,7 +362,6 @@ public void UpdatePolicy() ApplicationConsistentSnapshotFrequencyInHours = 2, ReplicationInterval = 300, OnlineReplicationStartTime = null, - Encryption = "Disable", StorageAccounts = new List() { "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.Storage/storageAccounts/storavrai" } }; diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ApplyRecoveryPoint.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ApplyRecoveryPoint.json index 8d427cd71ca4..096baad04c44 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ApplyRecoveryPoint.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ApplyRecoveryPoint.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/recoveryPoints?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMi9yZWNvdmVyeVBvaW50cz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/recoveryPoints?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMi9yZWNvdmVyeVBvaW50cz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -143,8 +143,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/applyRecoveryPoint?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMi9hcHBseVJlY292ZXJ5UG9pbnQ/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/applyRecoveryPoint?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMi9hcHBseVJlY292ZXJ5UG9pbnQ/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "POST", "RequestBody": "{\r\n \"properties\": {\r\n \"recoveryPointId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/recoveryPoints/92eb6e67-ac18-4043-af5e-6cd5d5891810\",\r\n \"providerSpecificDetails\": {\r\n \"instanceType\": \"HyperVReplicaAzure\",\r\n \"vaultLocation\": \"West US\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -183,7 +183,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/operationresults/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/operationresults/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -193,7 +193,7 @@ "22d846de-2cfa-40a3-a05f-372f47cfa879 5/15/2017 1:53:27 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -217,8 +217,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -282,8 +282,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -347,8 +347,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -412,8 +412,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -477,8 +477,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -542,8 +542,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -607,8 +607,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -672,8 +672,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -737,8 +737,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -802,8 +802,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -867,8 +867,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -932,8 +932,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -997,8 +997,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1062,8 +1062,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1127,8 +1127,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/66a0354e-5f45-4286-97e0-351790eb8f56?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2YTAzNTRlLTVmNDUtNDI4Ni05N2UwLTM1MTc5MGViOGY1Nj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1196,4 +1196,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CheckConsistency.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CheckConsistency.json index 6073b89d7792..d2a8a8f61d3e 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CheckConsistency.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CheckConsistency.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/checkConsistency?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9jaGVja0NvbnNpc3RlbmN5P2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/checkConsistency?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9jaGVja0NvbnNpc3RlbmN5P2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { @@ -35,13 +35,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/operationresults/9bc5a375-116b-4482-ad35-3cc3557544e4?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/operationresults/9bc5a375-116b-4482-ad35-3cc3557544e4?api-version=2018-01-10" ], "Retry-After": [ "30" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/9bc5a375-116b-4482-ad35-3cc3557544e4?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/9bc5a375-116b-4482-ad35-3cc3557544e4?api-version=2018-01-10" ], "x-ms-request-id": [ "9ba38549-4ae9-4b2d-b8c1-0de30e7f8e9c 5/13/2017 7:17:53 PM" @@ -68,8 +68,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/9bc5a375-116b-4482-ad35-3cc3557544e4?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzliYzVhMzc1LTExNmItNDQ4Mi1hZDM1LTNjYzM1NTc1NDRlND9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/9bc5a375-116b-4482-ad35-3cc3557544e4?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzliYzVhMzc1LTExNmItNDQ4Mi1hZDM1LTNjYzM1NTc1NDRlND9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -133,8 +133,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/9bc5a375-116b-4482-ad35-3cc3557544e4?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzliYzVhMzc1LTExNmItNDQ4Mi1hZDM1LTNjYzM1NTc1NDRlND9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/9bc5a375-116b-4482-ad35-3cc3557544e4?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzliYzVhMzc1LTExNmItNDQ4Mi1hZDM1LTNjYzM1NTc1NDRlND9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -198,8 +198,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -273,4 +273,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CommitFailover.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CommitFailover.json index f2e38f5d29c6..5bf290e5988d 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CommitFailover.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CommitFailover.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/failoverCommit?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMi9mYWlsb3ZlckNvbW1pdD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/failoverCommit?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMi9mYWlsb3ZlckNvbW1pdD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { @@ -106,7 +106,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/operationresults/55ec8d2f-d512-435e-b301-0474a1879860?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/operationresults/55ec8d2f-d512-435e-b301-0474a1879860?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -116,7 +116,7 @@ "b2ca9fb9-3ba5-460e-9ecb-d38fdd20e646 5/15/2017 2:02:02 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/55ec8d2f-d512-435e-b301-0474a1879860?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/55ec8d2f-d512-435e-b301-0474a1879860?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -140,8 +140,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/55ec8d2f-d512-435e-b301-0474a1879860?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzU1ZWM4ZDJmLWQ1MTItNDM1ZS1iMzAxLTA0NzRhMTg3OTg2MD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/55ec8d2f-d512-435e-b301-0474a1879860?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzU1ZWM4ZDJmLWQ1MTItNDM1ZS1iMzAxLTA0NzRhMTg3OTg2MD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -209,4 +209,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreateAlertSettings.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreateAlertSettings.json index bf336756faba..daee87ee9c4b 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreateAlertSettings.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreateAlertSettings.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationAlertSettings/defaultAlertSetting?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25BbGVydFNldHRpbmdzL2RlZmF1bHRBbGVydFNldHRpbmc/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationAlertSettings/defaultAlertSetting?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25BbGVydFNldHRpbmdzL2RlZmF1bHRBbGVydFNldHRpbmc/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"sendToOwners\": \"False\",\r\n \"customEmailAddresses\": [\r\n \"ronehr@microsoft.com\"\r\n ],\r\n \"locale\": \"en-US\"\r\n }\r\n}", "RequestHeaders": { @@ -78,8 +78,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationAlertSettings/defaultAlertSetting?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25BbGVydFNldHRpbmdzL2RlZmF1bHRBbGVydFNldHRpbmc/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationAlertSettings/defaultAlertSetting?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25BbGVydFNldHRpbmdzL2RlZmF1bHRBbGVydFNldHRpbmc/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -153,4 +153,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreateNetworkMapping.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreateNetworkMapping.json index 8ef90f5e0d19..6e2e86c73d9c 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreateNetworkMapping.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreateNetworkMapping.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGEvcmVwbGljYXRpb25OZXR3b3JrTWFwcGluZ3MvTldNYXBwaW5nP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGEvcmVwbGljYXRpb25OZXR3b3JrTWFwcGluZ3MvTldNYXBwaW5nP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"recoveryFabricName\": \"Microsoft Azure\",\r\n \"recoveryNetworkId\": \"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai\",\r\n \"fabricSpecificDetails\": {\r\n \"instanceType\": \"VmmToAzure\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -112,13 +112,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping/operationresults/d6a1f712-0b74-4911-8930-47c13715de4d?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping/operationresults/d6a1f712-0b74-4911-8930-47c13715de4d?api-version=2018-01-10" ], "Retry-After": [ "30" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d6a1f712-0b74-4911-8930-47c13715de4d?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d6a1f712-0b74-4911-8930-47c13715de4d?api-version=2018-01-10" ], "x-ms-request-id": [ "44324cf9-49e7-40a4-a911-2bb09b17b2b0 5/15/2017 7:27:06 AM" @@ -145,8 +145,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d6a1f712-0b74-4911-8930-47c13715de4d?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q2YTFmNzEyLTBiNzQtNDkxMS04OTMwLTQ3YzEzNzE1ZGU0ZD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d6a1f712-0b74-4911-8930-47c13715de4d?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q2YTFmNzEyLTBiNzQtNDkxMS04OTMwLTQ3YzEzNzE1ZGU0ZD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -210,8 +210,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGEvcmVwbGljYXRpb25OZXR3b3JrTWFwcGluZ3MvTldNYXBwaW5nP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGEvcmVwbGljYXRpb25OZXR3b3JrTWFwcGluZ3MvTldNYXBwaW5nP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -275,8 +275,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGEvcmVwbGljYXRpb25OZXR3b3JrTWFwcGluZ3MvTldNYXBwaW5nP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGEvcmVwbGljYXRpb25OZXR3b3JrTWFwcGluZ3MvTldNYXBwaW5nP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -350,4 +350,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreatePCMapping.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreatePCMapping.json index 239cb36c4685..018869e78f45 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreatePCMapping.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreatePCMapping.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -143,8 +143,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -214,8 +214,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcy9wcm90ZWN0aW9ucHJvZmlsZTE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcy9wcm90ZWN0aW9ucHJvZmlsZTE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -285,8 +285,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectionContainerMappings/PCMapping?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJNYXBwaW5ncy9QQ01hcHBpbmc/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectionContainerMappings/PCMapping?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJNYXBwaW5ncy9QQ01hcHBpbmc/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"targetProtectionContainerId\": \"Microsoft Azure\",\r\n \"PolicyId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1\",\r\n \"providerSpecificInput\": {}\r\n }\r\n}", "RequestHeaders": { @@ -325,7 +325,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectionContainerMappings/PCMapping/operationresults/980ad363-68af-484e-90a4-c06b6a0a4ec1?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectionContainerMappings/PCMapping/operationresults/980ad363-68af-484e-90a4-c06b6a0a4ec1?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -335,7 +335,7 @@ "082b305d-12e9-4e02-abcd-cd4353299bfe 5/15/2017 1:29:41 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/980ad363-68af-484e-90a4-c06b6a0a4ec1?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/980ad363-68af-484e-90a4-c06b6a0a4ec1?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -359,8 +359,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/980ad363-68af-484e-90a4-c06b6a0a4ec1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk4MGFkMzYzLTY4YWYtNDg0ZS05MGE0LWMwNmI2YTBhNGVjMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/980ad363-68af-484e-90a4-c06b6a0a4ec1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk4MGFkMzYzLTY4YWYtNDg0ZS05MGE0LWMwNmI2YTBhNGVjMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -424,8 +424,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/980ad363-68af-484e-90a4-c06b6a0a4ec1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk4MGFkMzYzLTY4YWYtNDg0ZS05MGE0LWMwNmI2YTBhNGVjMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/980ad363-68af-484e-90a4-c06b6a0a4ec1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk4MGFkMzYzLTY4YWYtNDg0ZS05MGE0LWMwNmI2YTBhNGVjMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -489,8 +489,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/980ad363-68af-484e-90a4-c06b6a0a4ec1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk4MGFkMzYzLTY4YWYtNDg0ZS05MGE0LWMwNmI2YTBhNGVjMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/980ad363-68af-484e-90a4-c06b6a0a4ec1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk4MGFkMzYzLTY4YWYtNDg0ZS05MGE0LWMwNmI2YTBhNGVjMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -554,8 +554,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/980ad363-68af-484e-90a4-c06b6a0a4ec1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk4MGFkMzYzLTY4YWYtNDg0ZS05MGE0LWMwNmI2YTBhNGVjMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/980ad363-68af-484e-90a4-c06b6a0a4ec1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk4MGFkMzYzLTY4YWYtNDg0ZS05MGE0LWMwNmI2YTBhNGVjMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -619,8 +619,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/980ad363-68af-484e-90a4-c06b6a0a4ec1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk4MGFkMzYzLTY4YWYtNDg0ZS05MGE0LWMwNmI2YTBhNGVjMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/980ad363-68af-484e-90a4-c06b6a0a4ec1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk4MGFkMzYzLTY4YWYtNDg0ZS05MGE0LWMwNmI2YTBhNGVjMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -684,8 +684,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/980ad363-68af-484e-90a4-c06b6a0a4ec1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk4MGFkMzYzLTY4YWYtNDg0ZS05MGE0LWMwNmI2YTBhNGVjMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/980ad363-68af-484e-90a4-c06b6a0a4ec1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk4MGFkMzYzLTY4YWYtNDg0ZS05MGE0LWMwNmI2YTBhNGVjMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -749,8 +749,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectionContainerMappings/PCMapping?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJNYXBwaW5ncy9QQ01hcHBpbmc/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectionContainerMappings/PCMapping?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJNYXBwaW5ncy9QQ01hcHBpbmc/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -814,8 +814,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectionContainerMappings/PCMapping?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJNYXBwaW5ncy9QQ01hcHBpbmc/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectionContainerMappings/PCMapping?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJNYXBwaW5ncy9QQ01hcHBpbmc/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -889,4 +889,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreatePolicy.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreatePolicy.json index e6eb7bbfadfc..3ad1965d1fe7 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreatePolicy.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreatePolicy.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcy9wcm90ZWN0aW9ucHJvZmlsZTE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcy9wcm90ZWN0aW9ucHJvZmlsZTE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"providerSpecificInput\": {\r\n \"instanceType\": \"HyperVReplicaAzure\",\r\n \"recoveryPointHistoryDuration\": 4,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 2,\r\n \"replicationInterval\": 300,\r\n \"encryption\": \"Disable\",\r\n \"storageAccounts\": [\r\n \"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.Storage/storageAccounts/storavrai\"\r\n ]\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -41,13 +41,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1/operationresults/f23d4274-3885-4375-99b5-1ad26be6ccc5?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1/operationresults/f23d4274-3885-4375-99b5-1ad26be6ccc5?api-version=2018-01-10" ], "Retry-After": [ "30" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/f23d4274-3885-4375-99b5-1ad26be6ccc5?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/f23d4274-3885-4375-99b5-1ad26be6ccc5?api-version=2018-01-10" ], "x-ms-request-id": [ "0dd359ef-ad7b-4f3a-9a47-41ef9f5160d8 5/15/2017 2:24:05 PM" @@ -74,8 +74,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/f23d4274-3885-4375-99b5-1ad26be6ccc5?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2YyM2Q0Mjc0LTM4ODUtNDM3NS05OWI1LTFhZDI2YmU2Y2NjNT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/f23d4274-3885-4375-99b5-1ad26be6ccc5?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2YyM2Q0Mjc0LTM4ODUtNDM3NS05OWI1LTFhZDI2YmU2Y2NjNT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -139,8 +139,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcy9wcm90ZWN0aW9ucHJvZmlsZTE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcy9wcm90ZWN0aW9ucHJvZmlsZTE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -204,8 +204,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcy9wcm90ZWN0aW9ucHJvZmlsZTE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcy9wcm90ZWN0aW9ucHJvZmlsZTE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -279,4 +279,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreateProtectedItem.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreateProtectedItem.json index 0b034c374d51..0c04cec6fa76 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreateProtectedItem.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreateProtectedItem.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcy9wcm90ZWN0aW9ucHJvZmlsZTE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcy9wcm90ZWN0aW9ucHJvZmlsZTE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -143,8 +143,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -214,8 +214,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RhYmxlSXRlbXM/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RhYmxlSXRlbXM/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -230,7 +230,7 @@ "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.SiteRecoveryManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/02c2292c-04ac-4da4-8598-f333e04888c9\",\r\n \"name\": \"02c2292c-04ac-4da4-8598-f333e04888c9\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm1\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/6672aaf3-0aa2-4b8e-a3bd-fc015ccfd345\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"02c2292c-04ac-4da4-8598-f333e04888c9\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"5f01e3a8-73fb-4c60-8cfc-e69297e5d96b\",\r\n \"vhdName\": \"vm1\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"name\": \"687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm11\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/6672aaf3-0aa2-4b8e-a3bd-fc015ccfd345\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"5bb00ca8-d850-49fb-afdc-052413458ea2\",\r\n \"vhdName\": \"vm11\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"name\": \"cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm2\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/6672aaf3-0aa2-4b8e-a3bd-fc015ccfd345\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"474006f7-6ae8-4c26-9143-e056b30374ab\",\r\n \"vhdName\": \"vm2\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"name\": \"fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"Nakul\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/6672aaf3-0aa2-4b8e-a3bd-fc015ccfd345\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"generation\": \"2\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 25600,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"bb2ce67e-8f5b-49ee-ac6a-a0b14e8622c1\",\r\n \"vhdName\": \"FRTest\"\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems?api-version=2016-08-10&%24skipToken=ReplicationGroup%3aBegin\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/02c2292c-04ac-4da4-8598-f333e04888c9\",\r\n \"name\": \"02c2292c-04ac-4da4-8598-f333e04888c9\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm1\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/6672aaf3-0aa2-4b8e-a3bd-fc015ccfd345\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"02c2292c-04ac-4da4-8598-f333e04888c9\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"5f01e3a8-73fb-4c60-8cfc-e69297e5d96b\",\r\n \"vhdName\": \"vm1\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"name\": \"687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm11\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/6672aaf3-0aa2-4b8e-a3bd-fc015ccfd345\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"5bb00ca8-d850-49fb-afdc-052413458ea2\",\r\n \"vhdName\": \"vm11\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"name\": \"cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm2\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/6672aaf3-0aa2-4b8e-a3bd-fc015ccfd345\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"474006f7-6ae8-4c26-9143-e056b30374ab\",\r\n \"vhdName\": \"vm2\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"name\": \"fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"Nakul\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/6672aaf3-0aa2-4b8e-a3bd-fc015ccfd345\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"generation\": \"2\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 25600,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"bb2ce67e-8f5b-49ee-ac6a-a0b14e8622c1\",\r\n \"vhdName\": \"FRTest\"\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems?api-version=2018-01-10&%24skipToken=ReplicationGroup%3aBegin\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -285,8 +285,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"policyId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1\",\r\n \"protectableItemId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"providerSpecificDetails\": {\r\n \"instanceType\": \"HyperVReplicaAzure\",\r\n \"hvHostVmId\": \"cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"vmName\": \"vm2\",\r\n \"osType\": \"Windows\",\r\n \"vhdId\": \"474006f7-6ae8-4c26-9143-e056b30374ab\",\r\n \"targetStorageAccountId\": \"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.Storage/storageAccounts/storavrai\",\r\n \"targetAzureVmName\": \"vm2\",\r\n \"targetAzureV2ResourceGroupId\": \"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -325,7 +325,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/operationresults/8c24032b-a1f9-483b-a94c-44776aeb2cae?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/operationresults/8c24032b-a1f9-483b-a94c-44776aeb2cae?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -335,7 +335,7 @@ "319b819a-10e3-4260-8d15-8ab246048339 5/15/2017 1:34:09 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8c24032b-a1f9-483b-a94c-44776aeb2cae?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8c24032b-a1f9-483b-a94c-44776aeb2cae?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -359,8 +359,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8c24032b-a1f9-483b-a94c-44776aeb2cae?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzhjMjQwMzJiLWExZjktNDgzYi1hOTRjLTQ0Nzc2YWViMmNhZT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8c24032b-a1f9-483b-a94c-44776aeb2cae?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzhjMjQwMzJiLWExZjktNDgzYi1hOTRjLTQ0Nzc2YWViMmNhZT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -424,8 +424,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8c24032b-a1f9-483b-a94c-44776aeb2cae?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzhjMjQwMzJiLWExZjktNDgzYi1hOTRjLTQ0Nzc2YWViMmNhZT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8c24032b-a1f9-483b-a94c-44776aeb2cae?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzhjMjQwMzJiLWExZjktNDgzYi1hOTRjLTQ0Nzc2YWViMmNhZT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -489,8 +489,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -554,8 +554,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -629,4 +629,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreateRecoveryPlan.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreateRecoveryPlan.json index 27a9b474dd9c..8e87e7101c8d 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreateRecoveryPlan.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreateRecoveryPlan.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -143,8 +143,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -214,8 +214,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"primaryFabricId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1\",\r\n \"recoveryFabricId\": \"Microsoft Azure\",\r\n \"failoverDeploymentModel\": \"ResourceManager\",\r\n \"groups\": [\r\n {\r\n \"groupType\": \"Boot\",\r\n \"replicationProtectedItems\": [\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1\",\r\n \"virtualMachineId\": \"vm1\"\r\n }\r\n ],\r\n \"startGroupActions\": [],\r\n \"endGroupActions\": []\r\n }\r\n ]\r\n }\r\n}", "RequestHeaders": { @@ -254,7 +254,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/operationresults/6b0330be-f188-4b49-83e2-b218b853e3f6?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/operationresults/6b0330be-f188-4b49-83e2-b218b853e3f6?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -264,7 +264,7 @@ "c2775565-649b-4d87-a1f0-4feb82cf76af 5/13/2017 2:11:00 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/6b0330be-f188-4b49-83e2-b218b853e3f6?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/6b0330be-f188-4b49-83e2-b218b853e3f6?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -288,8 +288,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/6b0330be-f188-4b49-83e2-b218b853e3f6?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzZiMDMzMGJlLWYxODgtNGI0OS04M2UyLWIyMThiODUzZTNmNj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/6b0330be-f188-4b49-83e2-b218b853e3f6?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzZiMDMzMGJlLWYxODgtNGI0OS04M2UyLWIyMThiODUzZTNmNj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -353,8 +353,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -418,8 +418,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -493,4 +493,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreateSite.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreateSite.json index eec099998f5f..3695a29c4b7f 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreateSite.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/CreateSite.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {}\r\n}", "RequestHeaders": { @@ -41,7 +41,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/operationresults/e4f1cb81-3ee0-47c8-ab5b-e2dec4b46baf?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/operationresults/e4f1cb81-3ee0-47c8-ab5b-e2dec4b46baf?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -51,7 +51,7 @@ "22dab996-5218-4341-ae55-c8944038763f 5/15/2017 1:02:30 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e4f1cb81-3ee0-47c8-ab5b-e2dec4b46baf?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e4f1cb81-3ee0-47c8-ab5b-e2dec4b46baf?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -75,8 +75,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e4f1cb81-3ee0-47c8-ab5b-e2dec4b46baf?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2U0ZjFjYjgxLTNlZTAtNDdjOC1hYjViLWUyZGVjNGI0NmJhZj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e4f1cb81-3ee0-47c8-ab5b-e2dec4b46baf?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2U0ZjFjYjgxLTNlZTAtNDdjOC1hYjViLWUyZGVjNGI0NmJhZj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -140,8 +140,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -205,8 +205,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -280,4 +280,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeleteNetworkMapping.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeleteNetworkMapping.json index cdb3eaeaee29..9a1be41a1153 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeleteNetworkMapping.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeleteNetworkMapping.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGEvcmVwbGljYXRpb25OZXR3b3JrTWFwcGluZ3MvTldNYXBwaW5nP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGEvcmVwbGljYXRpb25OZXR3b3JrTWFwcGluZ3MvTldNYXBwaW5nP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { @@ -35,13 +35,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping/operationresults/ce5a5825-bfc1-4e73-a1fd-777566368d47?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping/operationresults/ce5a5825-bfc1-4e73-a1fd-777566368d47?api-version=2018-01-10" ], "Retry-After": [ "30" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ce5a5825-bfc1-4e73-a1fd-777566368d47?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ce5a5825-bfc1-4e73-a1fd-777566368d47?api-version=2018-01-10" ], "x-ms-request-id": [ "f3c4c250-c7a9-45bb-8ebd-1aaeeaba507b 5/15/2017 7:18:06 AM" @@ -68,8 +68,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ce5a5825-bfc1-4e73-a1fd-777566368d47?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2NlNWE1ODI1LWJmYzEtNGU3My1hMWZkLTc3NzU2NjM2OGQ0Nz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ce5a5825-bfc1-4e73-a1fd-777566368d47?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2NlNWE1ODI1LWJmYzEtNGU3My1hMWZkLTc3NzU2NjM2OGQ0Nz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -137,4 +137,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeletePCMapping.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeletePCMapping.json index c3d058045d84..61ff5b393873 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeletePCMapping.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeletePCMapping.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -143,8 +143,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -214,8 +214,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectionContainerMappings/PCMapping/remove?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJNYXBwaW5ncy9QQ01hcHBpbmcvcmVtb3ZlP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectionContainerMappings/PCMapping/remove?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJNYXBwaW5ncy9QQ01hcHBpbmcvcmVtb3ZlP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "POST", "RequestBody": "{}", "RequestHeaders": { @@ -254,7 +254,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectionContainerMappings/PCMapping/operationresults/9fe5574b-edc6-456b-88a0-896ab46fe731?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectionContainerMappings/PCMapping/operationresults/9fe5574b-edc6-456b-88a0-896ab46fe731?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -264,7 +264,7 @@ "04a49398-26f2-4615-9331-245cdb1085d6 5/15/2017 2:22:01 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/9fe5574b-edc6-456b-88a0-896ab46fe731?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/9fe5574b-edc6-456b-88a0-896ab46fe731?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -288,8 +288,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/9fe5574b-edc6-456b-88a0-896ab46fe731?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzlmZTU1NzRiLWVkYzYtNDU2Yi04OGEwLTg5NmFiNDZmZTczMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/9fe5574b-edc6-456b-88a0-896ab46fe731?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzlmZTU1NzRiLWVkYzYtNDU2Yi04OGEwLTg5NmFiNDZmZTczMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -357,4 +357,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeletePolicy.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeletePolicy.json index 313cac2c2b11..f450fc26655e 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeletePolicy.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeletePolicy.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcy9wcm90ZWN0aW9ucHJvZmlsZTE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcy9wcm90ZWN0aW9ucHJvZmlsZTE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { @@ -35,13 +35,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1/operationresults/b74ee293-bdcb-49e1-b3fe-084081586db9?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1/operationresults/b74ee293-bdcb-49e1-b3fe-084081586db9?api-version=2018-01-10" ], "Retry-After": [ "30" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b74ee293-bdcb-49e1-b3fe-084081586db9?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b74ee293-bdcb-49e1-b3fe-084081586db9?api-version=2018-01-10" ], "x-ms-request-id": [ "84e78079-c547-4476-bb91-95af172acdbd 5/15/2017 2:23:03 PM" @@ -68,8 +68,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b74ee293-bdcb-49e1-b3fe-084081586db9?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2I3NGVlMjkzLWJkY2ItNDllMS1iM2ZlLTA4NDA4MTU4NmRiOT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b74ee293-bdcb-49e1-b3fe-084081586db9?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2I3NGVlMjkzLWJkY2ItNDllMS1iM2ZlLTA4NDA4MTU4NmRiOT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -137,4 +137,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeleteProtectedItem.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeleteProtectedItem.json index a525b06084d0..54f34d621f5f 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeleteProtectedItem.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeleteProtectedItem.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/remove?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMi9yZW1vdmU/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/remove?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMi9yZW1vdmU/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "POST", "RequestBody": "{\r\n \"properties\": {\r\n \"disableProtectionReason\": \"NotSpecified\",\r\n \"replicationProviderInput\": {\r\n \"instanceType\": \"DisableProtectionProviderSpecificInput\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -112,13 +112,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/operationresults/23a2ad24-a3ac-4c87-b7f1-b97c467fc314?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/operationresults/23a2ad24-a3ac-4c87-b7f1-b97c467fc314?api-version=2018-01-10" ], "Retry-After": [ "30" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/23a2ad24-a3ac-4c87-b7f1-b97c467fc314?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/23a2ad24-a3ac-4c87-b7f1-b97c467fc314?api-version=2018-01-10" ], "x-ms-request-id": [ "81835893-dfff-495b-b308-5fcf6ae8eba8 5/13/2017 7:56:29 PM" @@ -145,8 +145,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/23a2ad24-a3ac-4c87-b7f1-b97c467fc314?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzIzYTJhZDI0LWEzYWMtNGM4Ny1iN2YxLWI5N2M0NjdmYzMxND9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/23a2ad24-a3ac-4c87-b7f1-b97c467fc314?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzIzYTJhZDI0LWEzYWMtNGM4Ny1iN2YxLWI5N2M0NjdmYzMxND9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -214,4 +214,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeleteRecoveryPlan.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeleteRecoveryPlan.json index e3d4510165dc..933599451246 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeleteRecoveryPlan.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeleteRecoveryPlan.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { @@ -35,7 +35,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/operationresults/59852d4b-5caa-4417-a635-9cabda8f263d?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/operationresults/59852d4b-5caa-4417-a635-9cabda8f263d?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -45,7 +45,7 @@ "1d0e1d1d-6e5a-4a16-a36f-7927931c5189 5/13/2017 2:09:27 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/59852d4b-5caa-4417-a635-9cabda8f263d?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/59852d4b-5caa-4417-a635-9cabda8f263d?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -69,8 +69,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/59852d4b-5caa-4417-a635-9cabda8f263d?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzU5ODUyZDRiLTVjYWEtNDQxNy1hNjM1LTljYWJkYThmMjYzZD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/59852d4b-5caa-4417-a635-9cabda8f263d?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzU5ODUyZDRiLTVjYWEtNDQxNy1hNjM1LTljYWJkYThmMjYzZD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -138,4 +138,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeleteRsp.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeleteRsp.json index 439accf1bbe1..4b817178f536 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeleteRsp.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeleteRsp.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998/remove?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblJlY292ZXJ5U2VydmljZXNQcm92aWRlcnMvYmEyYTJkMjUtMzc3Zi00ZjRiLTk0YTQtMjk4MWM3OWIwOTk4L3JlbW92ZT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998/remove?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblJlY292ZXJ5U2VydmljZXNQcm92aWRlcnMvYmEyYTJkMjUtMzc3Zi00ZjRiLTk0YTQtMjk4MWM3OWIwOTk4L3JlbW92ZT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { @@ -106,7 +106,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998/operationresults/ddb7e489-6738-4ec8-b5e4-5dc29c4966be?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998/operationresults/ddb7e489-6738-4ec8-b5e4-5dc29c4966be?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -116,7 +116,7 @@ "1b047822-0767-4480-9ed4-819fac738f3b 5/13/2017 8:14:16 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ddb7e489-6738-4ec8-b5e4-5dc29c4966be?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ddb7e489-6738-4ec8-b5e4-5dc29c4966be?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -140,8 +140,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ddb7e489-6738-4ec8-b5e4-5dc29c4966be?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2RkYjdlNDg5LTY3MzgtNGVjOC1iNWU0LTVkYzI5YzQ5NjZiZT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ddb7e489-6738-4ec8-b5e4-5dc29c4966be?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2RkYjdlNDg5LTY3MzgtNGVjOC1iNWU0LTVkYzI5YzQ5NjZiZT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -209,4 +209,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeleteSite.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeleteSite.json index d81decae50a4..f3588918bf66 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeleteSite.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/DeleteSite.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/remove?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZW1vdmU/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/remove?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZW1vdmU/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { @@ -35,7 +35,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/operationresults/a866a38d-6b79-4d95-a02c-47201cd04bc9?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/operationresults/a866a38d-6b79-4d95-a02c-47201cd04bc9?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -45,7 +45,7 @@ "afeb5d38-d9d3-45a4-a32e-0f5f528e09a2 5/13/2017 8:38:44 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a866a38d-6b79-4d95-a02c-47201cd04bc9?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a866a38d-6b79-4d95-a02c-47201cd04bc9?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -69,8 +69,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a866a38d-6b79-4d95-a02c-47201cd04bc9?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NjZhMzhkLTZiNzktNGQ5NS1hMDJjLTQ3MjAxY2QwNGJjOT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a866a38d-6b79-4d95-a02c-47201cd04bc9?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NjZhMzhkLTZiNzktNGQ5NS1hMDJjLTQ3MjAxY2QwNGJjOT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -138,4 +138,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumerateContainer.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumerateContainer.json index 7d5e88f20dbd..14a9e4f8de70 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumerateContainer.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumerateContainer.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -147,4 +147,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumerateNetworkMapping.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumerateNetworkMapping.json index e6f669ec9bd8..bc7587f315a4 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumerateNetworkMapping.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumerateNetworkMapping.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGEvcmVwbGljYXRpb25OZXR3b3JrTWFwcGluZ3M/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGEvcmVwbGljYXRpb25OZXR3b3JrTWFwcGluZ3M/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -76,4 +76,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumerateNetworks.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumerateNetworks.json index 33c76f4ca7fa..376f17ce5226 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumerateNetworks.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumerateNetworks.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -76,4 +76,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumeratePCMapping.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumeratePCMapping.json index 880e89c2d003..e15bb7fcabf5 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumeratePCMapping.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumeratePCMapping.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -143,8 +143,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectionContainerMappings?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJNYXBwaW5ncz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectionContainerMappings?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJNYXBwaW5ncz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -218,4 +218,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumerateProtectableItem.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumerateProtectableItem.json index 5a4451b1fe65..d0b72b10aee0 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumerateProtectableItem.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumerateProtectableItem.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -143,8 +143,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -214,8 +214,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RhYmxlSXRlbXM/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RhYmxlSXRlbXM/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -230,7 +230,7 @@ "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.SiteRecoveryManagementClient/1.4.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"name\": \"687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm11\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"5bb00ca8-d850-49fb-afdc-052413458ea2\",\r\n \"vhdName\": \"vm11\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"name\": \"cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm2\",\r\n \"protectionStatus\": \"Protected\",\r\n \"replicationProtectedItemId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"474006f7-6ae8-4c26-9143-e056b30374ab\",\r\n \"vhdName\": \"vm2\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/f8491e4f-817a-40dd-a90c-af773978c75b\",\r\n \"name\": \"f8491e4f-817a-40dd-a90c-af773978c75b\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm1\",\r\n \"protectionStatus\": \"Protected\",\r\n \"replicationProtectedItemId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/f8491e4f-817a-40dd-a90c-af773978c75b\",\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"f8491e4f-817a-40dd-a90c-af773978c75b\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"5f01e3a8-73fb-4c60-8cfc-e69297e5d96b\",\r\n \"vhdName\": \"vm1\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"name\": \"fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"Nakul\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"generation\": \"2\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 25600,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"bb2ce67e-8f5b-49ee-ac6a-a0b14e8622c1\",\r\n \"vhdName\": \"FRTest\"\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems?api-version=2016-08-10&%24skipToken=ReplicationGroup%3aBegin\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"name\": \"687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm11\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"5bb00ca8-d850-49fb-afdc-052413458ea2\",\r\n \"vhdName\": \"vm11\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"name\": \"cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm2\",\r\n \"protectionStatus\": \"Protected\",\r\n \"replicationProtectedItemId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"474006f7-6ae8-4c26-9143-e056b30374ab\",\r\n \"vhdName\": \"vm2\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/f8491e4f-817a-40dd-a90c-af773978c75b\",\r\n \"name\": \"f8491e4f-817a-40dd-a90c-af773978c75b\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm1\",\r\n \"protectionStatus\": \"Protected\",\r\n \"replicationProtectedItemId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/f8491e4f-817a-40dd-a90c-af773978c75b\",\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"f8491e4f-817a-40dd-a90c-af773978c75b\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"5f01e3a8-73fb-4c60-8cfc-e69297e5d96b\",\r\n \"vhdName\": \"vm1\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"name\": \"fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"Nakul\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"generation\": \"2\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 25600,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"bb2ce67e-8f5b-49ee-ac6a-a0b14e8622c1\",\r\n \"vhdName\": \"FRTest\"\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems?api-version=2018-01-10&%24skipToken=ReplicationGroup%3aBegin\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -289,4 +289,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumerateProtectedItem.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumerateProtectedItem.json index 89db58754280..0d105dbacc38 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumerateProtectedItem.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/EnumerateProtectedItem.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -147,4 +147,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetAlertSettings.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetAlertSettings.json index d4330a06ec4d..cabc9d5fc6d3 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetAlertSettings.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetAlertSettings.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationAlertSettings/defaultAlertSetting?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25BbGVydFNldHRpbmdzL2RlZmF1bHRBbGVydFNldHRpbmc/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationAlertSettings/defaultAlertSetting?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25BbGVydFNldHRpbmdzL2RlZmF1bHRBbGVydFNldHRpbmc/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -76,4 +76,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetContainer.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetContainer.json index 2f583a0320b8..d842d0604a5b 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetContainer.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetContainer.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -143,8 +143,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -218,4 +218,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetHealthDetails.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetHealthDetails.json index a50c742650d7..087d45d86f7e 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetHealthDetails.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetHealthDetails.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/canaryexproute/providers/Microsoft.RecoveryServices/vaults/IbizaV2ATest/replicationVaultHealth?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvN2M5NDNjMWItNTEyMi00MDk3LTkwYzgtODYxNDExYmRkNTc0L3Jlc291cmNlR3JvdXBzL2NhbmFyeWV4cHJvdXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvSWJpemFWMkFUZXN0L3JlcGxpY2F0aW9uVmF1bHRIZWFsdGg/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/canaryexproute/providers/Microsoft.RecoveryServices/vaults/IbizaV2ATest/replicationVaultHealth?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvN2M5NDNjMWItNTEyMi00MDk3LTkwYzgtODYxNDExYmRkNTc0L3Jlc291cmNlR3JvdXBzL2NhbmFyeWV4cHJvdXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvSWJpemFWMkFUZXN0L3JlcGxpY2F0aW9uVmF1bHRIZWFsdGg/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -76,4 +76,4 @@ "Variables": { "SubscriptionId": "7c943c1b-5122-4097-90c8-861411bdd574" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetNetworkMapping.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetNetworkMapping.json index cc1ef92ab634..6bf45de6729e 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetNetworkMapping.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetNetworkMapping.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGEvcmVwbGljYXRpb25OZXR3b3JrTWFwcGluZ3MvTldNYXBwaW5nP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGEvcmVwbGljYXRpb25OZXR3b3JrTWFwcGluZ3MvTldNYXBwaW5nP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -76,4 +76,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetNetworks.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetNetworks.json index c480ca16afab..62d39fd6bcec 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetNetworks.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetNetworks.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -76,4 +76,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetPCMapping.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetPCMapping.json index cf4c8d88f773..d40660fff941 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetPCMapping.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetPCMapping.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -143,8 +143,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -214,8 +214,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectionContainerMappings/PCMapping?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJNYXBwaW5ncy9QQ01hcHBpbmc/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectionContainerMappings/PCMapping?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJNYXBwaW5ncy9QQ01hcHBpbmc/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -289,4 +289,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetPolicy.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetPolicy.json index cf9ce7b6ee5f..008d94814da6 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetPolicy.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetPolicy.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcy9wcm90ZWN0aW9ucHJvZmlsZTE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcy9wcm90ZWN0aW9ucHJvZmlsZTE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -76,4 +76,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetProtectableItem.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetProtectableItem.json index 4965a894eccd..072edfa4f437 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetProtectableItem.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetProtectableItem.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -143,8 +143,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -214,8 +214,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RhYmxlSXRlbXM/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RhYmxlSXRlbXM/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -230,7 +230,7 @@ "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.SiteRecoveryManagementClient/1.4.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"name\": \"687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm11\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"5bb00ca8-d850-49fb-afdc-052413458ea2\",\r\n \"vhdName\": \"vm11\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"name\": \"cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm2\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"474006f7-6ae8-4c26-9143-e056b30374ab\",\r\n \"vhdName\": \"vm2\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/f8491e4f-817a-40dd-a90c-af773978c75b\",\r\n \"name\": \"f8491e4f-817a-40dd-a90c-af773978c75b\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm1\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"f8491e4f-817a-40dd-a90c-af773978c75b\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"5f01e3a8-73fb-4c60-8cfc-e69297e5d96b\",\r\n \"vhdName\": \"vm1\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"name\": \"fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"Nakul\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"generation\": \"2\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 25600,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"bb2ce67e-8f5b-49ee-ac6a-a0b14e8622c1\",\r\n \"vhdName\": \"FRTest\"\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems?api-version=2016-08-10&%24skipToken=ReplicationGroup%3aBegin\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"name\": \"687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm11\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"5bb00ca8-d850-49fb-afdc-052413458ea2\",\r\n \"vhdName\": \"vm11\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"name\": \"cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm2\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"474006f7-6ae8-4c26-9143-e056b30374ab\",\r\n \"vhdName\": \"vm2\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/f8491e4f-817a-40dd-a90c-af773978c75b\",\r\n \"name\": \"f8491e4f-817a-40dd-a90c-af773978c75b\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm1\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"f8491e4f-817a-40dd-a90c-af773978c75b\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"5f01e3a8-73fb-4c60-8cfc-e69297e5d96b\",\r\n \"vhdName\": \"vm1\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"name\": \"fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"Nakul\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"generation\": \"2\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 25600,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"bb2ce67e-8f5b-49ee-ac6a-a0b14e8622c1\",\r\n \"vhdName\": \"FRTest\"\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems?api-version=2018-01-10&%24skipToken=ReplicationGroup%3aBegin\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -289,4 +289,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetProtectedItem.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetProtectedItem.json index 1a43d3a71d08..8afa76b80452 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetProtectedItem.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetProtectedItem.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -143,8 +143,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -218,4 +218,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetRSP.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetRSP.json index 2f914c649abe..bc11cb3fb6b9 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetRSP.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetRSP.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblJlY292ZXJ5U2VydmljZXNQcm92aWRlcnMvYmEyYTJkMjUtMzc3Zi00ZjRiLTk0YTQtMjk4MWM3OWIwOTk4P2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblJlY292ZXJ5U2VydmljZXNQcm92aWRlcnMvYmEyYTJkMjUtMzc3Zi00ZjRiLTk0YTQtMjk4MWM3OWIwOTk4P2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -147,4 +147,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetRecoveryPlan.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetRecoveryPlan.json index d2f787fa57f9..cc862898b668 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetRecoveryPlan.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetRecoveryPlan.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -76,4 +76,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetRecoveryPoints.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetRecoveryPoints.json index fba33186e5b3..ad61ba0f9045 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetRecoveryPoints.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetRecoveryPoints.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/recoveryPoints?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMi9yZWNvdmVyeVBvaW50cz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/recoveryPoints?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMi9yZWNvdmVyeVBvaW50cz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -143,8 +143,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/recoveryPoints/18cc22c7-4b20-4b09-a63d-6a9c612ea5f2?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMi9yZWNvdmVyeVBvaW50cy8xOGNjMjJjNy00YjIwLTRiMDktYTYzZC02YTljNjEyZWE1ZjI/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/recoveryPoints/18cc22c7-4b20-4b09-a63d-6a9c612ea5f2?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMi9yZWNvdmVyeVBvaW50cy8xOGNjMjJjNy00YjIwLTRiMDktYTYzZC02YTljNjEyZWE1ZjI/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -218,4 +218,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetReplicationEvent.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetReplicationEvent.json index af83521b8f6d..06eab28634b7 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetReplicationEvent.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetReplicationEvent.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationEvents?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25FdmVudHM/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationEvents?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25FdmVudHM/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationEvents/JobStatusMonitoringEvent%3B9091980325128257682_5c92731f-dcaf-423c-81f8-1d49d46f3ee3?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25FdmVudHMvSm9iU3RhdHVzTW9uaXRvcmluZ0V2ZW50JTNCOTA5MTk4MDMyNTEyODI1NzY4Ml81YzkyNzMxZi1kY2FmLTQyM2MtODFmOC0xZDQ5ZDQ2ZjNlZTM/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationEvents/JobStatusMonitoringEvent%3B9091980325128257682_5c92731f-dcaf-423c-81f8-1d49d46f3ee3?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25FdmVudHMvSm9iU3RhdHVzTW9uaXRvcmluZ0V2ZW50JTNCOTA5MTk4MDMyNTEyODI1NzY4Ml81YzkyNzMxZi1kY2FmLTQyM2MtODFmOC0xZDQ5ZDQ2ZjNlZTM/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -147,4 +147,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetSite.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetSite.json index 9e2473453679..7b8798af214d 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetSite.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/GetSite.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -76,4 +76,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListAlertSettings.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListAlertSettings.json index 950cc299e48b..b23df9863cad 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListAlertSettings.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListAlertSettings.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationAlertSettings?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25BbGVydFNldHRpbmdzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationAlertSettings?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25BbGVydFNldHRpbmdzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -76,4 +76,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListAllContainers.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListAllContainers.json index 21345195606c..663c8aff7df1 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListAllContainers.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListAllContainers.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qcm90ZWN0aW9uQ29udGFpbmVycz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qcm90ZWN0aW9uQ29udGFpbmVycz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -147,4 +147,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListAllPCMapping.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListAllPCMapping.json index 519d974d804a..15f92dccc393 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListAllPCMapping.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListAllPCMapping.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationProtectionContainerMappings?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qcm90ZWN0aW9uQ29udGFpbmVyTWFwcGluZ3M/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationProtectionContainerMappings?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qcm90ZWN0aW9uQ29udGFpbmVyTWFwcGluZ3M/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -76,4 +76,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListAllProtectedItem.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListAllProtectedItem.json index 0491b954592b..7c0ddf4f036d 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListAllProtectedItem.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListAllProtectedItem.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationProtectedItems?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qcm90ZWN0ZWRJdGVtcz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationProtectedItems?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qcm90ZWN0ZWRJdGVtcz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -76,4 +76,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListEventByQuery.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListEventByQuery.json index 4f2bba0eff1b..d68cdb44fa2d 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListEventByQuery.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListEventByQuery.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/canaryexproute/providers/Microsoft.RecoveryServices/vaults/IbizaV2ATest/replicationEvents?$filter=Severity%20%20eq%20'Critical'&api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvN2M5NDNjMWItNTEyMi00MDk3LTkwYzgtODYxNDExYmRkNTc0L3Jlc291cmNlR3JvdXBzL2NhbmFyeWV4cHJvdXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvSWJpemFWMkFUZXN0L3JlcGxpY2F0aW9uRXZlbnRzPyRmaWx0ZXI9U2V2ZXJpdHklMjAlMjBlcSUyMCdDcml0aWNhbCcmYXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/canaryexproute/providers/Microsoft.RecoveryServices/vaults/IbizaV2ATest/replicationEvents?$filter=Severity%20%20eq%20'Critical'&api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvN2M5NDNjMWItNTEyMi00MDk3LTkwYzgtODYxNDExYmRkNTc0L3Jlc291cmNlR3JvdXBzL2NhbmFyeWV4cHJvdXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvSWJpemFWMkFUZXN0L3JlcGxpY2F0aW9uRXZlbnRzPyRmaWx0ZXI9U2V2ZXJpdHklMjAlMjBlcSUyMCdDcml0aWNhbCcmYXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -76,4 +76,4 @@ "Variables": { "SubscriptionId": "7c943c1b-5122-4097-90c8-861411bdd574" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListNetworkMapping.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListNetworkMapping.json index cbfda83478d3..4499b8029456 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListNetworkMapping.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListNetworkMapping.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationNetworkMappings?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25OZXR3b3JrTWFwcGluZ3M/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationNetworkMappings?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25OZXR3b3JrTWFwcGluZ3M/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -76,4 +76,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListNetworks.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListNetworks.json index aa42e752a66c..79ca84e5f2a4 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListNetworks.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListNetworks.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationNetworks?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25OZXR3b3Jrcz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationNetworks?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25OZXR3b3Jrcz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -76,4 +76,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListPolicy.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListPolicy.json index 54914c2d5a55..0382edaff5cc 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListPolicy.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListPolicy.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -76,4 +76,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListRecoveryPoints.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListRecoveryPoints.json index f398ac9b6b75..9e79f0a80d4f 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListRecoveryPoints.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListRecoveryPoints.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1/recoveryPoints?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMS9yZWNvdmVyeVBvaW50cz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1/recoveryPoints?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMS9yZWNvdmVyeVBvaW50cz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -147,4 +147,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListReplicationEvent.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListReplicationEvent.json index 394913559122..d4ee1f3dcee0 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListReplicationEvent.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListReplicationEvent.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationEvents?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25FdmVudHM/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationEvents?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25FdmVudHM/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -76,4 +76,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListRsp.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListRsp.json index 51a71ddbc0e9..34c82af75f25 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListRsp.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListRsp.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryServicesProviders?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVNlcnZpY2VzUHJvdmlkZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryServicesProviders?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVNlcnZpY2VzUHJvdmlkZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -76,4 +76,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListRspByFabric.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListRspByFabric.json index 011282da9e28..0c52808cdf68 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListRspByFabric.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListRspByFabric.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblJlY292ZXJ5U2VydmljZXNQcm92aWRlcnM/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblJlY292ZXJ5U2VydmljZXNQcm92aWRlcnM/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -147,4 +147,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListSite.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListSite.json index 07f430b0ab70..a648005b93e2 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListSite.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/ListSite.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -76,4 +76,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/MigrateToAad.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/MigrateToAad.json index 162a4900f926..34e34370964b 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/MigrateToAad.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/MigrateToAad.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/canaryexproute/providers/Microsoft.RecoveryServices/vaults/IbizaV2ATest/replicationFabrics/38de67c62c2b231fb647b060df06a8a69da7e305c44db6646693b7470d709c87/migratetoaad?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvN2M5NDNjMWItNTEyMi00MDk3LTkwYzgtODYxNDExYmRkNTc0L3Jlc291cmNlR3JvdXBzL2NhbmFyeWV4cHJvdXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvSWJpemFWMkFUZXN0L3JlcGxpY2F0aW9uRmFicmljcy8zOGRlNjdjNjJjMmIyMzFmYjY0N2IwNjBkZjA2YThhNjlkYTdlMzA1YzQ0ZGI2NjQ2NjkzYjc0NzBkNzA5Yzg3L21pZ3JhdGV0b2FhZD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/canaryexproute/providers/Microsoft.RecoveryServices/vaults/IbizaV2ATest/replicationFabrics/38de67c62c2b231fb647b060df06a8a69da7e305c44db6646693b7470d709c87/migratetoaad?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvN2M5NDNjMWItNTEyMi00MDk3LTkwYzgtODYxNDExYmRkNTc0L3Jlc291cmNlR3JvdXBzL2NhbmFyeWV4cHJvdXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvSWJpemFWMkFUZXN0L3JlcGxpY2F0aW9uRmFicmljcy8zOGRlNjdjNjJjMmIyMzFmYjY0N2IwNjBkZjA2YThhNjlkYTdlMzA1YzQ0ZGI2NjQ2NjkzYjc0NzBkNzA5Yzg3L21pZ3JhdGV0b2FhZD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { @@ -35,7 +35,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/canaryexproute/providers/Microsoft.RecoveryServices/vaults/IbizaV2ATest/replicationFabrics/38de67c62c2b231fb647b060df06a8a69da7e305c44db6646693b7470d709c87/operationresults/fedcaa5c-80e1-4431-b0ef-4cee50c0f796?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/canaryexproute/providers/Microsoft.RecoveryServices/vaults/IbizaV2ATest/replicationFabrics/38de67c62c2b231fb647b060df06a8a69da7e305c44db6646693b7470d709c87/operationresults/fedcaa5c-80e1-4431-b0ef-4cee50c0f796?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -45,7 +45,7 @@ "91eb68a5-26b7-47ee-8529-1720b17fa54c 9/6/2017 2:41:24 AM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/canaryexproute/providers/Microsoft.RecoveryServices/vaults/IbizaV2ATest/replicationJobs/fedcaa5c-80e1-4431-b0ef-4cee50c0f796?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/canaryexproute/providers/Microsoft.RecoveryServices/vaults/IbizaV2ATest/replicationJobs/fedcaa5c-80e1-4431-b0ef-4cee50c0f796?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -69,8 +69,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/canaryexproute/providers/Microsoft.RecoveryServices/vaults/IbizaV2ATest/replicationJobs/fedcaa5c-80e1-4431-b0ef-4cee50c0f796?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvN2M5NDNjMWItNTEyMi00MDk3LTkwYzgtODYxNDExYmRkNTc0L3Jlc291cmNlR3JvdXBzL2NhbmFyeWV4cHJvdXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvSWJpemFWMkFUZXN0L3JlcGxpY2F0aW9uSm9icy9mZWRjYWE1Yy04MGUxLTQ0MzEtYjBlZi00Y2VlNTBjMGY3OTY/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/canaryexproute/providers/Microsoft.RecoveryServices/vaults/IbizaV2ATest/replicationJobs/fedcaa5c-80e1-4431-b0ef-4cee50c0f796?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvN2M5NDNjMWItNTEyMi00MDk3LTkwYzgtODYxNDExYmRkNTc0L3Jlc291cmNlR3JvdXBzL2NhbmFyeWV4cHJvdXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvSWJpemFWMkFUZXN0L3JlcGxpY2F0aW9uSm9icy9mZWRjYWE1Yy04MGUxLTQ0MzEtYjBlZi00Y2VlNTBjMGY3OTY/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -138,4 +138,4 @@ "Variables": { "SubscriptionId": "7c943c1b-5122-4097-90c8-861411bdd574" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/PlannedFailover.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/PlannedFailover.json index 685adf15cbb3..0d6e59c1f2ae 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/PlannedFailover.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/PlannedFailover.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -143,8 +143,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/plannedFailover?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMi9wbGFubmVkRmFpbG92ZXI/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/plannedFailover?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMi9wbGFubmVkRmFpbG92ZXI/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "POST", "RequestBody": "{\r\n \"properties\": {\r\n \"providerSpecificDetails\": {\r\n \"instanceType\": \"HyperVReplicaAzure\",\r\n \"vaultLocation\": \"West US\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -183,7 +183,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/operationresults/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/operationresults/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -193,7 +193,7 @@ "8eb0d85f-d255-44d3-aed8-a4eb94fd4b9f 5/15/2017 1:46:00 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -217,8 +217,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2IwNTA2ZTNiLTUyNmItNGFmOC05ZTVkLWI3ZDJkZTk1ZjljNz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2IwNTA2ZTNiLTUyNmItNGFmOC05ZTVkLWI3ZDJkZTk1ZjljNz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -282,8 +282,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2IwNTA2ZTNiLTUyNmItNGFmOC05ZTVkLWI3ZDJkZTk1ZjljNz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2IwNTA2ZTNiLTUyNmItNGFmOC05ZTVkLWI3ZDJkZTk1ZjljNz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -347,8 +347,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2IwNTA2ZTNiLTUyNmItNGFmOC05ZTVkLWI3ZDJkZTk1ZjljNz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2IwNTA2ZTNiLTUyNmItNGFmOC05ZTVkLWI3ZDJkZTk1ZjljNz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -412,8 +412,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2IwNTA2ZTNiLTUyNmItNGFmOC05ZTVkLWI3ZDJkZTk1ZjljNz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2IwNTA2ZTNiLTUyNmItNGFmOC05ZTVkLWI3ZDJkZTk1ZjljNz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -477,8 +477,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2IwNTA2ZTNiLTUyNmItNGFmOC05ZTVkLWI3ZDJkZTk1ZjljNz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2IwNTA2ZTNiLTUyNmItNGFmOC05ZTVkLWI3ZDJkZTk1ZjljNz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -542,8 +542,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2IwNTA2ZTNiLTUyNmItNGFmOC05ZTVkLWI3ZDJkZTk1ZjljNz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2IwNTA2ZTNiLTUyNmItNGFmOC05ZTVkLWI3ZDJkZTk1ZjljNz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -607,8 +607,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2IwNTA2ZTNiLTUyNmItNGFmOC05ZTVkLWI3ZDJkZTk1ZjljNz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2IwNTA2ZTNiLTUyNmItNGFmOC05ZTVkLWI3ZDJkZTk1ZjljNz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -672,8 +672,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2IwNTA2ZTNiLTUyNmItNGFmOC05ZTVkLWI3ZDJkZTk1ZjljNz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2IwNTA2ZTNiLTUyNmItNGFmOC05ZTVkLWI3ZDJkZTk1ZjljNz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -737,8 +737,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2IwNTA2ZTNiLTUyNmItNGFmOC05ZTVkLWI3ZDJkZTk1ZjljNz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2IwNTA2ZTNiLTUyNmItNGFmOC05ZTVkLWI3ZDJkZTk1ZjljNz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -802,8 +802,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2IwNTA2ZTNiLTUyNmItNGFmOC05ZTVkLWI3ZDJkZTk1ZjljNz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/b0506e3b-526b-4af8-9e5d-b7d2de95f9c7?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2IwNTA2ZTNiLTUyNmItNGFmOC05ZTVkLWI3ZDJkZTk1ZjljNz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -871,4 +871,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/PurgePCMapping.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/PurgePCMapping.json index e6d31975223e..573b1a609feb 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/PurgePCMapping.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/PurgePCMapping.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -143,8 +143,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectionContainerMappings/PCMapping?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJNYXBwaW5ncy9QQ01hcHBpbmc/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectionContainerMappings/PCMapping?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJNYXBwaW5ncy9QQ01hcHBpbmc/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { @@ -177,7 +177,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectionContainerMappings/PCMapping/operationresults/bf12c4aa-249b-478f-abca-9b3dafb4a96e?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectionContainerMappings/PCMapping/operationresults/bf12c4aa-249b-478f-abca-9b3dafb4a96e?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -187,7 +187,7 @@ "b89b7235-6581-40f8-ad9d-7aee74e50a4a 5/13/2017 8:05:35 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/bf12c4aa-249b-478f-abca-9b3dafb4a96e?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/bf12c4aa-249b-478f-abca-9b3dafb4a96e?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -211,8 +211,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/bf12c4aa-249b-478f-abca-9b3dafb4a96e?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2JmMTJjNGFhLTI0OWItNDc4Zi1hYmNhLTliM2RhZmI0YTk2ZT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/bf12c4aa-249b-478f-abca-9b3dafb4a96e?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2JmMTJjNGFhLTI0OWItNDc4Zi1hYmNhLTliM2RhZmI0YTk2ZT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -280,4 +280,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/PurgeProtectedItem.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/PurgeProtectedItem.json index 40e72e388d22..803956b2aa61 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/PurgeProtectedItem.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/PurgeProtectedItem.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { @@ -106,7 +106,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1/operationresults/3737bc7c-abe9-417d-9188-20c284330bdd?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1/operationresults/3737bc7c-abe9-417d-9188-20c284330bdd?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -116,7 +116,7 @@ "6845a3af-9833-49d1-a880-28c34199d729 5/13/2017 7:27:05 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/3737bc7c-abe9-417d-9188-20c284330bdd?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/3737bc7c-abe9-417d-9188-20c284330bdd?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -140,8 +140,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/3737bc7c-abe9-417d-9188-20c284330bdd?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzM3MzdiYzdjLWFiZTktNDE3ZC05MTg4LTIwYzI4NDMzMGJkZD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/3737bc7c-abe9-417d-9188-20c284330bdd?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzM3MzdiYzdjLWFiZTktNDE3ZC05MTg4LTIwYzI4NDMzMGJkZD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -209,4 +209,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/PurgeRsp.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/PurgeRsp.json index 42cd4813d6e6..45475312c157 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/PurgeRsp.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/PurgeRsp.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/74ef040f-fa15-4f71-9652-c27d5d19d575?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblJlY292ZXJ5U2VydmljZXNQcm92aWRlcnMvNzRlZjA0MGYtZmExNS00ZjcxLTk2NTItYzI3ZDVkMTlkNTc1P2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/74ef040f-fa15-4f71-9652-c27d5d19d575?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblJlY292ZXJ5U2VydmljZXNQcm92aWRlcnMvNzRlZjA0MGYtZmExNS00ZjcxLTk2NTItYzI3ZDVkMTlkNTc1P2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { @@ -106,7 +106,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/74ef040f-fa15-4f71-9652-c27d5d19d575/operationresults/e2d8539e-ac82-488e-a4e7-23f84558811f?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/74ef040f-fa15-4f71-9652-c27d5d19d575/operationresults/e2d8539e-ac82-488e-a4e7-23f84558811f?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -116,7 +116,7 @@ "2524139b-5050-4e8f-96ad-80eb4771b9c4 5/13/2017 8:29:20 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e2d8539e-ac82-488e-a4e7-23f84558811f?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e2d8539e-ac82-488e-a4e7-23f84558811f?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -140,8 +140,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e2d8539e-ac82-488e-a4e7-23f84558811f?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2UyZDg1MzllLWFjODItNDg4ZS1hNGU3LTIzZjg0NTU4ODExZj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e2d8539e-ac82-488e-a4e7-23f84558811f?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2UyZDg1MzllLWFjODItNDg4ZS1hNGU3LTIzZjg0NTU4ODExZj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -209,4 +209,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/PurgeSite.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/PurgeSite.json index 991590e16834..5ce708ca1803 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/PurgeSite.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/PurgeSite.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { @@ -35,7 +35,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/operationresults/583abb1c-6a0f-4ac7-9c2b-ebda2d194cfc?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/operationresults/583abb1c-6a0f-4ac7-9c2b-ebda2d194cfc?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -45,7 +45,7 @@ "d627598d-f9ec-4573-8916-fd58c6d32d20 5/13/2017 8:40:40 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/583abb1c-6a0f-4ac7-9c2b-ebda2d194cfc?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/583abb1c-6a0f-4ac7-9c2b-ebda2d194cfc?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -69,8 +69,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/583abb1c-6a0f-4ac7-9c2b-ebda2d194cfc?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzU4M2FiYjFjLTZhMGYtNGFjNy05YzJiLWViZGEyZDE5NGNmYz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/583abb1c-6a0f-4ac7-9c2b-ebda2d194cfc?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzU4M2FiYjFjLTZhMGYtNGFjNy05YzJiLWViZGEyZDE5NGNmYz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -138,4 +138,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPFailback.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPFailback.json index d485068a9048..8db1d41e4101 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPFailback.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPFailback.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/plannedFailover?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDEvcGxhbm5lZEZhaWxvdmVyP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/plannedFailover?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDEvcGxhbm5lZEZhaWxvdmVyP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "POST", "RequestBody": "{\r\n \"properties\": {\r\n \"failoverDirection\": \"RecoveryToPrimary\",\r\n \"providerSpecificDetails\": [\r\n {\r\n \"instanceType\": \"HyperVReplicaAzureFailback\",\r\n \"dataSyncOption\": \"ForSynchronization\",\r\n \"recoveryVmCreationOption\": \"NoAction\"\r\n }\r\n ]\r\n }\r\n}", "RequestHeaders": { @@ -41,7 +41,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/operationresults/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/operationresults/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -51,7 +51,7 @@ "0b6515fa-d75e-44dd-a166-8da40f13743d 5/13/2017 5:49:22 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -75,8 +75,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -140,8 +140,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -205,8 +205,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -270,8 +270,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -335,8 +335,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -400,8 +400,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -465,8 +465,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -530,8 +530,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -595,8 +595,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -660,8 +660,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -725,8 +725,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a8447af3-a914-48fa-9e95-90480b5a16f0?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NDQ3YWYzLWE5MTQtNDhmYS05ZTk1LTkwNDgwYjVhMTZmMD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -790,8 +790,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -865,4 +865,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPFailoverCommit.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPFailoverCommit.json index 2c8e13dc68ff..410a3951a8a1 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPFailoverCommit.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPFailoverCommit.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/failoverCommit?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDEvZmFpbG92ZXJDb21taXQ/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/failoverCommit?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDEvZmFpbG92ZXJDb21taXQ/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { @@ -35,7 +35,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/operationresults/4ebba536-f02c-4317-9a3c-1a048f0daebb?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/operationresults/4ebba536-f02c-4317-9a3c-1a048f0daebb?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -45,7 +45,7 @@ "9cea4caf-6b79-4af4-a43f-36181bb55ac3 5/13/2017 6:09:52 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/4ebba536-f02c-4317-9a3c-1a048f0daebb?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/4ebba536-f02c-4317-9a3c-1a048f0daebb?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -69,8 +69,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/4ebba536-f02c-4317-9a3c-1a048f0daebb?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzRlYmJhNTM2LWYwMmMtNDMxNy05YTNjLTFhMDQ4ZjBkYWViYj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/4ebba536-f02c-4317-9a3c-1a048f0daebb?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzRlYmJhNTM2LWYwMmMtNDMxNy05YTNjLTFhMDQ4ZjBkYWViYj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -134,8 +134,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -209,4 +209,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPPlannedFailover.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPPlannedFailover.json index ab71f54c5816..0d62e0854ccc 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPPlannedFailover.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPPlannedFailover.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/plannedFailover?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDEvcGxhbm5lZEZhaWxvdmVyP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/plannedFailover?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDEvcGxhbm5lZEZhaWxvdmVyP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "POST", "RequestBody": "{\r\n \"properties\": {\r\n \"failoverDirection\": \"PrimaryToRecovery\",\r\n \"providerSpecificDetails\": [\r\n {\r\n \"instanceType\": \"HyperVReplicaAzure\",\r\n \"vaultLocation\": \"West US\"\r\n }\r\n ]\r\n }\r\n}", "RequestHeaders": { @@ -41,7 +41,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/operationresults/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/operationresults/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -51,7 +51,7 @@ "e297f4df-2610-4dcf-aa5b-b6ebb451e15d 5/13/2017 5:29:25 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -75,8 +75,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q1Y2U2NDcyLTZiYjMtNDBlMS05NmI0LTU1MWM2N2YxMzhiYT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q1Y2U2NDcyLTZiYjMtNDBlMS05NmI0LTU1MWM2N2YxMzhiYT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -140,8 +140,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q1Y2U2NDcyLTZiYjMtNDBlMS05NmI0LTU1MWM2N2YxMzhiYT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q1Y2U2NDcyLTZiYjMtNDBlMS05NmI0LTU1MWM2N2YxMzhiYT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -205,8 +205,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q1Y2U2NDcyLTZiYjMtNDBlMS05NmI0LTU1MWM2N2YxMzhiYT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q1Y2U2NDcyLTZiYjMtNDBlMS05NmI0LTU1MWM2N2YxMzhiYT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -270,8 +270,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q1Y2U2NDcyLTZiYjMtNDBlMS05NmI0LTU1MWM2N2YxMzhiYT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q1Y2U2NDcyLTZiYjMtNDBlMS05NmI0LTU1MWM2N2YxMzhiYT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -335,8 +335,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q1Y2U2NDcyLTZiYjMtNDBlMS05NmI0LTU1MWM2N2YxMzhiYT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q1Y2U2NDcyLTZiYjMtNDBlMS05NmI0LTU1MWM2N2YxMzhiYT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -400,8 +400,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q1Y2U2NDcyLTZiYjMtNDBlMS05NmI0LTU1MWM2N2YxMzhiYT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q1Y2U2NDcyLTZiYjMtNDBlMS05NmI0LTU1MWM2N2YxMzhiYT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -465,8 +465,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q1Y2U2NDcyLTZiYjMtNDBlMS05NmI0LTU1MWM2N2YxMzhiYT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q1Y2U2NDcyLTZiYjMtNDBlMS05NmI0LTU1MWM2N2YxMzhiYT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -530,8 +530,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q1Y2U2NDcyLTZiYjMtNDBlMS05NmI0LTU1MWM2N2YxMzhiYT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q1Y2U2NDcyLTZiYjMtNDBlMS05NmI0LTU1MWM2N2YxMzhiYT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -595,8 +595,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q1Y2U2NDcyLTZiYjMtNDBlMS05NmI0LTU1MWM2N2YxMzhiYT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q1Y2U2NDcyLTZiYjMtNDBlMS05NmI0LTU1MWM2N2YxMzhiYT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -660,8 +660,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q1Y2U2NDcyLTZiYjMtNDBlMS05NmI0LTU1MWM2N2YxMzhiYT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/d5ce6472-6bb3-40e1-96b4-551c67f138ba?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2Q1Y2U2NDcyLTZiYjMtNDBlMS05NmI0LTU1MWM2N2YxMzhiYT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -725,8 +725,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -800,4 +800,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPReprotect.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPReprotect.json index 2756b5efa546..3cd7be654dfb 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPReprotect.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPReprotect.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/reProtect?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDEvcmVQcm90ZWN0P2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/reProtect?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDEvcmVQcm90ZWN0P2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { @@ -35,7 +35,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/operationresults/99a280aa-53ed-4151-a6ed-c47b84f4a8b9?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/operationresults/99a280aa-53ed-4151-a6ed-c47b84f4a8b9?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -45,7 +45,7 @@ "966b5729-bdf6-4933-b4f9-6a7f10694d62 5/13/2017 5:59:35 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/99a280aa-53ed-4151-a6ed-c47b84f4a8b9?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/99a280aa-53ed-4151-a6ed-c47b84f4a8b9?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -69,8 +69,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/99a280aa-53ed-4151-a6ed-c47b84f4a8b9?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk5YTI4MGFhLTUzZWQtNDE1MS1hNmVkLWM0N2I4NGY0YThiOT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/99a280aa-53ed-4151-a6ed-c47b84f4a8b9?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk5YTI4MGFhLTUzZWQtNDE1MS1hNmVkLWM0N2I4NGY0YThiOT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -134,8 +134,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/99a280aa-53ed-4151-a6ed-c47b84f4a8b9?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk5YTI4MGFhLTUzZWQtNDE1MS1hNmVkLWM0N2I4NGY0YThiOT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/99a280aa-53ed-4151-a6ed-c47b84f4a8b9?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk5YTI4MGFhLTUzZWQtNDE1MS1hNmVkLWM0N2I4NGY0YThiOT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -199,8 +199,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/99a280aa-53ed-4151-a6ed-c47b84f4a8b9?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk5YTI4MGFhLTUzZWQtNDE1MS1hNmVkLWM0N2I4NGY0YThiOT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/99a280aa-53ed-4151-a6ed-c47b84f4a8b9?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk5YTI4MGFhLTUzZWQtNDE1MS1hNmVkLWM0N2I4NGY0YThiOT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -264,8 +264,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/99a280aa-53ed-4151-a6ed-c47b84f4a8b9?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk5YTI4MGFhLTUzZWQtNDE1MS1hNmVkLWM0N2I4NGY0YThiOT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/99a280aa-53ed-4151-a6ed-c47b84f4a8b9?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk5YTI4MGFhLTUzZWQtNDE1MS1hNmVkLWM0N2I4NGY0YThiOT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -329,8 +329,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/99a280aa-53ed-4151-a6ed-c47b84f4a8b9?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk5YTI4MGFhLTUzZWQtNDE1MS1hNmVkLWM0N2I4NGY0YThiOT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/99a280aa-53ed-4151-a6ed-c47b84f4a8b9?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk5YTI4MGFhLTUzZWQtNDE1MS1hNmVkLWM0N2I4NGY0YThiOT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -394,8 +394,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/99a280aa-53ed-4151-a6ed-c47b84f4a8b9?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk5YTI4MGFhLTUzZWQtNDE1MS1hNmVkLWM0N2I4NGY0YThiOT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/99a280aa-53ed-4151-a6ed-c47b84f4a8b9?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzk5YTI4MGFhLTUzZWQtNDE1MS1hNmVkLWM0N2I4NGY0YThiOT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -459,8 +459,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -534,4 +534,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPTestFailover.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPTestFailover.json index ed84492b4008..8e364ac48128 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPTestFailover.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPTestFailover.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/testFailover?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDEvdGVzdEZhaWxvdmVyP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/testFailover?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDEvdGVzdEZhaWxvdmVyP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "POST", "RequestBody": "{\r\n \"properties\": {\r\n \"failoverDirection\": \"PrimaryToRecovery\",\r\n \"networkType\": \"VmNetworkAsInput\",\r\n \"networkId\": \"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai\",\r\n \"skipTestFailoverCleanup\": \"True\",\r\n \"providerSpecificDetails\": [\r\n {\r\n \"instanceType\": \"HyperVReplicaAzure\",\r\n \"vaultLocation\": \"West US\"\r\n }\r\n ]\r\n }\r\n}", "RequestHeaders": { @@ -41,7 +41,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/operationresults/e0594969-ce0c-412e-94b2-6cafa0196e67?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/operationresults/e0594969-ce0c-412e-94b2-6cafa0196e67?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -51,7 +51,7 @@ "227f7e15-f4ec-4869-8284-51098a4ef430 5/13/2017 2:36:26 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e0594969-ce0c-412e-94b2-6cafa0196e67?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e0594969-ce0c-412e-94b2-6cafa0196e67?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -75,8 +75,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e0594969-ce0c-412e-94b2-6cafa0196e67?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2UwNTk0OTY5LWNlMGMtNDEyZS05NGIyLTZjYWZhMDE5NmU2Nz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e0594969-ce0c-412e-94b2-6cafa0196e67?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2UwNTk0OTY5LWNlMGMtNDEyZS05NGIyLTZjYWZhMDE5NmU2Nz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -140,8 +140,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e0594969-ce0c-412e-94b2-6cafa0196e67?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2UwNTk0OTY5LWNlMGMtNDEyZS05NGIyLTZjYWZhMDE5NmU2Nz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e0594969-ce0c-412e-94b2-6cafa0196e67?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2UwNTk0OTY5LWNlMGMtNDEyZS05NGIyLTZjYWZhMDE5NmU2Nz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -205,8 +205,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e0594969-ce0c-412e-94b2-6cafa0196e67?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2UwNTk0OTY5LWNlMGMtNDEyZS05NGIyLTZjYWZhMDE5NmU2Nz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e0594969-ce0c-412e-94b2-6cafa0196e67?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2UwNTk0OTY5LWNlMGMtNDEyZS05NGIyLTZjYWZhMDE5NmU2Nz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -270,8 +270,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e0594969-ce0c-412e-94b2-6cafa0196e67?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2UwNTk0OTY5LWNlMGMtNDEyZS05NGIyLTZjYWZhMDE5NmU2Nz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e0594969-ce0c-412e-94b2-6cafa0196e67?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2UwNTk0OTY5LWNlMGMtNDEyZS05NGIyLTZjYWZhMDE5NmU2Nz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -335,8 +335,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e0594969-ce0c-412e-94b2-6cafa0196e67?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2UwNTk0OTY5LWNlMGMtNDEyZS05NGIyLTZjYWZhMDE5NmU2Nz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e0594969-ce0c-412e-94b2-6cafa0196e67?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2UwNTk0OTY5LWNlMGMtNDEyZS05NGIyLTZjYWZhMDE5NmU2Nz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -400,8 +400,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e0594969-ce0c-412e-94b2-6cafa0196e67?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2UwNTk0OTY5LWNlMGMtNDEyZS05NGIyLTZjYWZhMDE5NmU2Nz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e0594969-ce0c-412e-94b2-6cafa0196e67?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2UwNTk0OTY5LWNlMGMtNDEyZS05NGIyLTZjYWZhMDE5NmU2Nz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -465,8 +465,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e0594969-ce0c-412e-94b2-6cafa0196e67?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2UwNTk0OTY5LWNlMGMtNDEyZS05NGIyLTZjYWZhMDE5NmU2Nz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/e0594969-ce0c-412e-94b2-6cafa0196e67?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2UwNTk0OTY5LWNlMGMtNDEyZS05NGIyLTZjYWZhMDE5NmU2Nz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -530,8 +530,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -605,4 +605,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPTestFailoverCleanup.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPTestFailoverCleanup.json index fa2db2d23011..71148114ba1f 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPTestFailoverCleanup.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPTestFailoverCleanup.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/testFailoverCleanup?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDEvdGVzdEZhaWxvdmVyQ2xlYW51cD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/testFailoverCleanup?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDEvdGVzdEZhaWxvdmVyQ2xlYW51cD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "POST", "RequestBody": "{\r\n \"properties\": {\r\n \"comments\": \"Cleaning up\"\r\n }\r\n}", "RequestHeaders": { @@ -41,7 +41,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/operationresults/8b0f8f86-fa05-48bd-b0f0-89be179342b6?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/operationresults/8b0f8f86-fa05-48bd-b0f0-89be179342b6?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -51,7 +51,7 @@ "02709c23-c58b-4881-821b-2facc6a772ea 5/13/2017 2:46:53 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8b0f8f86-fa05-48bd-b0f0-89be179342b6?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8b0f8f86-fa05-48bd-b0f0-89be179342b6?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -75,8 +75,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8b0f8f86-fa05-48bd-b0f0-89be179342b6?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzhiMGY4Zjg2LWZhMDUtNDhiZC1iMGYwLTg5YmUxNzkzNDJiNj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8b0f8f86-fa05-48bd-b0f0-89be179342b6?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzhiMGY4Zjg2LWZhMDUtNDhiZC1iMGYwLTg5YmUxNzkzNDJiNj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -140,8 +140,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8b0f8f86-fa05-48bd-b0f0-89be179342b6?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzhiMGY4Zjg2LWZhMDUtNDhiZC1iMGYwLTg5YmUxNzkzNDJiNj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8b0f8f86-fa05-48bd-b0f0-89be179342b6?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzhiMGY4Zjg2LWZhMDUtNDhiZC1iMGYwLTg5YmUxNzkzNDJiNj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -205,8 +205,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8b0f8f86-fa05-48bd-b0f0-89be179342b6?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzhiMGY4Zjg2LWZhMDUtNDhiZC1iMGYwLTg5YmUxNzkzNDJiNj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8b0f8f86-fa05-48bd-b0f0-89be179342b6?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzhiMGY4Zjg2LWZhMDUtNDhiZC1iMGYwLTg5YmUxNzkzNDJiNj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -270,8 +270,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8b0f8f86-fa05-48bd-b0f0-89be179342b6?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzhiMGY4Zjg2LWZhMDUtNDhiZC1iMGYwLTg5YmUxNzkzNDJiNj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8b0f8f86-fa05-48bd-b0f0-89be179342b6?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzhiMGY4Zjg2LWZhMDUtNDhiZC1iMGYwLTg5YmUxNzkzNDJiNj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -335,8 +335,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8b0f8f86-fa05-48bd-b0f0-89be179342b6?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzhiMGY4Zjg2LWZhMDUtNDhiZC1iMGYwLTg5YmUxNzkzNDJiNj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8b0f8f86-fa05-48bd-b0f0-89be179342b6?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzhiMGY4Zjg2LWZhMDUtNDhiZC1iMGYwLTg5YmUxNzkzNDJiNj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -400,8 +400,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8b0f8f86-fa05-48bd-b0f0-89be179342b6?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzhiMGY4Zjg2LWZhMDUtNDhiZC1iMGYwLTg5YmUxNzkzNDJiNj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8b0f8f86-fa05-48bd-b0f0-89be179342b6?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzhiMGY4Zjg2LWZhMDUtNDhiZC1iMGYwLTg5YmUxNzkzNDJiNj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -465,8 +465,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8b0f8f86-fa05-48bd-b0f0-89be179342b6?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzhiMGY4Zjg2LWZhMDUtNDhiZC1iMGYwLTg5YmUxNzkzNDJiNj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/8b0f8f86-fa05-48bd-b0f0-89be179342b6?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzhiMGY4Zjg2LWZhMDUtNDhiZC1iMGYwLTg5YmUxNzkzNDJiNj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -530,8 +530,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -605,4 +605,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPUnplannedFailover.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPUnplannedFailover.json index af290ec1bfed..08b8670745bc 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPUnplannedFailover.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RPUnplannedFailover.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/unplannedFailover?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDEvdW5wbGFubmVkRmFpbG92ZXI/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/unplannedFailover?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDEvdW5wbGFubmVkRmFpbG92ZXI/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "POST", "RequestBody": "{\r\n \"properties\": {\r\n \"failoverDirection\": \"PrimaryToRecovery\",\r\n \"sourceSiteOperations\": \"NotRequired\",\r\n \"providerSpecificDetails\": [\r\n {\r\n \"instanceType\": \"HyperVReplicaAzure\",\r\n \"vaultLocation\": \"West US\"\r\n }\r\n ]\r\n }\r\n}", "RequestHeaders": { @@ -41,7 +41,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/operationresults/2d5b0264-7cf1-4476-936e-0352ed032481?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/operationresults/2d5b0264-7cf1-4476-936e-0352ed032481?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -51,7 +51,7 @@ "6ffb7fc8-8b34-45ee-a9b9-df73754c31b0 5/13/2017 6:05:44 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d5b0264-7cf1-4476-936e-0352ed032481?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d5b0264-7cf1-4476-936e-0352ed032481?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -75,8 +75,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d5b0264-7cf1-4476-936e-0352ed032481?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzJkNWIwMjY0LTdjZjEtNDQ3Ni05MzZlLTAzNTJlZDAzMjQ4MT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d5b0264-7cf1-4476-936e-0352ed032481?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzJkNWIwMjY0LTdjZjEtNDQ3Ni05MzZlLTAzNTJlZDAzMjQ4MT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -140,8 +140,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d5b0264-7cf1-4476-936e-0352ed032481?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzJkNWIwMjY0LTdjZjEtNDQ3Ni05MzZlLTAzNTJlZDAzMjQ4MT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d5b0264-7cf1-4476-936e-0352ed032481?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzJkNWIwMjY0LTdjZjEtNDQ3Ni05MzZlLTAzNTJlZDAzMjQ4MT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -205,8 +205,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d5b0264-7cf1-4476-936e-0352ed032481?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzJkNWIwMjY0LTdjZjEtNDQ3Ni05MzZlLTAzNTJlZDAzMjQ4MT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d5b0264-7cf1-4476-936e-0352ed032481?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzJkNWIwMjY0LTdjZjEtNDQ3Ni05MzZlLTAzNTJlZDAzMjQ4MT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -270,8 +270,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d5b0264-7cf1-4476-936e-0352ed032481?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzJkNWIwMjY0LTdjZjEtNDQ3Ni05MzZlLTAzNTJlZDAzMjQ4MT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d5b0264-7cf1-4476-936e-0352ed032481?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzJkNWIwMjY0LTdjZjEtNDQ3Ni05MzZlLTAzNTJlZDAzMjQ4MT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -335,8 +335,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d5b0264-7cf1-4476-936e-0352ed032481?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzJkNWIwMjY0LTdjZjEtNDQ3Ni05MzZlLTAzNTJlZDAzMjQ4MT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d5b0264-7cf1-4476-936e-0352ed032481?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzJkNWIwMjY0LTdjZjEtNDQ3Ni05MzZlLTAzNTJlZDAzMjQ4MT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -400,8 +400,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d5b0264-7cf1-4476-936e-0352ed032481?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzJkNWIwMjY0LTdjZjEtNDQ3Ni05MzZlLTAzNTJlZDAzMjQ4MT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d5b0264-7cf1-4476-936e-0352ed032481?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzJkNWIwMjY0LTdjZjEtNDQ3Ni05MzZlLTAzNTJlZDAzMjQ4MT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -465,8 +465,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d5b0264-7cf1-4476-936e-0352ed032481?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzJkNWIwMjY0LTdjZjEtNDQ3Ni05MzZlLTAzNTJlZDAzMjQ4MT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d5b0264-7cf1-4476-936e-0352ed032481?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzJkNWIwMjY0LTdjZjEtNDQ3Ni05MzZlLTAzNTJlZDAzMjQ4MT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -530,8 +530,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -605,4 +605,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RefreshRsp.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RefreshRsp.json index 0412fbdc30c3..42355e52279b 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RefreshRsp.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RefreshRsp.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998/refreshProvider?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblJlY292ZXJ5U2VydmljZXNQcm92aWRlcnMvYmEyYTJkMjUtMzc3Zi00ZjRiLTk0YTQtMjk4MWM3OWIwOTk4L3JlZnJlc2hQcm92aWRlcj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998/refreshProvider?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblJlY292ZXJ5U2VydmljZXNQcm92aWRlcnMvYmEyYTJkMjUtMzc3Zi00ZjRiLTk0YTQtMjk4MWM3OWIwOTk4L3JlZnJlc2hQcm92aWRlcj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { @@ -106,13 +106,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998/operationresults/2d9589c9-d300-4291-90ef-c804137843c0?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998/operationresults/2d9589c9-d300-4291-90ef-c804137843c0?api-version=2018-01-10" ], "Retry-After": [ "30" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d9589c9-d300-4291-90ef-c804137843c0?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d9589c9-d300-4291-90ef-c804137843c0?api-version=2018-01-10" ], "x-ms-request-id": [ "2b2e0012-db10-416a-a888-002d3d744462 5/11/2017 5:46:24 PM" @@ -139,8 +139,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d9589c9-d300-4291-90ef-c804137843c0?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzJkOTU4OWM5LWQzMDAtNDI5MS05MGVmLWM4MDQxMzc4NDNjMD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d9589c9-d300-4291-90ef-c804137843c0?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzJkOTU4OWM5LWQzMDAtNDI5MS05MGVmLWM4MDQxMzc4NDNjMD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -204,8 +204,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d9589c9-d300-4291-90ef-c804137843c0?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzJkOTU4OWM5LWQzMDAtNDI5MS05MGVmLWM4MDQxMzc4NDNjMD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d9589c9-d300-4291-90ef-c804137843c0?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzJkOTU4OWM5LWQzMDAtNDI5MS05MGVmLWM4MDQxMzc4NDNjMD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -269,8 +269,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d9589c9-d300-4291-90ef-c804137843c0?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzJkOTU4OWM5LWQzMDAtNDI5MS05MGVmLWM4MDQxMzc4NDNjMD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/2d9589c9-d300-4291-90ef-c804137843c0?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzJkOTU4OWM5LWQzMDAtNDI5MS05MGVmLWM4MDQxMzc4NDNjMD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -334,8 +334,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblJlY292ZXJ5U2VydmljZXNQcm92aWRlcnMvYmEyYTJkMjUtMzc3Zi00ZjRiLTk0YTQtMjk4MWM3OWIwOTk4P2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/ba2a2d25-377f-4f4b-94a4-2981c79b0998?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblJlY292ZXJ5U2VydmljZXNQcm92aWRlcnMvYmEyYTJkMjUtMzc3Zi00ZjRiLTk0YTQtMjk4MWM3OWIwOTk4P2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -409,4 +409,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RenewCertificate.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RenewCertificate.json index 7727370e082f..b3e6e4a3b32b 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RenewCertificate.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RenewCertificate.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/renewCertificate?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZW5ld0NlcnRpZmljYXRlP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/renewCertificate?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZW5ld0NlcnRpZmljYXRlP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "POST", "RequestBody": "{\r\n \"properties\": {\r\n \"renewCertificateType\": \"Cloud\"\r\n }\r\n}", "RequestHeaders": { @@ -41,13 +41,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/operationresults/39d9f663-6456-4983-997c-ed6e74b15e0e?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/operationresults/39d9f663-6456-4983-997c-ed6e74b15e0e?api-version=2018-01-10" ], "Retry-After": [ "30" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/39d9f663-6456-4983-997c-ed6e74b15e0e?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/39d9f663-6456-4983-997c-ed6e74b15e0e?api-version=2018-01-10" ], "x-ms-request-id": [ "e419cab4-1df6-4cf0-b87c-9e14fded0825 5/13/2017 7:24:07 PM" @@ -74,8 +74,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/39d9f663-6456-4983-997c-ed6e74b15e0e?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzM5ZDlmNjYzLTY0NTYtNDk4My05OTdjLWVkNmU3NGIxNWUwZT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/39d9f663-6456-4983-997c-ed6e74b15e0e?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzM5ZDlmNjYzLTY0NTYtNDk4My05OTdjLWVkNmU3NGIxNWUwZT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -139,8 +139,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/39d9f663-6456-4983-997c-ed6e74b15e0e?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzM5ZDlmNjYzLTY0NTYtNDk4My05OTdjLWVkNmU3NGIxNWUwZT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/39d9f663-6456-4983-997c-ed6e74b15e0e?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzM5ZDlmNjYzLTY0NTYtNDk4My05OTdjLWVkNmU3NGIxNWUwZT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -204,8 +204,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/39d9f663-6456-4983-997c-ed6e74b15e0e?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzM5ZDlmNjYzLTY0NTYtNDk4My05OTdjLWVkNmU3NGIxNWUwZT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/39d9f663-6456-4983-997c-ed6e74b15e0e?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzM5ZDlmNjYzLTY0NTYtNDk4My05OTdjLWVkNmU3NGIxNWUwZT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -269,8 +269,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -344,4 +344,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RepairReplication.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RepairReplication.json index 1121f2ad1a3c..f2b36acd2ca5 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RepairReplication.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/RepairReplication.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/repairReplication?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMi9yZXBhaXJSZXBsaWNhdGlvbj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/repairReplication?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMi9yZXBhaXJSZXBsaWNhdGlvbj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { @@ -106,7 +106,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/operationresults/5c8174cc-7cb0-4701-a5e5-ea557899c99c?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/operationresults/5c8174cc-7cb0-4701-a5e5-ea557899c99c?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -116,7 +116,7 @@ "5f41b39c-a82e-4497-9c98-1a86034a5d44 5/13/2017 7:52:21 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/5c8174cc-7cb0-4701-a5e5-ea557899c99c?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/5c8174cc-7cb0-4701-a5e5-ea557899c99c?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -140,8 +140,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/5c8174cc-7cb0-4701-a5e5-ea557899c99c?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzVjODE3NGNjLTdjYjAtNDcwMS1hNWU1LWVhNTU3ODk5Yzk5Yz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/5c8174cc-7cb0-4701-a5e5-ea557899c99c?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzVjODE3NGNjLTdjYjAtNDcwMS1hNWU1LWVhNTU3ODk5Yzk5Yz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -205,8 +205,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/5c8174cc-7cb0-4701-a5e5-ea557899c99c?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzVjODE3NGNjLTdjYjAtNDcwMS1hNWU1LWVhNTU3ODk5Yzk5Yz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/5c8174cc-7cb0-4701-a5e5-ea557899c99c?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzVjODE3NGNjLTdjYjAtNDcwMS1hNWU1LWVhNTU3ODk5Yzk5Yz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -270,8 +270,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/5c8174cc-7cb0-4701-a5e5-ea557899c99c?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzVjODE3NGNjLTdjYjAtNDcwMS1hNWU1LWVhNTU3ODk5Yzk5Yz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/5c8174cc-7cb0-4701-a5e5-ea557899c99c?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzVjODE3NGNjLTdjYjAtNDcwMS1hNWU1LWVhNTU3ODk5Yzk5Yz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -335,8 +335,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -410,4 +410,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/Reprotect.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/Reprotect.json index 300f24831b2b..1ebab79057bb 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/Reprotect.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/Reprotect.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RhYmxlSXRlbXM/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RhYmxlSXRlbXM/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -88,7 +88,7 @@ "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.SiteRecoveryManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/02c2292c-04ac-4da4-8598-f333e04888c9\",\r\n \"name\": \"02c2292c-04ac-4da4-8598-f333e04888c9\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm1\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/6672aaf3-0aa2-4b8e-a3bd-fc015ccfd345\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"02c2292c-04ac-4da4-8598-f333e04888c9\",\r\n \"generation\": \"0\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"5f01e3a8-73fb-4c60-8cfc-e69297e5d96b\",\r\n \"vhdName\": \"vm1\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"name\": \"687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm11\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/6672aaf3-0aa2-4b8e-a3bd-fc015ccfd345\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"5bb00ca8-d850-49fb-afdc-052413458ea2\",\r\n \"vhdName\": \"vm11\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"name\": \"cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm2\",\r\n \"protectionStatus\": \"Protected\",\r\n \"replicationProtectedItemId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2\",\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/6672aaf3-0aa2-4b8e-a3bd-fc015ccfd345\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"474006f7-6ae8-4c26-9143-e056b30374ab\",\r\n \"vhdName\": \"vm2\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"name\": \"fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"Nakul\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/6672aaf3-0aa2-4b8e-a3bd-fc015ccfd345\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"generation\": \"2\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 25600,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"bb2ce67e-8f5b-49ee-ac6a-a0b14e8622c1\",\r\n \"vhdName\": \"FRTest\"\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems?api-version=2016-08-10&%24skipToken=ReplicationGroup%3aBegin\"\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/02c2292c-04ac-4da4-8598-f333e04888c9\",\r\n \"name\": \"02c2292c-04ac-4da4-8598-f333e04888c9\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm1\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/6672aaf3-0aa2-4b8e-a3bd-fc015ccfd345\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"02c2292c-04ac-4da4-8598-f333e04888c9\",\r\n \"generation\": \"0\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"5f01e3a8-73fb-4c60-8cfc-e69297e5d96b\",\r\n \"vhdName\": \"vm1\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"name\": \"687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm11\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/6672aaf3-0aa2-4b8e-a3bd-fc015ccfd345\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"687ec666-8b4f-4fea-97f5-247c793765d1\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"5bb00ca8-d850-49fb-afdc-052413458ea2\",\r\n \"vhdName\": \"vm11\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"name\": \"cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"vm2\",\r\n \"protectionStatus\": \"Protected\",\r\n \"replicationProtectedItemId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2\",\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/6672aaf3-0aa2-4b8e-a3bd-fc015ccfd345\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"generation\": \"1\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 1024,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"474006f7-6ae8-4c26-9143-e056b30374ab\",\r\n \"vhdName\": \"vm2\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems/fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"name\": \"fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"type\": \"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems\",\r\n \"properties\": {\r\n \"friendlyName\": \"Nakul\",\r\n \"protectionStatus\": \"Unprotected\",\r\n \"replicationProtectedItemId\": null,\r\n \"recoveryServicesProviderId\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationRecoveryServicesProviders/6672aaf3-0aa2-4b8e-a3bd-fc015ccfd345\",\r\n \"protectionReadinessErrors\": [],\r\n \"supportedReplicationProviders\": [\r\n \"HyperVReplicaAzure\"\r\n ],\r\n \"customDetails\": {\r\n \"instanceType\": \"HyperVVirtualMachine\",\r\n \"sourceItemId\": \"fb40cf9f-b731-4c16-9d31-ef3d5e81193d\",\r\n \"generation\": \"2\",\r\n \"osDetails\": null,\r\n \"diskDetails\": [\r\n {\r\n \"maxSizeMB\": 25600,\r\n \"vhdType\": \"Data\",\r\n \"vhdId\": \"bb2ce67e-8f5b-49ee-ac6a-a0b14e8622c1\",\r\n \"vhdName\": \"FRTest\"\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectableItems?api-version=2018-01-10&%24skipToken=ReplicationGroup%3aBegin\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -143,8 +143,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -214,8 +214,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/reProtect?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMi9yZVByb3RlY3Q/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/reProtect?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMi9yZVByb3RlY3Q/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "POST", "RequestBody": "{\r\n \"properties\": {\r\n \"failoverDirection\": \"PrimaryToRecovery\",\r\n \"providerSpecificDetails\": {\r\n \"instanceType\": \"HyperVReplicaAzure\",\r\n \"hvHostVmId\": \"cf29eb7a-58e1-45b4-b760-c530c1134df4\",\r\n \"vmName\": \"vm2\",\r\n \"osType\": \"Windows\",\r\n \"vHDId\": \"474006f7-6ae8-4c26-9143-e056b30374ab\",\r\n \"storageAccountId\": \"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.Storage/storageAccounts/storavrai\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -254,7 +254,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/operationresults/668e4a43-2d07-41cd-8e2d-f9029a5f6173?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/operationresults/668e4a43-2d07-41cd-8e2d-f9029a5f6173?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -264,7 +264,7 @@ "1a65c6d4-4cb5-4691-8a01-edfaa95973e2 5/15/2017 2:14:39 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/668e4a43-2d07-41cd-8e2d-f9029a5f6173?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/668e4a43-2d07-41cd-8e2d-f9029a5f6173?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -288,8 +288,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/668e4a43-2d07-41cd-8e2d-f9029a5f6173?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2OGU0YTQzLTJkMDctNDFjZC04ZTJkLWY5MDI5YTVmNjE3Mz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/668e4a43-2d07-41cd-8e2d-f9029a5f6173?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2OGU0YTQzLTJkMDctNDFjZC04ZTJkLWY5MDI5YTVmNjE3Mz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -353,8 +353,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/668e4a43-2d07-41cd-8e2d-f9029a5f6173?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2OGU0YTQzLTJkMDctNDFjZC04ZTJkLWY5MDI5YTVmNjE3Mz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/668e4a43-2d07-41cd-8e2d-f9029a5f6173?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY2OGU0YTQzLTJkMDctNDFjZC04ZTJkLWY5MDI5YTVmNjE3Mz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -422,4 +422,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/TestFailover.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/TestFailover.json index d56d8b31db54..906828444993 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/TestFailover.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/TestFailover.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -143,8 +143,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1/testFailover?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMS90ZXN0RmFpbG92ZXI/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1/testFailover?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMS90ZXN0RmFpbG92ZXI/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "POST", "RequestBody": "{\r\n \"properties\": {\r\n \"networkType\": \"VmNetworkAsInput\",\r\n \"networkId\": \"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai\",\r\n \"skipTestFailoverCleanup\": \"True\",\r\n \"providerSpecificDetails\": {\r\n \"instanceType\": \"HyperVReplicaAzure\",\r\n \"vaultLocation\": \"West US\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -183,7 +183,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1/operationresults/ced26549-4a87-4214-94d6-22e281691afc?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1/operationresults/ced26549-4a87-4214-94d6-22e281691afc?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -193,7 +193,7 @@ "cf534bce-351b-46a5-8a9f-781dd3077e63 5/13/2017 12:39:40 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ced26549-4a87-4214-94d6-22e281691afc?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ced26549-4a87-4214-94d6-22e281691afc?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -217,8 +217,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ced26549-4a87-4214-94d6-22e281691afc?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2NlZDI2NTQ5LTRhODctNDIxNC05NGQ2LTIyZTI4MTY5MWFmYz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ced26549-4a87-4214-94d6-22e281691afc?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2NlZDI2NTQ5LTRhODctNDIxNC05NGQ2LTIyZTI4MTY5MWFmYz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -282,8 +282,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ced26549-4a87-4214-94d6-22e281691afc?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2NlZDI2NTQ5LTRhODctNDIxNC05NGQ2LTIyZTI4MTY5MWFmYz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ced26549-4a87-4214-94d6-22e281691afc?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2NlZDI2NTQ5LTRhODctNDIxNC05NGQ2LTIyZTI4MTY5MWFmYz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -347,8 +347,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ced26549-4a87-4214-94d6-22e281691afc?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2NlZDI2NTQ5LTRhODctNDIxNC05NGQ2LTIyZTI4MTY5MWFmYz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ced26549-4a87-4214-94d6-22e281691afc?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2NlZDI2NTQ5LTRhODctNDIxNC05NGQ2LTIyZTI4MTY5MWFmYz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -412,8 +412,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ced26549-4a87-4214-94d6-22e281691afc?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2NlZDI2NTQ5LTRhODctNDIxNC05NGQ2LTIyZTI4MTY5MWFmYz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ced26549-4a87-4214-94d6-22e281691afc?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2NlZDI2NTQ5LTRhODctNDIxNC05NGQ2LTIyZTI4MTY5MWFmYz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -477,8 +477,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ced26549-4a87-4214-94d6-22e281691afc?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2NlZDI2NTQ5LTRhODctNDIxNC05NGQ2LTIyZTI4MTY5MWFmYz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ced26549-4a87-4214-94d6-22e281691afc?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2NlZDI2NTQ5LTRhODctNDIxNC05NGQ2LTIyZTI4MTY5MWFmYz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -542,8 +542,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ced26549-4a87-4214-94d6-22e281691afc?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2NlZDI2NTQ5LTRhODctNDIxNC05NGQ2LTIyZTI4MTY5MWFmYz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/ced26549-4a87-4214-94d6-22e281691afc?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2NlZDI2NTQ5LTRhODctNDIxNC05NGQ2LTIyZTI4MTY5MWFmYz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -611,4 +611,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/TestFailoverCleanup.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/TestFailoverCleanup.json index b708f33a6d5e..76bec06e7422 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/TestFailoverCleanup.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/TestFailoverCleanup.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -143,8 +143,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1/testFailoverCleanup?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMS90ZXN0RmFpbG92ZXJDbGVhbnVwP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1/testFailoverCleanup?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMS90ZXN0RmFpbG92ZXJDbGVhbnVwP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "POST", "RequestBody": "{\r\n \"properties\": {\r\n \"comments\": \"Cleaning up\"\r\n }\r\n}", "RequestHeaders": { @@ -183,7 +183,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1/operationresults/a397be34-de4e-4bdf-bc88-f53df657224d?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm1/operationresults/a397be34-de4e-4bdf-bc88-f53df657224d?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -193,7 +193,7 @@ "7868c79d-f1c0-4705-98e1-a1a7e675fc36 5/13/2017 12:45:14 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a397be34-de4e-4bdf-bc88-f53df657224d?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a397be34-de4e-4bdf-bc88-f53df657224d?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -217,8 +217,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a397be34-de4e-4bdf-bc88-f53df657224d?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2EzOTdiZTM0LWRlNGUtNGJkZi1iYzg4LWY1M2RmNjU3MjI0ZD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a397be34-de4e-4bdf-bc88-f53df657224d?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2EzOTdiZTM0LWRlNGUtNGJkZi1iYzg4LWY1M2RmNjU3MjI0ZD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -282,8 +282,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a397be34-de4e-4bdf-bc88-f53df657224d?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2EzOTdiZTM0LWRlNGUtNGJkZi1iYzg4LWY1M2RmNjU3MjI0ZD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a397be34-de4e-4bdf-bc88-f53df657224d?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2EzOTdiZTM0LWRlNGUtNGJkZi1iYzg4LWY1M2RmNjU3MjI0ZD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -347,8 +347,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a397be34-de4e-4bdf-bc88-f53df657224d?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2EzOTdiZTM0LWRlNGUtNGJkZi1iYzg4LWY1M2RmNjU3MjI0ZD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a397be34-de4e-4bdf-bc88-f53df657224d?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2EzOTdiZTM0LWRlNGUtNGJkZi1iYzg4LWY1M2RmNjU3MjI0ZD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -412,8 +412,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a397be34-de4e-4bdf-bc88-f53df657224d?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2EzOTdiZTM0LWRlNGUtNGJkZi1iYzg4LWY1M2RmNjU3MjI0ZD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a397be34-de4e-4bdf-bc88-f53df657224d?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2EzOTdiZTM0LWRlNGUtNGJkZi1iYzg4LWY1M2RmNjU3MjI0ZD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -477,8 +477,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a397be34-de4e-4bdf-bc88-f53df657224d?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2EzOTdiZTM0LWRlNGUtNGJkZi1iYzg4LWY1M2RmNjU3MjI0ZD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a397be34-de4e-4bdf-bc88-f53df657224d?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2EzOTdiZTM0LWRlNGUtNGJkZi1iYzg4LWY1M2RmNjU3MjI0ZD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -542,8 +542,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a397be34-de4e-4bdf-bc88-f53df657224d?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2EzOTdiZTM0LWRlNGUtNGJkZi1iYzg4LWY1M2RmNjU3MjI0ZD9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a397be34-de4e-4bdf-bc88-f53df657224d?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2EzOTdiZTM0LWRlNGUtNGJkZi1iYzg4LWY1M2RmNjU3MjI0ZD9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -611,4 +611,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/UnplannedFailover.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/UnplannedFailover.json index 96d0fa598f44..af1a4397e40e 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/UnplannedFailover.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/UnplannedFailover.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -143,8 +143,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -214,8 +214,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/unplannedFailover?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMi91bnBsYW5uZWRGYWlsb3Zlcj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/unplannedFailover?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMi91bnBsYW5uZWRGYWlsb3Zlcj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "POST", "RequestBody": "{\r\n \"properties\": {\r\n \"failoverDirection\": \"PrimaryToRecovery\",\r\n \"sourceSiteOperations\": \"NotRequired\",\r\n \"providerSpecificDetails\": {\r\n \"instanceType\": \"HyperVReplicaAzure\",\r\n \"vaultLocation\": \"West US\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -254,7 +254,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/operationresults/695176b6-2f3b-4611-bdbb-0e1554e5b46b?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/operationresults/695176b6-2f3b-4611-bdbb-0e1554e5b46b?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -264,7 +264,7 @@ "6efffda2-64f5-478f-a250-b3a651d04f9c 5/15/2017 2:17:03 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/695176b6-2f3b-4611-bdbb-0e1554e5b46b?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/695176b6-2f3b-4611-bdbb-0e1554e5b46b?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -288,8 +288,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/695176b6-2f3b-4611-bdbb-0e1554e5b46b?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY5NTE3NmI2LTJmM2ItNDYxMS1iZGJiLTBlMTU1NGU1YjQ2Yj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/695176b6-2f3b-4611-bdbb-0e1554e5b46b?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY5NTE3NmI2LTJmM2ItNDYxMS1iZGJiLTBlMTU1NGU1YjQ2Yj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -353,8 +353,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/695176b6-2f3b-4611-bdbb-0e1554e5b46b?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY5NTE3NmI2LTJmM2ItNDYxMS1iZGJiLTBlMTU1NGU1YjQ2Yj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/695176b6-2f3b-4611-bdbb-0e1554e5b46b?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY5NTE3NmI2LTJmM2ItNDYxMS1iZGJiLTBlMTU1NGU1YjQ2Yj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -418,8 +418,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/695176b6-2f3b-4611-bdbb-0e1554e5b46b?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY5NTE3NmI2LTJmM2ItNDYxMS1iZGJiLTBlMTU1NGU1YjQ2Yj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/695176b6-2f3b-4611-bdbb-0e1554e5b46b?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY5NTE3NmI2LTJmM2ItNDYxMS1iZGJiLTBlMTU1NGU1YjQ2Yj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -483,8 +483,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/695176b6-2f3b-4611-bdbb-0e1554e5b46b?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY5NTE3NmI2LTJmM2ItNDYxMS1iZGJiLTBlMTU1NGU1YjQ2Yj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/695176b6-2f3b-4611-bdbb-0e1554e5b46b?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY5NTE3NmI2LTJmM2ItNDYxMS1iZGJiLTBlMTU1NGU1YjQ2Yj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -548,8 +548,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/695176b6-2f3b-4611-bdbb-0e1554e5b46b?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY5NTE3NmI2LTJmM2ItNDYxMS1iZGJiLTBlMTU1NGU1YjQ2Yj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/695176b6-2f3b-4611-bdbb-0e1554e5b46b?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY5NTE3NmI2LTJmM2ItNDYxMS1iZGJiLTBlMTU1NGU1YjQ2Yj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -613,8 +613,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/695176b6-2f3b-4611-bdbb-0e1554e5b46b?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY5NTE3NmI2LTJmM2ItNDYxMS1iZGJiLTBlMTU1NGU1YjQ2Yj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/695176b6-2f3b-4611-bdbb-0e1554e5b46b?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY5NTE3NmI2LTJmM2ItNDYxMS1iZGJiLTBlMTU1NGU1YjQ2Yj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -682,4 +682,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/UpdateNetworkMapping.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/UpdateNetworkMapping.json index 5eef94861731..258d3b32132e 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/UpdateNetworkMapping.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/UpdateNetworkMapping.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGEvcmVwbGljYXRpb25OZXR3b3JrTWFwcGluZ3MvTldNYXBwaW5nP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGEvcmVwbGljYXRpb25OZXR3b3JrTWFwcGluZ3MvTldNYXBwaW5nP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "PATCH", "RequestBody": "{\r\n \"properties\": {\r\n \"recoveryFabricName\": \"Microsoft Azure\",\r\n \"recoveryNetworkId\": \"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai\",\r\n \"fabricSpecificDetails\": {\r\n \"instanceType\": \"VmmToAzure\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -41,13 +41,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping/operationresults/00ef26d6-4d80-49a4-aaa7-e4dfebd2815f?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping/operationresults/00ef26d6-4d80-49a4-aaa7-e4dfebd2815f?api-version=2018-01-10" ], "Retry-After": [ "30" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/00ef26d6-4d80-49a4-aaa7-e4dfebd2815f?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/00ef26d6-4d80-49a4-aaa7-e4dfebd2815f?api-version=2018-01-10" ], "x-ms-request-id": [ "d583ee21-b9b7-49ce-a2e7-99fca5c3b9eb 5/15/2017 12:53:56 PM" @@ -74,8 +74,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/00ef26d6-4d80-49a4-aaa7-e4dfebd2815f?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzAwZWYyNmQ2LTRkODAtNDlhNC1hYWE3LWU0ZGZlYmQyODE1Zj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/00ef26d6-4d80-49a4-aaa7-e4dfebd2815f?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzAwZWYyNmQ2LTRkODAtNDlhNC1hYWE3LWU0ZGZlYmQyODE1Zj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -139,8 +139,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGEvcmVwbGljYXRpb25OZXR3b3JrTWFwcGluZ3MvTldNYXBwaW5nP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGEvcmVwbGljYXRpb25OZXR3b3JrTWFwcGluZ3MvTldNYXBwaW5nP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -204,8 +204,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGEvcmVwbGljYXRpb25OZXR3b3JrTWFwcGluZ3MvTldNYXBwaW5nP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/d188dc378a78c819bfb8b1f07eba2c15511e1788c41ba27792d9433fc6a4e087/replicationNetworks/c41eda86-96d5-4541-a6f8-c47d4b75a24a/replicationNetworkMappings/NWMapping?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL2QxODhkYzM3OGE3OGM4MTliZmI4YjFmMDdlYmEyYzE1NTExZTE3ODhjNDFiYTI3NzkyZDk0MzNmYzZhNGUwODcvcmVwbGljYXRpb25OZXR3b3Jrcy9jNDFlZGE4Ni05NmQ1LTQ1NDEtYTZmOC1jNDdkNGI3NWEyNGEvcmVwbGljYXRpb25OZXR3b3JrTWFwcGluZ3MvTldNYXBwaW5nP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -279,4 +279,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/UpdatePolicy.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/UpdatePolicy.json index eab6609ee0a6..2415c054d9e6 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/UpdatePolicy.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/UpdatePolicy.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcy9wcm90ZWN0aW9ucHJvZmlsZTE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcy9wcm90ZWN0aW9ucHJvZmlsZTE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "PATCH", "RequestBody": "{\r\n \"properties\": {\r\n \"replicationProviderSettings\": {\r\n \"instanceType\": \"HyperVReplicaAzure\",\r\n \"recoveryPointHistoryDuration\": 3,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 2,\r\n \"replicationInterval\": 300,\r\n \"encryption\": \"Disable\",\r\n \"storageAccounts\": [\r\n \"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.Storage/storageAccounts/storavrai\"\r\n ]\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -41,7 +41,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1/operationresults/a84a60e8-6e56-46a6-a66a-f8790313cc33?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1/operationresults/a84a60e8-6e56-46a6-a66a-f8790313cc33?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -51,7 +51,7 @@ "faa2174b-ee83-4c96-93ea-e601c1aa0492 5/11/2017 5:51:39 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a84a60e8-6e56-46a6-a66a-f8790313cc33?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a84a60e8-6e56-46a6-a66a-f8790313cc33?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -75,8 +75,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a84a60e8-6e56-46a6-a66a-f8790313cc33?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NGE2MGU4LTZlNTYtNDZhNi1hNjZhLWY4NzkwMzEzY2MzMz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/a84a60e8-6e56-46a6-a66a-f8790313cc33?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzL2E4NGE2MGU4LTZlNTYtNDZhNi1hNjZhLWY4NzkwMzEzY2MzMz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -140,8 +140,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcy9wcm90ZWN0aW9ucHJvZmlsZTE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcy9wcm90ZWN0aW9ucHJvZmlsZTE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -205,8 +205,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcy9wcm90ZWN0aW9ucHJvZmlsZTE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationPolicies/protectionprofile1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Qb2xpY2llcy9wcm90ZWN0aW9ucHJvZmlsZTE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -280,4 +280,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/UpdateProtectedItem.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/UpdateProtectedItem.json index b9b0fb8a06e1..a8a4bc32b96b 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/UpdateProtectedItem.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/UpdateProtectedItem.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -143,8 +143,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -208,8 +208,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -279,8 +279,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "PATCH", "RequestBody": "{\r\n \"properties\": {\r\n \"recoveryAzureVMName\": \"vm2\",\r\n \"recoveryAzureVMSize\": \"Basic_A0\",\r\n \"selectedRecoveryAzureNetworkId\": \"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai\",\r\n \"vmNics\": [\r\n {\r\n \"nicId\": \"TWljcm9zb2Z0OkNGMjlFQjdBLTU4RTEtNDVCNC1CNzYwLUM1MzBDMTEzNERGNFw0NDYyM0NDRS02NDJDLTQ0MTYtOTI0My0wMzVDMjhGRjM1MTc=\",\r\n \"recoveryVMSubnetName\": \"Subnet1\",\r\n \"selectionType\": \"SelectedByUser\"\r\n }\r\n ],\r\n \"licenseType\": \"WindowsServer\",\r\n \"providerSpecificDetails\": {\r\n \"instanceType\": \"HyperVReplicaAzure\",\r\n \"recoveryAzureV2ResourceGroupId\": \"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -319,7 +319,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/operationresults/69ff3cca-bd16-4a50-8967-2d9aca678893?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2/operationresults/69ff3cca-bd16-4a50-8967-2d9aca678893?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -329,7 +329,7 @@ "e04bee61-50c6-4b2b-bf6c-619903b45b3c 5/15/2017 1:43:35 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/69ff3cca-bd16-4a50-8967-2d9aca678893?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/69ff3cca-bd16-4a50-8967-2d9aca678893?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -353,8 +353,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/69ff3cca-bd16-4a50-8967-2d9aca678893?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY5ZmYzY2NhLWJkMTYtNGE1MC04OTY3LTJkOWFjYTY3ODg5Mz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/69ff3cca-bd16-4a50-8967-2d9aca678893?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzY5ZmYzY2NhLWJkMTYtNGE1MC04OTY3LTJkOWFjYTY3ODg5Mz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -422,4 +422,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/UpdateRecoveryPlan.json b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/UpdateRecoveryPlan.json index 7cc6db75accf..745e77aef4ee 100644 --- a/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/UpdateRecoveryPlan.json +++ b/src/SDKs/RecoveryServices.SiteRecovery/RecoveryServices.SiteRecovery.Tests/SessionRecords/RecoveryServices.SiteRecovery.Tests.ASRTests/UpdateRecoveryPlan.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMT9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -72,8 +72,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTYtMDgtMTA=", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDEtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -143,8 +143,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25GYWJyaWNzL1NpdGVSZWNvdmVyeVRlc3RTaXRlMS9yZXBsaWNhdGlvblByb3RlY3Rpb25Db250YWluZXJzL2Nsb3VkX2ZhMDZlMDNiLWUzMDYtNTJmNC1hMDFmLTg4Y2RlYmE2N2ExYy9yZXBsaWNhdGlvblByb3RlY3RlZEl0ZW1zL3ZtMj9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -214,8 +214,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "PATCH", "RequestBody": "{\r\n \"properties\": {\r\n \"groups\": [\r\n {\r\n \"groupType\": \"Boot\",\r\n \"replicationProtectedItems\": [\r\n {\r\n \"id\": \"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationFabrics/SiteRecoveryTestSite1/replicationProtectionContainers/cloud_fa06e03b-e306-52f4-a01f-88cdeba67a1c/replicationProtectedItems/vm2\",\r\n \"virtualMachineId\": \"vm2\"\r\n }\r\n ],\r\n \"startGroupActions\": [],\r\n \"endGroupActions\": []\r\n }\r\n ]\r\n }\r\n}", "RequestHeaders": { @@ -254,7 +254,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/operationresults/866c3b61-622c-426d-b402-c7d13a0b4b17?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1/operationresults/866c3b61-622c-426d-b402-c7d13a0b4b17?api-version=2018-01-10" ], "Retry-After": [ "30" @@ -264,7 +264,7 @@ "2deb0d8c-1c1f-402d-879b-7beafa458b2e 5/13/2017 2:04:09 PM" ], "Azure-AsyncOperation": [ - "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/866c3b61-622c-426d-b402-c7d13a0b4b17?api-version=2016-08-10" + "https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/866c3b61-622c-426d-b402-c7d13a0b4b17?api-version=2018-01-10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -288,8 +288,8 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/866c3b61-622c-426d-b402-c7d13a0b4b17?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzg2NmMzYjYxLTYyMmMtNDI2ZC1iNDAyLWM3ZDEzYTBiNGIxNz9hcGktdmVyc2lvbj0yMDE2LTA4LTEw", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationJobs/866c3b61-622c-426d-b402-c7d13a0b4b17?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25Kb2JzLzg2NmMzYjYxLTYyMmMtNDI2ZC1iNDAyLWM3ZDEzYTBiNGIxNz9hcGktdmVyc2lvbj0yMDE4LTAxLTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -353,8 +353,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -418,8 +418,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2016-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxNi0wOC0xMA==", + "RequestUri": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryprod1/providers/Microsoft.RecoveryServices/vaults/SDKVault/replicationRecoveryPlans/rpTest1?api-version=2018-01-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvYzE4Mzg2NWUtNjA3Ny00NmYyLWEzYjEtZGViMGY0ZjQ2NTBhL3Jlc291cmNlR3JvdXBzL3NpdGVyZWNvdmVyeXByb2QxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVjb3ZlcnlTZXJ2aWNlcy92YXVsdHMvU0RLVmF1bHQvcmVwbGljYXRpb25SZWNvdmVyeVBsYW5zL3JwVGVzdDE/YXBpLXZlcnNpb249MjAxOC0wMS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -493,4 +493,4 @@ "Variables": { "SubscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" } -} \ No newline at end of file +} diff --git a/src/SDKs/_metadata/recoveryservicessiterecovery_resource-manager.txt b/src/SDKs/_metadata/recoveryservicessiterecovery_resource-manager.txt index 673aeb28832c..59303bf7f548 100644 --- a/src/SDKs/_metadata/recoveryservicessiterecovery_resource-manager.txt +++ b/src/SDKs/_metadata/recoveryservicessiterecovery_resource-manager.txt @@ -1,11 +1,11 @@ -2018-01-21 12:34:30 UTC +2018-02-20 17:34:55 UTC 1) azure-rest-api-specs repository information GitHub user: Azure Branch: master -Commit: b57b269345015b7d9f822158e005de49800033e3 +Commit: f0e198925a084381bf446edd1c1726bf17259eb2 2) AutoRest information Requested version: latest -Bootstrapper version: C:\Users\viverm\AppData\Roaming\npm `-- autorest@2.0.4238 +Bootstrapper version: C:\Users\avrai\AppData\Roaming\npm `-- autorest@2.0.4245 Latest installed version: