diff --git a/eng/mgmt/mgmtmetadata/recoveryservicessiterecovery_resource-manager.txt b/eng/mgmt/mgmtmetadata/recoveryservicessiterecovery_resource-manager.txt
index fdc7967d44835..7694516f36b13 100644
--- a/eng/mgmt/mgmtmetadata/recoveryservicessiterecovery_resource-manager.txt
+++ b/eng/mgmt/mgmtmetadata/recoveryservicessiterecovery_resource-manager.txt
@@ -3,12 +3,13 @@ AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
-cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/recoveryservicessiterecovery/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\azure-sdk-for-net\azure-sdk-for-net\sdk
-2021-01-18 06:01:58 UTC
+cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/recoveryservicessiterecovery/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\repos\azure-sdk-for-net\sdk
+Autorest CSharp Version: 2.3.82
+2021-04-21 12:02:45 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
-Commit: 1ef3366ecad286d371dd5e0043fff645aec41128
+Commit: 64e122e05a8ff184be8a6d185edfab4e9c3c237e
AutoRest information
Requested version: v2
Bootstrapper version: autorest@2.0.4413
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/AzSdk.RP.props b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/AzSdk.RP.props
index c5f827dd4f074..7799327de8d15 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/AzSdk.RP.props
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/AzSdk.RP.props
@@ -1,7 +1,7 @@
- RecoveryServices_2018-07-10;
+ RecoveryServices_2021-02-10;
$(PackageTags);$(CommonTags);$(AzureApiTag);
\ No newline at end of file
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery.sln b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery.sln
index 5829b9a5a418e..7a1719f491143 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery.sln
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery.sln
@@ -1,7 +1,6 @@
-
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 15
-VisualStudioVersion = 15.0.26403.3
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.31025.109
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Tests", "tests\Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Tests.csproj", "{27EFA488-E3C5-4D97-BBF3-138AF1326F93}"
EndProject
@@ -45,4 +44,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
-EndGlobal
\ No newline at end of file
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {12863686-6C65-4667-B62A-B01D134D3A21}
+ EndGlobalSection
+EndGlobal
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IRecoveryPointsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IRecoveryPointsOperations.cs
index 0a7be56ab7159..be42896c0d229 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IRecoveryPointsOperations.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IRecoveryPointsOperations.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery
public partial interface IRecoveryPointsOperations
{
///
- /// Get recovery points for a replication protected item.
+ /// Gets the list of recovery points for a replication protected item.
///
///
/// Lists the available recovery points for a replication protected
@@ -37,7 +37,7 @@ public partial interface IRecoveryPointsOperations
/// The protection container name.
///
///
- /// The replication protected item's name.
+ /// The replication protected item name.
///
///
/// The headers that will be added to request.
@@ -56,7 +56,7 @@ public partial interface IRecoveryPointsOperations
///
Task>> ListByReplicationProtectedItemsWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Get a recovery point.
+ /// Gets a recovery point.
///
///
/// Get the details of specified recovery point.
@@ -68,7 +68,7 @@ public partial interface IRecoveryPointsOperations
/// The protection container name.
///
///
- /// The replication protected item's name.
+ /// The replication protected item name.
///
///
/// The recovery point name.
@@ -90,7 +90,7 @@ public partial interface IRecoveryPointsOperations
///
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.
+ /// Gets the list of recovery points for a replication protected item.
///
///
/// Lists the available recovery points for a replication protected
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationFabricsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationFabricsOperations.cs
index 3e2da59755524..93e7890c23c0a 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationFabricsOperations.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationFabricsOperations.cs
@@ -12,6 +12,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
+ using Microsoft.Rest.Azure.OData;
using Models;
using System.Collections;
using System.Collections.Generic;
@@ -24,7 +25,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery
public partial interface IReplicationFabricsOperations
{
///
- /// Gets the list of ASR fabrics
+ /// Gets the list of ASR fabrics.
///
///
/// Gets a list of the Azure Site Recovery fabrics in the vault.
@@ -54,6 +55,9 @@ public partial interface IReplicationFabricsOperations
///
/// Fabric name.
///
+ ///
+ /// OData parameters to apply to the operation.
+ ///
///
/// The headers that will be added to request.
///
@@ -69,13 +73,13 @@ public partial interface IReplicationFabricsOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string fabricName, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Creates an Azure Site Recovery fabric.
///
///
/// The operation to create an Azure Site Recovery fabric (for e.g.
- /// Hyper-V site)
+ /// Hyper-V site).
///
///
/// Name of the ASR fabric.
@@ -204,7 +208,7 @@ public partial interface IReplicationFabricsOperations
/// The operation to delete or remove an Azure Site Recovery fabric.
///
///
- /// ASR fabric to delete
+ /// ASR fabric to delete.
///
///
/// The headers that will be added to request.
@@ -252,7 +256,7 @@ public partial interface IReplicationFabricsOperations
///
///
/// The operation to create an Azure Site Recovery fabric (for e.g.
- /// Hyper-V site)
+ /// Hyper-V site).
///
///
/// Name of the ASR fabric.
@@ -381,7 +385,7 @@ public partial interface IReplicationFabricsOperations
/// The operation to delete or remove an Azure Site Recovery fabric.
///
///
- /// ASR fabric to delete
+ /// ASR fabric to delete.
///
///
/// The headers that will be added to request.
@@ -425,7 +429,7 @@ public partial interface IReplicationFabricsOperations
///
Task> BeginRenewCertificateWithHttpMessagesAsync(string fabricName, RenewCertificateInput renewCertificate, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets the list of ASR fabrics
+ /// Gets the list of ASR fabrics.
///
///
/// Gets a list of the Azure Site Recovery fabrics in the vault.
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationJobsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationJobsOperations.cs
index cf37e77d059e1..ba0c3ad024734 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationJobsOperations.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationJobsOperations.cs
@@ -56,7 +56,7 @@ public partial interface IReplicationJobsOperations
/// Get the details of an Azure Site Recovery job.
///
///
- /// Job identifier
+ /// Job identifier.
///
///
/// The headers that will be added to request.
@@ -128,7 +128,7 @@ public partial interface IReplicationJobsOperations
/// Resumes the specified job.
///
///
- /// The operation to resume an Azure Site Recovery job
+ /// The operation to resume an Azure Site Recovery job.
///
///
/// Job identifier.
@@ -232,7 +232,7 @@ public partial interface IReplicationJobsOperations
/// Resumes the specified job.
///
///
- /// The operation to resume an Azure Site Recovery job
+ /// The operation to resume an Azure Site Recovery job.
///
///
/// Job identifier.
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationLogicalNetworksOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationLogicalNetworksOperations.cs
index 66550876136b9..b3e43325a4966 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationLogicalNetworksOperations.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationLogicalNetworksOperations.cs
@@ -27,7 +27,7 @@ public partial interface IReplicationLogicalNetworksOperations
/// Gets the list of logical networks under a fabric.
///
///
- /// Lists all the logical networks of the Azure Site Recovery fabric
+ /// Lists all the logical networks of the Azure Site Recovery fabric.
///
///
/// Server Id.
@@ -81,7 +81,7 @@ public partial interface IReplicationLogicalNetworksOperations
/// Gets the list of logical networks under a fabric.
///
///
- /// Lists all the logical networks of the Azure Site Recovery fabric
+ /// Lists all the logical networks of the Azure Site Recovery fabric.
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationMigrationItemsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationMigrationItemsOperations.cs
index 1b15d0a8367a6..5a6bb86e7d909 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationMigrationItemsOperations.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationMigrationItemsOperations.cs
@@ -36,6 +36,15 @@ public partial interface IReplicationMigrationItemsOperations
///
/// Protection container name.
///
+ ///
+ /// OData parameters to apply to the operation.
+ ///
+ ///
+ /// The pagination token.
+ ///
+ ///
+ /// The page size.
+ ///
///
/// The headers that will be added to request.
///
@@ -51,7 +60,7 @@ public partial interface IReplicationMigrationItemsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), string takeToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets the details of a migration item.
///
@@ -326,6 +335,9 @@ public partial interface IReplicationMigrationItemsOperations
///
/// The pagination token.
///
+ ///
+ /// The page size.
+ ///
///
/// The headers that will be added to request.
///
@@ -341,7 +353,7 @@ public partial interface IReplicationMigrationItemsOperations
///
/// 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>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), string takeToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Enables migration.
///
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationNetworkMappingsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationNetworkMappingsOperations.cs
index 47f696e21ce9c..a3fbae4e2caac 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationNetworkMappingsOperations.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationNetworkMappingsOperations.cs
@@ -55,7 +55,7 @@ public partial interface IReplicationNetworkMappingsOperations
/// Gets network mapping by name.
///
///
- /// Gets the details of an ASR network mapping
+ /// Gets the details of an ASR network mapping.
///
///
/// Primary fabric name.
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationNetworksOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationNetworksOperations.cs
index fbe4773a1bbed..4d3b1d05978d9 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationNetworksOperations.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationNetworksOperations.cs
@@ -30,7 +30,7 @@ public partial interface IReplicationNetworksOperations
/// Lists the networks available for a fabric.
///
///
- /// Fabric name
+ /// Fabric name.
///
///
/// The headers that will be added to request.
@@ -80,7 +80,7 @@ public partial interface IReplicationNetworksOperations
/// Gets the list of networks. View-only API.
///
///
- /// Lists the networks available in a vault
+ /// Lists the networks available in a vault.
///
///
/// The headers that will be added to request.
@@ -127,7 +127,7 @@ public partial interface IReplicationNetworksOperations
/// Gets the list of networks. View-only API.
///
///
- /// Lists the networks available in a vault
+ /// Lists the networks available in a vault.
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationPoliciesOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationPoliciesOperations.cs
index 7433ff25f6f2e..a434a03034da9 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationPoliciesOperations.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationPoliciesOperations.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery
public partial interface IReplicationPoliciesOperations
{
///
- /// Gets the list of replication policies
+ /// Gets the list of replication policies.
///
///
/// Lists the replication policies for a vault.
@@ -74,13 +74,13 @@ public partial interface IReplicationPoliciesOperations
/// Creates the policy.
///
///
- /// The operation to create a replication policy
+ /// The operation to create a replication policy.
///
///
- /// Replication policy name
+ /// Replication policy name.
///
///
- /// Create policy input
+ /// Create policy input.
///
///
/// The headers that will be added to request.
@@ -130,7 +130,7 @@ public partial interface IReplicationPoliciesOperations
/// Policy Id.
///
///
- /// Update Policy Input
+ /// Update Policy Input.
///
///
/// The headers that will be added to request.
@@ -152,13 +152,13 @@ public partial interface IReplicationPoliciesOperations
/// Creates the policy.
///
///
- /// The operation to create a replication policy
+ /// The operation to create a replication policy.
///
///
- /// Replication policy name
+ /// Replication policy name.
///
///
- /// Create policy input
+ /// Create policy input.
///
///
/// The headers that will be added to request.
@@ -208,7 +208,7 @@ public partial interface IReplicationPoliciesOperations
/// Policy Id.
///
///
- /// Update Policy Input
+ /// Update Policy Input.
///
///
/// The headers that will be added to request.
@@ -227,7 +227,7 @@ public partial interface IReplicationPoliciesOperations
///
Task> BeginUpdateWithHttpMessagesAsync(string policyName, UpdatePolicyInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets the list of replication policies
+ /// Gets the list of replication policies.
///
///
/// Lists the replication policies for a vault.
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectableItemsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectableItemsOperations.cs
index 6afea5879b22c..c3d1f02a92573 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectableItemsOperations.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectableItemsOperations.cs
@@ -39,6 +39,12 @@ public partial interface IReplicationProtectableItemsOperations
///
/// OData parameters to apply to the operation.
///
+ ///
+ /// take OData query parameter.
+ ///
+ ///
+ /// skipToken OData query parameter.
+ ///
///
/// The headers that will be added to request.
///
@@ -54,7 +60,7 @@ public partial interface IReplicationProtectableItemsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, ODataQuery odataQuery = default(ODataQuery), string take = default(string), string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets the details of a protectable item.
///
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectedItemsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectedItemsOperations.cs
index cae8f52a553e9..40238e79fe92d 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectedItemsOperations.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectedItemsOperations.cs
@@ -151,7 +151,7 @@ public partial interface IReplicationProtectedItemsOperations
///
Task PurgeWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Updates protection.
+ /// Updates the replication protected item settings.
///
///
/// The operation to update the recovery settings of an ASR replication
@@ -233,7 +233,7 @@ public partial interface IReplicationProtectedItemsOperations
/// The protection container name.
///
///
- /// The replicated protected item's name.
+ /// The replicated protected item name.
///
///
/// The ApplyRecoveryPointInput.
@@ -255,7 +255,38 @@ public partial interface IReplicationProtectedItemsOperations
///
Task> ApplyRecoveryPointWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Execute commit failover
+ /// Execute cancel failover.
+ ///
+ ///
+ /// Operation to cancel the failover of the replication protected item.
+ ///
+ ///
+ /// Unique 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> FailoverCancelWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Execute commit failover.
///
///
/// Operation to commit the failover of the replication protected item.
@@ -286,7 +317,7 @@ public partial interface IReplicationProtectedItemsOperations
///
Task> FailoverCommitWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Execute planned failover
+ /// Execute planned failover.
///
///
/// Operation to initiate a planned failover of the replication
@@ -302,7 +333,7 @@ public partial interface IReplicationProtectedItemsOperations
/// Replication protected item name.
///
///
- /// Disable protection input.
+ /// Planned failover input.
///
///
/// The headers that will be added to request.
@@ -419,7 +450,7 @@ public partial interface IReplicationProtectedItemsOperations
///
Task> RepairReplicationWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Execute Reverse Replication\Reprotect
+ /// Execute Reverse Replication\Reprotect.
///
///
/// Operation to reprotect or reverse replicate a failed over
@@ -434,8 +465,8 @@ public partial interface IReplicationProtectedItemsOperations
///
/// Replication protected item name.
///
- ///
- /// Disable protection input.
+ ///
+ /// Reverse replication input.
///
///
/// The headers that will be added to request.
@@ -452,7 +483,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> ReprotectWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput reprotectInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Resolve health errors.
///
@@ -489,7 +520,7 @@ public partial interface IReplicationProtectedItemsOperations
///
Task> ResolveHealthErrorsWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ResolveHealthInput resolveHealthInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Execute test failover
+ /// Execute test failover.
///
///
/// Operation to perform a test failover of the replication protected
@@ -504,7 +535,7 @@ public partial interface IReplicationProtectedItemsOperations
///
/// Replication protected item name.
///
- ///
+ ///
/// Test failover input.
///
///
@@ -522,7 +553,7 @@ public partial interface IReplicationProtectedItemsOperations
///
/// 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> TestFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput testfailoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Execute test failover cleanup.
///
@@ -559,7 +590,7 @@ public partial interface IReplicationProtectedItemsOperations
///
Task> TestFailoverCleanupWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Execute unplanned failover
+ /// Execute unplanned failover.
///
///
/// Operation to initiate a failover of the replication protected item.
@@ -574,7 +605,7 @@ public partial interface IReplicationProtectedItemsOperations
/// Replication protected item name.
///
///
- /// Disable protection input.
+ /// Failover input.
///
///
/// The headers that will be added to request.
@@ -639,7 +670,7 @@ public partial interface IReplicationProtectedItemsOperations
///
///
/// The pagination token. Possible values: "FabricId" or
- /// "FabricId_CloudId" or null
+ /// "FabricId_CloudId" or null.
///
///
/// The headers that will be added to request.
@@ -724,7 +755,7 @@ public partial interface IReplicationProtectedItemsOperations
///
Task BeginPurgeWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Updates protection.
+ /// Updates the replication protected item settings.
///
///
/// The operation to update the recovery settings of an ASR replication
@@ -806,7 +837,7 @@ public partial interface IReplicationProtectedItemsOperations
/// The protection container name.
///
///
- /// The replicated protected item's name.
+ /// The replicated protected item name.
///
///
/// The ApplyRecoveryPointInput.
@@ -828,7 +859,38 @@ public partial interface IReplicationProtectedItemsOperations
///
Task> BeginApplyRecoveryPointWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Execute commit failover
+ /// Execute cancel failover.
+ ///
+ ///
+ /// Operation to cancel the failover of the replication protected item.
+ ///
+ ///
+ /// Unique 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> BeginFailoverCancelWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Execute commit failover.
///
///
/// Operation to commit the failover of the replication protected item.
@@ -859,7 +921,7 @@ public partial interface IReplicationProtectedItemsOperations
///
Task> BeginFailoverCommitWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Execute planned failover
+ /// Execute planned failover.
///
///
/// Operation to initiate a planned failover of the replication
@@ -875,7 +937,7 @@ public partial interface IReplicationProtectedItemsOperations
/// Replication protected item name.
///
///
- /// Disable protection input.
+ /// Planned failover input.
///
///
/// The headers that will be added to request.
@@ -992,7 +1054,7 @@ public partial interface IReplicationProtectedItemsOperations
///
Task> BeginRepairReplicationWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Execute Reverse Replication\Reprotect
+ /// Execute Reverse Replication\Reprotect.
///
///
/// Operation to reprotect or reverse replicate a failed over
@@ -1007,8 +1069,8 @@ public partial interface IReplicationProtectedItemsOperations
///
/// Replication protected item name.
///
- ///
- /// Disable protection input.
+ ///
+ /// Reverse replication input.
///
///
/// The headers that will be added to request.
@@ -1025,7 +1087,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> BeginReprotectWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput reprotectInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Resolve health errors.
///
@@ -1062,7 +1124,7 @@ public partial interface IReplicationProtectedItemsOperations
///
Task> BeginResolveHealthErrorsWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ResolveHealthInput resolveHealthInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Execute test failover
+ /// Execute test failover.
///
///
/// Operation to perform a test failover of the replication protected
@@ -1077,7 +1139,7 @@ public partial interface IReplicationProtectedItemsOperations
///
/// Replication protected item name.
///
- ///
+ ///
/// Test failover input.
///
///
@@ -1095,7 +1157,7 @@ public partial interface IReplicationProtectedItemsOperations
///
/// 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> BeginTestFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput testfailoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Execute test failover cleanup.
///
@@ -1132,7 +1194,7 @@ public partial interface IReplicationProtectedItemsOperations
///
Task> BeginTestFailoverCleanupWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Execute unplanned failover
+ /// Execute unplanned failover.
///
///
/// Operation to initiate a failover of the replication protected item.
@@ -1147,7 +1209,7 @@ public partial interface IReplicationProtectedItemsOperations
/// Replication protected item name.
///
///
- /// Disable protection input.
+ /// Failover input.
///
///
/// The headers that will be added to request.
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionContainerMappingsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionContainerMappingsOperations.cs
index bd9b10550cae6..e3953baf00ec9 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionContainerMappingsOperations.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionContainerMappingsOperations.cs
@@ -53,7 +53,7 @@ public partial interface IReplicationProtectionContainerMappingsOperations
///
Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets a protection container mapping/
+ /// Gets a protection container mapping.
///
///
/// Gets the details of a protection container mapping.
@@ -121,7 +121,8 @@ public partial interface IReplicationProtectionContainerMappingsOperations
/// Purge protection container mapping.
///
///
- /// The operation to purge(force delete) a protection container mapping
+ /// The operation to purge(force delete) a protection container
+ /// mapping.
///
///
/// Fabric name.
@@ -270,7 +271,8 @@ public partial interface IReplicationProtectionContainerMappingsOperations
/// Purge protection container mapping.
///
///
- /// The operation to purge(force delete) a protection container mapping
+ /// The operation to purge(force delete) a protection container
+ /// mapping.
///
///
/// Fabric name.
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionContainersOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionContainersOperations.cs
index c41da22e4dd00..d1161aedf3097 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionContainersOperations.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionContainersOperations.cs
@@ -112,7 +112,7 @@ public partial interface IReplicationProtectionContainersOperations
///
///
/// The operation to a add a protectable item to a protection
- /// container(Add physical server.)
+ /// container(Add physical server).
///
///
/// The name of the fabric.
@@ -255,7 +255,7 @@ public partial interface IReplicationProtectionContainersOperations
///
///
/// The operation to a add a protectable item to a protection
- /// container(Add physical server.)
+ /// container(Add physical server).
///
///
/// The name of the fabric.
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionIntentsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionIntentsOperations.cs
new file mode 100644
index 0000000000000..9ba188e1d9745
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionIntentsOperations.cs
@@ -0,0 +1,135 @@
+//
+// 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;
+
+ ///
+ /// ReplicationProtectionIntentsOperations operations.
+ ///
+ public partial interface IReplicationProtectionIntentsOperations
+ {
+ ///
+ /// Gets the list of replication protection intent objects.
+ ///
+ ///
+ /// Gets the list of ASR replication protection intent objects in the
+ /// vault.
+ ///
+ ///
+ /// The pagination token.
+ ///
+ ///
+ /// The page size.
+ ///
+ ///
+ /// 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(string skipToken = default(string), string takeToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets the details of a Replication protection intent item.
+ ///
+ ///
+ /// Gets the details of an ASR replication protection intent.
+ ///
+ ///
+ /// Replication protection intent 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> GetWithHttpMessagesAsync(string intentObjectName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Create protection intent Resource.
+ ///
+ ///
+ /// The operation to create an ASR replication protection intent item.
+ ///
+ ///
+ /// A name for the replication protection item.
+ ///
+ ///
+ /// Create Protection Intent Input.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> CreateWithHttpMessagesAsync(string intentObjectName, CreateProtectionIntentInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets the list of replication protection intent objects.
+ ///
+ ///
+ /// Gets the list of ASR replication protection intent objects in the
+ /// vault.
+ ///
+ ///
+ /// 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>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationRecoveryPlansOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationRecoveryPlansOperations.cs
index a6f740db6a3b2..b8efc1feaad1c 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationRecoveryPlansOperations.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationRecoveryPlansOperations.cs
@@ -130,7 +130,7 @@ public partial interface IReplicationRecoveryPlansOperations
/// Recovery plan name.
///
///
- /// Update recovery plan input
+ /// Update recovery plan input.
///
///
/// The headers that will be added to request.
@@ -149,10 +149,35 @@ public partial interface IReplicationRecoveryPlansOperations
///
Task> UpdateWithHttpMessagesAsync(string recoveryPlanName, UpdateRecoveryPlanInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Execute cancel failover of the recovery plan.
+ ///
+ ///
+ /// The operation to cancel the failover of a recovery plan.
+ ///
+ ///
+ /// Recovery plan 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> FailoverCancelWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Execute commit failover of the recovery plan.
///
///
- /// The operation to commit the fail over of a recovery plan.
+ /// The operation to commit the failover of a recovery plan.
///
///
/// Recovery plan name.
@@ -236,7 +261,7 @@ public partial interface IReplicationRecoveryPlansOperations
/// Recovery plan name.
///
///
- /// Failover input.
+ /// Recovery plan test failover input.
///
///
/// The headers that will be added to request.
@@ -264,7 +289,7 @@ public partial interface IReplicationRecoveryPlansOperations
/// Recovery plan name.
///
///
- /// Test failover cleanup input.
+ /// Recovery plan test failover cleanup input.
///
///
/// The headers that will be added to request.
@@ -286,13 +311,13 @@ public partial interface IReplicationRecoveryPlansOperations
/// Execute unplanned failover of the recovery plan.
///
///
- /// The operation to start the failover of a recovery plan.
+ /// The operation to start the unplanned failover of a recovery plan.
///
///
/// Recovery plan name.
///
///
- /// Failover input.
+ /// Recovery plan unplanned failover input.
///
///
/// The headers that will be added to request.
@@ -370,7 +395,7 @@ public partial interface IReplicationRecoveryPlansOperations
/// Recovery plan name.
///
///
- /// Update recovery plan input
+ /// Update recovery plan input.
///
///
/// The headers that will be added to request.
@@ -389,10 +414,35 @@ public partial interface IReplicationRecoveryPlansOperations
///
Task> BeginUpdateWithHttpMessagesAsync(string recoveryPlanName, UpdateRecoveryPlanInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Execute cancel failover of the recovery plan.
+ ///
+ ///
+ /// The operation to cancel the failover of a recovery plan.
+ ///
+ ///
+ /// Recovery plan 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> BeginFailoverCancelWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Execute commit failover of the recovery plan.
///
///
- /// The operation to commit the fail over of a recovery plan.
+ /// The operation to commit the failover of a recovery plan.
///
///
/// Recovery plan name.
@@ -476,7 +526,7 @@ public partial interface IReplicationRecoveryPlansOperations
/// Recovery plan name.
///
///
- /// Failover input.
+ /// Recovery plan test failover input.
///
///
/// The headers that will be added to request.
@@ -504,7 +554,7 @@ public partial interface IReplicationRecoveryPlansOperations
/// Recovery plan name.
///
///
- /// Test failover cleanup input.
+ /// Recovery plan test failover cleanup input.
///
///
/// The headers that will be added to request.
@@ -526,13 +576,13 @@ public partial interface IReplicationRecoveryPlansOperations
/// Execute unplanned failover of the recovery plan.
///
///
- /// The operation to start the failover of a recovery plan.
+ /// The operation to start the unplanned failover of a recovery plan.
///
///
/// Recovery plan name.
///
///
- /// Failover input.
+ /// Recovery plan unplanned failover input.
///
///
/// The headers that will be added to request.
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationRecoveryServicesProvidersOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationRecoveryServicesProvidersOperations.cs
index 4b5a376d3b211..414b076e4b5ed 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationRecoveryServicesProvidersOperations.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationRecoveryServicesProvidersOperations.cs
@@ -32,7 +32,7 @@ public partial interface IReplicationRecoveryServicesProvidersOperations
/// fabric.
///
///
- /// Fabric name
+ /// Fabric name.
///
///
/// The headers that will be added to request.
@@ -60,7 +60,7 @@ public partial interface IReplicationRecoveryServicesProvidersOperations
/// Fabric name.
///
///
- /// Recovery services provider name
+ /// Recovery services provider name.
///
///
/// The headers that will be added to request.
@@ -110,7 +110,7 @@ public partial interface IReplicationRecoveryServicesProvidersOperations
///
Task> CreateWithHttpMessagesAsync(string fabricName, string providerName, AddRecoveryServicesProviderInput addProviderInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Purges recovery service provider from fabric
+ /// Purges recovery service provider from fabric.
///
///
/// The operation to purge(force delete) a recovery services provider
@@ -173,7 +173,7 @@ public partial interface IReplicationRecoveryServicesProvidersOperations
///
///
/// The operation to removes/delete(unregister) a recovery services
- /// provider from the vault
+ /// provider from the vault.
///
///
/// Fabric name.
@@ -199,7 +199,7 @@ public partial interface IReplicationRecoveryServicesProvidersOperations
/// vault. This is a view only api.
///
///
- /// Lists the registered recovery services providers in the vault
+ /// Lists the registered recovery services providers in the vault.
///
///
/// The headers that will be added to request.
@@ -249,7 +249,7 @@ public partial interface IReplicationRecoveryServicesProvidersOperations
///
Task> BeginCreateWithHttpMessagesAsync(string fabricName, string providerName, AddRecoveryServicesProviderInput addProviderInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Purges recovery service provider from fabric
+ /// Purges recovery service provider from fabric.
///
///
/// The operation to purge(force delete) a recovery services provider
@@ -312,7 +312,7 @@ public partial interface IReplicationRecoveryServicesProvidersOperations
///
///
/// The operation to removes/delete(unregister) a recovery services
- /// provider from the vault
+ /// provider from the vault.
///
///
/// Fabric name.
@@ -365,7 +365,7 @@ public partial interface IReplicationRecoveryServicesProvidersOperations
/// vault. This is a view only api.
///
///
- /// Lists the registered recovery services providers in the vault
+ /// Lists the registered recovery services providers in the vault.
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationVaultSettingOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationVaultSettingOperations.cs
index 5312e4f78158d..b7609aec84dbf 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationVaultSettingOperations.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationVaultSettingOperations.cs
@@ -102,6 +102,35 @@ public partial interface IReplicationVaultSettingOperations
///
Task> CreateWithHttpMessagesAsync(string vaultSettingName, VaultSettingCreationInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Updates vault setting. A vault setting object is a singleton per
+ /// vault and it is always present by default.
+ ///
+ ///
+ /// The operation to configure vault setting.
+ ///
+ ///
+ /// Vault setting name.
+ ///
+ ///
+ /// Vault setting creation input.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> BeginCreateWithHttpMessagesAsync(string vaultSettingName, VaultSettingCreationInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Gets the list of vault setting.
///
///
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationvCentersOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationvCentersOperations.cs
index d9552f54967f3..1c473d5a06323 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationvCentersOperations.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationvCentersOperations.cs
@@ -53,13 +53,13 @@ public partial interface IReplicationvCentersOperations
///
///
/// Gets the details of a registered vCenter server(Add vCenter
- /// server.)
+ /// server).
///
///
/// Fabric name.
///
- ///
- /// vCenter name.
+ ///
+ /// vcenter name.
///
///
/// The headers that will be added to request.
@@ -76,7 +76,7 @@ public partial interface IReplicationvCentersOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string fabricName, string vCenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string fabricName, string vcenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Add vCenter.
///
@@ -86,8 +86,8 @@ public partial interface IReplicationvCentersOperations
///
/// Fabric name.
///
- ///
- /// vCenter name.
+ ///
+ /// vcenter name.
///
///
/// The input to the add vCenter operation.
@@ -107,9 +107,9 @@ public partial interface IReplicationvCentersOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateWithHttpMessagesAsync(string fabricName, string vCenterName, AddVCenterRequest addVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateWithHttpMessagesAsync(string fabricName, string vcenterName, AddVCenterRequest addVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Remove vCenter operation.
+ /// Remove vcenter operation.
///
///
/// The operation to remove(unregister) a registered vCenter server
@@ -118,8 +118,8 @@ public partial interface IReplicationvCentersOperations
///
/// Fabric name.
///
- ///
- /// vCenter name.
+ ///
+ /// vcenter name.
///
///
/// The headers that will be added to request.
@@ -133,7 +133,7 @@ public partial interface IReplicationvCentersOperations
///
/// Thrown when a required parameter is null
///
- Task DeleteWithHttpMessagesAsync(string fabricName, string vCenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task DeleteWithHttpMessagesAsync(string fabricName, string vcenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Update vCenter operation.
///
@@ -143,8 +143,8 @@ public partial interface IReplicationvCentersOperations
///
/// Fabric name.
///
- ///
- /// vCenter name
+ ///
+ /// vcenter name.
///
///
/// The input to the update vCenter operation.
@@ -164,7 +164,7 @@ public partial interface IReplicationvCentersOperations
///
/// Thrown when a required parameter is null
///
- Task> UpdateWithHttpMessagesAsync(string fabricName, string vCenterName, UpdateVCenterRequest updateVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> UpdateWithHttpMessagesAsync(string fabricName, string vcenterName, UpdateVCenterRequest updateVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets the list of vCenter registered under the vault.
///
@@ -196,8 +196,8 @@ public partial interface IReplicationvCentersOperations
///
/// Fabric name.
///
- ///
- /// vCenter name.
+ ///
+ /// vcenter name.
///
///
/// The input to the add vCenter operation.
@@ -217,9 +217,9 @@ public partial interface IReplicationvCentersOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginCreateWithHttpMessagesAsync(string fabricName, string vCenterName, AddVCenterRequest addVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginCreateWithHttpMessagesAsync(string fabricName, string vcenterName, AddVCenterRequest addVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Remove vCenter operation.
+ /// Remove vcenter operation.
///
///
/// The operation to remove(unregister) a registered vCenter server
@@ -228,8 +228,8 @@ public partial interface IReplicationvCentersOperations
///
/// Fabric name.
///
- ///
- /// vCenter name.
+ ///
+ /// vcenter name.
///
///
/// The headers that will be added to request.
@@ -243,7 +243,7 @@ public partial interface IReplicationvCentersOperations
///
/// Thrown when a required parameter is null
///
- Task BeginDeleteWithHttpMessagesAsync(string fabricName, string vCenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task BeginDeleteWithHttpMessagesAsync(string fabricName, string vcenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Update vCenter operation.
///
@@ -253,8 +253,8 @@ public partial interface IReplicationvCentersOperations
///
/// Fabric name.
///
- ///
- /// vCenter name
+ ///
+ /// vcenter name.
///
///
/// The input to the update vCenter operation.
@@ -274,7 +274,7 @@ public partial interface IReplicationvCentersOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginUpdateWithHttpMessagesAsync(string fabricName, string vCenterName, UpdateVCenterRequest updateVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginUpdateWithHttpMessagesAsync(string fabricName, string vcenterName, UpdateVCenterRequest updateVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets the list of vCenter registered under a fabric.
///
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISiteRecoveryManagementClient.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISiteRecoveryManagementClient.cs
index 25b5858aade89..edfade7bbef0b 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISiteRecoveryManagementClient.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISiteRecoveryManagementClient.cs
@@ -189,6 +189,11 @@ public partial interface ISiteRecoveryManagementClient : System.IDisposable
///
IReplicationPoliciesOperations ReplicationPolicies { get; }
+ ///
+ /// Gets the IReplicationProtectionIntentsOperations.
+ ///
+ IReplicationProtectionIntentsOperations ReplicationProtectionIntents { get; }
+
///
/// Gets the IReplicationRecoveryPlansOperations.
///
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISupportedOperatingSystemsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISupportedOperatingSystemsOperations.cs
index d785646ce58a4..65506bd98c714 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISupportedOperatingSystemsOperations.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISupportedOperatingSystemsOperations.cs
@@ -24,8 +24,11 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery
public partial interface ISupportedOperatingSystemsOperations
{
///
- /// Gets the data of supported OSes by SRS.
+ /// Gets the data of supported operating systems by SRS.
///
+ ///
+ /// The instance type.
+ ///
///
/// The headers that will be added to request.
///
@@ -41,6 +44,6 @@ public partial interface ISupportedOperatingSystemsOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string instanceType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/MigrationRecoveryPointsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/MigrationRecoveryPointsOperations.cs
index 6af1fea3048d9..9a3b242620dd7 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/MigrationRecoveryPointsOperations.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/MigrationRecoveryPointsOperations.cs
@@ -128,7 +128,7 @@ internal MigrationRecoveryPointsOperations(SiteRecoveryManagementClient client)
}
// 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}/replicationMigrationItems/{migrationItemName}/migrationRecoveryPoints").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}/replicationMigrationItems/{migrationItemName}/migrationRecoveryPoints").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));
@@ -351,7 +351,7 @@ internal MigrationRecoveryPointsOperations(SiteRecoveryManagementClient client)
}
// 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}/replicationMigrationItems/{migrationItemName}/migrationRecoveryPoints/{migrationRecoveryPointName}").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}/replicationMigrationItems/{migrationItemName}/migrationRecoveryPoints/{migrationRecoveryPointName}").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));
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACreateProtectionIntentInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACreateProtectionIntentInput.cs
new file mode 100644
index 0000000000000..1d4407d6687b0
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACreateProtectionIntentInput.cs
@@ -0,0 +1,277 @@
+//
+// 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 Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// A2A create protection intent input.
+ ///
+ [Newtonsoft.Json.JsonObject("A2A")]
+ public partial class A2ACreateProtectionIntentInput : CreateProtectionIntentProviderSpecificDetails
+ {
+ ///
+ /// Initializes a new instance of the A2ACreateProtectionIntentInput
+ /// class.
+ ///
+ public A2ACreateProtectionIntentInput()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the A2ACreateProtectionIntentInput
+ /// class.
+ ///
+ /// The fabric specific object Id of the
+ /// virtual machine.
+ /// The primary location for the virtual
+ /// machine.
+ /// The recovery location for the
+ /// virtual machine.
+ /// The recovery subscription Id
+ /// of the virtual machine.
+ /// The recovery availability
+ /// type of the virtual machine. Possible values include: 'Single',
+ /// 'AvailabilitySet', 'AvailabilityZone'
+ /// The recovery resource group
+ /// Id. Valid for V2 scenarios.
+ /// The protection profile
+ /// custom inputs.
+ /// The primary
+ /// staging storage account input.
+ /// The recovery
+ /// availability set input.
+ /// The recovery
+ /// virtual network input.
+ /// The
+ /// recovery proximity placement group custom input.
+ /// A value indicating whether
+ /// the auto protection is enabled. Possible values include:
+ /// 'Disabled', 'Enabled'
+ /// The list of vm disk inputs.
+ /// The list of vm managed disk
+ /// inputs.
+ /// The multi vm group name.
+ /// The multi vm group id.
+ /// The boot diagnostic
+ /// storage account.
+ /// The recovery disk encryption
+ /// information (for two pass flows).
+ /// The recovery availability
+ /// zone.
+ public A2ACreateProtectionIntentInput(string fabricObjectId, string primaryLocation, string recoveryLocation, string recoverySubscriptionId, string recoveryAvailabilityType, string recoveryResourceGroupId, ProtectionProfileCustomDetails protectionProfileCustomInput = default(ProtectionProfileCustomDetails), StorageAccountCustomDetails primaryStagingStorageAccountCustomInput = default(StorageAccountCustomDetails), RecoveryAvailabilitySetCustomDetails recoveryAvailabilitySetCustomInput = default(RecoveryAvailabilitySetCustomDetails), RecoveryVirtualNetworkCustomDetails recoveryVirtualNetworkCustomInput = default(RecoveryVirtualNetworkCustomDetails), RecoveryProximityPlacementGroupCustomDetails recoveryProximityPlacementGroupCustomInput = default(RecoveryProximityPlacementGroupCustomDetails), string autoProtectionOfDataDisk = default(string), IList vmDisks = default(IList), IList vmManagedDisks = default(IList), string multiVmGroupName = default(string), string multiVmGroupId = default(string), StorageAccountCustomDetails recoveryBootDiagStorageAccount = default(StorageAccountCustomDetails), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo), string recoveryAvailabilityZone = default(string))
+ {
+ FabricObjectId = fabricObjectId;
+ PrimaryLocation = primaryLocation;
+ RecoveryLocation = recoveryLocation;
+ RecoverySubscriptionId = recoverySubscriptionId;
+ RecoveryAvailabilityType = recoveryAvailabilityType;
+ ProtectionProfileCustomInput = protectionProfileCustomInput;
+ RecoveryResourceGroupId = recoveryResourceGroupId;
+ PrimaryStagingStorageAccountCustomInput = primaryStagingStorageAccountCustomInput;
+ RecoveryAvailabilitySetCustomInput = recoveryAvailabilitySetCustomInput;
+ RecoveryVirtualNetworkCustomInput = recoveryVirtualNetworkCustomInput;
+ RecoveryProximityPlacementGroupCustomInput = recoveryProximityPlacementGroupCustomInput;
+ AutoProtectionOfDataDisk = autoProtectionOfDataDisk;
+ VmDisks = vmDisks;
+ VmManagedDisks = vmManagedDisks;
+ MultiVmGroupName = multiVmGroupName;
+ MultiVmGroupId = multiVmGroupId;
+ RecoveryBootDiagStorageAccount = recoveryBootDiagStorageAccount;
+ DiskEncryptionInfo = diskEncryptionInfo;
+ RecoveryAvailabilityZone = recoveryAvailabilityZone;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the fabric specific object Id of the virtual machine.
+ ///
+ [JsonProperty(PropertyName = "fabricObjectId")]
+ public string FabricObjectId { get; set; }
+
+ ///
+ /// Gets or sets the primary location for the virtual machine.
+ ///
+ [JsonProperty(PropertyName = "primaryLocation")]
+ public string PrimaryLocation { get; set; }
+
+ ///
+ /// Gets or sets the recovery location for the virtual machine.
+ ///
+ [JsonProperty(PropertyName = "recoveryLocation")]
+ public string RecoveryLocation { get; set; }
+
+ ///
+ /// Gets or sets the recovery subscription Id of the virtual machine.
+ ///
+ [JsonProperty(PropertyName = "recoverySubscriptionId")]
+ public string RecoverySubscriptionId { get; set; }
+
+ ///
+ /// Gets or sets the recovery availability type of the virtual machine.
+ /// Possible values include: 'Single', 'AvailabilitySet',
+ /// 'AvailabilityZone'
+ ///
+ [JsonProperty(PropertyName = "recoveryAvailabilityType")]
+ public string RecoveryAvailabilityType { get; set; }
+
+ ///
+ /// Gets or sets the protection profile custom inputs.
+ ///
+ [JsonProperty(PropertyName = "protectionProfileCustomInput")]
+ public ProtectionProfileCustomDetails ProtectionProfileCustomInput { get; set; }
+
+ ///
+ /// Gets or sets the recovery resource group Id. Valid for V2
+ /// scenarios.
+ ///
+ [JsonProperty(PropertyName = "recoveryResourceGroupId")]
+ public string RecoveryResourceGroupId { get; set; }
+
+ ///
+ /// Gets or sets the primary staging storage account input.
+ ///
+ [JsonProperty(PropertyName = "primaryStagingStorageAccountCustomInput")]
+ public StorageAccountCustomDetails PrimaryStagingStorageAccountCustomInput { get; set; }
+
+ ///
+ /// Gets or sets the recovery availability set input.
+ ///
+ [JsonProperty(PropertyName = "recoveryAvailabilitySetCustomInput")]
+ public RecoveryAvailabilitySetCustomDetails RecoveryAvailabilitySetCustomInput { get; set; }
+
+ ///
+ /// Gets or sets the recovery virtual network input.
+ ///
+ [JsonProperty(PropertyName = "recoveryVirtualNetworkCustomInput")]
+ public RecoveryVirtualNetworkCustomDetails RecoveryVirtualNetworkCustomInput { get; set; }
+
+ ///
+ /// Gets or sets the recovery proximity placement group custom input.
+ ///
+ [JsonProperty(PropertyName = "recoveryProximityPlacementGroupCustomInput")]
+ public RecoveryProximityPlacementGroupCustomDetails RecoveryProximityPlacementGroupCustomInput { get; set; }
+
+ ///
+ /// Gets or sets a value indicating whether the auto protection is
+ /// enabled. Possible values include: 'Disabled', 'Enabled'
+ ///
+ [JsonProperty(PropertyName = "autoProtectionOfDataDisk")]
+ public string AutoProtectionOfDataDisk { get; set; }
+
+ ///
+ /// Gets or sets the list of vm disk inputs.
+ ///
+ [JsonProperty(PropertyName = "vmDisks")]
+ public IList VmDisks { get; set; }
+
+ ///
+ /// Gets or sets the list of vm managed disk inputs.
+ ///
+ [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 multi vm group id.
+ ///
+ [JsonProperty(PropertyName = "multiVmGroupId")]
+ public string MultiVmGroupId { get; set; }
+
+ ///
+ /// Gets or sets the boot diagnostic storage account.
+ ///
+ [JsonProperty(PropertyName = "recoveryBootDiagStorageAccount")]
+ public StorageAccountCustomDetails RecoveryBootDiagStorageAccount { get; set; }
+
+ ///
+ /// Gets or sets the recovery disk encryption information (for two pass
+ /// flows).
+ ///
+ [JsonProperty(PropertyName = "diskEncryptionInfo")]
+ public DiskEncryptionInfo DiskEncryptionInfo { get; set; }
+
+ ///
+ /// Gets or sets the recovery availability zone.
+ ///
+ [JsonProperty(PropertyName = "recoveryAvailabilityZone")]
+ public string RecoveryAvailabilityZone { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (FabricObjectId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "FabricObjectId");
+ }
+ if (PrimaryLocation == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "PrimaryLocation");
+ }
+ if (RecoveryLocation == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryLocation");
+ }
+ if (RecoverySubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "RecoverySubscriptionId");
+ }
+ if (RecoveryAvailabilityType == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryAvailabilityType");
+ }
+ if (RecoveryResourceGroupId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryResourceGroupId");
+ }
+ if (VmDisks != null)
+ {
+ foreach (var element in VmDisks)
+ {
+ if (element != null)
+ {
+ element.Validate();
+ }
+ }
+ }
+ if (VmManagedDisks != null)
+ {
+ foreach (var element1 in VmManagedDisks)
+ {
+ if (element1 != null)
+ {
+ element1.Validate();
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationApplyRecoveryPointInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationApplyRecoveryPointInput.cs
new file mode 100644
index 0000000000000..4fb0b5ba88440
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationApplyRecoveryPointInput.cs
@@ -0,0 +1,38 @@
+//
+// 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;
+
+ ///
+ /// ApplyRecoveryPoint input specific to A2ACrossClusterMigration provider.
+ ///
+ [Newtonsoft.Json.JsonObject("A2ACrossClusterMigration")]
+ public partial class A2ACrossClusterMigrationApplyRecoveryPointInput : ApplyRecoveryPointProviderSpecificInput
+ {
+ ///
+ /// Initializes a new instance of the
+ /// A2ACrossClusterMigrationApplyRecoveryPointInput class.
+ ///
+ public A2ACrossClusterMigrationApplyRecoveryPointInput()
+ {
+ CustomInit();
+ }
+
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationContainerCreationInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationContainerCreationInput.cs
new file mode 100644
index 0000000000000..a89c59d5a4bda
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationContainerCreationInput.cs
@@ -0,0 +1,38 @@
+//
+// 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;
+
+ ///
+ /// A2ACrossClusterMigration cloud creation input.
+ ///
+ [Newtonsoft.Json.JsonObject("A2ACrossClusterMigration")]
+ public partial class A2ACrossClusterMigrationContainerCreationInput : ReplicationProviderSpecificContainerCreationInput
+ {
+ ///
+ /// Initializes a new instance of the
+ /// A2ACrossClusterMigrationContainerCreationInput class.
+ ///
+ public A2ACrossClusterMigrationContainerCreationInput()
+ {
+ CustomInit();
+ }
+
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationEnableProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationEnableProtectionInput.cs
new file mode 100644
index 0000000000000..fb608a110a9e9
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationEnableProtectionInput.cs
@@ -0,0 +1,64 @@
+//
+// 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 Cross-Cluster Migration enable protection input.
+ ///
+ [Newtonsoft.Json.JsonObject("A2ACrossClusterMigration")]
+ public partial class A2ACrossClusterMigrationEnableProtectionInput : EnableProtectionProviderSpecificInput
+ {
+ ///
+ /// Initializes a new instance of the
+ /// A2ACrossClusterMigrationEnableProtectionInput class.
+ ///
+ public A2ACrossClusterMigrationEnableProtectionInput()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// A2ACrossClusterMigrationEnableProtectionInput class.
+ ///
+ /// The fabric specific object Id of the
+ /// virtual machine.
+ /// The recovery container
+ /// Id.
+ public A2ACrossClusterMigrationEnableProtectionInput(string fabricObjectId = default(string), string recoveryContainerId = default(string))
+ {
+ FabricObjectId = fabricObjectId;
+ RecoveryContainerId = recoveryContainerId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the fabric specific object Id of the virtual machine.
+ ///
+ [JsonProperty(PropertyName = "fabricObjectId")]
+ public string FabricObjectId { get; set; }
+
+ ///
+ /// Gets or sets the recovery container Id.
+ ///
+ [JsonProperty(PropertyName = "recoveryContainerId")]
+ public string RecoveryContainerId { get; set; }
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationPolicyCreationInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationPolicyCreationInput.cs
new file mode 100644
index 0000000000000..911c7a212b930
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationPolicyCreationInput.cs
@@ -0,0 +1,38 @@
+//
+// 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 Cross-Cluster Migration Policy creation input.
+ ///
+ [Newtonsoft.Json.JsonObject("A2ACrossClusterMigration")]
+ public partial class A2ACrossClusterMigrationPolicyCreationInput : PolicyProviderSpecificInput
+ {
+ ///
+ /// Initializes a new instance of the
+ /// A2ACrossClusterMigrationPolicyCreationInput class.
+ ///
+ public A2ACrossClusterMigrationPolicyCreationInput()
+ {
+ CustomInit();
+ }
+
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationReplicationDetails.cs
new file mode 100644
index 0000000000000..d05d6117f7ba2
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationReplicationDetails.cs
@@ -0,0 +1,108 @@
+//
+// 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 settings.
+ ///
+ [Newtonsoft.Json.JsonObject("A2ACrossClusterMigration")]
+ public partial class A2ACrossClusterMigrationReplicationDetails : ReplicationProviderSpecificSettings
+ {
+ ///
+ /// Initializes a new instance of the
+ /// A2ACrossClusterMigrationReplicationDetails class.
+ ///
+ public A2ACrossClusterMigrationReplicationDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// A2ACrossClusterMigrationReplicationDetails class.
+ ///
+ /// The fabric specific object Id of the
+ /// virtual machine.
+ /// Primary fabric
+ /// location.
+ /// The type of operating system.
+ /// The protection state for the
+ /// vm.
+ /// The protection state
+ /// description for the vm.
+ /// An id associated with the PE that
+ /// survives actions like switch protection which change the backing
+ /// PE/CPE objects internally.The lifecycle id gets carried forward to
+ /// have a link/continuity in being able to have an Id that denotes the
+ /// "same" protected item even though other internal Ids/ARM Id might
+ /// be changing.
+ public A2ACrossClusterMigrationReplicationDetails(string fabricObjectId = default(string), string primaryFabricLocation = default(string), string osType = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), string lifecycleId = default(string))
+ {
+ FabricObjectId = fabricObjectId;
+ PrimaryFabricLocation = primaryFabricLocation;
+ OsType = osType;
+ VmProtectionState = vmProtectionState;
+ VmProtectionStateDescription = vmProtectionStateDescription;
+ LifecycleId = lifecycleId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the fabric specific object Id of the virtual machine.
+ ///
+ [JsonProperty(PropertyName = "fabricObjectId")]
+ public string FabricObjectId { get; set; }
+
+ ///
+ /// Gets or sets primary fabric location.
+ ///
+ [JsonProperty(PropertyName = "primaryFabricLocation")]
+ public string PrimaryFabricLocation { get; set; }
+
+ ///
+ /// Gets or sets the type of operating system.
+ ///
+ [JsonProperty(PropertyName = "osType")]
+ public string OsType { get; set; }
+
+ ///
+ /// Gets or sets the protection state for the vm.
+ ///
+ [JsonProperty(PropertyName = "vmProtectionState")]
+ public string VmProtectionState { get; set; }
+
+ ///
+ /// Gets or sets the protection state description for the vm.
+ ///
+ [JsonProperty(PropertyName = "vmProtectionStateDescription")]
+ public string VmProtectionStateDescription { get; set; }
+
+ ///
+ /// Gets or sets an id associated with the PE that survives actions
+ /// like switch protection which change the backing PE/CPE objects
+ /// internally.The lifecycle id gets carried forward to have a
+ /// link/continuity in being able to have an Id that denotes the "same"
+ /// protected item even though other internal Ids/ARM Id might be
+ /// changing.
+ ///
+ [JsonProperty(PropertyName = "lifecycleId")]
+ public string LifecycleId { get; set; }
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AEnableProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AEnableProtectionInput.cs
index 05570464ebc89..2e4eabe9f7450 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AEnableProtectionInput.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AEnableProtectionInput.cs
@@ -10,6 +10,7 @@
namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
{
+ using Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
@@ -48,16 +49,19 @@ public A2AEnableProtectionInput()
/// The list of vm managed disk
/// details.
/// The multi vm group name.
+ /// The multi vm group id.
/// The boot diagnostic
/// storage account.
/// The recovery disk encryption
- /// information.
+ /// information (for two pass flows).
/// The recovery availability
/// zone.
/// The recovery Azure virtual
/// network ARM id.
/// The recovery subnet name.
- public A2AEnableProtectionInput(string fabricObjectId = default(string), string recoveryContainerId = default(string), string recoveryResourceGroupId = default(string), string recoveryCloudServiceId = default(string), string recoveryAvailabilitySetId = default(string), string recoveryProximityPlacementGroupId = default(string), IList vmDisks = default(IList), IList vmManagedDisks = default(IList), string multiVmGroupName = default(string), string recoveryBootDiagStorageAccountId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo), string recoveryAvailabilityZone = default(string), string recoveryAzureNetworkId = default(string), string recoverySubnetName = default(string))
+ /// The virtual machine
+ /// scale set Id.
+ public A2AEnableProtectionInput(string fabricObjectId, string recoveryContainerId = default(string), string recoveryResourceGroupId = default(string), string recoveryCloudServiceId = default(string), string recoveryAvailabilitySetId = default(string), string recoveryProximityPlacementGroupId = default(string), IList vmDisks = default(IList), IList vmManagedDisks = default(IList), string multiVmGroupName = default(string), string multiVmGroupId = default(string), string recoveryBootDiagStorageAccountId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo), string recoveryAvailabilityZone = default(string), string recoveryAzureNetworkId = default(string), string recoverySubnetName = default(string), string recoveryVirtualMachineScaleSetId = default(string))
{
FabricObjectId = fabricObjectId;
RecoveryContainerId = recoveryContainerId;
@@ -68,11 +72,13 @@ public A2AEnableProtectionInput()
VmDisks = vmDisks;
VmManagedDisks = vmManagedDisks;
MultiVmGroupName = multiVmGroupName;
+ MultiVmGroupId = multiVmGroupId;
RecoveryBootDiagStorageAccountId = recoveryBootDiagStorageAccountId;
DiskEncryptionInfo = diskEncryptionInfo;
RecoveryAvailabilityZone = recoveryAvailabilityZone;
RecoveryAzureNetworkId = recoveryAzureNetworkId;
RecoverySubnetName = recoverySubnetName;
+ RecoveryVirtualMachineScaleSetId = recoveryVirtualMachineScaleSetId;
CustomInit();
}
@@ -136,6 +142,12 @@ public A2AEnableProtectionInput()
[JsonProperty(PropertyName = "multiVmGroupName")]
public string MultiVmGroupName { get; set; }
+ ///
+ /// Gets or sets the multi vm group id.
+ ///
+ [JsonProperty(PropertyName = "multiVmGroupId")]
+ public string MultiVmGroupId { get; set; }
+
///
/// Gets or sets the boot diagnostic storage account.
///
@@ -143,7 +155,8 @@ public A2AEnableProtectionInput()
public string RecoveryBootDiagStorageAccountId { get; set; }
///
- /// Gets or sets the recovery disk encryption information.
+ /// Gets or sets the recovery disk encryption information (for two pass
+ /// flows).
///
[JsonProperty(PropertyName = "diskEncryptionInfo")]
public DiskEncryptionInfo DiskEncryptionInfo { get; set; }
@@ -166,5 +179,44 @@ public A2AEnableProtectionInput()
[JsonProperty(PropertyName = "recoverySubnetName")]
public string RecoverySubnetName { get; set; }
+ ///
+ /// Gets or sets the virtual machine scale set Id.
+ ///
+ [JsonProperty(PropertyName = "recoveryVirtualMachineScaleSetId")]
+ public string RecoveryVirtualMachineScaleSetId { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (FabricObjectId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "FabricObjectId");
+ }
+ if (VmDisks != null)
+ {
+ foreach (var element in VmDisks)
+ {
+ if (element != null)
+ {
+ element.Validate();
+ }
+ }
+ }
+ if (VmManagedDisks != null)
+ {
+ foreach (var element1 in VmManagedDisks)
+ {
+ if (element1 != null)
+ {
+ element1.Validate();
+ }
+ }
+ }
+ }
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedDiskDetails.cs
index ba81eb50cad4e..22b27bfa76d41 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedDiskDetails.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedDiskDetails.cs
@@ -69,7 +69,11 @@ public A2AProtectedDiskDetails()
/// The key URL / identifier (KEK).
/// The KeyVault resource id for key
/// (KEK).
- public A2AProtectedDiskDetails(string diskUri = default(string), string recoveryAzureStorageAccountId = default(string), string primaryDiskAzureStorageAccountId = default(string), string recoveryDiskUri = default(string), string diskName = default(string), long? diskCapacityInBytes = default(long?), string primaryStagingAzureStorageAccountId = default(string), string diskType = default(string), bool? resyncRequired = default(bool?), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), double? dataPendingInStagingStorageAccountInMB = default(double?), double? dataPendingAtSourceAgentInMB = default(double?), string diskState = default(string), IList allowedDiskLevelOperation = default(IList), bool? isDiskEncrypted = default(bool?), string secretIdentifier = default(string), string dekKeyVaultArmId = default(string), bool? isDiskKeyEncrypted = default(bool?), string keyIdentifier = default(string), string kekKeyVaultArmId = default(string))
+ /// The failover name for the managed
+ /// disk.
+ /// The test failover name for the managed
+ /// disk.
+ public A2AProtectedDiskDetails(string diskUri = default(string), string recoveryAzureStorageAccountId = default(string), string primaryDiskAzureStorageAccountId = default(string), string recoveryDiskUri = default(string), string diskName = default(string), long? diskCapacityInBytes = default(long?), string primaryStagingAzureStorageAccountId = default(string), string diskType = default(string), bool? resyncRequired = default(bool?), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), double? dataPendingInStagingStorageAccountInMB = default(double?), double? dataPendingAtSourceAgentInMB = default(double?), string diskState = default(string), IList allowedDiskLevelOperation = default(IList), bool? isDiskEncrypted = default(bool?), string secretIdentifier = default(string), string dekKeyVaultArmId = default(string), bool? isDiskKeyEncrypted = default(bool?), string keyIdentifier = default(string), string kekKeyVaultArmId = default(string), string failoverDiskName = default(string), string tfoDiskName = default(string))
{
DiskUri = diskUri;
RecoveryAzureStorageAccountId = recoveryAzureStorageAccountId;
@@ -92,6 +96,8 @@ public A2AProtectedDiskDetails()
IsDiskKeyEncrypted = isDiskKeyEncrypted;
KeyIdentifier = keyIdentifier;
KekKeyVaultArmId = kekKeyVaultArmId;
+ FailoverDiskName = failoverDiskName;
+ TfoDiskName = tfoDiskName;
CustomInit();
}
@@ -232,5 +238,17 @@ public A2AProtectedDiskDetails()
[JsonProperty(PropertyName = "kekKeyVaultArmId")]
public string KekKeyVaultArmId { get; set; }
+ ///
+ /// Gets or sets the failover name for the managed disk.
+ ///
+ [JsonProperty(PropertyName = "failoverDiskName")]
+ public string FailoverDiskName { get; set; }
+
+ ///
+ /// Gets or sets the test failover name for the managed disk.
+ ///
+ [JsonProperty(PropertyName = "tfoDiskName")]
+ public string TfoDiskName { get; set; }
+
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedManagedDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedManagedDiskDetails.cs
index b774d7a56957d..c2825bfc962d8 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedManagedDiskDetails.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedManagedDiskDetails.cs
@@ -40,6 +40,8 @@ public A2AProtectedManagedDiskDetails()
/// Id.
/// Recovery replica disk Arm
/// Id.
+ /// Recovery original target
+ /// disk Arm Id.
/// The replica disk type.
/// Its an optional value and will be same as source disk type if not
/// user provided.
@@ -48,6 +50,8 @@ public A2AProtectedManagedDiskDetails()
/// disk type if not user provided.
/// The recovery disk
/// encryption set Id.
+ /// The primary disk
+ /// encryption set Id.
/// The disk name.
/// The disk capacity in
/// bytes.
@@ -84,15 +88,17 @@ public A2AProtectedManagedDiskDetails()
/// disk.
/// The test failover name for the managed
/// disk.
- public A2AProtectedManagedDiskDetails(string diskId = default(string), string recoveryResourceGroupId = default(string), string recoveryTargetDiskId = default(string), string recoveryReplicaDiskId = default(string), string recoveryReplicaDiskAccountType = default(string), string recoveryTargetDiskAccountType = default(string), string recoveryDiskEncryptionSetId = default(string), string diskName = default(string), long? diskCapacityInBytes = default(long?), string primaryStagingAzureStorageAccountId = default(string), string diskType = default(string), bool? resyncRequired = default(bool?), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), double? dataPendingInStagingStorageAccountInMB = default(double?), double? dataPendingAtSourceAgentInMB = default(double?), string diskState = default(string), IList allowedDiskLevelOperation = default(IList), bool? isDiskEncrypted = default(bool?), string secretIdentifier = default(string), string dekKeyVaultArmId = default(string), bool? isDiskKeyEncrypted = default(bool?), string keyIdentifier = default(string), string kekKeyVaultArmId = default(string), string failoverDiskName = default(string), string tfoDiskName = default(string))
+ public A2AProtectedManagedDiskDetails(string diskId = default(string), string recoveryResourceGroupId = default(string), string recoveryTargetDiskId = default(string), string recoveryReplicaDiskId = default(string), string recoveryOrignalTargetDiskId = default(string), string recoveryReplicaDiskAccountType = default(string), string recoveryTargetDiskAccountType = default(string), string recoveryDiskEncryptionSetId = default(string), string primaryDiskEncryptionSetId = default(string), string diskName = default(string), long? diskCapacityInBytes = default(long?), string primaryStagingAzureStorageAccountId = default(string), string diskType = default(string), bool? resyncRequired = default(bool?), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), double? dataPendingInStagingStorageAccountInMB = default(double?), double? dataPendingAtSourceAgentInMB = default(double?), string diskState = default(string), IList allowedDiskLevelOperation = default(IList), bool? isDiskEncrypted = default(bool?), string secretIdentifier = default(string), string dekKeyVaultArmId = default(string), bool? isDiskKeyEncrypted = default(bool?), string keyIdentifier = default(string), string kekKeyVaultArmId = default(string), string failoverDiskName = default(string), string tfoDiskName = default(string))
{
DiskId = diskId;
RecoveryResourceGroupId = recoveryResourceGroupId;
RecoveryTargetDiskId = recoveryTargetDiskId;
RecoveryReplicaDiskId = recoveryReplicaDiskId;
+ RecoveryOrignalTargetDiskId = recoveryOrignalTargetDiskId;
RecoveryReplicaDiskAccountType = recoveryReplicaDiskAccountType;
RecoveryTargetDiskAccountType = recoveryTargetDiskAccountType;
RecoveryDiskEncryptionSetId = recoveryDiskEncryptionSetId;
+ PrimaryDiskEncryptionSetId = primaryDiskEncryptionSetId;
DiskName = diskName;
DiskCapacityInBytes = diskCapacityInBytes;
PrimaryStagingAzureStorageAccountId = primaryStagingAzureStorageAccountId;
@@ -144,6 +150,12 @@ public A2AProtectedManagedDiskDetails()
[JsonProperty(PropertyName = "recoveryReplicaDiskId")]
public string RecoveryReplicaDiskId { get; set; }
+ ///
+ /// Gets or sets recovery original target disk Arm Id.
+ ///
+ [JsonProperty(PropertyName = "recoveryOrignalTargetDiskId")]
+ public string RecoveryOrignalTargetDiskId { 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.
@@ -164,6 +176,12 @@ public A2AProtectedManagedDiskDetails()
[JsonProperty(PropertyName = "recoveryDiskEncryptionSetId")]
public string RecoveryDiskEncryptionSetId { get; set; }
+ ///
+ /// Gets or sets the primary disk encryption set Id.
+ ///
+ [JsonProperty(PropertyName = "primaryDiskEncryptionSetId")]
+ public string PrimaryDiskEncryptionSetId { get; set; }
+
///
/// Gets or sets the disk name.
///
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectionIntentDiskInputDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectionIntentDiskInputDetails.cs
new file mode 100644
index 0000000000000..7a654e3f18036
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectionIntentDiskInputDetails.cs
@@ -0,0 +1,85 @@
+//
+// 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 Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Azure VM unmanaged disk input details.
+ ///
+ public partial class A2AProtectionIntentDiskInputDetails
+ {
+ ///
+ /// Initializes a new instance of the
+ /// A2AProtectionIntentDiskInputDetails class.
+ ///
+ public A2AProtectionIntentDiskInputDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// A2AProtectionIntentDiskInputDetails class.
+ ///
+ /// The disk Uri.
+ /// The recovery
+ /// VHD storage account input.
+ /// The primary
+ /// staging storage account input.
+ public A2AProtectionIntentDiskInputDetails(string diskUri, StorageAccountCustomDetails recoveryAzureStorageAccountCustomInput = default(StorageAccountCustomDetails), StorageAccountCustomDetails primaryStagingStorageAccountCustomInput = default(StorageAccountCustomDetails))
+ {
+ DiskUri = diskUri;
+ RecoveryAzureStorageAccountCustomInput = recoveryAzureStorageAccountCustomInput;
+ PrimaryStagingStorageAccountCustomInput = primaryStagingStorageAccountCustomInput;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the disk Uri.
+ ///
+ [JsonProperty(PropertyName = "diskUri")]
+ public string DiskUri { get; set; }
+
+ ///
+ /// Gets or sets the recovery VHD storage account input.
+ ///
+ [JsonProperty(PropertyName = "recoveryAzureStorageAccountCustomInput")]
+ public StorageAccountCustomDetails RecoveryAzureStorageAccountCustomInput { get; set; }
+
+ ///
+ /// Gets or sets the primary staging storage account input.
+ ///
+ [JsonProperty(PropertyName = "primaryStagingStorageAccountCustomInput")]
+ public StorageAccountCustomDetails PrimaryStagingStorageAccountCustomInput { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (DiskUri == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "DiskUri");
+ }
+ }
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectionIntentManagedDiskInputDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectionIntentManagedDiskInputDetails.cs
new file mode 100644
index 0000000000000..6bcaad0890934
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectionIntentManagedDiskInputDetails.cs
@@ -0,0 +1,126 @@
+//
+// 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 Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Azure VM managed disk input details.
+ ///
+ public partial class A2AProtectionIntentManagedDiskInputDetails
+ {
+ ///
+ /// Initializes a new instance of the
+ /// A2AProtectionIntentManagedDiskInputDetails class.
+ ///
+ public A2AProtectionIntentManagedDiskInputDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// A2AProtectionIntentManagedDiskInputDetails class.
+ ///
+ /// The disk Id.
+ /// The primary
+ /// staging storage account input.
+ /// The recovery
+ /// resource group input.
+ /// 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 recovery disk
+ /// encryption set Id.
+ /// The recovery disk encryption
+ /// information (for one / single pass flows).
+ public A2AProtectionIntentManagedDiskInputDetails(string diskId, StorageAccountCustomDetails primaryStagingStorageAccountCustomInput = default(StorageAccountCustomDetails), RecoveryResourceGroupCustomDetails recoveryResourceGroupCustomInput = default(RecoveryResourceGroupCustomDetails), string recoveryReplicaDiskAccountType = default(string), string recoveryTargetDiskAccountType = default(string), string recoveryDiskEncryptionSetId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo))
+ {
+ DiskId = diskId;
+ PrimaryStagingStorageAccountCustomInput = primaryStagingStorageAccountCustomInput;
+ RecoveryResourceGroupCustomInput = recoveryResourceGroupCustomInput;
+ RecoveryReplicaDiskAccountType = recoveryReplicaDiskAccountType;
+ RecoveryTargetDiskAccountType = recoveryTargetDiskAccountType;
+ RecoveryDiskEncryptionSetId = recoveryDiskEncryptionSetId;
+ DiskEncryptionInfo = diskEncryptionInfo;
+ 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 primary staging storage account input.
+ ///
+ [JsonProperty(PropertyName = "primaryStagingStorageAccountCustomInput")]
+ public StorageAccountCustomDetails PrimaryStagingStorageAccountCustomInput { get; set; }
+
+ ///
+ /// Gets or sets the recovery resource group input.
+ ///
+ [JsonProperty(PropertyName = "recoveryResourceGroupCustomInput")]
+ public RecoveryResourceGroupCustomDetails RecoveryResourceGroupCustomInput { 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 recovery disk encryption set Id.
+ ///
+ [JsonProperty(PropertyName = "recoveryDiskEncryptionSetId")]
+ public string RecoveryDiskEncryptionSetId { get; set; }
+
+ ///
+ /// Gets or sets the recovery disk encryption information (for one /
+ /// single pass flows).
+ ///
+ [JsonProperty(PropertyName = "diskEncryptionInfo")]
+ public DiskEncryptionInfo DiskEncryptionInfo { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (DiskId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "DiskId");
+ }
+ }
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ARecoveryAvailabilityType.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ARecoveryAvailabilityType.cs
new file mode 100644
index 0000000000000..56e7dcf84c888
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ARecoveryAvailabilityType.cs
@@ -0,0 +1,23 @@
+//
+// 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
+{
+
+ ///
+ /// Defines values for A2ARecoveryAvailabilityType.
+ ///
+ public static class A2ARecoveryAvailabilityType
+ {
+ public const string Single = "Single";
+ public const string AvailabilitySet = "AvailabilitySet";
+ public const string AvailabilityZone = "AvailabilityZone";
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationDetails.cs
index 84b86fb23e4dc..00cbb73d00d4a 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationDetails.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationDetails.cs
@@ -34,14 +34,14 @@ public A2AReplicationDetails()
///
/// The fabric specific object Id of the
/// virtual machine.
- /// The initial primary
- /// fabric location.
- /// The initial recovery
- /// fabric location.
/// The initial primary availability
/// zone.
+ /// The initial primary
+ /// fabric location.
/// The initial recovery availability
/// zone.
+ /// The initial recovery
+ /// fabric location.
/// The multi vm group Id.
/// The multi vm group name.
/// Whether Multi VM group is
@@ -86,8 +86,13 @@ public A2AReplicationDetails()
/// The last heartbeat received from the
/// source server.
/// The agent version.
+ /// Agent expiry date.
/// A value indicating
/// whether replication agent update is required.
+ /// Agent certificate expiry
+ /// date.
+ /// A value
+ /// indicating whether agent certificate update is required.
/// The recovery fabric object
/// Id.
/// The protection state for the
@@ -105,21 +110,30 @@ public A2AReplicationDetails()
/// The last RPO value in seconds.
/// The time (in UTC) when the last
/// RPO value was calculated by Protection Service.
+ /// The primary availability
+ /// zone.
/// The recovery availability
/// zone.
/// The encryption type of the VM.
/// Possible values include: 'NotEncrypted', 'OnePassEncrypted',
/// 'TwoPassEncrypted'
- /// The test failover VM name.
+ /// The test failover vm name.
+ /// The recovery azure
+ /// generation.
/// The recovery
/// proximity placement group Id.
- public A2AReplicationDetails(string fabricObjectId = default(string), string initialPrimaryFabricLocation = default(string), string initialRecoveryFabricLocation = default(string), string initialPrimaryZone = default(string), string initialRecoveryZone = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string multiVmGroupCreateOption = default(string), string managementId = default(string), IList protectedDisks = default(IList), IList unprotectedDisks = default(IList), IList protectedManagedDisks = default(IList), string recoveryBootDiagStorageAccountId = default(string), string primaryFabricLocation = default(string), string recoveryFabricLocation = default(string), string osType = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureVMName = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryCloudService = default(string), string recoveryAvailabilitySet = default(string), string selectedRecoveryAzureNetworkId = default(string), string selectedTfoAzureNetworkId = default(string), IList vmNics = default(IList), AzureToAzureVmSyncedConfigDetails vmSyncedConfigDetails = default(AzureToAzureVmSyncedConfigDetails), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string agentVersion = default(string), bool? isReplicationAgentUpdateRequired = default(bool?), string recoveryFabricObjectId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), string lifecycleId = default(string), string testFailoverRecoveryFabricObjectId = default(string), long? rpoInSeconds = default(long?), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), string recoveryAvailabilityZone = default(string), string vmEncryptionType = default(string), string tfoAzureVMName = default(string), string recoveryProximityPlacementGroupId = default(string))
+ /// A value indicating whether
+ /// the auto protection is enabled. Possible values include:
+ /// 'Disabled', 'Enabled'
+ /// The recovery virtual
+ /// machine scale set id.
+ public A2AReplicationDetails(string fabricObjectId = default(string), string initialPrimaryZone = default(string), string initialPrimaryFabricLocation = default(string), string initialRecoveryZone = default(string), string initialRecoveryFabricLocation = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string multiVmGroupCreateOption = default(string), string managementId = default(string), IList protectedDisks = default(IList), IList unprotectedDisks = default(IList), IList protectedManagedDisks = default(IList), string recoveryBootDiagStorageAccountId = default(string), string primaryFabricLocation = default(string), string recoveryFabricLocation = default(string), string osType = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureVMName = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryCloudService = default(string), string recoveryAvailabilitySet = default(string), string selectedRecoveryAzureNetworkId = default(string), string selectedTfoAzureNetworkId = default(string), IList vmNics = default(IList), AzureToAzureVmSyncedConfigDetails vmSyncedConfigDetails = default(AzureToAzureVmSyncedConfigDetails), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string agentVersion = default(string), System.DateTime? agentExpiryDate = default(System.DateTime?), bool? isReplicationAgentUpdateRequired = default(bool?), System.DateTime? agentCertificateExpiryDate = default(System.DateTime?), bool? isReplicationAgentCertificateUpdateRequired = default(bool?), string recoveryFabricObjectId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), string lifecycleId = default(string), string testFailoverRecoveryFabricObjectId = default(string), long? rpoInSeconds = default(long?), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), string primaryAvailabilityZone = default(string), string recoveryAvailabilityZone = default(string), string vmEncryptionType = default(string), string tfoAzureVMName = default(string), string recoveryAzureGeneration = default(string), string recoveryProximityPlacementGroupId = default(string), string autoProtectionOfDataDisk = default(string), string recoveryVirtualMachineScaleSetId = default(string))
{
FabricObjectId = fabricObjectId;
- InitialPrimaryFabricLocation = initialPrimaryFabricLocation;
- InitialRecoveryFabricLocation = initialRecoveryFabricLocation;
InitialPrimaryZone = initialPrimaryZone;
+ InitialPrimaryFabricLocation = initialPrimaryFabricLocation;
InitialRecoveryZone = initialRecoveryZone;
+ InitialRecoveryFabricLocation = initialRecoveryFabricLocation;
MultiVmGroupId = multiVmGroupId;
MultiVmGroupName = multiVmGroupName;
MultiVmGroupCreateOption = multiVmGroupCreateOption;
@@ -144,7 +158,10 @@ public A2AReplicationDetails()
MonitoringJobType = monitoringJobType;
LastHeartbeat = lastHeartbeat;
AgentVersion = agentVersion;
+ AgentExpiryDate = agentExpiryDate;
IsReplicationAgentUpdateRequired = isReplicationAgentUpdateRequired;
+ AgentCertificateExpiryDate = agentCertificateExpiryDate;
+ IsReplicationAgentCertificateUpdateRequired = isReplicationAgentCertificateUpdateRequired;
RecoveryFabricObjectId = recoveryFabricObjectId;
VmProtectionState = vmProtectionState;
VmProtectionStateDescription = vmProtectionStateDescription;
@@ -152,10 +169,14 @@ public A2AReplicationDetails()
TestFailoverRecoveryFabricObjectId = testFailoverRecoveryFabricObjectId;
RpoInSeconds = rpoInSeconds;
LastRpoCalculatedTime = lastRpoCalculatedTime;
+ PrimaryAvailabilityZone = primaryAvailabilityZone;
RecoveryAvailabilityZone = recoveryAvailabilityZone;
VmEncryptionType = vmEncryptionType;
TfoAzureVMName = tfoAzureVMName;
+ RecoveryAzureGeneration = recoveryAzureGeneration;
RecoveryProximityPlacementGroupId = recoveryProximityPlacementGroupId;
+ AutoProtectionOfDataDisk = autoProtectionOfDataDisk;
+ RecoveryVirtualMachineScaleSetId = recoveryVirtualMachineScaleSetId;
CustomInit();
}
@@ -170,30 +191,30 @@ public A2AReplicationDetails()
[JsonProperty(PropertyName = "fabricObjectId")]
public string FabricObjectId { get; set; }
- ///
- /// Gets the initial primary fabric location.
- ///
- [JsonProperty(PropertyName = "initialPrimaryFabricLocation")]
- public string InitialPrimaryFabricLocation { get; private set; }
-
- ///
- /// Gets the initial recovery fabric location.
- ///
- [JsonProperty(PropertyName = "initialRecoveryFabricLocation")]
- public string InitialRecoveryFabricLocation { get; private set; }
-
///
/// Gets the initial primary availability zone.
///
[JsonProperty(PropertyName = "initialPrimaryZone")]
public string InitialPrimaryZone { get; private set; }
+ ///
+ /// Gets the initial primary fabric location.
+ ///
+ [JsonProperty(PropertyName = "initialPrimaryFabricLocation")]
+ public string InitialPrimaryFabricLocation { get; private set; }
+
///
/// Gets the initial recovery availability zone.
///
[JsonProperty(PropertyName = "initialRecoveryZone")]
public string InitialRecoveryZone { get; private set; }
+ ///
+ /// Gets the initial recovery fabric location.
+ ///
+ [JsonProperty(PropertyName = "initialRecoveryFabricLocation")]
+ public string InitialRecoveryFabricLocation { get; private set; }
+
///
/// Gets or sets the multi vm group Id.
///
@@ -341,6 +362,12 @@ public A2AReplicationDetails()
[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 replication agent update is
/// required.
@@ -348,6 +375,19 @@ public A2AReplicationDetails()
[JsonProperty(PropertyName = "isReplicationAgentUpdateRequired")]
public bool? IsReplicationAgentUpdateRequired { get; set; }
+ ///
+ /// Gets agent certificate expiry date.
+ ///
+ [JsonProperty(PropertyName = "agentCertificateExpiryDate")]
+ public System.DateTime? AgentCertificateExpiryDate { get; private set; }
+
+ ///
+ /// Gets or sets a value indicating whether agent certificate update is
+ /// required.
+ ///
+ [JsonProperty(PropertyName = "isReplicationAgentCertificateUpdateRequired")]
+ public bool? IsReplicationAgentCertificateUpdateRequired { get; set; }
+
///
/// Gets or sets the recovery fabric object Id.
///
@@ -396,6 +436,12 @@ public A2AReplicationDetails()
[JsonProperty(PropertyName = "lastRpoCalculatedTime")]
public System.DateTime? LastRpoCalculatedTime { get; set; }
+ ///
+ /// Gets or sets the primary availability zone.
+ ///
+ [JsonProperty(PropertyName = "primaryAvailabilityZone")]
+ public string PrimaryAvailabilityZone { get; set; }
+
///
/// Gets or sets the recovery availability zone.
///
@@ -410,16 +456,35 @@ public A2AReplicationDetails()
public string VmEncryptionType { get; private set; }
///
- /// Gets or sets the test failover VM name.
+ /// Gets or sets the test failover vm name.
///
[JsonProperty(PropertyName = "tfoAzureVMName")]
public string TfoAzureVMName { get; set; }
+ ///
+ /// Gets the recovery azure generation.
+ ///
+ [JsonProperty(PropertyName = "recoveryAzureGeneration")]
+ public string RecoveryAzureGeneration { get; private set; }
+
///
/// Gets or sets the recovery proximity placement group Id.
///
[JsonProperty(PropertyName = "recoveryProximityPlacementGroupId")]
public string RecoveryProximityPlacementGroupId { get; set; }
+ ///
+ /// Gets or sets a value indicating whether the auto protection is
+ /// enabled. Possible values include: 'Disabled', 'Enabled'
+ ///
+ [JsonProperty(PropertyName = "autoProtectionOfDataDisk")]
+ public string AutoProtectionOfDataDisk { get; set; }
+
+ ///
+ /// Gets or sets the recovery virtual machine scale set id.
+ ///
+ [JsonProperty(PropertyName = "recoveryVirtualMachineScaleSetId")]
+ public string RecoveryVirtualMachineScaleSetId { get; set; }
+
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationIntentDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationIntentDetails.cs
new file mode 100644
index 0000000000000..acec692bd0de9
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationIntentDetails.cs
@@ -0,0 +1,253 @@
+//
+// 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 Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// A2A provider specific settings.
+ ///
+ [Newtonsoft.Json.JsonObject("A2A")]
+ public partial class A2AReplicationIntentDetails : ReplicationProtectionIntentProviderSpecificSettings
+ {
+ ///
+ /// Initializes a new instance of the A2AReplicationIntentDetails
+ /// class.
+ ///
+ public A2AReplicationIntentDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the A2AReplicationIntentDetails
+ /// class.
+ ///
+ /// The recovery availability
+ /// type of the virtual machine.
+ /// The fabric specific object Id of the
+ /// virtual machine.
+ /// The primary location for the virtual
+ /// machine.
+ /// The recovery location for the
+ /// virtual machine.
+ /// The recovery subscription Id
+ /// of the virtual machine.
+ /// The list of vm disk details.
+ /// The list of vm managed disk
+ /// details.
+ /// The recovery resource group
+ /// id.
+ /// The protection profile custom
+ /// details.
+ /// The primary staging
+ /// storage account details.
+ /// The recovery availability set
+ /// details.
+ /// The recovery virtual network
+ /// details.
+ /// The recovery
+ /// proximity placement group custom details.
+ /// A value indicating whether
+ /// the auto protection is enabled. Possible values include:
+ /// 'Disabled', 'Enabled'
+ /// The multi vm group name.
+ /// The multi vm group id.
+ /// The boot diagnostic
+ /// storage account.
+ /// The recovery disk encryption
+ /// information (for two pass flows).
+ /// The recovery availability
+ /// zone.
+ public A2AReplicationIntentDetails(string recoveryAvailabilityType, string fabricObjectId = default(string), string primaryLocation = default(string), string recoveryLocation = default(string), string recoverySubscriptionId = default(string), IList vmDisks = default(IList), IList vmManagedDisks = default(IList), string recoveryResourceGroupId = default(string), ProtectionProfileCustomDetails protectionProfile = default(ProtectionProfileCustomDetails), StorageAccountCustomDetails primaryStagingStorageAccount = default(StorageAccountCustomDetails), RecoveryAvailabilitySetCustomDetails recoveryAvailabilitySet = default(RecoveryAvailabilitySetCustomDetails), RecoveryVirtualNetworkCustomDetails recoveryVirtualNetwork = default(RecoveryVirtualNetworkCustomDetails), RecoveryProximityPlacementGroupCustomDetails recoveryProximityPlacementGroup = default(RecoveryProximityPlacementGroupCustomDetails), string autoProtectionOfDataDisk = default(string), string multiVmGroupName = default(string), string multiVmGroupId = default(string), StorageAccountCustomDetails recoveryBootDiagStorageAccount = default(StorageAccountCustomDetails), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo), string recoveryAvailabilityZone = default(string))
+ {
+ FabricObjectId = fabricObjectId;
+ PrimaryLocation = primaryLocation;
+ RecoveryLocation = recoveryLocation;
+ RecoverySubscriptionId = recoverySubscriptionId;
+ VmDisks = vmDisks;
+ VmManagedDisks = vmManagedDisks;
+ RecoveryResourceGroupId = recoveryResourceGroupId;
+ ProtectionProfile = protectionProfile;
+ PrimaryStagingStorageAccount = primaryStagingStorageAccount;
+ RecoveryAvailabilitySet = recoveryAvailabilitySet;
+ RecoveryVirtualNetwork = recoveryVirtualNetwork;
+ RecoveryProximityPlacementGroup = recoveryProximityPlacementGroup;
+ AutoProtectionOfDataDisk = autoProtectionOfDataDisk;
+ MultiVmGroupName = multiVmGroupName;
+ MultiVmGroupId = multiVmGroupId;
+ RecoveryBootDiagStorageAccount = recoveryBootDiagStorageAccount;
+ DiskEncryptionInfo = diskEncryptionInfo;
+ RecoveryAvailabilityZone = recoveryAvailabilityZone;
+ RecoveryAvailabilityType = recoveryAvailabilityType;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the fabric specific object Id of the virtual machine.
+ ///
+ [JsonProperty(PropertyName = "fabricObjectId")]
+ public string FabricObjectId { get; set; }
+
+ ///
+ /// Gets or sets the primary location for the virtual machine.
+ ///
+ [JsonProperty(PropertyName = "primaryLocation")]
+ public string PrimaryLocation { get; set; }
+
+ ///
+ /// Gets or sets the recovery location for the virtual machine.
+ ///
+ [JsonProperty(PropertyName = "recoveryLocation")]
+ public string RecoveryLocation { get; set; }
+
+ ///
+ /// Gets or sets the recovery subscription Id of the virtual machine.
+ ///
+ [JsonProperty(PropertyName = "recoverySubscriptionId")]
+ public string RecoverySubscriptionId { get; set; }
+
+ ///
+ /// Gets or sets the list of vm disk details.
+ ///
+ [JsonProperty(PropertyName = "vmDisks")]
+ public IList VmDisks { get; set; }
+
+ ///
+ /// Gets or sets the list of vm managed disk details.
+ ///
+ [JsonProperty(PropertyName = "vmManagedDisks")]
+ public IList VmManagedDisks { get; set; }
+
+ ///
+ /// Gets or sets the recovery resource group id.
+ ///
+ [JsonProperty(PropertyName = "recoveryResourceGroupId")]
+ public string RecoveryResourceGroupId { get; set; }
+
+ ///
+ /// Gets or sets the protection profile custom details.
+ ///
+ [JsonProperty(PropertyName = "protectionProfile")]
+ public ProtectionProfileCustomDetails ProtectionProfile { get; set; }
+
+ ///
+ /// Gets or sets the primary staging storage account details.
+ ///
+ [JsonProperty(PropertyName = "primaryStagingStorageAccount")]
+ public StorageAccountCustomDetails PrimaryStagingStorageAccount { get; set; }
+
+ ///
+ /// Gets or sets the recovery availability set details.
+ ///
+ [JsonProperty(PropertyName = "recoveryAvailabilitySet")]
+ public RecoveryAvailabilitySetCustomDetails RecoveryAvailabilitySet { get; set; }
+
+ ///
+ /// Gets or sets the recovery virtual network details.
+ ///
+ [JsonProperty(PropertyName = "recoveryVirtualNetwork")]
+ public RecoveryVirtualNetworkCustomDetails RecoveryVirtualNetwork { get; set; }
+
+ ///
+ /// Gets or sets the recovery proximity placement group custom details.
+ ///
+ [JsonProperty(PropertyName = "recoveryProximityPlacementGroup")]
+ public RecoveryProximityPlacementGroupCustomDetails RecoveryProximityPlacementGroup { get; set; }
+
+ ///
+ /// Gets or sets a value indicating whether the auto protection is
+ /// enabled. Possible values include: 'Disabled', 'Enabled'
+ ///
+ [JsonProperty(PropertyName = "autoProtectionOfDataDisk")]
+ public string AutoProtectionOfDataDisk { get; set; }
+
+ ///
+ /// Gets or sets the multi vm group name.
+ ///
+ [JsonProperty(PropertyName = "multiVmGroupName")]
+ public string MultiVmGroupName { get; set; }
+
+ ///
+ /// Gets or sets the multi vm group id.
+ ///
+ [JsonProperty(PropertyName = "multiVmGroupId")]
+ public string MultiVmGroupId { get; set; }
+
+ ///
+ /// Gets or sets the boot diagnostic storage account.
+ ///
+ [JsonProperty(PropertyName = "recoveryBootDiagStorageAccount")]
+ public StorageAccountCustomDetails RecoveryBootDiagStorageAccount { get; set; }
+
+ ///
+ /// Gets or sets the recovery disk encryption information (for two pass
+ /// flows).
+ ///
+ [JsonProperty(PropertyName = "diskEncryptionInfo")]
+ public DiskEncryptionInfo DiskEncryptionInfo { get; set; }
+
+ ///
+ /// Gets or sets the recovery availability zone.
+ ///
+ [JsonProperty(PropertyName = "recoveryAvailabilityZone")]
+ public string RecoveryAvailabilityZone { get; set; }
+
+ ///
+ /// Gets or sets the recovery availability type of the virtual machine.
+ ///
+ [JsonProperty(PropertyName = "recoveryAvailabilityType")]
+ public string RecoveryAvailabilityType { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (RecoveryAvailabilityType == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryAvailabilityType");
+ }
+ if (VmDisks != null)
+ {
+ foreach (var element in VmDisks)
+ {
+ if (element != null)
+ {
+ element.Validate();
+ }
+ }
+ }
+ if (VmManagedDisks != null)
+ {
+ foreach (var element1 in VmManagedDisks)
+ {
+ if (element1 != null)
+ {
+ element1.Validate();
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ASwitchProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ASwitchProtectionInput.cs
index 12342f4c29be1..7ba42f8e95e9c 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ASwitchProtectionInput.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ASwitchProtectionInput.cs
@@ -43,14 +43,18 @@ public A2ASwitchProtectionInput()
/// Valid for V1 scenarios.
/// The recovery availability
/// set.
- /// The recovery
- /// proximity placement group Id.
/// The Policy Id.
/// The boot diagnostic
/// storage account.
+ /// The recovery availability
+ /// zone.
+ /// The recovery
+ /// proximity placement group Id.
+ /// The virtual machine
+ /// scale set id.
/// The recovery disk encryption
/// information.
- 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 recoveryProximityPlacementGroupId = default(string), string policyId = default(string), string recoveryBootDiagStorageAccountId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo))
+ 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), string recoveryAvailabilityZone = default(string), string recoveryProximityPlacementGroupId = default(string), string recoveryVirtualMachineScaleSetId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo))
{
RecoveryContainerId = recoveryContainerId;
VmDisks = vmDisks;
@@ -58,9 +62,11 @@ public A2ASwitchProtectionInput()
RecoveryResourceGroupId = recoveryResourceGroupId;
RecoveryCloudServiceId = recoveryCloudServiceId;
RecoveryAvailabilitySetId = recoveryAvailabilitySetId;
- RecoveryProximityPlacementGroupId = recoveryProximityPlacementGroupId;
PolicyId = policyId;
RecoveryBootDiagStorageAccountId = recoveryBootDiagStorageAccountId;
+ RecoveryAvailabilityZone = recoveryAvailabilityZone;
+ RecoveryProximityPlacementGroupId = recoveryProximityPlacementGroupId;
+ RecoveryVirtualMachineScaleSetId = recoveryVirtualMachineScaleSetId;
DiskEncryptionInfo = diskEncryptionInfo;
CustomInit();
}
@@ -107,12 +113,6 @@ public A2ASwitchProtectionInput()
[JsonProperty(PropertyName = "recoveryAvailabilitySetId")]
public string RecoveryAvailabilitySetId { get; set; }
- ///
- /// Gets or sets the recovery proximity placement group Id.
- ///
- [JsonProperty(PropertyName = "recoveryProximityPlacementGroupId")]
- public string RecoveryProximityPlacementGroupId { get; set; }
-
///
/// Gets or sets the Policy Id.
///
@@ -125,6 +125,24 @@ public A2ASwitchProtectionInput()
[JsonProperty(PropertyName = "recoveryBootDiagStorageAccountId")]
public string RecoveryBootDiagStorageAccountId { get; set; }
+ ///
+ /// Gets or sets the recovery availability zone.
+ ///
+ [JsonProperty(PropertyName = "recoveryAvailabilityZone")]
+ public string RecoveryAvailabilityZone { get; set; }
+
+ ///
+ /// Gets or sets the recovery proximity placement group Id.
+ ///
+ [JsonProperty(PropertyName = "recoveryProximityPlacementGroupId")]
+ public string RecoveryProximityPlacementGroupId { get; set; }
+
+ ///
+ /// Gets or sets the virtual machine scale set id.
+ ///
+ [JsonProperty(PropertyName = "recoveryVirtualMachineScaleSetId")]
+ public string RecoveryVirtualMachineScaleSetId { get; set; }
+
///
/// Gets or sets the recovery disk encryption information.
///
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ATestFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ATestFailoverInput.cs
new file mode 100644
index 0000000000000..c162d5c6c7dba
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ATestFailoverInput.cs
@@ -0,0 +1,66 @@
+//
+// 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 input for test failover.
+ ///
+ [Newtonsoft.Json.JsonObject("A2A")]
+ public partial class A2ATestFailoverInput : TestFailoverProviderSpecificInput
+ {
+ ///
+ /// Initializes a new instance of the A2ATestFailoverInput class.
+ ///
+ public A2ATestFailoverInput()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the A2ATestFailoverInput class.
+ ///
+ /// The recovery point id to be passed to
+ /// test failover to a particular recovery point. In case of latest
+ /// recovery point, null should be passed.
+ /// A value indicating whether
+ /// to use recovery cloud service for TFO or not.
+ public A2ATestFailoverInput(string recoveryPointId = default(string), string cloudServiceCreationOption = default(string))
+ {
+ RecoveryPointId = recoveryPointId;
+ CloudServiceCreationOption = cloudServiceCreationOption;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the recovery point id to be passed to test failover to
+ /// a particular recovery point. In case of latest recovery point, null
+ /// should be passed.
+ ///
+ [JsonProperty(PropertyName = "recoveryPointId")]
+ public string RecoveryPointId { get; set; }
+
+ ///
+ /// Gets or sets a value indicating whether to use recovery cloud
+ /// service for TFO or not.
+ ///
+ [JsonProperty(PropertyName = "cloudServiceCreationOption")]
+ public string CloudServiceCreationOption { get; set; }
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AFailoverProviderInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUnplannedFailoverInput.cs
similarity index 76%
rename from sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AFailoverProviderInput.cs
rename to sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUnplannedFailoverInput.cs
index 1e9ed33b28e9f..a08da451d8668 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AFailoverProviderInput.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUnplannedFailoverInput.cs
@@ -14,28 +14,28 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
using System.Linq;
///
- /// A2A provider specific input for failover.
+ /// A2A provider specific input for unplanned failover.
///
[Newtonsoft.Json.JsonObject("A2A")]
- public partial class A2AFailoverProviderInput : ProviderSpecificFailoverInput
+ public partial class A2AUnplannedFailoverInput : UnplannedFailoverProviderSpecificInput
{
///
- /// Initializes a new instance of the A2AFailoverProviderInput class.
+ /// Initializes a new instance of the A2AUnplannedFailoverInput class.
///
- public A2AFailoverProviderInput()
+ public A2AUnplannedFailoverInput()
{
CustomInit();
}
///
- /// Initializes a new instance of the A2AFailoverProviderInput class.
+ /// Initializes a new instance of the A2AUnplannedFailoverInput class.
///
/// The recovery point id to be passed to
/// failover to a particular recovery point. In case of latest recovery
/// point, null should be passed.
/// A value indicating whether
- /// to use recovery cloud service for TFO or not.
- public A2AFailoverProviderInput(string recoveryPointId = default(string), string cloudServiceCreationOption = default(string))
+ /// to use recovery cloud service for failover or not.
+ public A2AUnplannedFailoverInput(string recoveryPointId = default(string), string cloudServiceCreationOption = default(string))
{
RecoveryPointId = recoveryPointId;
CloudServiceCreationOption = cloudServiceCreationOption;
@@ -57,7 +57,7 @@ public A2AFailoverProviderInput()
///
/// Gets or sets a value indicating whether to use recovery cloud
- /// service for TFO or not.
+ /// service for failover or not.
///
[JsonProperty(PropertyName = "cloudServiceCreationOption")]
public string CloudServiceCreationOption { get; set; }
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUnprotectedDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUnprotectedDiskDetails.cs
index 2619ca0075e71..62057a1099778 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUnprotectedDiskDetails.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUnprotectedDiskDetails.cs
@@ -31,9 +31,13 @@ public A2AUnprotectedDiskDetails()
///
/// The source lun Id for the data
/// disk.
- public A2AUnprotectedDiskDetails(int? diskLunId = default(int?))
+ /// A value indicating whether
+ /// the disk auto protection is enabled. Possible values include:
+ /// 'Disabled', 'Enabled'
+ public A2AUnprotectedDiskDetails(int? diskLunId = default(int?), string diskAutoProtectionStatus = default(string))
{
DiskLunId = diskLunId;
+ DiskAutoProtectionStatus = diskAutoProtectionStatus;
CustomInit();
}
@@ -48,5 +52,12 @@ public A2AUnprotectedDiskDetails()
[JsonProperty(PropertyName = "diskLunId")]
public int? DiskLunId { get; set; }
+ ///
+ /// Gets or sets a value indicating whether the disk auto protection is
+ /// enabled. Possible values include: 'Disabled', 'Enabled'
+ ///
+ [JsonProperty(PropertyName = "diskAutoProtectionStatus")]
+ public string DiskAutoProtectionStatus { get; set; }
+
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUpdateReplicationProtectedItemInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUpdateReplicationProtectedItemInput.cs
index 4045a71afb7e9..cc5ef32cffaae 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUpdateReplicationProtectedItemInput.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUpdateReplicationProtectedItemInput.cs
@@ -44,19 +44,22 @@ public A2AUpdateReplicationProtectedItemInput()
/// storage account.
/// The recovery os disk encryption
/// information.
+ /// The user given name for Test Failover
+ /// VM.
/// The recovery
/// proximity placement group Id.
- /// The user given name for test failover
- /// VM.
- public A2AUpdateReplicationProtectedItemInput(string recoveryCloudServiceId = default(string), string recoveryResourceGroupId = default(string), IList managedDiskUpdateDetails = default(IList), string recoveryBootDiagStorageAccountId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo), string recoveryProximityPlacementGroupId = default(string), string tfoAzureVMName = default(string))
+ /// The recovery virtual
+ /// machine scale set Id.
+ public A2AUpdateReplicationProtectedItemInput(string recoveryCloudServiceId = default(string), string recoveryResourceGroupId = default(string), IList managedDiskUpdateDetails = default(IList), string recoveryBootDiagStorageAccountId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo), string tfoAzureVMName = default(string), string recoveryProximityPlacementGroupId = default(string), string recoveryVirtualMachineScaleSetId = default(string))
{
RecoveryCloudServiceId = recoveryCloudServiceId;
RecoveryResourceGroupId = recoveryResourceGroupId;
ManagedDiskUpdateDetails = managedDiskUpdateDetails;
RecoveryBootDiagStorageAccountId = recoveryBootDiagStorageAccountId;
DiskEncryptionInfo = diskEncryptionInfo;
- RecoveryProximityPlacementGroupId = recoveryProximityPlacementGroupId;
TfoAzureVMName = tfoAzureVMName;
+ RecoveryProximityPlacementGroupId = recoveryProximityPlacementGroupId;
+ RecoveryVirtualMachineScaleSetId = recoveryVirtualMachineScaleSetId;
CustomInit();
}
@@ -95,6 +98,12 @@ public A2AUpdateReplicationProtectedItemInput()
[JsonProperty(PropertyName = "diskEncryptionInfo")]
public DiskEncryptionInfo DiskEncryptionInfo { get; set; }
+ ///
+ /// Gets or sets the user given name for Test Failover VM.
+ ///
+ [JsonProperty(PropertyName = "tfoAzureVMName")]
+ public string TfoAzureVMName { get; set; }
+
///
/// Gets or sets the recovery proximity placement group Id.
///
@@ -102,10 +111,10 @@ public A2AUpdateReplicationProtectedItemInput()
public string RecoveryProximityPlacementGroupId { get; set; }
///
- /// Gets or sets the user given name for test failover VM.
+ /// Gets or sets the recovery virtual machine scale set Id.
///
- [JsonProperty(PropertyName = "tfoAzureVMName")]
- public string TfoAzureVMName { get; set; }
+ [JsonProperty(PropertyName = "recoveryVirtualMachineScaleSetId")]
+ public string RecoveryVirtualMachineScaleSetId { get; set; }
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmDiskInputDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmDiskInputDetails.cs
index c3cda59a247b0..2eba97ba3c0ec 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmDiskInputDetails.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmDiskInputDetails.cs
@@ -10,11 +10,12 @@
namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
{
+ using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
///
- /// Azure VM disk input details.
+ /// A2A disk input details.
///
public partial class A2AVmDiskInputDetails
{
@@ -34,7 +35,7 @@ public A2AVmDiskInputDetails()
/// storage account Id.
/// The primary
/// staging storage account Id.
- public A2AVmDiskInputDetails(string diskUri = default(string), string recoveryAzureStorageAccountId = default(string), string primaryStagingAzureStorageAccountId = default(string))
+ public A2AVmDiskInputDetails(string diskUri, string recoveryAzureStorageAccountId, string primaryStagingAzureStorageAccountId)
{
DiskUri = diskUri;
RecoveryAzureStorageAccountId = recoveryAzureStorageAccountId;
@@ -65,5 +66,26 @@ public A2AVmDiskInputDetails()
[JsonProperty(PropertyName = "primaryStagingAzureStorageAccountId")]
public string PrimaryStagingAzureStorageAccountId { get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (DiskUri == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "DiskUri");
+ }
+ if (RecoveryAzureStorageAccountId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryAzureStorageAccountId");
+ }
+ if (PrimaryStagingAzureStorageAccountId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "PrimaryStagingAzureStorageAccountId");
+ }
+ }
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskInputDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskInputDetails.cs
index e6006fabbafc9..1348e6c180553 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskInputDetails.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskInputDetails.cs
@@ -10,11 +10,12 @@
namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
{
+ using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
///
- /// Azure VM managed disk input details.
+ /// A2A managed disk input details.
///
public partial class A2AVmManagedDiskInputDetails
{
@@ -46,7 +47,7 @@ public A2AVmManagedDiskInputDetails()
/// encryption set Id.
/// The recovery disk encryption
/// information (for one / single pass flows).
- public A2AVmManagedDiskInputDetails(string diskId = default(string), string primaryStagingAzureStorageAccountId = default(string), string recoveryResourceGroupId = default(string), string recoveryReplicaDiskAccountType = default(string), string recoveryTargetDiskAccountType = default(string), string recoveryDiskEncryptionSetId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo))
+ public A2AVmManagedDiskInputDetails(string diskId, string primaryStagingAzureStorageAccountId, string recoveryResourceGroupId, string recoveryReplicaDiskAccountType = default(string), string recoveryTargetDiskAccountType = default(string), string recoveryDiskEncryptionSetId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo))
{
DiskId = diskId;
PrimaryStagingAzureStorageAccountId = primaryStagingAzureStorageAccountId;
@@ -108,5 +109,26 @@ public A2AVmManagedDiskInputDetails()
[JsonProperty(PropertyName = "diskEncryptionInfo")]
public DiskEncryptionInfo DiskEncryptionInfo { get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (DiskId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "DiskId");
+ }
+ if (PrimaryStagingAzureStorageAccountId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "PrimaryStagingAzureStorageAccountId");
+ }
+ if (RecoveryResourceGroupId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryResourceGroupId");
+ }
+ }
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskUpdateDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskUpdateDetails.cs
index fa03585d2cfd5..918a8de29bb5a 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskUpdateDetails.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskUpdateDetails.cs
@@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
using System.Linq;
///
- /// Azure VM managed disk update input details.
+ /// A2A Vm managed disk update details.
///
public partial class A2AVmManagedDiskUpdateDetails
{
@@ -36,8 +36,8 @@ public A2AVmManagedDiskUpdateDetails()
/// before failover.
/// The replica disk type
/// before failover.
- /// The recovery disk encryption
- /// information (for one / single pass flows).
+ /// The recovery os disk encryption
+ /// information.
/// The target disk name for unplanned
/// failover operation.
/// The target disk name for test failover
@@ -77,8 +77,7 @@ public A2AVmManagedDiskUpdateDetails()
public string RecoveryReplicaDiskAccountType { get; set; }
///
- /// Gets or sets the recovery disk encryption information (for one /
- /// single pass flows).
+ /// Gets or sets the recovery os disk encryption information.
///
[JsonProperty(PropertyName = "diskEncryptionInfo")]
public DiskEncryptionInfo DiskEncryptionInfo { get; set; }
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AZoneDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AZoneDetails.cs
new file mode 100644
index 0000000000000..b4bc38b6a84ae
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AZoneDetails.cs
@@ -0,0 +1,59 @@
+//
+// 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;
+
+ ///
+ /// Zone details data.
+ ///
+ public partial class A2AZoneDetails
+ {
+ ///
+ /// Initializes a new instance of the A2AZoneDetails class.
+ ///
+ public A2AZoneDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the A2AZoneDetails class.
+ ///
+ /// Source zone info.
+ /// The target zone info.
+ public A2AZoneDetails(string source = default(string), string target = default(string))
+ {
+ Source = source;
+ Target = target;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets source zone info.
+ ///
+ [JsonProperty(PropertyName = "source")]
+ public string Source { get; set; }
+
+ ///
+ /// Gets or sets the target zone info.
+ ///
+ [JsonProperty(PropertyName = "target")]
+ public string Target { get; set; }
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddDisksInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddDisksInput.cs
index 4e6224bb5085b..a0e278f9ee47f 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddDisksInput.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddDisksInput.cs
@@ -47,5 +47,18 @@ public AddDisksInput()
[JsonProperty(PropertyName = "properties")]
public AddDisksInputProperties Properties { get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Properties != null)
+ {
+ Properties.Validate();
+ }
+ }
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddDisksInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddDisksInputProperties.cs
index 65a8fcffe6e20..d9baff412a2fa 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddDisksInputProperties.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddDisksInputProperties.cs
@@ -10,6 +10,7 @@
namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
{
+ using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
@@ -34,7 +35,7 @@ public AddDisksInputProperties()
/// AzureEnableProtectionInput object. For San provider, it will be
/// SanEnableProtectionInput object. For HyperVReplicaAzure provider,
/// it can be null.
- public AddDisksInputProperties(AddDisksProviderSpecificInput providerSpecificDetails = default(AddDisksProviderSpecificInput))
+ public AddDisksInputProperties(AddDisksProviderSpecificInput providerSpecificDetails)
{
ProviderSpecificDetails = providerSpecificDetails;
CustomInit();
@@ -54,5 +55,18 @@ public AddDisksInputProperties()
[JsonProperty(PropertyName = "providerSpecificDetails")]
public AddDisksProviderSpecificInput ProviderSpecificDetails { get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (ProviderSpecificDetails == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "ProviderSpecificDetails");
+ }
+ }
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddRecoveryServicesProviderInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddRecoveryServicesProviderInputProperties.cs
index 67b7b01b2476f..021833f83923f 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddRecoveryServicesProviderInputProperties.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddRecoveryServicesProviderInputProperties.cs
@@ -38,11 +38,19 @@ public AddRecoveryServicesProviderInputProperties()
/// input for DRA authentication.
/// The identity provider
/// input for resource access.
- public AddRecoveryServicesProviderInputProperties(string machineName, IdentityProviderInput authenticationIdentityInput, IdentityProviderInput resourceAccessIdentityInput)
+ /// The Id of the machine where the provider is
+ /// getting added.
+ /// The Bios Id of the machine.
+ /// The identity
+ /// provider input for data plane authentication.
+ public AddRecoveryServicesProviderInputProperties(string machineName, IdentityProviderInput authenticationIdentityInput, IdentityProviderInput resourceAccessIdentityInput, string machineId = default(string), string biosId = default(string), IdentityProviderInput dataPlaneAuthenticationIdentityInput = default(IdentityProviderInput))
{
MachineName = machineName;
+ MachineId = machineId;
+ BiosId = biosId;
AuthenticationIdentityInput = authenticationIdentityInput;
ResourceAccessIdentityInput = resourceAccessIdentityInput;
+ DataPlaneAuthenticationIdentityInput = dataPlaneAuthenticationIdentityInput;
CustomInit();
}
@@ -58,6 +66,19 @@ public AddRecoveryServicesProviderInputProperties(string machineName, IdentityPr
[JsonProperty(PropertyName = "machineName")]
public string MachineName { get; set; }
+ ///
+ /// Gets or sets the Id of the machine where the provider is getting
+ /// added.
+ ///
+ [JsonProperty(PropertyName = "machineId")]
+ public string MachineId { get; set; }
+
+ ///
+ /// Gets or sets the Bios Id of the machine.
+ ///
+ [JsonProperty(PropertyName = "biosId")]
+ public string BiosId { get; set; }
+
///
/// Gets or sets the identity provider input for DRA authentication.
///
@@ -70,6 +91,13 @@ public AddRecoveryServicesProviderInputProperties(string machineName, IdentityPr
[JsonProperty(PropertyName = "resourceAccessIdentityInput")]
public IdentityProviderInput ResourceAccessIdentityInput { get; set; }
+ ///
+ /// Gets or sets the identity provider input for data plane
+ /// authentication.
+ ///
+ [JsonProperty(PropertyName = "dataPlaneAuthenticationIdentityInput")]
+ public IdentityProviderInput DataPlaneAuthenticationIdentityInput { get; set; }
+
///
/// Validate the object.
///
@@ -98,6 +126,10 @@ public virtual void Validate()
{
ResourceAccessIdentityInput.Validate();
}
+ if (DataPlaneAuthenticationIdentityInput != null)
+ {
+ DataPlaneAuthenticationIdentityInput.Validate();
+ }
}
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentDetails.cs
new file mode 100644
index 0000000000000..129b8b99e431c
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentDetails.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.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Agent details.
+ ///
+ public partial class AgentDetails
+ {
+ ///
+ /// Initializes a new instance of the AgentDetails class.
+ ///
+ public AgentDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the AgentDetails class.
+ ///
+ /// The Id of the agent running on the
+ /// server.
+ /// The Id of the machine to which the agent is
+ /// registered.
+ /// The machine BIOS Id.
+ /// The machine FQDN.
+ /// The disks.
+ public AgentDetails(string agentId = default(string), string machineId = default(string), string biosId = default(string), string fqdn = default(string), IList disks = default(IList))
+ {
+ AgentId = agentId;
+ MachineId = machineId;
+ BiosId = biosId;
+ Fqdn = fqdn;
+ Disks = disks;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the Id of the agent running on the server.
+ ///
+ [JsonProperty(PropertyName = "agentId")]
+ public string AgentId { get; private set; }
+
+ ///
+ /// Gets the Id of the machine to which the agent is registered.
+ ///
+ [JsonProperty(PropertyName = "machineId")]
+ public string MachineId { get; private set; }
+
+ ///
+ /// Gets the machine BIOS Id.
+ ///
+ [JsonProperty(PropertyName = "biosId")]
+ public string BiosId { get; private set; }
+
+ ///
+ /// Gets the machine FQDN.
+ ///
+ [JsonProperty(PropertyName = "fqdn")]
+ public string Fqdn { get; private set; }
+
+ ///
+ /// Gets the disks.
+ ///
+ [JsonProperty(PropertyName = "disks")]
+ public IList Disks { get; private set; }
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentDiskDetails.cs
new file mode 100644
index 0000000000000..476dc7a684ffc
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentDiskDetails.cs
@@ -0,0 +1,84 @@
+//
+// 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;
+
+ ///
+ /// Agent disk details.
+ ///
+ public partial class AgentDiskDetails
+ {
+ ///
+ /// Initializes a new instance of the AgentDiskDetails class.
+ ///
+ public AgentDiskDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the AgentDiskDetails class.
+ ///
+ /// The disk Id.
+ /// The disk name.
+ /// A value indicating whether the disk is the
+ /// OS disk.
+ /// The disk capacity in bytes.
+ /// The lun of disk.
+ public AgentDiskDetails(string diskId = default(string), string diskName = default(string), string isOSDisk = default(string), long? capacityInBytes = default(long?), int? lunId = default(int?))
+ {
+ DiskId = diskId;
+ DiskName = diskName;
+ IsOSDisk = isOSDisk;
+ CapacityInBytes = capacityInBytes;
+ LunId = lunId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the disk Id.
+ ///
+ [JsonProperty(PropertyName = "diskId")]
+ public string DiskId { get; private set; }
+
+ ///
+ /// Gets the disk name.
+ ///
+ [JsonProperty(PropertyName = "diskName")]
+ public string DiskName { get; private set; }
+
+ ///
+ /// Gets a value indicating whether the disk is the OS disk.
+ ///
+ [JsonProperty(PropertyName = "isOSDisk")]
+ public string IsOSDisk { get; private set; }
+
+ ///
+ /// Gets the disk capacity in bytes.
+ ///
+ [JsonProperty(PropertyName = "capacityInBytes")]
+ public long? CapacityInBytes { get; private set; }
+
+ ///
+ /// Gets the lun of disk.
+ ///
+ [JsonProperty(PropertyName = "lunId")]
+ public int? LunId { get; private set; }
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentUpgradeBlockedReason.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentUpgradeBlockedReason.cs
new file mode 100644
index 0000000000000..df00a65cbc536
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentUpgradeBlockedReason.cs
@@ -0,0 +1,34 @@
+//
+// 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
+{
+
+ ///
+ /// Defines values for AgentUpgradeBlockedReason.
+ ///
+ public static class AgentUpgradeBlockedReason
+ {
+ public const string AlreadyOnLatestVersion = "AlreadyOnLatestVersion";
+ public const string RebootRequired = "RebootRequired";
+ public const string AgentNoHeartbeat = "AgentNoHeartbeat";
+ public const string RcmProxyNoHeartbeat = "RcmProxyNoHeartbeat";
+ public const string ProcessServerNoHeartbeat = "ProcessServerNoHeartbeat";
+ public const string IncompatibleApplianceVersion = "IncompatibleApplianceVersion";
+ public const string NotProtected = "NotProtected";
+ public const string UnsupportedProtectionScenario = "UnsupportedProtectionScenario";
+ public const string DistroIsNotReported = "DistroIsNotReported";
+ public const string DistroNotSupportedForUpgrade = "DistroNotSupportedForUpgrade";
+ public const string MissingUpgradePath = "MissingUpgradePath";
+ public const string InvalidAgentVersion = "InvalidAgentVersion";
+ public const string InvalidDriverVersion = "InvalidDriverVersion";
+ public const string Unknown = "Unknown";
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ApplyRecoveryPointInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ApplyRecoveryPointInput.cs
index f7ad85e5a4faa..ef7dabd5a7a62 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ApplyRecoveryPointInput.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ApplyRecoveryPointInput.cs
@@ -10,6 +10,7 @@
namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
{
+ using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
@@ -31,7 +32,7 @@ public ApplyRecoveryPointInput()
///
/// The input properties to apply recovery
/// point.
- public ApplyRecoveryPointInput(ApplyRecoveryPointInputProperties properties = default(ApplyRecoveryPointInputProperties))
+ public ApplyRecoveryPointInput(ApplyRecoveryPointInputProperties properties)
{
Properties = properties;
CustomInit();
@@ -48,5 +49,22 @@ public ApplyRecoveryPointInput()
[JsonProperty(PropertyName = "properties")]
public ApplyRecoveryPointInputProperties Properties { get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Properties == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Properties");
+ }
+ if (Properties != null)
+ {
+ Properties.Validate();
+ }
+ }
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ApplyRecoveryPointInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ApplyRecoveryPointInputProperties.cs
index 6a036a119d234..8bc21a6c01047 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ApplyRecoveryPointInputProperties.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ApplyRecoveryPointInputProperties.cs
@@ -10,6 +10,7 @@
namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
{
+ using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
@@ -31,10 +32,10 @@ public ApplyRecoveryPointInputProperties()
/// Initializes a new instance of the ApplyRecoveryPointInputProperties
/// class.
///
- /// The recovery point Id.
/// Provider specific input for
/// applying recovery point.
- public ApplyRecoveryPointInputProperties(string recoveryPointId = default(string), ApplyRecoveryPointProviderSpecificInput providerSpecificDetails = default(ApplyRecoveryPointProviderSpecificInput))
+ /// The recovery point Id.
+ public ApplyRecoveryPointInputProperties(ApplyRecoveryPointProviderSpecificInput providerSpecificDetails, string recoveryPointId = default(string))
{
RecoveryPointId = recoveryPointId;
ProviderSpecificDetails = providerSpecificDetails;
@@ -58,5 +59,18 @@ public ApplyRecoveryPointInputProperties()
[JsonProperty(PropertyName = "providerSpecificDetails")]
public ApplyRecoveryPointProviderSpecificInput ProviderSpecificDetails { get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (ProviderSpecificDetails == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "ProviderSpecificDetails");
+ }
+ }
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MultiVmSyncStatus.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AutoProtectionOfDataDisk.cs
similarity index 85%
rename from sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MultiVmSyncStatus.cs
rename to sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AutoProtectionOfDataDisk.cs
index 3193f4eae5dcc..0d5b2f2e37db2 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MultiVmSyncStatus.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AutoProtectionOfDataDisk.cs
@@ -12,11 +12,11 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
{
///
- /// Defines values for MultiVmSyncStatus.
+ /// Defines values for AutoProtectionOfDataDisk.
///
- public static class MultiVmSyncStatus
+ public static class AutoProtectionOfDataDisk
{
- public const string Enabled = "Enabled";
public const string Disabled = "Disabled";
+ public const string Enabled = "Enabled";
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureFabricSpecificDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureFabricSpecificDetails.cs
index ac72ec3fd2aee..a2393d0986ff5 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureFabricSpecificDetails.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureFabricSpecificDetails.cs
@@ -35,10 +35,12 @@ public AzureFabricSpecificDetails()
/// The Location for the Azure fabric.
/// The container Ids for the Azure
/// fabric.
- public AzureFabricSpecificDetails(string location = default(string), IList containerIds = default(IList))
+ /// The zones.
+ public AzureFabricSpecificDetails(string location = default(string), IList containerIds = default(IList), IList zones = default(IList))
{
Location = location;
ContainerIds = containerIds;
+ Zones = zones;
CustomInit();
}
@@ -59,5 +61,11 @@ public AzureFabricSpecificDetails()
[JsonProperty(PropertyName = "containerIds")]
public IList ContainerIds { get; set; }
+ ///
+ /// Gets or sets the zones.
+ ///
+ [JsonProperty(PropertyName = "zones")]
+ public IList Zones { get; set; }
+
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureToAzureCreateNetworkMappingInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureToAzureCreateNetworkMappingInput.cs
index 179ca4b572496..1a71a3e954b56 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureToAzureCreateNetworkMappingInput.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureToAzureCreateNetworkMappingInput.cs
@@ -10,6 +10,7 @@
namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
{
+ using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
@@ -34,7 +35,7 @@ public AzureToAzureCreateNetworkMappingInput()
/// AzureToAzureCreateNetworkMappingInput class.
///
/// The primary azure vnet Id.
- public AzureToAzureCreateNetworkMappingInput(string primaryNetworkId = default(string))
+ public AzureToAzureCreateNetworkMappingInput(string primaryNetworkId)
{
PrimaryNetworkId = primaryNetworkId;
CustomInit();
@@ -51,5 +52,18 @@ public AzureToAzureCreateNetworkMappingInput()
[JsonProperty(PropertyName = "primaryNetworkId")]
public string PrimaryNetworkId { get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (PrimaryNetworkId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "PrimaryNetworkId");
+ }
+ }
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateNetworkMappingInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateNetworkMappingInput.cs
index a6f336202d277..6c7b8d4410862 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateNetworkMappingInput.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateNetworkMappingInput.cs
@@ -10,6 +10,7 @@
namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
{
+ using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
@@ -31,7 +32,7 @@ public CreateNetworkMappingInput()
///
/// Input properties for creating network
/// mapping.
- public CreateNetworkMappingInput(CreateNetworkMappingInputProperties properties = default(CreateNetworkMappingInputProperties))
+ public CreateNetworkMappingInput(CreateNetworkMappingInputProperties properties)
{
Properties = properties;
CustomInit();
@@ -48,5 +49,22 @@ public CreateNetworkMappingInput()
[JsonProperty(PropertyName = "properties")]
public CreateNetworkMappingInputProperties Properties { get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Properties == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Properties");
+ }
+ if (Properties != null)
+ {
+ Properties.Validate();
+ }
+ }
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateNetworkMappingInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateNetworkMappingInputProperties.cs
index c4c45f44896ee..c76cabe16b55c 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateNetworkMappingInputProperties.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateNetworkMappingInputProperties.cs
@@ -10,6 +10,7 @@
namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
{
+ using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
@@ -31,11 +32,11 @@ public CreateNetworkMappingInputProperties()
/// Initializes a new instance of the
/// CreateNetworkMappingInputProperties class.
///
- /// Recovery fabric Name.
/// Recovery network Id.
+ /// Recovery fabric Name.
/// Fabric specific input
/// properties.
- public CreateNetworkMappingInputProperties(string recoveryFabricName = default(string), string recoveryNetworkId = default(string), FabricSpecificCreateNetworkMappingInput fabricSpecificDetails = default(FabricSpecificCreateNetworkMappingInput))
+ public CreateNetworkMappingInputProperties(string recoveryNetworkId, string recoveryFabricName = default(string), FabricSpecificCreateNetworkMappingInput fabricSpecificDetails = default(FabricSpecificCreateNetworkMappingInput))
{
RecoveryFabricName = recoveryFabricName;
RecoveryNetworkId = recoveryNetworkId;
@@ -66,5 +67,18 @@ public CreateNetworkMappingInputProperties()
[JsonProperty(PropertyName = "fabricSpecificDetails")]
public FabricSpecificCreateNetworkMappingInput FabricSpecificDetails { get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (RecoveryNetworkId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryNetworkId");
+ }
+ }
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentInput.cs
new file mode 100644
index 0000000000000..2489b26446c43
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentInput.cs
@@ -0,0 +1,54 @@
+//
+// 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;
+
+ ///
+ /// Create protection intent input.
+ ///
+ public partial class CreateProtectionIntentInput
+ {
+ ///
+ /// Initializes a new instance of the CreateProtectionIntentInput
+ /// class.
+ ///
+ public CreateProtectionIntentInput()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the CreateProtectionIntentInput
+ /// class.
+ ///
+ /// Create protection intent input
+ /// properties.
+ public CreateProtectionIntentInput(CreateProtectionIntentProperties properties = default(CreateProtectionIntentProperties))
+ {
+ Properties = properties;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets create protection intent input properties.
+ ///
+ [JsonProperty(PropertyName = "properties")]
+ public CreateProtectionIntentProperties Properties { get; set; }
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentProperties.cs
new file mode 100644
index 0000000000000..7a410208e8b74
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentProperties.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;
+
+ ///
+ /// Create protection intent input properties.
+ ///
+ public partial class CreateProtectionIntentProperties
+ {
+ ///
+ /// Initializes a new instance of the CreateProtectionIntentProperties
+ /// class.
+ ///
+ public CreateProtectionIntentProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the CreateProtectionIntentProperties
+ /// class.
+ ///
+ /// The ReplicationProviderInput.
+ /// For A2A provider, it will be A2ACreateProtectionIntentInput
+ /// object.
+ public CreateProtectionIntentProperties(CreateProtectionIntentProviderSpecificDetails providerSpecificDetails = default(CreateProtectionIntentProviderSpecificDetails))
+ {
+ ProviderSpecificDetails = providerSpecificDetails;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the ReplicationProviderInput. For A2A provider, it
+ /// will be A2ACreateProtectionIntentInput object.
+ ///
+ [JsonProperty(PropertyName = "providerSpecificDetails")]
+ public CreateProtectionIntentProviderSpecificDetails ProviderSpecificDetails { get; set; }
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SanEnableProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentProviderSpecificDetails.cs
similarity index 69%
rename from sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SanEnableProtectionInput.cs
rename to sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentProviderSpecificDetails.cs
index 81e5ac538a713..2e5993ab38cde 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SanEnableProtectionInput.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentProviderSpecificDetails.cs
@@ -10,19 +10,18 @@
namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
{
- using Newtonsoft.Json;
using System.Linq;
///
- /// San enable protection provider specific input.
+ /// Create protection intent provider specific input.
///
- [Newtonsoft.Json.JsonObject("San")]
- public partial class SanEnableProtectionInput : EnableProtectionProviderSpecificInput
+ public partial class CreateProtectionIntentProviderSpecificDetails
{
///
- /// Initializes a new instance of the SanEnableProtectionInput class.
+ /// Initializes a new instance of the
+ /// CreateProtectionIntentProviderSpecificDetails class.
///
- public SanEnableProtectionInput()
+ public CreateProtectionIntentProviderSpecificDetails()
{
CustomInit();
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CurrentJobDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CurrentJobDetails.cs
index 28c33e4346306..33fa95e5e0f35 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CurrentJobDetails.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CurrentJobDetails.cs
@@ -46,22 +46,22 @@ public CurrentJobDetails()
partial void CustomInit();
///
- /// Gets or sets the job name.
+ /// Gets the job name.
///
[JsonProperty(PropertyName = "jobName")]
- public string JobName { get; set; }
+ public string JobName { get; private set; }
///
- /// Gets or sets the ARM Id of the job being executed.
+ /// Gets the ARM Id of the job being executed.
///
[JsonProperty(PropertyName = "jobId")]
- public string JobId { get; set; }
+ public string JobId { get; private set; }
///
- /// Gets or sets the start time of the job.
+ /// Gets the start time of the job.
///
[JsonProperty(PropertyName = "startTime")]
- public System.DateTime? StartTime { get; set; }
+ public System.DateTime? StartTime { get; private set; }
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DataStore.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DataStore.cs
index 3d9aae721cea1..7709f66edcfca 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DataStore.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DataStore.cs
@@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
using System.Linq;
///
- /// The data store details of the MT.
+ /// The datastore details of the MT.
///
public partial class DataStore
{
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DisableProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DisableProtectionInput.cs
index 1c00d9046f7d6..4705b72d94e8e 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DisableProtectionInput.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DisableProtectionInput.cs
@@ -10,6 +10,7 @@
namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
{
+ using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
@@ -31,7 +32,7 @@ public DisableProtectionInput()
///
/// Disable protection input
/// properties.
- public DisableProtectionInput(DisableProtectionInputProperties properties = default(DisableProtectionInputProperties))
+ public DisableProtectionInput(DisableProtectionInputProperties properties)
{
Properties = properties;
CustomInit();
@@ -48,5 +49,18 @@ public DisableProtectionInput()
[JsonProperty(PropertyName = "properties")]
public DisableProtectionInputProperties Properties { get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Properties == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Properties");
+ }
+ }
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskDetails.cs
index 891e90ea58092..cc40139a924df 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskDetails.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskDetails.cs
@@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
using System.Linq;
///
- /// On-prem disk details data.
+ /// Onprem disk details data.
///
public partial class DiskDetails
{
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskEncryptionKeyInfo.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskEncryptionKeyInfo.cs
index 14c7733603c04..9125876971ce7 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskEncryptionKeyInfo.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskEncryptionKeyInfo.cs
@@ -30,8 +30,8 @@ public DiskEncryptionKeyInfo()
///
/// Initializes a new instance of the DiskEncryptionKeyInfo class.
///
- /// The secret url / identifier.
- /// The KeyVault resource ARM id
+ /// The secret url / identifier.
+ /// The KeyVault resource ARM id
/// for secret.
public DiskEncryptionKeyInfo(string secretIdentifier = default(string), string keyVaultResourceArmId = default(string))
{
@@ -46,13 +46,13 @@ public DiskEncryptionKeyInfo()
partial void CustomInit();
///
- /// Gets or sets the secret url / identifier.
+ /// Gets or sets the secret url / identifier.
///
[JsonProperty(PropertyName = "secretIdentifier")]
public string SecretIdentifier { get; set; }
///
- /// Gets or sets the KeyVault resource ARM id for secret.
+ /// Gets or sets the KeyVault resource ARM id for secret.
///
[JsonProperty(PropertyName = "keyVaultResourceArmId")]
public string KeyVaultResourceArmId { get; set; }
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskReplicationProgressHealth.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskReplicationProgressHealth.cs
new file mode 100644
index 0000000000000..f610ba6cec094
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskReplicationProgressHealth.cs
@@ -0,0 +1,25 @@
+//
+// 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
+{
+
+ ///
+ /// Defines values for DiskReplicationProgressHealth.
+ ///
+ public static class DiskReplicationProgressHealth
+ {
+ public const string None = "None";
+ public const string InProgress = "InProgress";
+ public const string SlowProgress = "SlowProgress";
+ public const string NoProgress = "NoProgress";
+ public const string Queued = "Queued";
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/Display.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/Display.cs
index 4997e3127dfbf..9ab745cb49303 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/Display.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/Display.cs
@@ -34,32 +34,32 @@ public Display()
/// Initializes a new instance of the Display class.
///
/// The provider. The localized friendly form of
- /// the resource provider name – it is expected to also include the
+ /// the resource provider name - it is expected to also include the
/// publisher/company responsible. It should use Title Casing and begin
/// with "Microsoft" for 1st party services. e.g. "Microsoft Monitoring
- /// Insights" or "Microsoft Compute."
+ /// Insights" or "Microsoft Compute.".
/// The resource. The localized friendly form of
- /// the resource related to this action/operation – it should match the
+ /// the resource related to this action/operation - it should match the
/// public documentation for the resource provider. It should use Title
/// Casing. This value should be unique for a particular URL type (e.g.
- /// nested types should *not* reuse their parent’s display.resource
+ /// nested types should *not* reuse their parent's display.resource
/// field). e.g. "Virtual Machines" or "Scheduler Job Collections", or
- /// "Virtual Machine VM Sizes" or "Scheduler Jobs"
+ /// "Virtual Machine VM Sizes" or "Scheduler Jobs".
/// The operation. The localized friendly name
/// for the operation, as it should be shown to the user. It should be
/// concise (to fit in drop downs) but clear (i.e. self-documenting).
/// It should use Title Casing. Prescriptive guidance: Read Create or
- /// Update Delete 'ActionName'
+ /// Update Delete 'ActionName'.
/// The description. The localized friendly
/// description for the operation, as it should be shown to the user.
- /// It should be thorough, yet concise – it will be used in tool tips
+ /// It should be thorough, yet concise - it will be used in tool tips
/// and detailed views. Prescriptive guidance for namespaces: Read any
/// 'display.provider' resource Create or Update any 'display.provider'
/// resource Delete any 'display.provider' resource Perform any other
/// action on any 'display.provider' resource Prescriptive guidance for
/// namespaces: Read any 'display.resource' Create or Update any
/// 'display.resource' Delete any 'display.resource' 'ActionName' any
- /// 'display.resources'
+ /// 'display.resources'.
public Display(string provider = default(string), string resource = default(string), string operation = default(string), string description = default(string))
{
Provider = provider;
@@ -76,22 +76,22 @@ public Display()
///
/// Gets or sets the provider. The localized friendly form of the
- /// resource provider name – it is expected to also include the
+ /// resource provider name - it is expected to also include the
/// publisher/company responsible. It should use Title Casing and begin
/// with "Microsoft" for 1st party services. e.g. "Microsoft Monitoring
- /// Insights" or "Microsoft Compute."
+ /// Insights" or "Microsoft Compute.".
///
[JsonProperty(PropertyName = "provider")]
public string Provider { get; set; }
///
/// Gets or sets the resource. The localized friendly form of the
- /// resource related to this action/operation – it should match the
+ /// resource related to this action/operation - it should match the
/// public documentation for the resource provider. It should use Title
/// Casing. This value should be unique for a particular URL type (e.g.
- /// nested types should *not* reuse their parent’s display.resource
+ /// nested types should *not* reuse their parent's display.resource
/// field). e.g. "Virtual Machines" or "Scheduler Job Collections", or
- /// "Virtual Machine VM Sizes" or "Scheduler Jobs"
+ /// "Virtual Machine VM Sizes" or "Scheduler Jobs".
///
[JsonProperty(PropertyName = "resource")]
public string Resource { get; set; }
@@ -101,7 +101,7 @@ public Display()
/// operation, as it should be shown to the user. It should be concise
/// (to fit in drop downs) but clear (i.e. self-documenting). It should
/// use Title Casing. Prescriptive guidance: Read Create or Update
- /// Delete 'ActionName'
+ /// Delete 'ActionName'.
///
[JsonProperty(PropertyName = "operation")]
public string Operation { get; set; }
@@ -109,14 +109,14 @@ public Display()
///
/// Gets or sets the description. The localized friendly description
/// for the operation, as it should be shown to the user. It should be
- /// thorough, yet concise – it will be used in tool tips and detailed
+ /// thorough, yet concise - it will be used in tool tips and detailed
/// views. Prescriptive guidance for namespaces: Read any
/// 'display.provider' resource Create or Update any 'display.provider'
/// resource Delete any 'display.provider' resource Perform any other
/// action on any 'display.provider' resource Prescriptive guidance for
/// namespaces: Read any 'display.resource' Create or Update any
/// 'display.resource' Delete any 'display.resource' 'ActionName' any
- /// 'display.resources'
+ /// 'display.resources'.
///
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DraDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DraDetails.cs
new file mode 100644
index 0000000000000..560d1348b3167
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DraDetails.cs
@@ -0,0 +1,104 @@
+//
+// 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;
+
+ ///
+ /// DRA details.
+ ///
+ public partial class DraDetails
+ {
+ ///
+ /// Initializes a new instance of the DraDetails class.
+ ///
+ public DraDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DraDetails class.
+ ///
+ /// The DRA Id.
+ /// The DRA name.
+ /// The DRA Bios Id.
+ /// The version.
+ /// The last heartbeat received from the
+ /// DRA.
+ /// The health. Possible values include: 'None',
+ /// 'Normal', 'Warning', 'Critical'
+ /// The health errors.
+ public DraDetails(string id = default(string), string name = default(string), string biosId = default(string), string version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), string health = default(string), IList healthErrors = default(IList))
+ {
+ Id = id;
+ Name = name;
+ BiosId = biosId;
+ Version = version;
+ LastHeartbeatUtc = lastHeartbeatUtc;
+ Health = health;
+ HealthErrors = healthErrors;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the DRA Id.
+ ///
+ [JsonProperty(PropertyName = "id")]
+ public string Id { get; private set; }
+
+ ///
+ /// Gets the DRA name.
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; private set; }
+
+ ///
+ /// Gets the DRA Bios Id.
+ ///
+ [JsonProperty(PropertyName = "biosId")]
+ public string BiosId { get; private set; }
+
+ ///
+ /// Gets the version.
+ ///
+ [JsonProperty(PropertyName = "version")]
+ public string Version { get; private set; }
+
+ ///
+ /// Gets the last heartbeat received from the DRA.
+ ///
+ [JsonProperty(PropertyName = "lastHeartbeatUtc")]
+ public System.DateTime? LastHeartbeatUtc { get; private set; }
+
+ ///
+ /// Gets the health. Possible values include: 'None', 'Normal',
+ /// 'Warning', 'Critical'
+ ///
+ [JsonProperty(PropertyName = "health")]
+ public string Health { get; private set; }
+
+ ///
+ /// Gets the health errors.
+ ///
+ [JsonProperty(PropertyName = "healthErrors")]
+ public IList HealthErrors { get; private set; }
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventProperties.cs
index fcdd2597b959f..b909833a5f6db 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventProperties.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventProperties.cs
@@ -38,6 +38,8 @@ public EventProperties()
/// The friendly name of the
/// source of the event on which it is raised (for example, VM, VMM
/// etc).
+ /// The affected object
+ /// correlationId for the event.
/// The severity of the event.
/// The time of occurrence of the
/// event.
@@ -48,12 +50,13 @@ public EventProperties()
/// settings.
/// The list of errors / warnings capturing
/// details associated with the issue(s).
- public EventProperties(string eventCode = default(string), string description = default(string), string eventType = default(string), string affectedObjectFriendlyName = default(string), string severity = default(string), System.DateTime? timeOfOccurrence = default(System.DateTime?), string fabricId = default(string), EventProviderSpecificDetails providerSpecificDetails = default(EventProviderSpecificDetails), EventSpecificDetails eventSpecificDetails = default(EventSpecificDetails), IList healthErrors = default(IList))
+ public EventProperties(string eventCode = default(string), string description = default(string), string eventType = default(string), string affectedObjectFriendlyName = default(string), string affectedObjectCorrelationId = default(string), string severity = default(string), System.DateTime? timeOfOccurrence = default(System.DateTime?), string fabricId = default(string), EventProviderSpecificDetails providerSpecificDetails = default(EventProviderSpecificDetails), EventSpecificDetails eventSpecificDetails = default(EventSpecificDetails), IList healthErrors = default(IList))
{
EventCode = eventCode;
Description = description;
EventType = eventType;
AffectedObjectFriendlyName = affectedObjectFriendlyName;
+ AffectedObjectCorrelationId = affectedObjectCorrelationId;
Severity = severity;
TimeOfOccurrence = timeOfOccurrence;
FabricId = fabricId;
@@ -94,6 +97,12 @@ public EventProperties()
[JsonProperty(PropertyName = "affectedObjectFriendlyName")]
public string AffectedObjectFriendlyName { get; set; }
+ ///
+ /// Gets or sets the affected object correlationId for the event.
+ ///
+ [JsonProperty(PropertyName = "affectedObjectCorrelationId")]
+ public string AffectedObjectCorrelationId { get; set; }
+
///
/// Gets or sets the severity of the event.
///
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventQueryParameter.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventQueryParameter.cs
index b57897b9c72c1..28caa55702a79 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventQueryParameter.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventQueryParameter.cs
@@ -39,17 +39,20 @@ public EventQueryParameter()
/// events to be queried.
/// The affected object name
/// of the events to be queried.
+ /// The affected object
+ /// correlationId for the events to be queried.
/// The start time of the time range within
/// which the events are to be queried.
/// The end time of the time range within which
/// the events are to be queried.
- public EventQueryParameter(string eventCode = default(string), string severity = default(string), string eventType = default(string), string fabricName = default(string), string affectedObjectFriendlyName = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?))
+ public EventQueryParameter(string eventCode = default(string), string severity = default(string), string eventType = default(string), string fabricName = default(string), string affectedObjectFriendlyName = default(string), string affectedObjectCorrelationId = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?))
{
EventCode = eventCode;
Severity = severity;
EventType = eventType;
FabricName = fabricName;
AffectedObjectFriendlyName = affectedObjectFriendlyName;
+ AffectedObjectCorrelationId = affectedObjectCorrelationId;
StartTime = startTime;
EndTime = endTime;
CustomInit();
@@ -91,6 +94,13 @@ public EventQueryParameter()
[JsonProperty(PropertyName = "affectedObjectFriendlyName")]
public string AffectedObjectFriendlyName { get; set; }
+ ///
+ /// Gets or sets the affected object correlationId for the events to be
+ /// queried.
+ ///
+ [JsonProperty(PropertyName = "affectedObjectCorrelationId")]
+ public string AffectedObjectCorrelationId { get; set; }
+
///
/// Gets or sets the start time of the time range within which the
/// events are to be queried.
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingProtectionProfile.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingProtectionProfile.cs
new file mode 100644
index 0000000000000..2faf4d1c54188
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingProtectionProfile.cs
@@ -0,0 +1,68 @@
+//
+// 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 Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Existing storage account input.
+ ///
+ [Newtonsoft.Json.JsonObject("Existing")]
+ public partial class ExistingProtectionProfile : ProtectionProfileCustomDetails
+ {
+ ///
+ /// Initializes a new instance of the ExistingProtectionProfile class.
+ ///
+ public ExistingProtectionProfile()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ExistingProtectionProfile class.
+ ///
+ /// The protection profile Arm Id.
+ /// Throw error, if resource does not exists.
+ public ExistingProtectionProfile(string protectionProfileId)
+ {
+ ProtectionProfileId = protectionProfileId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the protection profile Arm Id. Throw error, if
+ /// resource does not exists.
+ ///
+ [JsonProperty(PropertyName = "protectionProfileId")]
+ public string ProtectionProfileId { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (ProtectionProfileId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "ProtectionProfileId");
+ }
+ }
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryAvailabilitySet.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryAvailabilitySet.cs
new file mode 100644
index 0000000000000..faae0fdd40317
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryAvailabilitySet.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;
+
+ ///
+ /// Existing recovery availability set input.
+ ///
+ [Newtonsoft.Json.JsonObject("Existing")]
+ public partial class ExistingRecoveryAvailabilitySet : RecoveryAvailabilitySetCustomDetails
+ {
+ ///
+ /// Initializes a new instance of the ExistingRecoveryAvailabilitySet
+ /// class.
+ ///
+ public ExistingRecoveryAvailabilitySet()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ExistingRecoveryAvailabilitySet
+ /// class.
+ ///
+ /// The recovery availability
+ /// set Id. Will throw error, if resource does not exist.
+ public ExistingRecoveryAvailabilitySet(string recoveryAvailabilitySetId = default(string))
+ {
+ RecoveryAvailabilitySetId = recoveryAvailabilitySetId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the recovery availability set Id. Will throw error, if
+ /// resource does not exist.
+ ///
+ [JsonProperty(PropertyName = "recoveryAvailabilitySetId")]
+ public string RecoveryAvailabilitySetId { get; set; }
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryProximityPlacementGroup.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryProximityPlacementGroup.cs
new file mode 100644
index 0000000000000..8540face2a59e
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryProximityPlacementGroup.cs
@@ -0,0 +1,57 @@
+//
+// 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;
+
+ ///
+ /// Existing recovery proximity placement group input.
+ ///
+ [Newtonsoft.Json.JsonObject("Existing")]
+ public partial class ExistingRecoveryProximityPlacementGroup : RecoveryProximityPlacementGroupCustomDetails
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ExistingRecoveryProximityPlacementGroup class.
+ ///
+ public ExistingRecoveryProximityPlacementGroup()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ExistingRecoveryProximityPlacementGroup class.
+ ///
+ /// The recovery
+ /// proximity placement group Id. Will throw error, if resource does
+ /// not exist.
+ public ExistingRecoveryProximityPlacementGroup(string recoveryProximityPlacementGroupId = default(string))
+ {
+ RecoveryProximityPlacementGroupId = recoveryProximityPlacementGroupId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the recovery proximity placement group Id. Will throw
+ /// error, if resource does not exist.
+ ///
+ [JsonProperty(PropertyName = "recoveryProximityPlacementGroupId")]
+ public string RecoveryProximityPlacementGroupId { get; set; }
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryRecoveryResourceGroup.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryRecoveryResourceGroup.cs
new file mode 100644
index 0000000000000..227df071c1add
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryRecoveryResourceGroup.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;
+
+ ///
+ /// Existing recovery resource group input.
+ ///
+ [Newtonsoft.Json.JsonObject("Existing")]
+ public partial class ExistingRecoveryRecoveryResourceGroup : RecoveryResourceGroupCustomDetails
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ExistingRecoveryRecoveryResourceGroup class.
+ ///
+ public ExistingRecoveryRecoveryResourceGroup()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ExistingRecoveryRecoveryResourceGroup class.
+ ///
+ /// The recovery resource group
+ /// Id. Valid for V2 scenarios.
+ public ExistingRecoveryRecoveryResourceGroup(string recoveryResourceGroupId = default(string))
+ {
+ RecoveryResourceGroupId = recoveryResourceGroupId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the recovery resource group Id. Valid for V2
+ /// scenarios.
+ ///
+ [JsonProperty(PropertyName = "recoveryResourceGroupId")]
+ public string RecoveryResourceGroupId { get; set; }
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryVirtualNetwork.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryVirtualNetwork.cs
new file mode 100644
index 0000000000000..1d06d95248f0c
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryVirtualNetwork.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 Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Existing recovery virtual network input.
+ ///
+ [Newtonsoft.Json.JsonObject("Existing")]
+ public partial class ExistingRecoveryVirtualNetwork : RecoveryVirtualNetworkCustomDetails
+ {
+ ///
+ /// Initializes a new instance of the ExistingRecoveryVirtualNetwork
+ /// class.
+ ///
+ public ExistingRecoveryVirtualNetwork()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ExistingRecoveryVirtualNetwork
+ /// class.
+ ///
+ /// The recovery virtual network
+ /// Id. Will throw error, if resource does not exist.
+ /// The recovery subnet name.
+ public ExistingRecoveryVirtualNetwork(string recoveryVirtualNetworkId, string recoverySubnetName = default(string))
+ {
+ RecoveryVirtualNetworkId = recoveryVirtualNetworkId;
+ RecoverySubnetName = recoverySubnetName;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the recovery virtual network Id. Will throw error, if
+ /// resource does not exist.
+ ///
+ [JsonProperty(PropertyName = "recoveryVirtualNetworkId")]
+ public string RecoveryVirtualNetworkId { get; set; }
+
+ ///
+ /// Gets or sets the recovery subnet name.
+ ///
+ [JsonProperty(PropertyName = "recoverySubnetName")]
+ public string RecoverySubnetName { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (RecoveryVirtualNetworkId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryVirtualNetworkId");
+ }
+ }
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingStorageAccount.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingStorageAccount.cs
new file mode 100644
index 0000000000000..f183508d8655b
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingStorageAccount.cs
@@ -0,0 +1,68 @@
+//
+// 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 Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Existing storage account input.
+ ///
+ [Newtonsoft.Json.JsonObject("Existing")]
+ public partial class ExistingStorageAccount : StorageAccountCustomDetails
+ {
+ ///
+ /// Initializes a new instance of the ExistingStorageAccount class.
+ ///
+ public ExistingStorageAccount()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ExistingStorageAccount class.
+ ///
+ /// The storage account Arm Id.
+ /// Throw error, if resource does not exists.
+ public ExistingStorageAccount(string azureStorageAccountId)
+ {
+ AzureStorageAccountId = azureStorageAccountId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the storage account Arm Id. Throw error, if resource
+ /// does not exists.
+ ///
+ [JsonProperty(PropertyName = "azureStorageAccountId")]
+ public string AzureStorageAccountId { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (AzureStorageAccountId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "AzureStorageAccountId");
+ }
+ }
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskType.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExportJobOutputSerializationType.cs
similarity index 65%
rename from sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskType.cs
rename to sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExportJobOutputSerializationType.cs
index 2aa4481dc01b1..560f3b988ffce 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskType.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExportJobOutputSerializationType.cs
@@ -12,12 +12,12 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
{
///
- /// Defines values for DiskType.
+ /// Defines values for ExportJobOutputSerializationType.
///
- public static class DiskType
+ public static class ExportJobOutputSerializationType
{
- public const string StandardLRS = "Standard_LRS";
- public const string PremiumLRS = "Premium_LRS";
- public const string StandardSSDLRS = "StandardSSD_LRS";
+ public const string Json = "Json";
+ public const string Xml = "Xml";
+ public const string Excel = "Excel";
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricCreationInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricCreationInput.cs
index 29392ec792b3d..7713b2b2bb0cf 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricCreationInput.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricCreationInput.cs
@@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
using System.Linq;
///
- /// Site details provided during the time of site creation
+ /// Site details provided during the time of site creation.
///
public partial class FabricCreationInput
{
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricCreationInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricCreationInputProperties.cs
index 68e71c51c0a2b..c8cd9243bc37b 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricCreationInputProperties.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricCreationInputProperties.cs
@@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
using System.Linq;
///
- /// Properties of site details provided during the time of site creation
+ /// Properties of site details provided during the time of site creation.
///
public partial class FabricCreationInputProperties
{
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricQueryParameter.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricQueryParameter.cs
new file mode 100644
index 0000000000000..4aaa041d2388a
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricQueryParameter.cs
@@ -0,0 +1,100 @@
+//
+// 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;
+
+ ///
+ /// Query parameter to get fabric.
+ ///
+ public partial class FabricQueryParameter
+ {
+ ///
+ /// Initializes a new instance of the FabricQueryParameter class.
+ ///
+ public FabricQueryParameter()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the FabricQueryParameter class.
+ ///
+ /// A value indicating whether the
+ /// zone to zone mappings are to be returned.
+ /// A value indicating whether the
+ /// agent details are to be fetched.
+ /// The BIOS Id to be used for fetching agent
+ /// details.
+ /// The FQDN to be used for fetching agent
+ /// details.
+ /// The type of the discovered machine to
+ /// be used for fetching agent details.
+ /// The OS type to be used for fetching agent
+ /// details.
+ public FabricQueryParameter(string zoneToZoneMappings = default(string), string fetchAgentDetails = default(string), string biosId = default(string), string fqdn = default(string), string discoveryType = default(string), string osType = default(string))
+ {
+ ZoneToZoneMappings = zoneToZoneMappings;
+ FetchAgentDetails = fetchAgentDetails;
+ BiosId = biosId;
+ Fqdn = fqdn;
+ DiscoveryType = discoveryType;
+ OsType = osType;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets a value indicating whether the zone to zone mappings
+ /// are to be returned.
+ ///
+ [JsonProperty(PropertyName = "zoneToZoneMappings")]
+ public string ZoneToZoneMappings { get; set; }
+
+ ///
+ /// Gets or sets a value indicating whether the agent details are to be
+ /// fetched.
+ ///
+ [JsonProperty(PropertyName = "fetchAgentDetails")]
+ public string FetchAgentDetails { get; set; }
+
+ ///
+ /// Gets or sets the BIOS Id to be used for fetching agent details.
+ ///
+ [JsonProperty(PropertyName = "biosId")]
+ public string BiosId { get; set; }
+
+ ///
+ /// Gets or sets the FQDN to be used for fetching agent details.
+ ///
+ [JsonProperty(PropertyName = "fqdn")]
+ public string Fqdn { get; set; }
+
+ ///
+ /// Gets or sets the type of the discovered machine to be used for
+ /// fetching agent details.
+ ///
+ [JsonProperty(PropertyName = "discoveryType")]
+ public string DiscoveryType { get; set; }
+
+ ///
+ /// Gets or sets the OS type to be used for fetching agent details.
+ ///
+ [JsonProperty(PropertyName = "osType")]
+ public string OsType { get; set; }
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricReplicationGroupTaskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricReplicationGroupTaskDetails.cs
index 1401afb8af60b..24227296ae39b 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricReplicationGroupTaskDetails.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricReplicationGroupTaskDetails.cs
@@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
///
/// This class represents the fabric replication group task details.
///
- public partial class FabricReplicationGroupTaskDetails : TaskTypeDetails
+ public partial class FabricReplicationGroupTaskDetails : JobTaskDetails
{
///
/// Initializes a new instance of the FabricReplicationGroupTaskDetails
@@ -31,15 +31,15 @@ public FabricReplicationGroupTaskDetails()
/// Initializes a new instance of the FabricReplicationGroupTaskDetails
/// class.
///
+ /// The job entity.
/// The skipped reason.
/// The skipped reason
/// string.
- /// The job entity.
- public FabricReplicationGroupTaskDetails(string skippedReason = default(string), string skippedReasonString = default(string), JobEntity jobTask = default(JobEntity))
+ public FabricReplicationGroupTaskDetails(JobEntity jobTask = default(JobEntity), string skippedReason = default(string), string skippedReasonString = default(string))
+ : base(jobTask)
{
SkippedReason = skippedReason;
SkippedReasonString = skippedReasonString;
- JobTask = jobTask;
CustomInit();
}
@@ -60,11 +60,5 @@ public FabricReplicationGroupTaskDetails()
[JsonProperty(PropertyName = "skippedReasonString")]
public string SkippedReasonString { get; set; }
- ///
- /// Gets or sets the job entity.
- ///
- [JsonProperty(PropertyName = "jobTask")]
- public JobEntity JobTask { get; set; }
-
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FailoverProcessServerRequestProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FailoverProcessServerRequestProperties.cs
index 4ab02f1d1364d..fde7cacddb456 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FailoverProcessServerRequestProperties.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FailoverProcessServerRequestProperties.cs
@@ -39,7 +39,7 @@ public FailoverProcessServerRequestProperties()
/// The new process server.
/// The VMS to migrate.
/// A value for failover type. It can be
- /// systemlevel/serverlevel
+ /// systemlevel/serverlevel.
public FailoverProcessServerRequestProperties(string containerName = default(string), string sourceProcessServerId = default(string), string targetProcessServerId = default(string), IList vmsToMigrate = default(IList), string updateType = default(string))
{
ContainerName = containerName;
@@ -81,7 +81,7 @@ public FailoverProcessServerRequestProperties()
///
/// Gets or sets a value for failover type. It can be
- /// systemlevel/serverlevel
+ /// systemlevel/serverlevel.
///
[JsonProperty(PropertyName = "updateType")]
public string UpdateType { get; set; }
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthError.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthError.cs
index 95e259191e4f7..a322648405212 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthError.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthError.cs
@@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
using System.Linq;
///
- /// Health Error
+ /// Health Error.
///
public partial class HealthError
{
@@ -48,7 +48,7 @@ public HealthError()
/// Possible causes of error.
/// Recommended action to resolve
/// error.
- /// Error creation time (UTC)
+ /// Error creation time (UTC).
/// DRA error
/// message.
/// ID of the entity.
@@ -148,7 +148,7 @@ public HealthError()
public string RecommendedAction { get; set; }
///
- /// Gets or sets error creation time (UTC)
+ /// Gets or sets error creation time (UTC).
///
[JsonProperty(PropertyName = "creationTimeUtc")]
public System.DateTime? CreationTimeUtc { get; set; }
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthErrorCategory.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthErrorCategory.cs
index 2209e474dc619..6b3558c8aea0a 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthErrorCategory.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthErrorCategory.cs
@@ -22,6 +22,10 @@ public static class HealthErrorCategory
public const string Configuration = "Configuration";
public const string FabricInfrastructure = "FabricInfrastructure";
public const string VersionExpiry = "VersionExpiry";
- public const string AgentAutoUpdate = "AgentAutoUpdate";
+ public const string AgentAutoUpdateInfra = "AgentAutoUpdateInfra";
+ public const string AgentAutoUpdateArtifactDeleted = "AgentAutoUpdateArtifactDeleted";
+ public const string AgentAutoUpdateRunAsAccount = "AgentAutoUpdateRunAsAccount";
+ public const string AgentAutoUpdateRunAsAccountExpiry = "AgentAutoUpdateRunAsAccountExpiry";
+ public const string AgentAutoUpdateRunAsAccountExpired = "AgentAutoUpdateRunAsAccountExpired";
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthErrorSummary.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthErrorSummary.cs
index 5cadc82904b1e..55f84d81c49e8 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthErrorSummary.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthErrorSummary.cs
@@ -35,7 +35,9 @@ public HealthErrorSummary()
/// The category of the health error. Possible
/// values include: 'None', 'Replication', 'TestFailover',
/// 'Configuration', 'FabricInfrastructure', 'VersionExpiry',
- /// 'AgentAutoUpdate'
+ /// 'AgentAutoUpdateInfra', 'AgentAutoUpdateArtifactDeleted',
+ /// 'AgentAutoUpdateRunAsAccount', 'AgentAutoUpdateRunAsAccountExpiry',
+ /// 'AgentAutoUpdateRunAsAccountExpired'
/// Severity of error. Possible values include:
/// 'NONE', 'Warning', 'Error', 'Info'
/// The summary message of the health
@@ -75,7 +77,10 @@ public HealthErrorSummary()
///
/// Gets or sets the category of the health error. Possible values
/// include: 'None', 'Replication', 'TestFailover', 'Configuration',
- /// 'FabricInfrastructure', 'VersionExpiry', 'AgentAutoUpdate'
+ /// 'FabricInfrastructure', 'VersionExpiry', 'AgentAutoUpdateInfra',
+ /// 'AgentAutoUpdateArtifactDeleted', 'AgentAutoUpdateRunAsAccount',
+ /// 'AgentAutoUpdateRunAsAccountExpiry',
+ /// 'AgentAutoUpdateRunAsAccountExpired'
///
[JsonProperty(PropertyName = "category")]
public string Category { get; set; }
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVHostDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVHostDetails.cs
new file mode 100644
index 0000000000000..572622f14b341
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVHostDetails.cs
@@ -0,0 +1,67 @@
+//
+// 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;
+
+ ///
+ /// Hyper-V host details.
+ ///
+ public partial class HyperVHostDetails
+ {
+ ///
+ /// Initializes a new instance of the HyperVHostDetails class.
+ ///
+ public HyperVHostDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the HyperVHostDetails class.
+ ///
+ /// The Hyper-V host Id.
+ /// The Hyper-V host name.
+ /// The Mars agent version.
+ public HyperVHostDetails(string id = default(string), string name = default(string), string marsAgentVersion = default(string))
+ {
+ Id = id;
+ Name = name;
+ MarsAgentVersion = marsAgentVersion;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the Hyper-V host Id.
+ ///
+ [JsonProperty(PropertyName = "id")]
+ public string Id { get; private set; }
+
+ ///
+ /// Gets the Hyper-V host name.
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; private set; }
+
+ ///
+ /// Gets the Mars agent version.
+ ///
+ [JsonProperty(PropertyName = "marsAgentVersion")]
+ public string MarsAgentVersion { get; private set; }
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureApplyRecoveryPointInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureApplyRecoveryPointInput.cs
index dadbaed4144c5..b550e4d112420 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureApplyRecoveryPointInput.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureApplyRecoveryPointInput.cs
@@ -32,15 +32,12 @@ public HyperVReplicaAzureApplyRecoveryPointInput()
/// Initializes a new instance of the
/// HyperVReplicaAzureApplyRecoveryPointInput class.
///
- /// The vault location where the recovery
- /// Vm resides.
/// The primary kek certificate
/// pfx.
/// The secondary kek
/// certificate pfx.
- public HyperVReplicaAzureApplyRecoveryPointInput(string vaultLocation = default(string), string primaryKekCertificatePfx = default(string), string secondaryKekCertificatePfx = default(string))
+ public HyperVReplicaAzureApplyRecoveryPointInput(string primaryKekCertificatePfx = default(string), string secondaryKekCertificatePfx = default(string))
{
- VaultLocation = vaultLocation;
PrimaryKekCertificatePfx = primaryKekCertificatePfx;
SecondaryKekCertificatePfx = secondaryKekCertificatePfx;
CustomInit();
@@ -51,12 +48,6 @@ public HyperVReplicaAzureApplyRecoveryPointInput()
///
partial void CustomInit();
- ///
- /// Gets or sets the vault location where the recovery Vm resides.
- ///
- [JsonProperty(PropertyName = "vaultLocation")]
- public string VaultLocation { get; set; }
-
///
/// Gets or sets the primary kek certificate pfx.
///
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureDiskInputDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureDiskInputDetails.cs
new file mode 100644
index 0000000000000..0a2bb08d58c96
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureDiskInputDetails.cs
@@ -0,0 +1,80 @@
+//
+// 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;
+
+ ///
+ /// Disk input details.
+ ///
+ public partial class HyperVReplicaAzureDiskInputDetails
+ {
+ ///
+ /// Initializes a new instance of the
+ /// HyperVReplicaAzureDiskInputDetails class.
+ ///
+ public HyperVReplicaAzureDiskInputDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// HyperVReplicaAzureDiskInputDetails class.
+ ///
+ /// The DiskId.
+ /// The LogStorageAccountId.
+ /// The DiskType. Possible values include:
+ /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS'
+ /// The DiskEncryptionSet ARM
+ /// ID.
+ public HyperVReplicaAzureDiskInputDetails(string diskId = default(string), string logStorageAccountId = default(string), string diskType = default(string), string diskEncryptionSetId = default(string))
+ {
+ DiskId = diskId;
+ LogStorageAccountId = logStorageAccountId;
+ DiskType = diskType;
+ DiskEncryptionSetId = diskEncryptionSetId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the DiskId.
+ ///
+ [JsonProperty(PropertyName = "diskId")]
+ public string DiskId { get; set; }
+
+ ///
+ /// Gets or sets the LogStorageAccountId.
+ ///
+ [JsonProperty(PropertyName = "logStorageAccountId")]
+ public string LogStorageAccountId { get; set; }
+
+ ///
+ /// Gets or sets the DiskType. Possible values include: 'Standard_LRS',
+ /// 'Premium_LRS', 'StandardSSD_LRS'
+ ///
+ [JsonProperty(PropertyName = "diskType")]
+ public string DiskType { get; set; }
+
+ ///
+ /// Gets or sets the DiskEncryptionSet ARM ID.
+ ///
+ [JsonProperty(PropertyName = "diskEncryptionSetId")]
+ public string DiskEncryptionSetId { get; set; }
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureEnableProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureEnableProtectionInput.cs
index f2ac393ffe402..b7273b5dcdb2d 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureEnableProtectionInput.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureEnableProtectionInput.cs
@@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
using System.Linq;
///
- /// Azure specific enable protection input.
+ /// HyperVReplicaAzure specific enable protection input.
///
[Newtonsoft.Json.JsonObject("HyperVReplicaAzure")]
public partial class HyperVReplicaAzureEnableProtectionInput : EnableProtectionProviderSpecificInput
@@ -34,23 +34,23 @@ public HyperVReplicaAzureEnableProtectionInput()
/// Initializes a new instance of the
/// HyperVReplicaAzureEnableProtectionInput class.
///
- /// The Hyper-V host Vm Id.
- /// The Vm Name.
- /// The OS type associated with vm.
- /// The OS disk VHD id associated with vm.
+ /// The Hyper-V host VM Id.
+ /// The VM Name.
+ /// The OS type associated with VM.
+ /// The OS disk VHD id associated with VM.
/// The storage account
- /// name.
+ /// Id.
/// The selected target Azure
/// network Id.
/// The selected target Azure subnet
/// Id.
/// The selected option to enable
/// RDP\SSH on target vm after failover. String value of
- /// {SrsDataContract.EnableRDPOnTargetOption} enum.
- /// The target azure Vm Name.
+ /// SrsDataContract.EnableRDPOnTargetOption enum.
+ /// The target azure VM Name.
/// The storage account to be used
/// for logging during replication.
- /// The list of VHD IDs of disks to be
+ /// The list of VHD Ids of disks to be
/// protected.
/// The Id of the target
/// resource group (for classic deployment) in which the failover VM is
@@ -60,13 +60,33 @@ public HyperVReplicaAzureEnableProtectionInput()
/// failover VM is to be created.
/// A value indicating whether managed
/// disks should be used during failover.
+ /// The target availability set
+ /// ARM Id for resource manager deployment.
/// The target availability
/// zone.
+ /// License type. Possible values include:
+ /// 'NotSpecified', 'NoLicenseType', 'WindowsServer'
+ /// The SQL Server license type.
+ /// Possible values include: 'NotSpecified', 'NoLicenseType', 'PAYG',
+ /// 'AHUB'
+ /// The target VM size.
/// The proximity
/// placement group ARM Id.
- /// The availability set ARM
+ /// A value indicating
+ /// whether managed disks should be used during replication.
+ /// The DiskType. Possible values include:
+ /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS'
+ /// The disks to include
+ /// list for managed disks.
+ /// The DiskEncryptionSet ARM
/// Id.
- 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), string targetAvailabilityZone = default(string), string targetProximityPlacementGroupId = default(string), string targetAvailabilitySetId = default(string))
+ /// The target VM tags.
+ /// The tags for the seed managed
+ /// disks.
+ /// The tags for the target managed
+ /// disks.
+ /// The tags for the target NICs.
+ 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), string targetAvailabilitySetId = default(string), string targetAvailabilityZone = default(string), string licenseType = default(string), string sqlServerLicenseType = default(string), string targetVmSize = default(string), string targetProximityPlacementGroupId = default(string), string useManagedDisksForReplication = default(string), string diskType = default(string), IList disksToIncludeForManagedDisks = default(IList), string diskEncryptionSetId = default(string), IDictionary targetVmTags = default(IDictionary), IDictionary seedManagedDiskTags = default(IDictionary), IDictionary targetManagedDiskTags = default(IDictionary), IDictionary targetNicTags = default(IDictionary))
{
HvHostVmId = hvHostVmId;
VmName = vmName;
@@ -82,9 +102,20 @@ public HyperVReplicaAzureEnableProtectionInput()
TargetAzureV1ResourceGroupId = targetAzureV1ResourceGroupId;
TargetAzureV2ResourceGroupId = targetAzureV2ResourceGroupId;
UseManagedDisks = useManagedDisks;
+ TargetAvailabilitySetId = targetAvailabilitySetId;
TargetAvailabilityZone = targetAvailabilityZone;
+ LicenseType = licenseType;
+ SqlServerLicenseType = sqlServerLicenseType;
+ TargetVmSize = targetVmSize;
TargetProximityPlacementGroupId = targetProximityPlacementGroupId;
- TargetAvailabilitySetId = targetAvailabilitySetId;
+ UseManagedDisksForReplication = useManagedDisksForReplication;
+ DiskType = diskType;
+ DisksToIncludeForManagedDisks = disksToIncludeForManagedDisks;
+ DiskEncryptionSetId = diskEncryptionSetId;
+ TargetVmTags = targetVmTags;
+ SeedManagedDiskTags = seedManagedDiskTags;
+ TargetManagedDiskTags = targetManagedDiskTags;
+ TargetNicTags = targetNicTags;
CustomInit();
}
@@ -94,31 +125,31 @@ public HyperVReplicaAzureEnableProtectionInput()
partial void CustomInit();
///
- /// Gets or sets the Hyper-V host Vm Id.
+ /// Gets or sets the Hyper-V host VM Id.
///
[JsonProperty(PropertyName = "hvHostVmId")]
public string HvHostVmId { get; set; }
///
- /// Gets or sets the Vm Name.
+ /// Gets or sets the VM Name.
///
[JsonProperty(PropertyName = "vmName")]
public string VmName { get; set; }
///
- /// Gets or sets the OS type associated with vm.
+ /// Gets or sets the OS type associated with VM.
///
[JsonProperty(PropertyName = "osType")]
public string OsType { get; set; }
///
- /// Gets or sets the OS disk VHD id associated with vm.
+ /// Gets or sets the OS disk VHD id associated with VM.
///
[JsonProperty(PropertyName = "vhdId")]
public string VhdId { get; set; }
///
- /// Gets or sets the storage account name.
+ /// Gets or sets the storage account Id.
///
[JsonProperty(PropertyName = "targetStorageAccountId")]
public string TargetStorageAccountId { get; set; }
@@ -138,13 +169,13 @@ public HyperVReplicaAzureEnableProtectionInput()
///
/// Gets or sets the selected option to enable RDP\SSH on target vm
/// after failover. String value of
- /// {SrsDataContract.EnableRDPOnTargetOption} enum.
+ /// SrsDataContract.EnableRDPOnTargetOption enum.
///
[JsonProperty(PropertyName = "enableRdpOnTargetOption")]
public string EnableRdpOnTargetOption { get; set; }
///
- /// Gets or sets the target azure Vm Name.
+ /// Gets or sets the target azure VM Name.
///
[JsonProperty(PropertyName = "targetAzureVmName")]
public string TargetAzureVmName { get; set; }
@@ -157,7 +188,7 @@ public HyperVReplicaAzureEnableProtectionInput()
public string LogStorageAccountId { get; set; }
///
- /// Gets or sets the list of VHD IDs of disks to be protected.
+ /// Gets or sets the list of VHD Ids of disks to be protected.
///
[JsonProperty(PropertyName = "disksToInclude")]
public IList DisksToInclude { get; set; }
@@ -183,12 +214,39 @@ public HyperVReplicaAzureEnableProtectionInput()
[JsonProperty(PropertyName = "useManagedDisks")]
public string UseManagedDisks { get; set; }
+ ///
+ /// Gets or sets the target availability set ARM Id for resource
+ /// manager deployment.
+ ///
+ [JsonProperty(PropertyName = "targetAvailabilitySetId")]
+ public string TargetAvailabilitySetId { get; set; }
+
///
/// Gets or sets the target availability zone.
///
[JsonProperty(PropertyName = "targetAvailabilityZone")]
public string TargetAvailabilityZone { get; set; }
+ ///
+ /// Gets or sets license type. Possible values include: 'NotSpecified',
+ /// 'NoLicenseType', 'WindowsServer'
+ ///
+ [JsonProperty(PropertyName = "licenseType")]
+ public string LicenseType { get; set; }
+
+ ///
+ /// Gets or sets the SQL Server license type. Possible values include:
+ /// 'NotSpecified', 'NoLicenseType', 'PAYG', 'AHUB'
+ ///
+ [JsonProperty(PropertyName = "sqlServerLicenseType")]
+ public string SqlServerLicenseType { get; set; }
+
+ ///
+ /// Gets or sets the target VM size.
+ ///
+ [JsonProperty(PropertyName = "targetVmSize")]
+ public string TargetVmSize { get; set; }
+
///
/// Gets or sets the proximity placement group ARM Id.
///
@@ -196,10 +254,54 @@ public HyperVReplicaAzureEnableProtectionInput()
public string TargetProximityPlacementGroupId { get; set; }
///
- /// Gets or sets the availability set ARM Id.
+ /// Gets or sets a value indicating whether managed disks should be
+ /// used during replication.
///
- [JsonProperty(PropertyName = "targetAvailabilitySetId")]
- public string TargetAvailabilitySetId { get; set; }
+ [JsonProperty(PropertyName = "useManagedDisksForReplication")]
+ public string UseManagedDisksForReplication { get; set; }
+
+ ///
+ /// Gets or sets the DiskType. Possible values include: 'Standard_LRS',
+ /// 'Premium_LRS', 'StandardSSD_LRS'
+ ///
+ [JsonProperty(PropertyName = "diskType")]
+ public string DiskType { get; set; }
+
+ ///
+ /// Gets or sets the disks to include list for managed disks.
+ ///
+ [JsonProperty(PropertyName = "disksToIncludeForManagedDisks")]
+ public IList DisksToIncludeForManagedDisks { get; set; }
+
+ ///
+ /// Gets or sets the DiskEncryptionSet ARM Id.
+ ///
+ [JsonProperty(PropertyName = "diskEncryptionSetId")]
+ public string DiskEncryptionSetId { get; set; }
+
+ ///
+ /// Gets or sets the target VM tags.
+ ///
+ [JsonProperty(PropertyName = "targetVmTags")]
+ public IDictionary TargetVmTags { get; set; }
+
+ ///
+ /// Gets or sets the tags for the seed managed disks.
+ ///
+ [JsonProperty(PropertyName = "seedManagedDiskTags")]
+ public IDictionary SeedManagedDiskTags { get; set; }
+
+ ///
+ /// Gets or sets the tags for the target managed disks.
+ ///
+ [JsonProperty(PropertyName = "targetManagedDiskTags")]
+ public IDictionary TargetManagedDiskTags { get; set; }
+
+ ///
+ /// Gets or sets the tags for the target NICs.
+ ///
+ [JsonProperty(PropertyName = "targetNicTags")]
+ public IDictionary TargetNicTags { get; set; }
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureFailbackProviderInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureFailbackProviderInput.cs
index 111d38fa9cc82..33398747c760e 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureFailbackProviderInput.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureFailbackProviderInput.cs
@@ -14,10 +14,10 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
using System.Linq;
///
- /// HvrA provider specific input for failback.
+ /// HyperVReplicaAzureFailback specific planned failover input.
///
[Newtonsoft.Json.JsonObject("HyperVReplicaAzureFailback")]
- public partial class HyperVReplicaAzureFailbackProviderInput : ProviderSpecificFailoverInput
+ public partial class HyperVReplicaAzureFailbackProviderInput : PlannedFailoverProviderSpecificFailoverInput
{
///
/// Initializes a new instance of the
@@ -35,8 +35,8 @@ public HyperVReplicaAzureFailbackProviderInput()
/// Data sync option.
/// ALR options to create
/// alternate recovery.
- /// Provider ID for
- /// alternate location
+ /// Provider Id for
+ /// alternate location.
public HyperVReplicaAzureFailbackProviderInput(string dataSyncOption = default(string), string recoveryVmCreationOption = default(string), string providerIdForAlternateRecovery = default(string))
{
DataSyncOption = dataSyncOption;
@@ -63,7 +63,7 @@ public HyperVReplicaAzureFailbackProviderInput()
public string RecoveryVmCreationOption { get; set; }
///
- /// Gets or sets provider ID for alternate location
+ /// Gets or sets provider Id for alternate location.
///
[JsonProperty(PropertyName = "providerIdForAlternateRecovery")]
public string ProviderIdForAlternateRecovery { get; set; }
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureManagedDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureManagedDiskDetails.cs
new file mode 100644
index 0000000000000..b98bd5790f551
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureManagedDiskDetails.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 System.Linq;
+
+ ///
+ /// Hyper-V Managed disk details.
+ ///
+ public partial class HyperVReplicaAzureManagedDiskDetails
+ {
+ ///
+ /// Initializes a new instance of the
+ /// HyperVReplicaAzureManagedDiskDetails class.
+ ///
+ public HyperVReplicaAzureManagedDiskDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// HyperVReplicaAzureManagedDiskDetails class.
+ ///
+ /// The disk Id.
+ /// Seed managed disk Id.
+ /// The replica disk type.
+ /// The disk encryption set ARM
+ /// Id.
+ public HyperVReplicaAzureManagedDiskDetails(string diskId = default(string), string seedManagedDiskId = default(string), string replicaDiskType = default(string), string diskEncryptionSetId = default(string))
+ {
+ DiskId = diskId;
+ SeedManagedDiskId = seedManagedDiskId;
+ ReplicaDiskType = replicaDiskType;
+ DiskEncryptionSetId = diskEncryptionSetId;
+ 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 seed managed disk Id.
+ ///
+ [JsonProperty(PropertyName = "seedManagedDiskId")]
+ public string SeedManagedDiskId { get; set; }
+
+ ///
+ /// Gets or sets the replica disk type.
+ ///
+ [JsonProperty(PropertyName = "replicaDiskType")]
+ public string ReplicaDiskType { get; set; }
+
+ ///
+ /// Gets or sets the disk encryption set ARM Id.
+ ///
+ [JsonProperty(PropertyName = "diskEncryptionSetId")]
+ public string DiskEncryptionSetId { get; set; }
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureFailoverProviderInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzurePlannedFailoverProviderInput.cs
similarity index 73%
rename from sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureFailoverProviderInput.cs
rename to sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzurePlannedFailoverProviderInput.cs
index 7eca2a0f399c0..4018e7885c5d7 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureFailoverProviderInput.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzurePlannedFailoverProviderInput.cs
@@ -14,25 +14,24 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
using System.Linq;
///
- /// HvrA provider specific input for failover.
+ /// HyperVReplicaAzure specific planned failover input.
///
[Newtonsoft.Json.JsonObject("HyperVReplicaAzure")]
- public partial class HyperVReplicaAzureFailoverProviderInput : ProviderSpecificFailoverInput
+ public partial class HyperVReplicaAzurePlannedFailoverProviderInput : PlannedFailoverProviderSpecificFailoverInput
{
///
/// Initializes a new instance of the
- /// HyperVReplicaAzureFailoverProviderInput class.
+ /// HyperVReplicaAzurePlannedFailoverProviderInput class.
///
- public HyperVReplicaAzureFailoverProviderInput()
+ public HyperVReplicaAzurePlannedFailoverProviderInput()
{
CustomInit();
}
///
/// Initializes a new instance of the
- /// HyperVReplicaAzureFailoverProviderInput class.
+ /// HyperVReplicaAzurePlannedFailoverProviderInput class.
///
- /// Location of the vault.
/// Primary kek certificate
/// pfx.
/// Secondary kek certificate
@@ -40,9 +39,8 @@ public HyperVReplicaAzureFailoverProviderInput()
/// The recovery point id to be passed to
/// failover to a particular recovery point. In case of latest recovery
/// point, null should be passed.
- public HyperVReplicaAzureFailoverProviderInput(string vaultLocation = default(string), string primaryKekCertificatePfx = default(string), string secondaryKekCertificatePfx = default(string), string recoveryPointId = default(string))
+ public HyperVReplicaAzurePlannedFailoverProviderInput(string primaryKekCertificatePfx = default(string), string secondaryKekCertificatePfx = default(string), string recoveryPointId = default(string))
{
- VaultLocation = vaultLocation;
PrimaryKekCertificatePfx = primaryKekCertificatePfx;
SecondaryKekCertificatePfx = secondaryKekCertificatePfx;
RecoveryPointId = recoveryPointId;
@@ -54,12 +52,6 @@ public HyperVReplicaAzureFailoverProviderInput()
///
partial void CustomInit();
- ///
- /// Gets or sets location of the vault.
- ///
- [JsonProperty(PropertyName = "vaultLocation")]
- public string VaultLocation { get; set; }
-
///
/// Gets or sets primary kek certificate pfx.
///
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureReplicationDetails.cs
index 31a33960bb808..697b99c103224 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureReplicationDetails.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureReplicationDetails.cs
@@ -69,7 +69,7 @@ public HyperVReplicaAzureReplicationDetails()
/// primary side.
/// The selected option to enable
/// RDP\SSH on target vm after failover. String value of
- /// {SrsDataContract.EnableRDPOnTargetOption} enum.
+ /// SrsDataContract.EnableRDPOnTargetOption enum.
/// The target resource
/// group Id.
/// The recovery availability
@@ -82,7 +82,19 @@ 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?), 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 targetAvailabilityZone = default(string), string targetProximityPlacementGroupId = default(string), string useManagedDisks = default(string), string licenseType = default(string))
+ /// The SQL Server license
+ /// type.
+ /// The last recovery point
+ /// received time.
+ /// The target VM tags.
+ /// The tags for the seed managed
+ /// disks.
+ /// The tags for the target managed
+ /// disks.
+ /// The tags for the target NICs.
+ /// The list of protected managed
+ /// disks.
+ 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 targetAvailabilityZone = default(string), string targetProximityPlacementGroupId = default(string), string useManagedDisks = default(string), string licenseType = default(string), string sqlServerLicenseType = default(string), System.DateTime? lastRecoveryPointReceived = default(System.DateTime?), IDictionary targetVmTags = default(IDictionary), IDictionary seedManagedDiskTags = default(IDictionary), IDictionary targetManagedDiskTags = default(IDictionary), IDictionary targetNicTags = default(IDictionary), IList protectedManagedDisks = default(IList))
{
AzureVmDiskDetails = azureVmDiskDetails;
RecoveryAzureVmName = recoveryAzureVmName;
@@ -110,6 +122,13 @@ public HyperVReplicaAzureReplicationDetails()
TargetProximityPlacementGroupId = targetProximityPlacementGroupId;
UseManagedDisks = useManagedDisks;
LicenseType = licenseType;
+ SqlServerLicenseType = sqlServerLicenseType;
+ LastRecoveryPointReceived = lastRecoveryPointReceived;
+ TargetVmTags = targetVmTags;
+ SeedManagedDiskTags = seedManagedDiskTags;
+ TargetManagedDiskTags = targetManagedDiskTags;
+ TargetNicTags = targetNicTags;
+ ProtectedManagedDisks = protectedManagedDisks;
CustomInit();
}
@@ -238,7 +257,7 @@ public HyperVReplicaAzureReplicationDetails()
///
/// Gets or sets the selected option to enable RDP\SSH on target vm
/// after failover. String value of
- /// {SrsDataContract.EnableRDPOnTargetOption} enum.
+ /// SrsDataContract.EnableRDPOnTargetOption enum.
///
[JsonProperty(PropertyName = "enableRdpOnTargetOption")]
public string EnableRdpOnTargetOption { get; set; }
@@ -280,5 +299,47 @@ public HyperVReplicaAzureReplicationDetails()
[JsonProperty(PropertyName = "licenseType")]
public string LicenseType { get; set; }
+ ///
+ /// Gets or sets the SQL Server license type.
+ ///
+ [JsonProperty(PropertyName = "sqlServerLicenseType")]
+ public string SqlServerLicenseType { get; set; }
+
+ ///
+ /// Gets the last recovery point received time.
+ ///
+ [JsonProperty(PropertyName = "lastRecoveryPointReceived")]
+ public System.DateTime? LastRecoveryPointReceived { get; private set; }
+
+ ///
+ /// Gets or sets the target VM tags.
+ ///
+ [JsonProperty(PropertyName = "targetVmTags")]
+ public IDictionary TargetVmTags { get; set; }
+
+ ///
+ /// Gets or sets the tags for the seed managed disks.
+ ///
+ [JsonProperty(PropertyName = "seedManagedDiskTags")]
+ public IDictionary SeedManagedDiskTags { get; set; }
+
+ ///
+ /// Gets or sets the tags for the target managed disks.
+ ///
+ [JsonProperty(PropertyName = "targetManagedDiskTags")]
+ public IDictionary TargetManagedDiskTags { get; set; }
+
+ ///
+ /// Gets or sets the tags for the target NICs.
+ ///
+ [JsonProperty(PropertyName = "targetNicTags")]
+ public IDictionary TargetNicTags { get; set; }
+
+ ///
+ /// Gets or sets the list of protected managed disks.
+ ///
+ [JsonProperty(PropertyName = "protectedManagedDisks")]
+ public IList ProtectedManagedDisks { get; set; }
+
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureTestFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureTestFailoverInput.cs
new file mode 100644
index 0000000000000..5598ecda4c2e7
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureTestFailoverInput.cs
@@ -0,0 +1,76 @@
+//
+// 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;
+
+ ///
+ /// HvrA provider specific input for test failover.
+ ///
+ [Newtonsoft.Json.JsonObject("HyperVReplicaAzure")]
+ public partial class HyperVReplicaAzureTestFailoverInput : TestFailoverProviderSpecificInput
+ {
+ ///
+ /// Initializes a new instance of the
+ /// HyperVReplicaAzureTestFailoverInput class.
+ ///
+ public HyperVReplicaAzureTestFailoverInput()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// HyperVReplicaAzureTestFailoverInput class.
+ ///
+ /// Primary kek certificate
+ /// pfx.
+ /// Secondary kek certificate
+ /// pfx.
+ /// The recovery point id to be passed to
+ /// test failover to a particular recovery point. In case of latest
+ /// recovery point, null should be passed.
+ public HyperVReplicaAzureTestFailoverInput(string primaryKekCertificatePfx = default(string), string secondaryKekCertificatePfx = default(string), string recoveryPointId = default(string))
+ {
+ PrimaryKekCertificatePfx = primaryKekCertificatePfx;
+ SecondaryKekCertificatePfx = secondaryKekCertificatePfx;
+ RecoveryPointId = recoveryPointId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets primary kek certificate pfx.
+ ///
+ [JsonProperty(PropertyName = "primaryKekCertificatePfx")]
+ public string PrimaryKekCertificatePfx { get; set; }
+
+ ///
+ /// Gets or sets secondary kek certificate pfx.
+ ///
+ [JsonProperty(PropertyName = "secondaryKekCertificatePfx")]
+ public string SecondaryKekCertificatePfx { get; set; }
+
+ ///
+ /// Gets or sets the recovery point id to be passed to test failover to
+ /// a particular recovery point. In case of latest recovery point, null
+ /// should be passed.
+ ///
+ [JsonProperty(PropertyName = "recoveryPointId")]
+ public string RecoveryPointId { get; set; }
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUnplannedFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUnplannedFailoverInput.cs
new file mode 100644
index 0000000000000..150bf3a29304d
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUnplannedFailoverInput.cs
@@ -0,0 +1,76 @@
+//
+// 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;
+
+ ///
+ /// HvrA provider specific input for unplanned failover.
+ ///
+ [Newtonsoft.Json.JsonObject("HyperVReplicaAzure")]
+ public partial class HyperVReplicaAzureUnplannedFailoverInput : UnplannedFailoverProviderSpecificInput
+ {
+ ///
+ /// Initializes a new instance of the
+ /// HyperVReplicaAzureUnplannedFailoverInput class.
+ ///
+ public HyperVReplicaAzureUnplannedFailoverInput()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// HyperVReplicaAzureUnplannedFailoverInput class.
+ ///
+ /// Primary kek certificate
+ /// pfx.
+ /// Secondary kek certificate
+ /// pfx.
+ /// The recovery point id to be passed to
+ /// failover to a particular recovery point. In case of latest recovery
+ /// point, null should be passed.
+ public HyperVReplicaAzureUnplannedFailoverInput(string primaryKekCertificatePfx = default(string), string secondaryKekCertificatePfx = default(string), string recoveryPointId = default(string))
+ {
+ PrimaryKekCertificatePfx = primaryKekCertificatePfx;
+ SecondaryKekCertificatePfx = secondaryKekCertificatePfx;
+ RecoveryPointId = recoveryPointId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets primary kek certificate pfx.
+ ///
+ [JsonProperty(PropertyName = "primaryKekCertificatePfx")]
+ public string PrimaryKekCertificatePfx { get; set; }
+
+ ///
+ /// Gets or sets secondary kek certificate pfx.
+ ///
+ [JsonProperty(PropertyName = "secondaryKekCertificatePfx")]
+ public string SecondaryKekCertificatePfx { get; set; }
+
+ ///
+ /// Gets or sets the recovery point id to be passed to failover to a
+ /// particular recovery point. In case of latest recovery point, null
+ /// should be passed.
+ ///
+ [JsonProperty(PropertyName = "recoveryPointId")]
+ public string RecoveryPointId { get; set; }
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs
index 70c905f587c62..38cdd9a0ba300 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs
@@ -46,7 +46,14 @@ public HyperVReplicaAzureUpdateReplicationProtectedItemInput()
/// placement group Id.
/// The target availability
/// zone.
- public HyperVReplicaAzureUpdateReplicationProtectedItemInput(string recoveryAzureV1ResourceGroupId = default(string), string recoveryAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string), IDictionary diskIdToDiskEncryptionMap = default(IDictionary), string targetProximityPlacementGroupId = default(string), string targetAvailabilityZone = default(string))
+ /// The target VM tags.
+ /// The tags for the target managed
+ /// disks.
+ /// The tags for the target NICs.
+ /// The SQL Server license type.
+ /// Possible values include: 'NotSpecified', 'NoLicenseType', 'PAYG',
+ /// 'AHUB'
+ public HyperVReplicaAzureUpdateReplicationProtectedItemInput(string recoveryAzureV1ResourceGroupId = default(string), string recoveryAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string), IDictionary diskIdToDiskEncryptionMap = default(IDictionary), string targetProximityPlacementGroupId = default(string), string targetAvailabilityZone = default(string), IDictionary targetVmTags = default(IDictionary), IDictionary targetManagedDiskTags = default(IDictionary), IDictionary targetNicTags = default(IDictionary), string sqlServerLicenseType = default(string))
{
RecoveryAzureV1ResourceGroupId = recoveryAzureV1ResourceGroupId;
RecoveryAzureV2ResourceGroupId = recoveryAzureV2ResourceGroupId;
@@ -54,6 +61,10 @@ public HyperVReplicaAzureUpdateReplicationProtectedItemInput()
DiskIdToDiskEncryptionMap = diskIdToDiskEncryptionMap;
TargetProximityPlacementGroupId = targetProximityPlacementGroupId;
TargetAvailabilityZone = targetAvailabilityZone;
+ TargetVmTags = targetVmTags;
+ TargetManagedDiskTags = targetManagedDiskTags;
+ TargetNicTags = targetNicTags;
+ SqlServerLicenseType = sqlServerLicenseType;
CustomInit();
}
@@ -102,5 +113,30 @@ public HyperVReplicaAzureUpdateReplicationProtectedItemInput()
[JsonProperty(PropertyName = "targetAvailabilityZone")]
public string TargetAvailabilityZone { get; set; }
+ ///
+ /// Gets or sets the target VM tags.
+ ///
+ [JsonProperty(PropertyName = "targetVmTags")]
+ public IDictionary TargetVmTags { get; set; }
+
+ ///
+ /// Gets or sets the tags for the target managed disks.
+ ///
+ [JsonProperty(PropertyName = "targetManagedDiskTags")]
+ public IDictionary TargetManagedDiskTags { get; set; }
+
+ ///
+ /// Gets or sets the tags for the target NICs.
+ ///
+ [JsonProperty(PropertyName = "targetNicTags")]
+ public IDictionary TargetNicTags { get; set; }
+
+ ///
+ /// Gets or sets the SQL Server license type. Possible values include:
+ /// 'NotSpecified', 'NoLicenseType', 'PAYG', 'AHUB'
+ ///
+ [JsonProperty(PropertyName = "sqlServerLicenseType")]
+ public string SqlServerLicenseType { get; set; }
+
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaBasePolicyDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaBasePolicyDetails.cs
index 406d1dd76fcf7..ee237fae9d971 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaBasePolicyDetails.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaBasePolicyDetails.cs
@@ -51,7 +51,7 @@ public HyperVReplicaBasePolicyDetails()
/// authentication type.
/// A value indicating whether the
/// VM has to be auto deleted. Supported Values: String.Empty, None,
- /// OnRecoveryCloud
+ /// OnRecoveryCloud.
public HyperVReplicaBasePolicyDetails(int? recoveryPoints = default(int?), int? applicationConsistentSnapshotFrequencyInHours = default(int?), string compression = default(string), string initialReplicationMethod = default(string), string onlineReplicationStartTime = default(string), string offlineReplicationImportPath = default(string), string offlineReplicationExportPath = default(string), int? replicationPort = default(int?), int? allowedAuthenticationType = default(int?), string replicaDeletionOption = default(string))
{
RecoveryPoints = recoveryPoints;
@@ -130,7 +130,7 @@ public HyperVReplicaBasePolicyDetails()
///
/// Gets or sets a value indicating whether the VM has to be auto
- /// deleted. Supported Values: String.Empty, None, OnRecoveryCloud
+ /// deleted. Supported Values: String.Empty, None, OnRecoveryCloud.
///
[JsonProperty(PropertyName = "replicaDeletionOption")]
public string ReplicaDeletionOption { get; set; }
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaBluePolicyInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaBluePolicyInput.cs
index 45926b3155406..a7dc2e63f0130 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaBluePolicyInput.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaBluePolicyInput.cs
@@ -17,7 +17,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
/// HyperV Replica Blue policy input.
///
[Newtonsoft.Json.JsonObject("HyperVReplica2012R2")]
- public partial class HyperVReplicaBluePolicyInput : PolicyProviderSpecificInput
+ public partial class HyperVReplicaBluePolicyInput : HyperVReplicaPolicyInput
{
///
/// Initializes a new instance of the HyperVReplicaBluePolicyInput
@@ -32,8 +32,6 @@ public HyperVReplicaBluePolicyInput()
/// Initializes a new instance of the HyperVReplicaBluePolicyInput
/// class.
///
- /// A value indicating the
- /// replication interval.
/// A value indicating the number of
/// recovery points.
/// A value
@@ -54,19 +52,12 @@ public HyperVReplicaBluePolicyInput()
/// authentication type.
/// A value indicating whether the VM has
/// to be auto deleted.
- public HyperVReplicaBluePolicyInput(int? replicationFrequencyInSeconds = default(int?), int? recoveryPoints = default(int?), int? applicationConsistentSnapshotFrequencyInHours = default(int?), string compression = default(string), string initialReplicationMethod = default(string), string onlineReplicationStartTime = default(string), string offlineReplicationImportPath = default(string), string offlineReplicationExportPath = default(string), int? replicationPort = default(int?), int? allowedAuthenticationType = default(int?), string replicaDeletion = default(string))
+ /// A value indicating the
+ /// replication interval.
+ public HyperVReplicaBluePolicyInput(int? recoveryPoints = default(int?), int? applicationConsistentSnapshotFrequencyInHours = default(int?), string compression = default(string), string initialReplicationMethod = default(string), string onlineReplicationStartTime = default(string), string offlineReplicationImportPath = default(string), string offlineReplicationExportPath = default(string), int? replicationPort = default(int?), int? allowedAuthenticationType = default(int?), string replicaDeletion = default(string), int? replicationFrequencyInSeconds = default(int?))
+ : base(recoveryPoints, applicationConsistentSnapshotFrequencyInHours, compression, initialReplicationMethod, onlineReplicationStartTime, offlineReplicationImportPath, offlineReplicationExportPath, replicationPort, allowedAuthenticationType, replicaDeletion)
{
ReplicationFrequencyInSeconds = replicationFrequencyInSeconds;
- RecoveryPoints = recoveryPoints;
- ApplicationConsistentSnapshotFrequencyInHours = applicationConsistentSnapshotFrequencyInHours;
- Compression = compression;
- InitialReplicationMethod = initialReplicationMethod;
- OnlineReplicationStartTime = onlineReplicationStartTime;
- OfflineReplicationImportPath = offlineReplicationImportPath;
- OfflineReplicationExportPath = offlineReplicationExportPath;
- ReplicationPort = replicationPort;
- AllowedAuthenticationType = allowedAuthenticationType;
- ReplicaDeletion = replicaDeletion;
CustomInit();
}
@@ -81,68 +72,5 @@ public HyperVReplicaBluePolicyInput()
[JsonProperty(PropertyName = "replicationFrequencyInSeconds")]
public int? ReplicationFrequencyInSeconds { get; set; }
- ///
- /// Gets or sets a value indicating the number of recovery points.
- ///
- [JsonProperty(PropertyName = "recoveryPoints")]
- public int? RecoveryPoints { get; set; }
-
- ///
- /// Gets or sets a value indicating the application consistent
- /// frequency.
- ///
- [JsonProperty(PropertyName = "applicationConsistentSnapshotFrequencyInHours")]
- public int? ApplicationConsistentSnapshotFrequencyInHours { get; set; }
-
- ///
- /// Gets or sets a value indicating whether compression has to be
- /// enabled.
- ///
- [JsonProperty(PropertyName = "compression")]
- public string Compression { get; set; }
-
- ///
- /// Gets or sets a value indicating whether IR is online.
- ///
- [JsonProperty(PropertyName = "initialReplicationMethod")]
- public string InitialReplicationMethod { get; set; }
-
- ///
- /// Gets or sets a value indicating the online IR start time.
- ///
- [JsonProperty(PropertyName = "onlineReplicationStartTime")]
- public string OnlineReplicationStartTime { get; set; }
-
- ///
- /// Gets or sets a value indicating the offline IR import path.
- ///
- [JsonProperty(PropertyName = "offlineReplicationImportPath")]
- public string OfflineReplicationImportPath { get; set; }
-
- ///
- /// Gets or sets a value indicating the offline IR export path.
- ///
- [JsonProperty(PropertyName = "offlineReplicationExportPath")]
- public string OfflineReplicationExportPath { get; set; }
-
- ///
- /// Gets or sets a value indicating the recovery HTTPS port.
- ///
- [JsonProperty(PropertyName = "replicationPort")]
- public int? ReplicationPort { get; set; }
-
- ///
- /// Gets or sets a value indicating the authentication type.
- ///
- [JsonProperty(PropertyName = "allowedAuthenticationType")]
- public int? AllowedAuthenticationType { get; set; }
-
- ///
- /// Gets or sets a value indicating whether the VM has to be auto
- /// deleted.
- ///
- [JsonProperty(PropertyName = "replicaDeletion")]
- public string ReplicaDeletion { get; set; }
-
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVSiteDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVSiteDetails.cs
index 02b44c853df51..7eefe08615335 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVSiteDetails.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVSiteDetails.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;
///
@@ -27,11 +29,27 @@ public HyperVSiteDetails()
CustomInit();
}
+ ///
+ /// Initializes a new instance of the HyperVSiteDetails class.
+ ///
+ /// The list of Hyper-V hosts associated with
+ /// the fabric.
+ public HyperVSiteDetails(IList hyperVHosts = default(IList))
+ {
+ HyperVHosts = hyperVHosts;
+ CustomInit();
+ }
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
+ ///
+ /// Gets or sets the list of Hyper-V hosts associated with the fabric.
+ ///
+ [JsonProperty(PropertyName = "hyperVHosts")]
+ public IList HyperVHosts { get; set; }
+
}
}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVVirtualMachineDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVVirtualMachineDetails.cs
index 2383b948ead93..4320822c8588a 100644
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVVirtualMachineDetails.cs
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVVirtualMachineDetails.cs
@@ -41,16 +41,16 @@ public HyperVVirtualMachineDetails()
/// time.
/// A value indicating whether the VM has
/// a physical disk attached. String value of
- /// {SrsDataContract.PresenceStatus} enum. Possible values include:
+ /// SrsDataContract.PresenceStatus enum. Possible values include:
/// 'Unknown', 'Present', 'NotPresent'
/// A value indicating whether the
/// VM has a fibre channel adapter attached. String value of
- /// {SrsDataContract.PresenceStatus} enum. Possible values include:
+ /// SrsDataContract.PresenceStatus enum. Possible values include:
/// 'Unknown', 'Present', 'NotPresent'
/// A value indicating whether the VM has a
- /// shared VHD attached. String value of
- /// {SrsDataContract.PresenceStatus} enum. Possible values include:
- /// 'Unknown', 'Present', 'NotPresent'
+ /// shared VHD attached. String value of SrsDataContract.PresenceStatus
+ /// enum. Possible values include: 'Unknown', 'Present',
+ /// 'NotPresent'
public HyperVVirtualMachineDetails(string sourceItemId = default(string), string generation = default(string), OSDetails osDetails = default(OSDetails), IList diskDetails = default(IList), string hasPhysicalDisk = default(string), string hasFibreChannelAdapter = default(string), string hasSharedVhd = default(string))
{
SourceItemId = sourceItemId;
@@ -94,7 +94,7 @@ public HyperVVirtualMachineDetails()
///
/// Gets or sets a value indicating whether the VM has a physical disk
- /// attached. String value of {SrsDataContract.PresenceStatus} enum.
+ /// attached. String value of SrsDataContract.PresenceStatus enum.
/// Possible values include: 'Unknown', 'Present', 'NotPresent'
///
[JsonProperty(PropertyName = "hasPhysicalDisk")]
@@ -102,7 +102,7 @@ public HyperVVirtualMachineDetails()
///
/// Gets or sets a value indicating whether the VM has a fibre channel
- /// adapter attached. String value of {SrsDataContract.PresenceStatus}
+ /// adapter attached. String value of SrsDataContract.PresenceStatus
/// enum. Possible values include: 'Unknown', 'Present', 'NotPresent'
///
[JsonProperty(PropertyName = "hasFibreChannelAdapter")]
@@ -110,7 +110,7 @@ public HyperVVirtualMachineDetails()
///
/// Gets or sets a value indicating whether the VM has a shared VHD
- /// attached. String value of {SrsDataContract.PresenceStatus} enum.
+ /// attached. String value of SrsDataContract.PresenceStatus enum.
/// Possible values include: 'Unknown', 'Present', 'NotPresent'
///
[JsonProperty(PropertyName = "hasSharedVhd")]
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/IPConfig.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/IPConfig.cs
deleted file mode 100644
index f0e6002a1a064..0000000000000
--- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/IPConfig.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-//
-// 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;
-
- ///
- /// IP configuration details.
- ///
- public partial class IPConfig
- {
- ///
- /// Initializes a new instance of the IPConfig class.
- ///
- public IPConfig()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the IPConfig class.
- ///
- /// The static IP address of the IP
- /// configuration.
- /// The Id of the public IP address
- /// associated with the IP configuration.
- /// The backend address pools
- /// associated with the IP configuration.
- public IPConfig(string staticIPAddress = default(string), string publicIpAddressId = default(string), IList lBBackendAddressPoolIds = default(IList))
- {
- StaticIPAddress = staticIPAddress;
- PublicIpAddressId = publicIpAddressId;
- LBBackendAddressPoolIds = lBBackendAddressPoolIds;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets the static IP address of the IP configuration.
- ///
- [JsonProperty(PropertyName = "staticIPAddress")]
- public string StaticIPAddress { get; set; }
-
- ///
- /// Gets or sets the Id of the public IP address associated with the IP
- /// configuration.
- ///
- [JsonProperty(PropertyName = "publicIpAddressId")]
- public string PublicIpAddressId { get; set; }
-
- ///
- /// Gets or sets the backend address pools associated with the IP
- /// configuration.
- ///
- [JsonProperty(PropertyName = "lBBackendAddressPoolIds")]
- public IList LBBackendAddressPoolIds { get; set; }
-
- }
-}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/IPConfigDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/IPConfigDetails.cs
new file mode 100644
index 0000000000000..badd6b68e9ad7
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/IPConfigDetails.cs
@@ -0,0 +1,132 @@
+//
+// 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;
+
+ public partial class IPConfigDetails
+ {
+ ///
+ /// Initializes a new instance of the IPConfigDetails class.
+ ///
+ public IPConfigDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the IPConfigDetails class.
+ ///
+ public IPConfigDetails(string name = default(string), bool? isPrimary = default(bool?), string subnetName = default(string), string staticIPAddress = default(string), string ipAddressType = default(string), bool? isSeletedForFailover = default(bool?), string recoverySubnetName = default(string), string recoveryStaticIPAddress = default(string), string recoveryIPAddressType = default(string), string recoveryPublicIPAddressId = default(string), IList recoveryLBBackendAddressPoolIds = default(IList), string tfoSubnetName = default(string), string tfoStaticIPAddress = default(string), string tfoPublicIPAddressId = default(string), IList tfoLBBackendAddressPoolIds = default(IList))
+ {
+ Name = name;
+ IsPrimary = isPrimary;
+ SubnetName = subnetName;
+ StaticIPAddress = staticIPAddress;
+ IpAddressType = ipAddressType;
+ IsSeletedForFailover = isSeletedForFailover;
+ RecoverySubnetName = recoverySubnetName;
+ RecoveryStaticIPAddress = recoveryStaticIPAddress;
+ RecoveryIPAddressType = recoveryIPAddressType;
+ RecoveryPublicIPAddressId = recoveryPublicIPAddressId;
+ RecoveryLBBackendAddressPoolIds = recoveryLBBackendAddressPoolIds;
+ TfoSubnetName = tfoSubnetName;
+ TfoStaticIPAddress = tfoStaticIPAddress;
+ TfoPublicIPAddressId = tfoPublicIPAddressId;
+ TfoLBBackendAddressPoolIds = tfoLBBackendAddressPoolIds;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "isPrimary")]
+ public bool? IsPrimary { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "subnetName")]
+ public string SubnetName { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "staticIPAddress")]
+ public string StaticIPAddress { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "ipAddressType")]
+ public string IpAddressType { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "isSeletedForFailover")]
+ public bool? IsSeletedForFailover { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "recoverySubnetName")]
+ public string RecoverySubnetName { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "recoveryStaticIPAddress")]
+ public string RecoveryStaticIPAddress { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "recoveryIPAddressType")]
+ public string RecoveryIPAddressType { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "recoveryPublicIPAddressId")]
+ public string RecoveryPublicIPAddressId { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "recoveryLBBackendAddressPoolIds")]
+ public IList RecoveryLBBackendAddressPoolIds { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "tfoSubnetName")]
+ public string TfoSubnetName { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "tfoStaticIPAddress")]
+ public string TfoStaticIPAddress { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "tfoPublicIPAddressId")]
+ public string TfoPublicIPAddressId { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "tfoLBBackendAddressPoolIds")]
+ public IList TfoLBBackendAddressPoolIds { get; set; }
+
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/IPConfigInputDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/IPConfigInputDetails.cs
new file mode 100644
index 0000000000000..a854f6c485e97
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/IPConfigInputDetails.cs
@@ -0,0 +1,108 @@
+//
+// 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;
+
+ public partial class IPConfigInputDetails
+ {
+ ///
+ /// Initializes a new instance of the IPConfigInputDetails class.
+ ///
+ public IPConfigInputDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the IPConfigInputDetails class.
+ ///
+ public IPConfigInputDetails(string ipConfigName = default(string), bool? isPrimary = default(bool?), bool? isSeletedForFailover = default(bool?), string recoverySubnetName = default(string), string recoveryStaticIPAddress = default(string), string recoveryPublicIPAddressId = default(string), IList recoveryLBBackendAddressPoolIds = default(IList), string tfoSubnetName = default(string), string tfoStaticIPAddress = default(string), string tfoPublicIPAddressId = default(string), IList tfoLBBackendAddressPoolIds = default(IList))
+ {
+ IpConfigName = ipConfigName;
+ IsPrimary = isPrimary;
+ IsSeletedForFailover = isSeletedForFailover;
+ RecoverySubnetName = recoverySubnetName;
+ RecoveryStaticIPAddress = recoveryStaticIPAddress;
+ RecoveryPublicIPAddressId = recoveryPublicIPAddressId;
+ RecoveryLBBackendAddressPoolIds = recoveryLBBackendAddressPoolIds;
+ TfoSubnetName = tfoSubnetName;
+ TfoStaticIPAddress = tfoStaticIPAddress;
+ TfoPublicIPAddressId = tfoPublicIPAddressId;
+ TfoLBBackendAddressPoolIds = tfoLBBackendAddressPoolIds;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "ipConfigName")]
+ public string IpConfigName { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "isPrimary")]
+ public bool? IsPrimary { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "isSeletedForFailover")]
+ public bool? IsSeletedForFailover { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "recoverySubnetName")]
+ public string RecoverySubnetName { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "recoveryStaticIPAddress")]
+ public string RecoveryStaticIPAddress { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "recoveryPublicIPAddressId")]
+ public string RecoveryPublicIPAddressId { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "recoveryLBBackendAddressPoolIds")]
+ public IList RecoveryLBBackendAddressPoolIds { get; set; }
+
+ ///