diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationAlertSettingsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationAlertSettingsOperations.cs
index da3ddfd5ee9b..6b37fc1842f3 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationAlertSettingsOperations.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationAlertSettingsOperations.cs
@@ -84,7 +84,7 @@ public partial interface IReplicationAlertSettingsOperations
///
///
/// Gets the list of email notification(alert) configurations for the
- /// vault. .
+ /// vault.
///
///
/// The headers that will be added to request.
@@ -108,7 +108,7 @@ public partial interface IReplicationAlertSettingsOperations
///
///
/// Gets the list of email notification(alert) configurations for the
- /// vault. .
+ /// vault.
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationEventsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationEventsOperations.cs
index 4e4f6c7e3612..f2b7cebbfea0 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationEventsOperations.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationEventsOperations.cs
@@ -13,6 +13,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery
using Microsoft.Azure.Management.RecoveryServices;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
+ using Microsoft.Rest.Azure.OData;
using Models;
using System.Collections;
using System.Collections.Generic;
@@ -55,6 +56,9 @@ public partial interface IReplicationEventsOperations
///
/// Gets the list of Azure Site Recovery events for the vault.
///
+ ///
+ /// OData parameters to apply to the operation.
+ ///
///
/// The headers that will be added to request.
///
@@ -70,7 +74,7 @@ public partial interface IReplicationEventsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets the list of Azure Site Recovery events.
///
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationFabricsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationFabricsOperations.cs
index 6d20046f0379..84ff2a5c0624 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationFabricsOperations.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationFabricsOperations.cs
@@ -24,6 +24,28 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery
///
public partial interface IReplicationFabricsOperations
{
+ ///
+ /// Migrates the site to AAD.
+ ///
+ ///
+ /// The operation to migrate an Azure Site Recovery fabric to AAD.
+ ///
+ ///
+ /// ASR fabric to migrate.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task MigrateToAadWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Renews certificate for the fabric.
///
@@ -63,8 +85,7 @@ public partial interface IReplicationFabricsOperations
/// The name of the fabric containing the process server.
///
///
- /// The input to the failover process
- /// server operation.
+ /// The input to the failover process server operation.
///
///
/// The headers that will be added to request.
@@ -228,6 +249,28 @@ public partial interface IReplicationFabricsOperations
///
Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Migrates the site to AAD.
+ ///
+ ///
+ /// The operation to migrate an Azure Site Recovery fabric to AAD.
+ ///
+ ///
+ /// ASR fabric to migrate.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task BeginMigrateToAadWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Renews certificate for the fabric.
///
///
@@ -266,8 +309,7 @@ public partial interface IReplicationFabricsOperations
/// The name of the fabric containing the process server.
///
///
- /// The input to the failover process
- /// server operation.
+ /// The input to the failover process server operation.
///
///
/// The headers that will be added to request.
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectedItemsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectedItemsOperations.cs
index e7c42fd3b9f1..27dd2e141a85 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectedItemsOperations.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectedItemsOperations.cs
@@ -64,8 +64,8 @@ public partial interface IReplicationProtectedItemsOperations
/// OData parameters to apply to the operation.
///
///
- /// The pagination token.
- /// Possible values: "FabricId" or "FabricId_CloudId" or null
+ /// The pagination token. Possible values: "FabricId" or
+ /// "FabricId_CloudId" or null
///
///
/// The headers that will be added to request.
@@ -123,8 +123,7 @@ public partial interface IReplicationProtectedItemsOperations
///
///
/// The operation to start resynchronize/repair replication for a
- /// replication protected item
- /// requiring resynchronization.
+ /// replication protected item requiring resynchronization.
///
///
/// The name of the fabric.
@@ -156,23 +155,20 @@ public partial interface IReplicationProtectedItemsOperations
///
///
/// The operation to update(push update) the installed mobility service
- /// software on a
- /// replication protected item to the latest available version.
+ /// software on a replication protected item to the latest available
+ /// version.
///
///
/// The name of the fabric containing the protected item.
///
///
- /// The name of the container containing the
- /// protected item.
+ /// The name of the container containing the protected item.
///
///
- /// The name of the protected item on which the
- /// agent is to be updated.
+ /// The name of the protected item on which the agent is to be updated.
///
///
- /// Request to update the mobility
- /// service on the protected item.
+ /// Request to update the mobility service on the protected item.
///
///
/// The headers that will be added to request.
@@ -400,8 +396,7 @@ public partial interface IReplicationProtectedItemsOperations
///
///
/// The operation to disable replication on a replication protected
- /// item. This will also
- /// remove the item.
+ /// item. This will also remove the item.
///
///
/// Fabric name.
@@ -499,11 +494,9 @@ public partial interface IReplicationProtectedItemsOperations
///
///
/// The operation to delete or purge a replication protected item. This
- /// operation will
- /// force delete the replication protected item. Use the remove
- /// operation on
- /// replication protected item to perform a clean disable replication
- /// for the item.
+ /// operation will force delete the replication protected item. Use the
+ /// remove operation on replication protected item to perform a clean
+ /// disable replication for the item.
///
///
/// Fabric name.
@@ -602,8 +595,7 @@ public partial interface IReplicationProtectedItemsOperations
///
///
/// The operation to start resynchronize/repair replication for a
- /// replication protected item
- /// requiring resynchronization.
+ /// replication protected item requiring resynchronization.
///
///
/// The name of the fabric.
@@ -635,23 +627,20 @@ public partial interface IReplicationProtectedItemsOperations
///
///
/// The operation to update(push update) the installed mobility service
- /// software on a
- /// replication protected item to the latest available version.
+ /// software on a replication protected item to the latest available
+ /// version.
///
///
/// The name of the fabric containing the protected item.
///
///
- /// The name of the container containing the
- /// protected item.
+ /// The name of the container containing the protected item.
///
///
- /// The name of the protected item on which the
- /// agent is to be updated.
+ /// The name of the protected item on which the agent is to be updated.
///
///
- /// Request to update the mobility
- /// service on the protected item.
+ /// Request to update the mobility service on the protected item.
///
///
/// The headers that will be added to request.
@@ -879,8 +868,7 @@ public partial interface IReplicationProtectedItemsOperations
///
///
/// The operation to disable replication on a replication protected
- /// item. This will also
- /// remove the item.
+ /// item. This will also remove the item.
///
///
/// Fabric name.
@@ -947,11 +935,9 @@ public partial interface IReplicationProtectedItemsOperations
///
///
/// The operation to delete or purge a replication protected item. This
- /// operation will
- /// force delete the replication protected item. Use the remove
- /// operation on
- /// replication protected item to perform a clean disable replication
- /// for the item.
+ /// operation will force delete the replication protected item. Use the
+ /// remove operation on replication protected item to perform a clean
+ /// disable replication for the item.
///
///
/// Fabric name.
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectionContainersOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectionContainersOperations.cs
index e5ffff1f28b8..580422ec3b2e 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectionContainersOperations.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationProtectionContainersOperations.cs
@@ -26,13 +26,11 @@ public partial interface IReplicationProtectionContainersOperations
{
///
/// Switches protection from one container to another or one
- /// replication provider to
- /// another.
+ /// replication provider to another.
///
///
/// Operation to switch protection from one container to another or one
- /// replication
- /// provider to another.
+ /// replication provider to another.
///
///
/// Unique fabric name.
@@ -98,8 +96,7 @@ public partial interface IReplicationProtectionContainersOperations
/// The name of the protection container.
///
///
- /// The request object to add a protectable
- /// item.
+ /// The request object to add a protectable item.
///
///
/// The headers that will be added to request.
@@ -225,13 +222,11 @@ public partial interface IReplicationProtectionContainersOperations
Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Switches protection from one container to another or one
- /// replication provider to
- /// another.
+ /// replication provider to another.
///
///
/// Operation to switch protection from one container to another or one
- /// replication
- /// provider to another.
+ /// replication provider to another.
///
///
/// Unique fabric name.
@@ -297,8 +292,7 @@ public partial interface IReplicationProtectionContainersOperations
/// The name of the protection container.
///
///
- /// The request object to add a protectable
- /// item.
+ /// The request object to add a protectable item.
///
///
/// The headers that will be added to request.
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationRecoveryServicesProvidersOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationRecoveryServicesProvidersOperations.cs
index dde7ee57a231..b51b959f6190 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationRecoveryServicesProvidersOperations.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationRecoveryServicesProvidersOperations.cs
@@ -54,14 +54,11 @@ public partial interface IReplicationRecoveryServicesProvidersOperations
///
Task> RefreshProviderWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Deletes provider from fabric.
- /// Note: Deleting provider for any fabric other than SingleHost is
- /// unsupported. To
- /// maintain backward compatibility for released clients the object
- /// "deleteRspInput" is
+ /// Deletes provider from fabric. Note: Deleting provider for any
+ /// fabric other than SingleHost is unsupported. To maintain backward
+ /// compatibility for released clients the object "deleteRspInput" is
/// used (if the object is empty we assume that it is old client and
- /// continue the old
- /// behavior).
+ /// continue the old behavior).
///
///
/// The operation to removes/delete(unregister) a recovery services
@@ -169,8 +166,7 @@ public partial interface IReplicationRecoveryServicesProvidersOperations
Task>> ListByReplicationFabricsWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets the list of registered recovery services providers in the
- /// vault.
- /// This is a view only api.
+ /// vault. This is a view only api.
///
///
/// Lists the registered recovery services providers in the vault
@@ -221,14 +217,11 @@ public partial interface IReplicationRecoveryServicesProvidersOperations
///
Task> BeginRefreshProviderWithHttpMessagesAsync(string fabricName, string providerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Deletes provider from fabric.
- /// Note: Deleting provider for any fabric other than SingleHost is
- /// unsupported. To
- /// maintain backward compatibility for released clients the object
- /// "deleteRspInput" is
+ /// Deletes provider from fabric. Note: Deleting provider for any
+ /// fabric other than SingleHost is unsupported. To maintain backward
+ /// compatibility for released clients the object "deleteRspInput" is
/// used (if the object is empty we assume that it is old client and
- /// continue the old
- /// behavior).
+ /// continue the old behavior).
///
///
/// The operation to removes/delete(unregister) a recovery services
@@ -308,8 +301,7 @@ public partial interface IReplicationRecoveryServicesProvidersOperations
Task>> ListByReplicationFabricsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets the list of registered recovery services providers in the
- /// vault.
- /// This is a view only api.
+ /// vault. This is a view only api.
///
///
/// Lists the registered recovery services providers in the vault
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationVaultHealthOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationVaultHealthOperations.cs
new file mode 100644
index 000000000000..e8d2ad5772f3
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/IReplicationVaultHealthOperations.cs
@@ -0,0 +1,50 @@
+// 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.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// ReplicationVaultHealthOperations operations.
+ ///
+ public partial interface IReplicationVaultHealthOperations
+ {
+ ///
+ /// Gets the health summary for the vault.
+ ///
+ ///
+ /// Gets the health details of the vault.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ISiteRecoveryManagementClient.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ISiteRecoveryManagementClient.cs
index 9740e55b085f..22549c474a88 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ISiteRecoveryManagementClient.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ISiteRecoveryManagementClient.cs
@@ -79,6 +79,11 @@ public partial interface ISiteRecoveryManagementClient : System.IDisposable
bool? GenerateClientRequestId { get; set; }
+ ///
+ /// Gets the IReplicationVaultHealthOperations.
+ ///
+ IReplicationVaultHealthOperations ReplicationVaultHealth { get; }
+
///
/// Gets the IReplicationProtectedItemsOperations.
///
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AEnableProtectionInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AEnableProtectionInput.cs
index babf3e24e33e..de7feab7a1f0 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AEnableProtectionInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AEnableProtectionInput.cs
@@ -45,7 +45,9 @@ public A2AEnableProtectionInput()
/// The recovery availability
/// set Id.
/// The list of vm disk details.
- public A2AEnableProtectionInput(string fabricObjectId = default(string), string recoveryContainerId = default(string), string recoveryResourceGroupId = default(string), string recoveryCloudServiceId = default(string), string recoveryAvailabilitySetId = default(string), IList vmDisks = default(IList))
+ /// The list of vm managed disk
+ /// details.
+ public A2AEnableProtectionInput(string fabricObjectId = default(string), string recoveryContainerId = default(string), string recoveryResourceGroupId = default(string), string recoveryCloudServiceId = default(string), string recoveryAvailabilitySetId = default(string), IList vmDisks = default(IList), IList vmManagedDisks = default(IList))
{
FabricObjectId = fabricObjectId;
RecoveryContainerId = recoveryContainerId;
@@ -53,6 +55,7 @@ public A2AEnableProtectionInput()
RecoveryCloudServiceId = recoveryCloudServiceId;
RecoveryAvailabilitySetId = recoveryAvailabilitySetId;
VmDisks = vmDisks;
+ VmManagedDisks = vmManagedDisks;
CustomInit();
}
@@ -98,5 +101,11 @@ public A2AEnableProtectionInput()
[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; }
+
}
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AFailoverProviderInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AFailoverProviderInput.cs
index a52773807d61..467416d59729 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AFailoverProviderInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AFailoverProviderInput.cs
@@ -33,9 +33,8 @@ public A2AFailoverProviderInput()
/// Initializes a new instance of the A2AFailoverProviderInput 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.
+ /// 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))
@@ -52,8 +51,8 @@ public A2AFailoverProviderInput()
///
/// 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.
+ /// particular recovery point. In case of latest recovery point, null
+ /// should be passed.
///
[JsonProperty(PropertyName = "recoveryPointId")]
public string RecoveryPointId { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2APolicyCreationInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2APolicyCreationInput.cs
index d3cda9c2bd0e..486e8325a6aa 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2APolicyCreationInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2APolicyCreationInput.cs
@@ -33,12 +33,10 @@ public A2APolicyCreationInput()
/// Initializes a new instance of the A2APolicyCreationInput class.
///
/// A value indicating whether multi-VM
- /// sync has to be enabled.
- /// Value should be 'Enabled' or 'Disabled'. Possible values include:
- /// 'Enable', 'Disable'
+ /// sync has to be enabled. Value should be 'Enabled' or 'Disabled'.
+ /// Possible values include: 'Enable', 'Disable'
/// The duration in minutes until
- /// which the recovery points need to be
- /// stored.
+ /// which the recovery points need to be stored.
/// The crash
/// consistent snapshot frequency (in minutes).
/// The app consistent
@@ -59,8 +57,7 @@ public A2APolicyCreationInput()
///
/// Gets or sets the duration in minutes until which the recovery
- /// points need to be
- /// stored.
+ /// points need to be stored.
///
[JsonProperty(PropertyName = "recoveryPointHistory")]
public int? RecoveryPointHistory { get; set; }
@@ -79,9 +76,8 @@ public A2APolicyCreationInput()
///
/// Gets or sets a value indicating whether multi-VM sync has to be
- /// enabled.
- /// Value should be 'Enabled' or 'Disabled'. Possible values include:
- /// 'Enable', 'Disable'
+ /// enabled. Value should be 'Enabled' or 'Disabled'. Possible values
+ /// include: 'Enable', 'Disable'
///
[JsonProperty(PropertyName = "multiVmSyncStatus")]
public SetMultiVmSyncStatus MultiVmSyncStatus { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2APolicyDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2APolicyDetails.cs
index 610dad381bf3..7a7264bdeeaf 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2APolicyDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2APolicyDetails.cs
@@ -35,8 +35,7 @@ public A2APolicyDetails()
/// The recovery point
/// threshold in minutes.
/// The duration in minutes until
- /// which the recovery points need to be
- /// stored.
+ /// which the recovery points need to be stored.
/// The app consistent
/// snapshot frequency in minutes.
/// A value indicating whether multi-VM
@@ -66,8 +65,7 @@ public A2APolicyDetails()
///
/// Gets or sets the duration in minutes until which the recovery
- /// points need to be
- /// stored.
+ /// points need to be stored.
///
[JsonProperty(PropertyName = "recoveryPointHistory")]
public int? RecoveryPointHistory { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AProtectedDiskDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AProtectedDiskDetails.cs
index 7292b8da4387..78c8949ae74d 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AProtectedDiskDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AProtectedDiskDetails.cs
@@ -32,38 +32,38 @@ public A2AProtectedDiskDetails()
/// Initializes a new instance of the A2AProtectedDiskDetails class.
///
/// The disk uri.
- /// The disk name.
- /// The disk capacity in
- /// bytes.
/// The recovery disk
/// storage account.
- /// The primary
- /// staging storage account.
/// The primary disk
/// storage account.
/// Recovery disk uri.
+ /// The disk name.
+ /// The disk capacity in
+ /// bytes.
+ /// The primary
+ /// staging storage account.
/// The type of disk.
/// A value indicating whether resync is
/// required for this disk.
/// The percentage of the
- /// monitoring job. The type of the monitoring job
- /// is defined by MonitoringJobType property.
+ /// monitoring job. The type of the monitoring job is defined by
+ /// MonitoringJobType property.
/// The type of the monitoring job. The
- /// progress is contained in
- /// MonitoringPercentageCompletion property.
+ /// progress is contained in MonitoringPercentageCompletion
+ /// property.
/// The data
/// pending for replication in MB at staging account.
/// The data pending at
/// source virtual machine in MB.
- public A2AProtectedDiskDetails(string diskUri = default(string), string diskName = default(string), long? diskCapacityInBytes = default(long?), string recoveryAzureStorageAccountId = default(string), string primaryStagingAzureStorageAccountId = default(string), string primaryDiskAzureStorageAccountId = default(string), string recoveryDiskUri = default(string), string diskType = default(string), bool? resyncRequired = default(bool?), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), double? dataPendingInStagingStorageAccountInMB = default(double?), double? dataPendingAtSourceAgentInMB = default(double?))
+ public 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?))
{
DiskUri = diskUri;
- DiskName = diskName;
- DiskCapacityInBytes = diskCapacityInBytes;
RecoveryAzureStorageAccountId = recoveryAzureStorageAccountId;
- PrimaryStagingAzureStorageAccountId = primaryStagingAzureStorageAccountId;
PrimaryDiskAzureStorageAccountId = primaryDiskAzureStorageAccountId;
RecoveryDiskUri = recoveryDiskUri;
+ DiskName = diskName;
+ DiskCapacityInBytes = diskCapacityInBytes;
+ PrimaryStagingAzureStorageAccountId = primaryStagingAzureStorageAccountId;
DiskType = diskType;
ResyncRequired = resyncRequired;
MonitoringPercentageCompletion = monitoringPercentageCompletion;
@@ -84,30 +84,12 @@ public A2AProtectedDiskDetails()
[JsonProperty(PropertyName = "diskUri")]
public string DiskUri { get; set; }
- ///
- /// Gets or sets the disk name.
- ///
- [JsonProperty(PropertyName = "diskName")]
- public string DiskName { get; set; }
-
- ///
- /// Gets or sets the disk capacity in bytes.
- ///
- [JsonProperty(PropertyName = "diskCapacityInBytes")]
- public long? DiskCapacityInBytes { get; set; }
-
///
/// Gets or sets the recovery disk storage account.
///
[JsonProperty(PropertyName = "recoveryAzureStorageAccountId")]
public string RecoveryAzureStorageAccountId { get; set; }
- ///
- /// Gets or sets the primary staging storage account.
- ///
- [JsonProperty(PropertyName = "primaryStagingAzureStorageAccountId")]
- public string PrimaryStagingAzureStorageAccountId { get; set; }
-
///
/// Gets or sets the primary disk storage account.
///
@@ -120,6 +102,24 @@ public A2AProtectedDiskDetails()
[JsonProperty(PropertyName = "recoveryDiskUri")]
public string RecoveryDiskUri { get; set; }
+ ///
+ /// Gets or sets the disk name.
+ ///
+ [JsonProperty(PropertyName = "diskName")]
+ public string DiskName { get; set; }
+
+ ///
+ /// Gets or sets the disk capacity in bytes.
+ ///
+ [JsonProperty(PropertyName = "diskCapacityInBytes")]
+ public long? DiskCapacityInBytes { get; set; }
+
+ ///
+ /// Gets or sets the primary staging storage account.
+ ///
+ [JsonProperty(PropertyName = "primaryStagingAzureStorageAccountId")]
+ public string PrimaryStagingAzureStorageAccountId { get; set; }
+
///
/// Gets or sets the type of disk.
///
@@ -135,16 +135,14 @@ public A2AProtectedDiskDetails()
///
/// Gets or sets the percentage of the monitoring job. The type of the
- /// monitoring job
- /// is defined by MonitoringJobType property.
+ /// monitoring job is defined by MonitoringJobType property.
///
[JsonProperty(PropertyName = "monitoringPercentageCompletion")]
public int? MonitoringPercentageCompletion { get; set; }
///
/// Gets or sets the type of the monitoring job. The progress is
- /// contained in
- /// MonitoringPercentageCompletion property.
+ /// contained in MonitoringPercentageCompletion property.
///
[JsonProperty(PropertyName = "monitoringJobType")]
public string MonitoringJobType { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AProtectedManagedDiskDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AProtectedManagedDiskDetails.cs
new file mode 100644
index 000000000000..33b41b21cd27
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AProtectedManagedDiskDetails.cs
@@ -0,0 +1,157 @@
+// 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.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// A2A protected managed disk details.
+ ///
+ public partial class A2AProtectedManagedDiskDetails
+ {
+ ///
+ /// Initializes a new instance of the A2AProtectedManagedDiskDetails
+ /// class.
+ ///
+ public A2AProtectedManagedDiskDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the A2AProtectedManagedDiskDetails
+ /// class.
+ ///
+ /// The managed disk Arm id.
+ /// The recovery disk
+ /// resource group Arm Id.
+ /// Recovery disk Arm Id.
+ /// The disk name.
+ /// The disk capacity in
+ /// bytes.
+ /// The primary
+ /// staging storage account.
+ /// The type of disk.
+ /// A value indicating whether resync is
+ /// required for this disk.
+ /// The percentage of the
+ /// monitoring job. The type of the monitoring job is defined by
+ /// MonitoringJobType property.
+ /// The type of the monitoring job. The
+ /// progress is contained in MonitoringPercentageCompletion
+ /// property.
+ /// The data
+ /// pending for replication in MB at staging account.
+ /// The data pending at
+ /// source virtual machine in MB.
+ public A2AProtectedManagedDiskDetails(string diskId = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryDiskId = default(string), string diskName = default(string), long? diskCapacityInBytes = default(long?), string primaryStagingAzureStorageAccountId = default(string), string diskType = default(string), bool? resyncRequired = default(bool?), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), double? dataPendingInStagingStorageAccountInMB = default(double?), double? dataPendingAtSourceAgentInMB = default(double?))
+ {
+ DiskId = diskId;
+ RecoveryAzureResourceGroupId = recoveryAzureResourceGroupId;
+ RecoveryDiskId = recoveryDiskId;
+ DiskName = diskName;
+ DiskCapacityInBytes = diskCapacityInBytes;
+ PrimaryStagingAzureStorageAccountId = primaryStagingAzureStorageAccountId;
+ DiskType = diskType;
+ ResyncRequired = resyncRequired;
+ MonitoringPercentageCompletion = monitoringPercentageCompletion;
+ MonitoringJobType = monitoringJobType;
+ DataPendingInStagingStorageAccountInMB = dataPendingInStagingStorageAccountInMB;
+ DataPendingAtSourceAgentInMB = dataPendingAtSourceAgentInMB;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the managed disk Arm id.
+ ///
+ [JsonProperty(PropertyName = "diskId")]
+ public string DiskId { get; set; }
+
+ ///
+ /// Gets or sets the recovery disk resource group Arm Id.
+ ///
+ [JsonProperty(PropertyName = "recoveryAzureResourceGroupId")]
+ public string RecoveryAzureResourceGroupId { get; set; }
+
+ ///
+ /// Gets or sets recovery disk Arm Id.
+ ///
+ [JsonProperty(PropertyName = "recoveryDiskId")]
+ public string RecoveryDiskId { get; set; }
+
+ ///
+ /// Gets or sets the disk name.
+ ///
+ [JsonProperty(PropertyName = "diskName")]
+ public string DiskName { get; set; }
+
+ ///
+ /// Gets or sets the disk capacity in bytes.
+ ///
+ [JsonProperty(PropertyName = "diskCapacityInBytes")]
+ public long? DiskCapacityInBytes { get; set; }
+
+ ///
+ /// Gets or sets the primary staging storage account.
+ ///
+ [JsonProperty(PropertyName = "primaryStagingAzureStorageAccountId")]
+ public string PrimaryStagingAzureStorageAccountId { get; set; }
+
+ ///
+ /// Gets or sets the type of disk.
+ ///
+ [JsonProperty(PropertyName = "diskType")]
+ public string DiskType { get; set; }
+
+ ///
+ /// Gets or sets a value indicating whether resync is required for this
+ /// disk.
+ ///
+ [JsonProperty(PropertyName = "resyncRequired")]
+ public bool? ResyncRequired { get; set; }
+
+ ///
+ /// Gets or sets the percentage of the monitoring job. The type of the
+ /// monitoring job is defined by MonitoringJobType property.
+ ///
+ [JsonProperty(PropertyName = "monitoringPercentageCompletion")]
+ public int? MonitoringPercentageCompletion { get; set; }
+
+ ///
+ /// Gets or sets the type of the monitoring job. The progress is
+ /// contained in MonitoringPercentageCompletion property.
+ ///
+ [JsonProperty(PropertyName = "monitoringJobType")]
+ public string MonitoringJobType { get; set; }
+
+ ///
+ /// Gets or sets the data pending for replication in MB at staging
+ /// account.
+ ///
+ [JsonProperty(PropertyName = "dataPendingInStagingStorageAccountInMB")]
+ public double? DataPendingInStagingStorageAccountInMB { get; set; }
+
+ ///
+ /// Gets or sets the data pending at source virtual machine in MB.
+ ///
+ [JsonProperty(PropertyName = "dataPendingAtSourceAgentInMB")]
+ public double? DataPendingAtSourceAgentInMB { get; set; }
+
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AReplicationDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AReplicationDetails.cs
index 3b2154b7e32f..4bd4d394b0b4 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AReplicationDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AReplicationDetails.cs
@@ -40,6 +40,8 @@ public A2AReplicationDetails()
/// The multi vm group name.
/// The management Id.
/// The list of protected disks.
+ /// The list of protected managed
+ /// disks.
/// Primary fabric
/// location.
/// The recovery fabric
@@ -61,11 +63,11 @@ public A2AReplicationDetails()
/// The synced configuration
/// details.
/// The percentage of the
- /// monitoring job. The type of the monitoring job
- /// is defined by MonitoringJobType property.
+ /// monitoring job. The type of the monitoring job is defined by
+ /// MonitoringJobType property.
/// The type of the monitoring job. The
- /// progress is contained in
- /// MonitoringPercentageCompletion property.
+ /// progress is contained in MonitoringPercentageCompletion
+ /// property.
/// The last heartbeat received from the
/// source server.
/// The agent version.
@@ -78,20 +80,24 @@ public A2AReplicationDetails()
/// 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 A2AReplicationDetails(string fabricObjectId = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string managementId = default(string), IList protectedDisks = default(IList), string primaryFabricLocation = default(string), string recoveryFabricLocation = default(string), string osType = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureVMName = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryCloudService = default(string), string recoveryAvailabilitySet = default(string), string selectedRecoveryAzureNetworkId = default(string), IList vmNics = default(IList), AzureToAzureVmSyncedConfigDetails vmSyncedConfigDetails = default(AzureToAzureVmSyncedConfigDetails), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string agentVersion = default(string), bool? isReplicationAgentUpdateRequired = default(bool?), string recoveryFabricObjectId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), string lifecycleId = default(string))
+ /// 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.
+ /// The test failover
+ /// fabric object Id.
+ /// The last RPO value in seconds.
+ /// The time (in UTC) when the last
+ /// RPO value was calculated by Protection Service.
+ public A2AReplicationDetails(string fabricObjectId = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string managementId = default(string), IList protectedDisks = default(IList), IList protectedManagedDisks = default(IList), string primaryFabricLocation = default(string), string recoveryFabricLocation = default(string), string osType = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureVMName = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryCloudService = default(string), string recoveryAvailabilitySet = default(string), string selectedRecoveryAzureNetworkId = default(string), IList vmNics = default(IList), AzureToAzureVmSyncedConfigDetails vmSyncedConfigDetails = default(AzureToAzureVmSyncedConfigDetails), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string agentVersion = default(string), bool? isReplicationAgentUpdateRequired = default(bool?), string recoveryFabricObjectId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), string lifecycleId = default(string), string testFailoverRecoveryFabricObjectId = default(string), long? rpoInSeconds = default(long?), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?))
{
FabricObjectId = fabricObjectId;
MultiVmGroupId = multiVmGroupId;
MultiVmGroupName = multiVmGroupName;
ManagementId = managementId;
ProtectedDisks = protectedDisks;
+ ProtectedManagedDisks = protectedManagedDisks;
PrimaryFabricLocation = primaryFabricLocation;
RecoveryFabricLocation = recoveryFabricLocation;
OsType = osType;
@@ -112,6 +118,9 @@ public A2AReplicationDetails()
VmProtectionState = vmProtectionState;
VmProtectionStateDescription = vmProtectionStateDescription;
LifecycleId = lifecycleId;
+ TestFailoverRecoveryFabricObjectId = testFailoverRecoveryFabricObjectId;
+ RpoInSeconds = rpoInSeconds;
+ LastRpoCalculatedTime = lastRpoCalculatedTime;
CustomInit();
}
@@ -150,6 +159,12 @@ public A2AReplicationDetails()
[JsonProperty(PropertyName = "protectedDisks")]
public IList ProtectedDisks { get; set; }
+ ///
+ /// Gets or sets the list of protected managed disks.
+ ///
+ [JsonProperty(PropertyName = "protectedManagedDisks")]
+ public IList ProtectedManagedDisks { get; set; }
+
///
/// Gets or sets primary fabric location.
///
@@ -218,16 +233,14 @@ public A2AReplicationDetails()
///
/// Gets or sets the percentage of the monitoring job. The type of the
- /// monitoring job
- /// is defined by MonitoringJobType property.
+ /// monitoring job is defined by MonitoringJobType property.
///
[JsonProperty(PropertyName = "monitoringPercentageCompletion")]
public int? MonitoringPercentageCompletion { get; set; }
///
/// Gets or sets the type of the monitoring job. The progress is
- /// contained in
- /// MonitoringPercentageCompletion property.
+ /// contained in MonitoringPercentageCompletion property.
///
[JsonProperty(PropertyName = "monitoringJobType")]
public string MonitoringJobType { get; set; }
@@ -271,16 +284,33 @@ public A2AReplicationDetails()
///
/// 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"
+ /// 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; }
+ ///
+ /// Gets or sets the test failover fabric object Id.
+ ///
+ [JsonProperty(PropertyName = "testFailoverRecoveryFabricObjectId")]
+ public string TestFailoverRecoveryFabricObjectId { get; set; }
+
+ ///
+ /// Gets or sets the last RPO value in seconds.
+ ///
+ [JsonProperty(PropertyName = "rpoInSeconds")]
+ public long? RpoInSeconds { get; set; }
+
+ ///
+ /// Gets or sets the time (in UTC) when the last RPO value was
+ /// calculated by Protection Service.
+ ///
+ [JsonProperty(PropertyName = "lastRpoCalculatedTime")]
+ public System.DateTime? LastRpoCalculatedTime { get; set; }
+
}
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2ARpRecoveryPointType.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2ARpRecoveryPointType.cs
index e2959f7ce4ea..b2af3e8c5620 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2ARpRecoveryPointType.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2ARpRecoveryPointType.cs
@@ -32,4 +32,41 @@ public enum A2ARpRecoveryPointType
[EnumMember(Value = "LatestProcessed")]
LatestProcessed
}
+ internal static class A2ARpRecoveryPointTypeEnumExtension
+ {
+ internal static string ToSerializedValue(this A2ARpRecoveryPointType? value) =>
+ value == null ? null : ((A2ARpRecoveryPointType)value).ToSerializedValue();
+
+ internal static string ToSerializedValue(this A2ARpRecoveryPointType value)
+ {
+ switch( value )
+ {
+ case A2ARpRecoveryPointType.Latest:
+ return "Latest";
+ case A2ARpRecoveryPointType.LatestApplicationConsistent:
+ return "LatestApplicationConsistent";
+ case A2ARpRecoveryPointType.LatestCrashConsistent:
+ return "LatestCrashConsistent";
+ case A2ARpRecoveryPointType.LatestProcessed:
+ return "LatestProcessed";
+ }
+ return null;
+ }
+
+ internal static A2ARpRecoveryPointType? ParseA2ARpRecoveryPointType(this string value)
+ {
+ switch( value )
+ {
+ case "Latest":
+ return A2ARpRecoveryPointType.Latest;
+ case "LatestApplicationConsistent":
+ return A2ARpRecoveryPointType.LatestApplicationConsistent;
+ case "LatestCrashConsistent":
+ return A2ARpRecoveryPointType.LatestCrashConsistent;
+ case "LatestProcessed":
+ return A2ARpRecoveryPointType.LatestProcessed;
+ }
+ return null;
+ }
+ }
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2ASwitchProtectionInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2ASwitchProtectionInput.cs
index d96d6c1046a9..1fe6c0fd33a4 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2ASwitchProtectionInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2ASwitchProtectionInput.cs
@@ -37,6 +37,8 @@ public A2ASwitchProtectionInput()
/// The recovery container
/// Id.
/// The list of vm disk details.
+ /// The list of vm managed disk
+ /// details.
/// The recovery resource group
/// Id. Valid for V2 scenarios.
/// The recovery cloud service Id.
@@ -44,10 +46,11 @@ public A2ASwitchProtectionInput()
/// The recovery availability
/// set.
/// The Policy Id.
- public A2ASwitchProtectionInput(string recoveryContainerId = default(string), IList vmDisks = default(IList), string recoveryResourceGroupId = default(string), string recoveryCloudServiceId = default(string), string recoveryAvailabilitySetId = default(string), string policyId = default(string))
+ 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))
{
RecoveryContainerId = recoveryContainerId;
VmDisks = vmDisks;
+ VmManagedDisks = vmManagedDisks;
RecoveryResourceGroupId = recoveryResourceGroupId;
RecoveryCloudServiceId = recoveryCloudServiceId;
RecoveryAvailabilitySetId = recoveryAvailabilitySetId;
@@ -72,6 +75,12 @@ public A2ASwitchProtectionInput()
[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. Valid for V2
/// scenarios.
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AVmManagedDiskInputDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AVmManagedDiskInputDetails.cs
new file mode 100644
index 000000000000..1f174974b46a
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/A2AVmManagedDiskInputDetails.cs
@@ -0,0 +1,73 @@
+// 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.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Azure VM managed disk input details.
+ ///
+ public partial class A2AVmManagedDiskInputDetails
+ {
+ ///
+ /// Initializes a new instance of the A2AVmManagedDiskInputDetails
+ /// class.
+ ///
+ public A2AVmManagedDiskInputDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the A2AVmManagedDiskInputDetails
+ /// class.
+ ///
+ /// The disk Id.
+ /// The primary
+ /// staging storage account Arm Id.
+ /// The target resource group Arm
+ /// Id.
+ public A2AVmManagedDiskInputDetails(string diskId = default(string), string primaryStagingAzureStorageAccountId = default(string), string recoveryResourceGroupId = default(string))
+ {
+ DiskId = diskId;
+ PrimaryStagingAzureStorageAccountId = primaryStagingAzureStorageAccountId;
+ RecoveryResourceGroupId = recoveryResourceGroupId;
+ 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 Arm Id.
+ ///
+ [JsonProperty(PropertyName = "primaryStagingAzureStorageAccountId")]
+ public string PrimaryStagingAzureStorageAccountId { get; set; }
+
+ ///
+ /// Gets or sets the target resource group Arm Id.
+ ///
+ [JsonProperty(PropertyName = "recoveryResourceGroupId")]
+ public string RecoveryResourceGroupId { get; set; }
+
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ASRTask.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ASRTask.cs
index c0fc51d38f52..eda4c36716e9 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ASRTask.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ASRTask.cs
@@ -41,19 +41,18 @@ public ASRTask()
/// task.
/// The name.
/// The State. It is one of these values -
- /// NotStarted, InProgress,
- /// Succeeded, Failed, Cancelled, Suspended or Other.
+ /// NotStarted, InProgress, Succeeded, Failed, Cancelled, Suspended or
+ /// Other.
/// The description of the task state.
- /// For example - For Succeeded state,
- /// description can be Completed, PartiallySucceeded,
- /// CompletedWithInformation or Skipped.
+ /// For example - For Succeeded state, description can be Completed,
+ /// PartiallySucceeded, CompletedWithInformation or Skipped.
/// The type of task. Details in CustomDetails
/// property depend on this type.
/// The custom task details based on the
/// task type.
/// The custom task details based
- /// on the task type, if the task type is
- /// GroupTaskDetails or one of the types derived from it.
+ /// on the task type, if the task type is GroupTaskDetails or one of
+ /// the types derived from it.
/// The task error details.
public ASRTask(string taskId = default(string), string name = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), IList allowedActions = default(IList), string friendlyName = default(string), string state = default(string), string stateDescription = default(string), string taskType = default(string), TaskTypeDetails customDetails = default(TaskTypeDetails), GroupTaskDetails groupTaskCustomDetails = default(GroupTaskDetails), IList errors = default(IList))
{
@@ -115,16 +114,14 @@ public ASRTask()
///
/// Gets or sets the State. It is one of these values - NotStarted,
- /// InProgress,
- /// Succeeded, Failed, Cancelled, Suspended or Other.
+ /// InProgress, Succeeded, Failed, Cancelled, Suspended or Other.
///
[JsonProperty(PropertyName = "state")]
public string State { get; set; }
///
/// Gets or sets the description of the task state. For example - For
- /// Succeeded state,
- /// description can be Completed, PartiallySucceeded,
+ /// Succeeded state, description can be Completed, PartiallySucceeded,
/// CompletedWithInformation or Skipped.
///
[JsonProperty(PropertyName = "stateDescription")]
@@ -145,8 +142,7 @@ public ASRTask()
///
/// Gets or sets the custom task details based on the task type, if the
- /// task type is
- /// GroupTaskDetails or one of the types derived from it.
+ /// task type is GroupTaskDetails or one of the types derived from it.
///
[JsonProperty(PropertyName = "groupTaskCustomDetails")]
public GroupTaskDetails GroupTaskCustomDetails { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/AlternateLocationRecoveryOption.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/AlternateLocationRecoveryOption.cs
index 4ed94c20404a..3fa462c575c1 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/AlternateLocationRecoveryOption.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/AlternateLocationRecoveryOption.cs
@@ -28,4 +28,33 @@ public enum AlternateLocationRecoveryOption
[EnumMember(Value = "NoAction")]
NoAction
}
+ internal static class AlternateLocationRecoveryOptionEnumExtension
+ {
+ internal static string ToSerializedValue(this AlternateLocationRecoveryOption? value) =>
+ value == null ? null : ((AlternateLocationRecoveryOption)value).ToSerializedValue();
+
+ internal static string ToSerializedValue(this AlternateLocationRecoveryOption value)
+ {
+ switch( value )
+ {
+ case AlternateLocationRecoveryOption.CreateVmIfNotFound:
+ return "CreateVmIfNotFound";
+ case AlternateLocationRecoveryOption.NoAction:
+ return "NoAction";
+ }
+ return null;
+ }
+
+ internal static AlternateLocationRecoveryOption? ParseAlternateLocationRecoveryOption(this string value)
+ {
+ switch( value )
+ {
+ case "CreateVmIfNotFound":
+ return AlternateLocationRecoveryOption.CreateVmIfNotFound;
+ case "NoAction":
+ return AlternateLocationRecoveryOption.NoAction;
+ }
+ return null;
+ }
+ }
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/AsrJobDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/AsrJobDetails.cs
index 8c2293e176ae..7369e1e9ec13 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/AsrJobDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/AsrJobDetails.cs
@@ -33,9 +33,8 @@ public AsrJobDetails()
/// Initializes a new instance of the AsrJobDetails class.
///
/// The affected object properties
- /// like source server, source cloud, target
- /// server, target cloud etc. based on the workflow object
- /// details.
+ /// like source server, source cloud, target server, target cloud etc.
+ /// based on the workflow object details.
public AsrJobDetails(IDictionary affectedObjectDetails = default(IDictionary))
: base(affectedObjectDetails)
{
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/AzureToAzureCreateNetworkMappingInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/AzureToAzureCreateNetworkMappingInput.cs
index 1e6cb011530a..4ed54a0bafa6 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/AzureToAzureCreateNetworkMappingInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/AzureToAzureCreateNetworkMappingInput.cs
@@ -17,8 +17,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
///
/// Create network mappings input properties/behaviour specific to Azure to
- /// Azure Network
- /// mapping.
+ /// Azure Network mapping.
///
[Newtonsoft.Json.JsonObject("AzureToAzure")]
public partial class AzureToAzureCreateNetworkMappingInput : FabricSpecificCreateNetworkMappingInput
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/AzureToAzureNetworkMappingSettings.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/AzureToAzureNetworkMappingSettings.cs
index f772a95ae475..d8951ee577cc 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/AzureToAzureNetworkMappingSettings.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/AzureToAzureNetworkMappingSettings.cs
@@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
using System.Linq;
///
- /// A2A Network Mapping fabric specific settings.
+ /// A2A Network Mapping fabric specific settings.
///
[Newtonsoft.Json.JsonObject("AzureToAzure")]
public partial class AzureToAzureNetworkMappingSettings : NetworkMappingFabricSpecificSettings
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/CreateNetworkMappingInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/CreateNetworkMappingInput.cs
index 5f324b4639fc..53cde2acda7c 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/CreateNetworkMappingInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/CreateNetworkMappingInput.cs
@@ -31,7 +31,8 @@ public CreateNetworkMappingInput()
///
/// Initializes a new instance of the CreateNetworkMappingInput class.
///
- /// Properties.
+ /// Input properties for creating network
+ /// mapping.
public CreateNetworkMappingInput(CreateNetworkMappingInputProperties properties = default(CreateNetworkMappingInputProperties))
{
Properties = properties;
@@ -44,7 +45,7 @@ public CreateNetworkMappingInput()
partial void CustomInit();
///
- /// Gets or sets properties.
+ /// Gets or sets input properties for creating network mapping.
///
[JsonProperty(PropertyName = "properties")]
public CreateNetworkMappingInputProperties Properties { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/DataSyncStatus.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/DataSyncStatus.cs
index 59c7fb1d28b6..4d377699bf78 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/DataSyncStatus.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/DataSyncStatus.cs
@@ -28,4 +28,33 @@ public enum DataSyncStatus
[EnumMember(Value = "ForSynchronization")]
ForSynchronization
}
+ internal static class DataSyncStatusEnumExtension
+ {
+ internal static string ToSerializedValue(this DataSyncStatus? value) =>
+ value == null ? null : ((DataSyncStatus)value).ToSerializedValue();
+
+ internal static string ToSerializedValue(this DataSyncStatus value)
+ {
+ switch( value )
+ {
+ case DataSyncStatus.ForDownTime:
+ return "ForDownTime";
+ case DataSyncStatus.ForSynchronization:
+ return "ForSynchronization";
+ }
+ return null;
+ }
+
+ internal static DataSyncStatus? ParseDataSyncStatus(this string value)
+ {
+ switch( value )
+ {
+ case "ForDownTime":
+ return DataSyncStatus.ForDownTime;
+ case "ForSynchronization":
+ return DataSyncStatus.ForSynchronization;
+ }
+ return null;
+ }
+ }
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/DisableProtectionReason.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/DisableProtectionReason.cs
index 79c2259d65d0..88594036b7e9 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/DisableProtectionReason.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/DisableProtectionReason.cs
@@ -28,4 +28,33 @@ public enum DisableProtectionReason
[EnumMember(Value = "MigrationComplete")]
MigrationComplete
}
+ internal static class DisableProtectionReasonEnumExtension
+ {
+ internal static string ToSerializedValue(this DisableProtectionReason? value) =>
+ value == null ? null : ((DisableProtectionReason)value).ToSerializedValue();
+
+ internal static string ToSerializedValue(this DisableProtectionReason value)
+ {
+ switch( value )
+ {
+ case DisableProtectionReason.NotSpecified:
+ return "NotSpecified";
+ case DisableProtectionReason.MigrationComplete:
+ return "MigrationComplete";
+ }
+ return null;
+ }
+
+ internal static DisableProtectionReason? ParseDisableProtectionReason(this string value)
+ {
+ switch( value )
+ {
+ case "NotSpecified":
+ return DisableProtectionReason.NotSpecified;
+ case "MigrationComplete":
+ return DisableProtectionReason.MigrationComplete;
+ }
+ return null;
+ }
+ }
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/Display.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/Display.cs
index 389ccccc6a3a..f1e6a33c2061 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/Display.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/Display.cs
@@ -17,10 +17,10 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
///
/// Contains the localized display information for this particular
- /// operation / action. These value will be used by several clients for
- /// (1) custom role definitions for RBAC;
- /// (2) complex query filters for the event service; and
- /// (3) audit history / records for management operations.
+ /// operation / action. These value will be used by several clients for (1)
+ /// custom role definitions for RBAC; (2) complex query filters for the
+ /// event service; and (3) audit history / records for management
+ /// operations.
///
public partial class Display
{
@@ -35,42 +35,31 @@ 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 publisher/company responsible.
- /// It should use Title Casing and begin with "Microsoft" for 1st party
- /// services.
- /// e.g. "Microsoft Monitoring Insights" or "Microsoft
- /// Compute."
- /// The resource.
- /// The localized friendly form of 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 field).
- /// e.g. "Virtual Machines" or "Scheduler Job Collections", or "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'
- /// 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 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
+ /// The provider. The localized friendly form of
+ /// 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."
+ /// The resource. The localized friendly form of
+ /// 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
+ /// field). e.g. "Virtual Machines" or "Scheduler Job Collections", or
+ /// "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'
+ /// 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 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'
public Display(string provider = default(string), string resource = default(string), string operation = default(string), string description = default(string))
@@ -88,55 +77,46 @@ public Display()
partial void CustomInit();
///
- /// Gets or sets the provider.
- /// The localized friendly form of 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."
+ /// Gets or sets the provider. The localized friendly form of 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."
///
[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 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 field).
- /// e.g. "Virtual Machines" or "Scheduler Job Collections", or "Virtual
- /// Machine VM Sizes" or "Scheduler Jobs"
+ /// Gets or sets the resource. The localized friendly form of 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
+ /// field). e.g. "Virtual Machines" or "Scheduler Job Collections", or
+ /// "Virtual Machine VM Sizes" or "Scheduler Jobs"
///
[JsonProperty(PropertyName = "resource")]
public string Resource { get; set; }
///
- /// Gets or sets 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'
+ /// Gets or sets 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'
///
[JsonProperty(PropertyName = "operation")]
public string Operation { get; set; }
///
- /// 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 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
+ /// 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
+ /// 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'
///
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/EnableProtectionInputProperties.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/EnableProtectionInputProperties.cs
index a99671a82067..e434cc09c468 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/EnableProtectionInputProperties.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/EnableProtectionInputProperties.cs
@@ -37,9 +37,9 @@ public EnableProtectionInputProperties()
/// The protectable item Id.
/// The ReplicationProviderInput.
/// For HyperVReplicaAzure provider, it will be
- /// AzureEnableProtectionInput object.
- /// For San provider, it will be SanEnableProtectionInput object.
- /// For HyperVReplicaAzure provider, it can be null.
+ /// AzureEnableProtectionInput object. For San provider, it will be
+ /// SanEnableProtectionInput object. For HyperVReplicaAzure provider,
+ /// it can be null.
public EnableProtectionInputProperties(string policyId = default(string), string protectableItemId = default(string), EnableProtectionProviderSpecificInput providerSpecificDetails = default(EnableProtectionProviderSpecificInput))
{
PolicyId = policyId;
@@ -66,11 +66,10 @@ public EnableProtectionInputProperties()
public string ProtectableItemId { get; set; }
///
- /// Gets or sets the ReplicationProviderInput.
- /// For HyperVReplicaAzure provider, it will be
- /// AzureEnableProtectionInput object.
- /// For San provider, it will be SanEnableProtectionInput object.
- /// For HyperVReplicaAzure provider, it can be null.
+ /// Gets or sets the ReplicationProviderInput. For HyperVReplicaAzure
+ /// provider, it will be AzureEnableProtectionInput object. For San
+ /// provider, it will be SanEnableProtectionInput object. For
+ /// HyperVReplicaAzure provider, it can be null.
///
[JsonProperty(PropertyName = "providerSpecificDetails")]
public EnableProtectionProviderSpecificInput ProviderSpecificDetails { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/EventProperties.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/EventProperties.cs
index 0adf80be81c1..2b3402abf40c 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/EventProperties.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/EventProperties.cs
@@ -35,11 +35,11 @@ public EventProperties()
///
/// The Id of the monitoring event.
/// The event name.
- /// The type of the event.
- /// for example: VM Health, Server Health, Job Failure etc.
+ /// The type of the event. for example: VM
+ /// Health, Server Health, Job Failure etc.
/// The friendly name of the
- /// source of the event on which it
- /// is raised (for example, VM, VMM etc).
+ /// source of the event on which it is raised (for example, VM, VMM
+ /// etc).
/// The severity of the event.
/// The time of occurence of the
/// event.
@@ -49,8 +49,7 @@ public EventProperties()
/// The event specific
/// settings.
/// The list of errors / warnings capturing
- /// details associated with the
- /// issue(s).
+ /// 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))
{
EventCode = eventCode;
@@ -84,16 +83,15 @@ public EventProperties()
public string Description { get; set; }
///
- /// Gets or sets the type of the event.
- /// for example: VM Health, Server Health, Job Failure etc.
+ /// Gets or sets the type of the event. for example: VM Health, Server
+ /// Health, Job Failure etc.
///
[JsonProperty(PropertyName = "eventType")]
public string EventType { get; set; }
///
/// Gets or sets the friendly name of the source of the event on which
- /// it
- /// is raised (for example, VM, VMM etc).
+ /// it is raised (for example, VM, VMM etc).
///
[JsonProperty(PropertyName = "affectedObjectFriendlyName")]
public string AffectedObjectFriendlyName { get; set; }
@@ -130,8 +128,7 @@ public EventProperties()
///
/// Gets or sets the list of errors / warnings capturing details
- /// associated with the
- /// issue(s).
+ /// associated with the issue(s).
///
[JsonProperty(PropertyName = "healthErrors")]
public IList HealthErrors { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/EventQueryParameter.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/EventQueryParameter.cs
new file mode 100644
index 000000000000..feb21e0636e7
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/EventQueryParameter.cs
@@ -0,0 +1,111 @@
+// 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.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Implements the event query parameter.
+ ///
+ public partial class EventQueryParameter
+ {
+ ///
+ /// Initializes a new instance of the EventQueryParameter class.
+ ///
+ public EventQueryParameter()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the EventQueryParameter class.
+ ///
+ /// The source id of the events to be
+ /// queried.
+ /// The severity of the events to be
+ /// queried.
+ /// The type of the events to be
+ /// queried.
+ /// The affected object server id of the
+ /// events to be queried.
+ /// The affected object name
+ /// of 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?))
+ {
+ EventCode = eventCode;
+ Severity = severity;
+ EventType = eventType;
+ FabricName = fabricName;
+ AffectedObjectFriendlyName = affectedObjectFriendlyName;
+ StartTime = startTime;
+ EndTime = endTime;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the source id of the events to be queried.
+ ///
+ [JsonProperty(PropertyName = "EventCode")]
+ public string EventCode { get; set; }
+
+ ///
+ /// Gets or sets the severity of the events to be queried.
+ ///
+ [JsonProperty(PropertyName = "Severity")]
+ public string Severity { get; set; }
+
+ ///
+ /// Gets or sets the type of the events to be queried.
+ ///
+ [JsonProperty(PropertyName = "EventType")]
+ public string EventType { get; set; }
+
+ ///
+ /// Gets or sets the affected object server id of the events to be
+ /// queried.
+ ///
+ [JsonProperty(PropertyName = "FabricName")]
+ public string FabricName { get; set; }
+
+ ///
+ /// Gets or sets the affected object name of the events to be queried.
+ ///
+ [JsonProperty(PropertyName = "AffectedObjectFriendlyName")]
+ public string AffectedObjectFriendlyName { get; set; }
+
+ ///
+ /// Gets or sets the start time of the time range within which the
+ /// events are to be queried.
+ ///
+ [JsonProperty(PropertyName = "StartTime")]
+ public System.DateTime? StartTime { get; set; }
+
+ ///
+ /// Gets or sets the end time of the time range within which the events
+ /// are to be queried.
+ ///
+ [JsonProperty(PropertyName = "EndTime")]
+ public System.DateTime? EndTime { get; set; }
+
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ExportJobDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ExportJobDetails.cs
index eb66535d5c7e..eadeaade84b4 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ExportJobDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ExportJobDetails.cs
@@ -34,9 +34,8 @@ public ExportJobDetails()
/// Initializes a new instance of the ExportJobDetails class.
///
/// The affected object properties
- /// like source server, source cloud, target
- /// server, target cloud etc. based on the workflow object
- /// details.
+ /// like source server, source cloud, target server, target cloud etc.
+ /// based on the workflow object details.
/// BlobUri of the exported jobs.
/// The sas token to access blob.
public ExportJobDetails(IDictionary affectedObjectDetails = default(IDictionary), string blobUri = default(string), string sasToken = default(string))
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/FailoverDeploymentModel.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/FailoverDeploymentModel.cs
index 391563e3cda0..056b4a4be66a 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/FailoverDeploymentModel.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/FailoverDeploymentModel.cs
@@ -30,4 +30,37 @@ public enum FailoverDeploymentModel
[EnumMember(Value = "ResourceManager")]
ResourceManager
}
+ internal static class FailoverDeploymentModelEnumExtension
+ {
+ internal static string ToSerializedValue(this FailoverDeploymentModel? value) =>
+ value == null ? null : ((FailoverDeploymentModel)value).ToSerializedValue();
+
+ internal static string ToSerializedValue(this FailoverDeploymentModel value)
+ {
+ switch( value )
+ {
+ case FailoverDeploymentModel.NotApplicable:
+ return "NotApplicable";
+ case FailoverDeploymentModel.Classic:
+ return "Classic";
+ case FailoverDeploymentModel.ResourceManager:
+ return "ResourceManager";
+ }
+ return null;
+ }
+
+ internal static FailoverDeploymentModel? ParseFailoverDeploymentModel(this string value)
+ {
+ switch( value )
+ {
+ case "NotApplicable":
+ return FailoverDeploymentModel.NotApplicable;
+ case "Classic":
+ return FailoverDeploymentModel.Classic;
+ case "ResourceManager":
+ return FailoverDeploymentModel.ResourceManager;
+ }
+ return null;
+ }
+ }
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/FailoverJobDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/FailoverJobDetails.cs
new file mode 100644
index 000000000000..3c5f3fcf80ff
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/FailoverJobDetails.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 Microsoft.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// This class represents the details for a failover job.
+ ///
+ public partial class FailoverJobDetails : JobDetails
+ {
+ ///
+ /// Initializes a new instance of the FailoverJobDetails class.
+ ///
+ public FailoverJobDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the FailoverJobDetails class.
+ ///
+ /// The affected object properties
+ /// like source server, source cloud, target server, target cloud etc.
+ /// based on the workflow object details.
+ /// The test VM details.
+ public FailoverJobDetails(IDictionary affectedObjectDetails = default(IDictionary), IList protectedItemDetails = default(IList))
+ : base(affectedObjectDetails)
+ {
+ ProtectedItemDetails = protectedItemDetails;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the test VM details.
+ ///
+ [JsonProperty(PropertyName = "protectedItemDetails")]
+ public IList ProtectedItemDetails { get; set; }
+
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/FailoverReplicationProtectedItemDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/FailoverReplicationProtectedItemDetails.cs
new file mode 100644
index 000000000000..533ab9ce70b7
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/FailoverReplicationProtectedItemDetails.cs
@@ -0,0 +1,121 @@
+// 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.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Failover details for a replication protected item.
+ ///
+ public partial class FailoverReplicationProtectedItemDetails
+ {
+ ///
+ /// Initializes a new instance of the
+ /// FailoverReplicationProtectedItemDetails class.
+ ///
+ public FailoverReplicationProtectedItemDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// FailoverReplicationProtectedItemDetails class.
+ ///
+ /// The name.
+ /// The friendly name.
+ /// The test Vm name.
+ /// The test Vm friendly name.
+ /// The network connection
+ /// status.
+ /// The network friendly
+ /// name.
+ /// The network subnet.
+ /// The recovery point Id.
+ /// The recovery point time.
+ public FailoverReplicationProtectedItemDetails(string name = default(string), string friendlyName = default(string), string testVmName = default(string), string testVmFriendlyName = default(string), string networkConnectionStatus = default(string), string networkFriendlyName = default(string), string subnet = default(string), string recoveryPointId = default(string), System.DateTime? recoveryPointTime = default(System.DateTime?))
+ {
+ Name = name;
+ FriendlyName = friendlyName;
+ TestVmName = testVmName;
+ TestVmFriendlyName = testVmFriendlyName;
+ NetworkConnectionStatus = networkConnectionStatus;
+ NetworkFriendlyName = networkFriendlyName;
+ Subnet = subnet;
+ RecoveryPointId = recoveryPointId;
+ RecoveryPointTime = recoveryPointTime;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the name.
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets the friendly name.
+ ///
+ [JsonProperty(PropertyName = "friendlyName")]
+ public string FriendlyName { get; set; }
+
+ ///
+ /// Gets or sets the test Vm name.
+ ///
+ [JsonProperty(PropertyName = "testVmName")]
+ public string TestVmName { get; set; }
+
+ ///
+ /// Gets or sets the test Vm friendly name.
+ ///
+ [JsonProperty(PropertyName = "testVmFriendlyName")]
+ public string TestVmFriendlyName { get; set; }
+
+ ///
+ /// Gets or sets the network connection status.
+ ///
+ [JsonProperty(PropertyName = "networkConnectionStatus")]
+ public string NetworkConnectionStatus { get; set; }
+
+ ///
+ /// Gets or sets the network friendly name.
+ ///
+ [JsonProperty(PropertyName = "networkFriendlyName")]
+ public string NetworkFriendlyName { get; set; }
+
+ ///
+ /// Gets or sets the network subnet.
+ ///
+ [JsonProperty(PropertyName = "subnet")]
+ public string Subnet { get; set; }
+
+ ///
+ /// Gets or sets the recovery point Id.
+ ///
+ [JsonProperty(PropertyName = "recoveryPointId")]
+ public string RecoveryPointId { get; set; }
+
+ ///
+ /// Gets or sets the recovery point time.
+ ///
+ [JsonProperty(PropertyName = "recoveryPointTime")]
+ public System.DateTime? RecoveryPointTime { get; set; }
+
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/GroupTaskDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/GroupTaskDetails.cs
index fb46c87291f9..a86a1b89a4a6 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/GroupTaskDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/GroupTaskDetails.cs
@@ -19,8 +19,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
///
/// This class represents the group task details when parent child
- /// relationship exists
- /// in the drill down.
+ /// relationship exists in the drill down.
///
public partial class GroupTaskDetails
{
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthError.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthError.cs
index 8365ba7447f5..13c1f4460683 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthError.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthError.cs
@@ -13,10 +13,12 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
using Microsoft.Azure.Management.RecoveryServices;
using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
using System.Linq;
///
- /// The health error class.
+ /// Health Error
///
public partial class HealthError
{
@@ -31,6 +33,8 @@ public HealthError()
///
/// Initializes a new instance of the HealthError class.
///
+ /// Source of error.
+ /// Type of error.
/// Level of error.
/// Error code.
/// Error message.
@@ -41,8 +45,11 @@ public HealthError()
/// DRA error
/// message.
/// ID of the entity.
- public HealthError(string errorLevel = default(string), string errorCode = default(string), string errorMessage = default(string), string possibleCauses = default(string), string recommendedAction = default(string), System.DateTime? creationTimeUtc = default(System.DateTime?), string recoveryProviderErrorMessage = default(string), string entityId = default(string))
+ /// The child health errors.
+ public HealthError(string errorSource = default(string), string errorType = default(string), string errorLevel = default(string), string errorCode = default(string), string errorMessage = default(string), string possibleCauses = default(string), string recommendedAction = default(string), System.DateTime? creationTimeUtc = default(System.DateTime?), string recoveryProviderErrorMessage = default(string), string entityId = default(string), IList childErrors = default(IList))
{
+ ErrorSource = errorSource;
+ ErrorType = errorType;
ErrorLevel = errorLevel;
ErrorCode = errorCode;
ErrorMessage = errorMessage;
@@ -51,6 +58,7 @@ public HealthError()
CreationTimeUtc = creationTimeUtc;
RecoveryProviderErrorMessage = recoveryProviderErrorMessage;
EntityId = entityId;
+ ChildErrors = childErrors;
CustomInit();
}
@@ -59,6 +67,18 @@ public HealthError()
///
partial void CustomInit();
+ ///
+ /// Gets or sets source of error.
+ ///
+ [JsonProperty(PropertyName = "errorSource")]
+ public string ErrorSource { get; set; }
+
+ ///
+ /// Gets or sets type of error.
+ ///
+ [JsonProperty(PropertyName = "errorType")]
+ public string ErrorType { get; set; }
+
///
/// Gets or sets level of error.
///
@@ -107,5 +127,11 @@ public HealthError()
[JsonProperty(PropertyName = "entityId")]
public string EntityId { get; set; }
+ ///
+ /// Gets or sets the child health errors.
+ ///
+ [JsonProperty(PropertyName = "childErrors")]
+ public IList ChildErrors { get; set; }
+
}
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthErrorCategory.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthErrorCategory.cs
new file mode 100644
index 000000000000..5540adbccc3f
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthErrorCategory.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 Microsoft.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using System.Runtime;
+ using System.Runtime.Serialization;
+
+ ///
+ /// Defines values for HealthErrorCategory.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum HealthErrorCategory
+ {
+ [EnumMember(Value = "Replication")]
+ Replication,
+ [EnumMember(Value = "TestFailover")]
+ TestFailover,
+ [EnumMember(Value = "Configuration")]
+ Configuration
+ }
+ internal static class HealthErrorCategoryEnumExtension
+ {
+ internal static string ToSerializedValue(this HealthErrorCategory? value) =>
+ value == null ? null : ((HealthErrorCategory)value).ToSerializedValue();
+
+ internal static string ToSerializedValue(this HealthErrorCategory value)
+ {
+ switch( value )
+ {
+ case HealthErrorCategory.Replication:
+ return "Replication";
+ case HealthErrorCategory.TestFailover:
+ return "TestFailover";
+ case HealthErrorCategory.Configuration:
+ return "Configuration";
+ }
+ return null;
+ }
+
+ internal static HealthErrorCategory? ParseHealthErrorCategory(this string value)
+ {
+ switch( value )
+ {
+ case "Replication":
+ return HealthErrorCategory.Replication;
+ case "TestFailover":
+ return HealthErrorCategory.TestFailover;
+ case "Configuration":
+ return HealthErrorCategory.Configuration;
+ }
+ return null;
+ }
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthErrorSummary.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthErrorSummary.cs
new file mode 100644
index 000000000000..8d3b566db650
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HealthErrorSummary.cs
@@ -0,0 +1,120 @@
+// 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.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// class to define the summary of the health error details.
+ ///
+ public partial class HealthErrorSummary
+ {
+ ///
+ /// Initializes a new instance of the HealthErrorSummary class.
+ ///
+ public HealthErrorSummary()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the HealthErrorSummary class.
+ ///
+ /// The code of the health error.
+ /// The category of the health error. Possible
+ /// values include: 'Replication', 'TestFailover',
+ /// 'Configuration'
+ /// Severity of error. Possible values include:
+ /// 'NONE', 'Warning', 'Error', 'Info'
+ /// The summary message of the health
+ /// error.
+ /// The type of affected ARM
+ /// resource.
+ /// The sub type of any
+ /// subcomponent within the ARM resource that this might be applicable.
+ /// Value remains null if not applicable.
+ /// The list of affected
+ /// resource correlation Ids. This can be used to uniquely identify the
+ /// count of items affected by a specific category and severity as well
+ /// as count of item affected by an specific issue.
+ public HealthErrorSummary(string summaryCode = default(string), HealthErrorCategory? category = default(HealthErrorCategory?), Severity? severity = default(Severity?), string summaryMessage = default(string), string affectedResourceType = default(string), string affectedResourceSubtype = default(string), IList affectedResourceCorrelationIds = default(IList))
+ {
+ SummaryCode = summaryCode;
+ Category = category;
+ Severity = severity;
+ SummaryMessage = summaryMessage;
+ AffectedResourceType = affectedResourceType;
+ AffectedResourceSubtype = affectedResourceSubtype;
+ AffectedResourceCorrelationIds = affectedResourceCorrelationIds;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the code of the health error.
+ ///
+ [JsonProperty(PropertyName = "summaryCode")]
+ public string SummaryCode { get; set; }
+
+ ///
+ /// Gets or sets the category of the health error. Possible values
+ /// include: 'Replication', 'TestFailover', 'Configuration'
+ ///
+ [JsonProperty(PropertyName = "category")]
+ public HealthErrorCategory? Category { get; set; }
+
+ ///
+ /// Gets or sets severity of error. Possible values include: 'NONE',
+ /// 'Warning', 'Error', 'Info'
+ ///
+ [JsonProperty(PropertyName = "severity")]
+ public Severity? Severity { get; set; }
+
+ ///
+ /// Gets or sets the summary message of the health error.
+ ///
+ [JsonProperty(PropertyName = "summaryMessage")]
+ public string SummaryMessage { get; set; }
+
+ ///
+ /// Gets or sets the type of affected ARM resource.
+ ///
+ [JsonProperty(PropertyName = "affectedResourceType")]
+ public string AffectedResourceType { get; set; }
+
+ ///
+ /// Gets or sets the sub type of any subcomponent within the ARM
+ /// resource that this might be applicable. Value remains null if not
+ /// applicable.
+ ///
+ [JsonProperty(PropertyName = "affectedResourceSubtype")]
+ public string AffectedResourceSubtype { get; set; }
+
+ ///
+ /// Gets or sets the list of affected resource correlation Ids. This
+ /// can be used to uniquely identify the count of items affected by a
+ /// specific category and severity as well as count of item affected by
+ /// an specific issue.
+ ///
+ [JsonProperty(PropertyName = "affectedResourceCorrelationIds")]
+ public IList AffectedResourceCorrelationIds { get; set; }
+
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureEnableProtectionInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureEnableProtectionInput.cs
index 6213a2bd89fe..95e3c6b0f09e 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureEnableProtectionInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureEnableProtectionInput.cs
@@ -47,20 +47,19 @@ public HyperVReplicaAzureEnableProtectionInput()
/// The selected target Azure subnet
/// Id.
/// The selected option to enable
- /// RDP\SSH on target vm after failover.
- /// String value of {SrsDataContract.EnableRDPOnTargetOption}
- /// enum.
+ /// RDP\SSH on target vm after failover. String value of
+ /// {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
/// protected.
/// The Id of the target
- /// resource group (for classic deployment) in which the
- /// failover VM is to be created.
+ /// resource group (for classic deployment) in which the failover VM is
+ /// to be created.
/// The Id of the target
- /// resource group (for resource manager deployment) in
- /// which the failover VM is to be created.
+ /// resource group (for resource manager deployment) in which the
+ /// failover VM is to be created.
/// A value indicating whether managed
/// disks should be used during failover.
public HyperVReplicaAzureEnableProtectionInput(string hvHostVmId = default(string), string vmName = default(string), string osType = default(string), string vhdId = default(string), string targetStorageAccountId = default(string), string targetAzureNetworkId = default(string), string targetAzureSubnetId = default(string), string enableRDPOnTargetOption = default(string), string targetAzureVmName = default(string), string logStorageAccountId = default(string), IList disksToInclude = default(IList), string targetAzureV1ResourceGroupId = default(string), string targetAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string))
@@ -131,8 +130,8 @@ public HyperVReplicaAzureEnableProtectionInput()
///
/// Gets or sets the selected option to enable RDP\SSH on target vm
- /// after failover.
- /// String value of {SrsDataContract.EnableRDPOnTargetOption} enum.
+ /// after failover. String value of
+ /// {SrsDataContract.EnableRDPOnTargetOption} enum.
///
[JsonProperty(PropertyName = "enableRDPOnTargetOption")]
public string EnableRDPOnTargetOption { get; set; }
@@ -158,16 +157,14 @@ public HyperVReplicaAzureEnableProtectionInput()
///
/// Gets or sets the Id of the target resource group (for classic
- /// deployment) in which the
- /// failover VM is to be created.
+ /// deployment) in which the failover VM is to be created.
///
[JsonProperty(PropertyName = "targetAzureV1ResourceGroupId")]
public string TargetAzureV1ResourceGroupId { get; set; }
///
/// Gets or sets the Id of the target resource group (for resource
- /// manager deployment) in
- /// which the failover VM is to be created.
+ /// manager deployment) in which the failover VM is to be created.
///
[JsonProperty(PropertyName = "targetAzureV2ResourceGroupId")]
public string TargetAzureV2ResourceGroupId { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureFailoverProviderInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureFailoverProviderInput.cs
index 6204ee370105..26238ed9ea2f 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureFailoverProviderInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureFailoverProviderInput.cs
@@ -40,9 +40,8 @@ public HyperVReplicaAzureFailoverProviderInput()
/// 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.
+ /// 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))
{
VaultLocation = vaultLocation;
@@ -77,8 +76,8 @@ public HyperVReplicaAzureFailoverProviderInput()
///
/// 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.
+ /// particular recovery point. In case of latest recovery point, null
+ /// should be passed.
///
[JsonProperty(PropertyName = "recoveryPointId")]
public string RecoveryPointId { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzurePolicyDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzurePolicyDetails.cs
index 1517bcc5ec1a..b09b6eb35037 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzurePolicyDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzurePolicyDetails.cs
@@ -42,11 +42,10 @@ public HyperVReplicaAzurePolicyDetails()
/// application consistent snapshot within the VM.
/// The replication interval.
/// The scheduled start time
- /// for the initial replication. If this parameter
- /// is Null, the initial replication starts immediately.
+ /// for the initial replication. If this parameter is Null, the initial
+ /// replication starts immediately.
/// A value indicating whether encryption is
- /// enabled for virtual machines
- /// in this cloud.
+ /// enabled for virtual machines in this cloud.
/// The active storage account
/// Id.
public HyperVReplicaAzurePolicyDetails(int? recoveryPointHistoryDurationInHours = default(int?), int? applicationConsistentSnapshotFrequencyInHours = default(int?), int? replicationInterval = default(int?), string onlineReplicationStartTime = default(string), string encryption = default(string), string activeStorageAccountId = default(string))
@@ -67,16 +66,14 @@ public HyperVReplicaAzurePolicyDetails()
///
/// Gets or sets the duration (in hours) to which point the recovery
- /// history needs to be
- /// maintained.
+ /// history needs to be maintained.
///
[JsonProperty(PropertyName = "recoveryPointHistoryDurationInHours")]
public int? RecoveryPointHistoryDurationInHours { get; set; }
///
/// Gets or sets the interval (in hours) at which Hyper-V Replica
- /// should create an
- /// application consistent snapshot within the VM.
+ /// should create an application consistent snapshot within the VM.
///
[JsonProperty(PropertyName = "applicationConsistentSnapshotFrequencyInHours")]
public int? ApplicationConsistentSnapshotFrequencyInHours { get; set; }
@@ -89,16 +86,15 @@ public HyperVReplicaAzurePolicyDetails()
///
/// Gets or sets the scheduled start time for the initial replication.
- /// If this parameter
- /// is Null, the initial replication starts immediately.
+ /// If this parameter is Null, the initial replication starts
+ /// immediately.
///
[JsonProperty(PropertyName = "onlineReplicationStartTime")]
public string OnlineReplicationStartTime { get; set; }
///
/// Gets or sets a value indicating whether encryption is enabled for
- /// virtual machines
- /// in this cloud.
+ /// virtual machines in this cloud.
///
[JsonProperty(PropertyName = "encryption")]
public string Encryption { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzurePolicyInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzurePolicyInput.cs
index 19470bb72d54..6a118796c43f 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzurePolicyInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzurePolicyInput.cs
@@ -37,20 +37,18 @@ public HyperVReplicaAzurePolicyInput()
/// class.
///
/// The duration (in hours)
- /// to which point the recovery history needs to be
- /// maintained.
+ /// to which point the recovery history needs to be maintained.
/// The
/// interval (in hours) at which Hyper-V Replica should create an
/// application consistent snapshot within the VM.
/// The replication interval.
/// The scheduled start time
- /// for the initial replication. If this parameter
- /// is Null, the initial replication starts immediately.
+ /// for the initial replication. If this parameter is Null, the initial
+ /// replication starts immediately.
/// A value indicating whether encryption
/// needs to be enabled for Vms in this cloud.
/// The list of storage accounts to which
- /// the VMs in the primary cloud can
- /// replicate to.
+ /// the VMs in the primary cloud can replicate to.
public HyperVReplicaAzurePolicyInput(int? recoveryPointHistoryDuration = default(int?), int? applicationConsistentSnapshotFrequencyInHours = default(int?), int? replicationInterval = default(int?), string onlineReplicationStartTime = default(string), string encryption = default(string), IList storageAccounts = default(IList))
{
RecoveryPointHistoryDuration = recoveryPointHistoryDuration;
@@ -69,16 +67,14 @@ public HyperVReplicaAzurePolicyInput()
///
/// Gets or sets the duration (in hours) to which point the recovery
- /// history needs to be
- /// maintained.
+ /// history needs to be maintained.
///
[JsonProperty(PropertyName = "recoveryPointHistoryDuration")]
public int? RecoveryPointHistoryDuration { get; set; }
///
/// Gets or sets the interval (in hours) at which Hyper-V Replica
- /// should create an
- /// application consistent snapshot within the VM.
+ /// should create an application consistent snapshot within the VM.
///
[JsonProperty(PropertyName = "applicationConsistentSnapshotFrequencyInHours")]
public int? ApplicationConsistentSnapshotFrequencyInHours { get; set; }
@@ -91,8 +87,8 @@ public HyperVReplicaAzurePolicyInput()
///
/// Gets or sets the scheduled start time for the initial replication.
- /// If this parameter
- /// is Null, the initial replication starts immediately.
+ /// If this parameter is Null, the initial replication starts
+ /// immediately.
///
[JsonProperty(PropertyName = "onlineReplicationStartTime")]
public string OnlineReplicationStartTime { get; set; }
@@ -106,8 +102,7 @@ public HyperVReplicaAzurePolicyInput()
///
/// Gets or sets the list of storage accounts to which the VMs in the
- /// primary cloud can
- /// replicate to.
+ /// primary cloud can replicate to.
///
[JsonProperty(PropertyName = "storageAccounts")]
public IList StorageAccounts { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureReplicationDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureReplicationDetails.cs
index a3bf93a2222a..16052a316686 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureReplicationDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureReplicationDetails.cs
@@ -44,9 +44,8 @@ public HyperVReplicaAzureReplicationDetails()
/// The recovery Azure
/// storage account.
/// The ARM id of the
- /// log storage acount used for replication.
- /// This will be set to null if no log storage account was provided
- /// during enable
+ /// log storage account used for replication. This will be set to null
+ /// if no log storage account was provided during enable
/// protection.
/// The Last replication time.
/// The virtual machine Id.
@@ -66,9 +65,8 @@ public HyperVReplicaAzureReplicationDetails()
/// The CPU count of the VM on the
/// primary side.
/// The selected option to enable
- /// RDP\SSH on target vm after failover.
- /// String value of {SrsDataContract.EnableRDPOnTargetOption}
- /// enum.
+ /// RDP\SSH on target vm after failover. String value of
+ /// {SrsDataContract.EnableRDPOnTargetOption} enum.
/// The target resource
/// group Id.
/// The recovery availability
@@ -133,11 +131,9 @@ public HyperVReplicaAzureReplicationDetails()
public string RecoveryAzureStorageAccount { get; set; }
///
- /// Gets or sets the ARM id of the log storage acount used for
- /// replication.
- /// This will be set to null if no log storage account was provided
- /// during enable
- /// protection.
+ /// Gets or sets the ARM id of the log storage account used for
+ /// replication. This will be set to null if no log storage account was
+ /// provided during enable protection.
///
[JsonProperty(PropertyName = "recoveryAzureLogStorageAccountId")]
public string RecoveryAzureLogStorageAccountId { get; set; }
@@ -210,8 +206,8 @@ public HyperVReplicaAzureReplicationDetails()
///
/// Gets or sets the selected option to enable RDP\SSH on target vm
- /// after failover.
- /// String value of {SrsDataContract.EnableRDPOnTargetOption} enum.
+ /// after failover. String value of
+ /// {SrsDataContract.EnableRDPOnTargetOption} enum.
///
[JsonProperty(PropertyName = "enableRDPOnTargetOption")]
public string EnableRDPOnTargetOption { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureRpRecoveryPointType.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureRpRecoveryPointType.cs
index a4b2d587446c..96f98d89795c 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureRpRecoveryPointType.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaAzureRpRecoveryPointType.cs
@@ -30,4 +30,37 @@ public enum HyperVReplicaAzureRpRecoveryPointType
[EnumMember(Value = "LatestProcessed")]
LatestProcessed
}
+ internal static class HyperVReplicaAzureRpRecoveryPointTypeEnumExtension
+ {
+ internal static string ToSerializedValue(this HyperVReplicaAzureRpRecoveryPointType? value) =>
+ value == null ? null : ((HyperVReplicaAzureRpRecoveryPointType)value).ToSerializedValue();
+
+ internal static string ToSerializedValue(this HyperVReplicaAzureRpRecoveryPointType value)
+ {
+ switch( value )
+ {
+ case HyperVReplicaAzureRpRecoveryPointType.Latest:
+ return "Latest";
+ case HyperVReplicaAzureRpRecoveryPointType.LatestApplicationConsistent:
+ return "LatestApplicationConsistent";
+ case HyperVReplicaAzureRpRecoveryPointType.LatestProcessed:
+ return "LatestProcessed";
+ }
+ return null;
+ }
+
+ internal static HyperVReplicaAzureRpRecoveryPointType? ParseHyperVReplicaAzureRpRecoveryPointType(this string value)
+ {
+ switch( value )
+ {
+ case "Latest":
+ return HyperVReplicaAzureRpRecoveryPointType.Latest;
+ case "LatestApplicationConsistent":
+ return HyperVReplicaAzureRpRecoveryPointType.LatestApplicationConsistent;
+ case "LatestProcessed":
+ return HyperVReplicaAzureRpRecoveryPointType.LatestProcessed;
+ }
+ return null;
+ }
+ }
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaBasePolicyDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaBasePolicyDetails.cs
index 01e6ef67fe4b..8f30d6faec30 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaBasePolicyDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaBasePolicyDetails.cs
@@ -52,8 +52,8 @@ public HyperVReplicaBasePolicyDetails()
/// A value indicating the
/// authentication type.
/// A value indicating whether the
- /// VM has to be auto deleted.
- /// Supported Values: String.Empty, None, OnRecoveryCloud
+ /// VM has to be auto deleted. Supported Values: String.Empty, None,
+ /// 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;
@@ -132,8 +132,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/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaBluePolicyDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaBluePolicyDetails.cs
index 0c6bcc4f7874..d46c3fda9282 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaBluePolicyDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaBluePolicyDetails.cs
@@ -55,8 +55,8 @@ public HyperVReplicaBluePolicyDetails()
/// A value indicating the
/// authentication type.
/// A value indicating whether the
- /// VM has to be auto deleted.
- /// Supported Values: String.Empty, None, OnRecoveryCloud
+ /// VM has to be auto deleted. Supported Values: String.Empty, None,
+ /// OnRecoveryCloud
public HyperVReplicaBluePolicyDetails(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 replicaDeletionOption = default(string))
{
ReplicationFrequencyInSeconds = replicationFrequencyInSeconds;
@@ -142,8 +142,7 @@ public HyperVReplicaBluePolicyDetails()
///
/// 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/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaPolicyDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaPolicyDetails.cs
index 934ff9d5da6f..a8f03436d71f 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaPolicyDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/HyperVReplicaPolicyDetails.cs
@@ -51,8 +51,8 @@ public HyperVReplicaPolicyDetails()
/// A value indicating the
/// authentication type.
/// A value indicating whether the
- /// VM has to be auto deleted.
- /// Supported Values: String.Empty, None, OnRecoveryCloud
+ /// VM has to be auto deleted. Supported Values: String.Empty, None,
+ /// OnRecoveryCloud
public HyperVReplicaPolicyDetails(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;
@@ -131,8 +131,7 @@ public HyperVReplicaPolicyDetails()
///
/// 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/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/IdentityInformation.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/IdentityInformation.cs
new file mode 100644
index 000000000000..594444afae79
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/IdentityInformation.cs
@@ -0,0 +1,127 @@
+// 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.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Identity details.
+ ///
+ public partial class IdentityInformation
+ {
+ ///
+ /// Initializes a new instance of the IdentityInformation class.
+ ///
+ public IdentityInformation()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the IdentityInformation class.
+ ///
+ /// The identity provider type.
+ /// Value is the ToString() of a IdentityProviderType value. Possible
+ /// values include: 'RecoveryServicesActiveDirectory',
+ /// 'CustomerActiveDirectory'
+ /// The tenant Id for the service principal with
+ /// which the on-premise management/data plane components would
+ /// communicate with our Azure services.
+ /// The application/client Id for the
+ /// service principal with which the on-premise management/data plane
+ /// components would communicate with our Azure services.
+ /// The object Id of the service principal with
+ /// which the on-premise management/data plane components would
+ /// communicate with our Azure services.
+ /// The intended Audience of the service
+ /// principal with which the on-premise management/data plane
+ /// components would communicate with our Azure services.
+ /// The base authority for Azure Active
+ /// Directory authentication.
+ /// The certificate thumbprint.
+ /// Applicable only if IdentityProviderType is
+ /// RecoveryServicesActiveDirectory.
+ public IdentityInformation(IdentityProviderType? identityProviderType = default(IdentityProviderType?), string tenantId = default(string), string applicationId = default(string), string objectId = default(string), string audience = default(string), string aadAuthority = default(string), string certificateThumbprint = default(string))
+ {
+ IdentityProviderType = identityProviderType;
+ TenantId = tenantId;
+ ApplicationId = applicationId;
+ ObjectId = objectId;
+ Audience = audience;
+ AadAuthority = aadAuthority;
+ CertificateThumbprint = certificateThumbprint;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the identity provider type. Value is the ToString() of
+ /// a IdentityProviderType value. Possible values include:
+ /// 'RecoveryServicesActiveDirectory', 'CustomerActiveDirectory'
+ ///
+ [JsonProperty(PropertyName = "identityProviderType")]
+ public IdentityProviderType? IdentityProviderType { get; set; }
+
+ ///
+ /// Gets or sets the tenant Id for the service principal with which the
+ /// on-premise management/data plane components would communicate with
+ /// our Azure services.
+ ///
+ [JsonProperty(PropertyName = "tenantId")]
+ public string TenantId { get; set; }
+
+ ///
+ /// Gets or sets the application/client Id for the service principal
+ /// with which the on-premise management/data plane components would
+ /// communicate with our Azure services.
+ ///
+ [JsonProperty(PropertyName = "applicationId")]
+ public string ApplicationId { get; set; }
+
+ ///
+ /// Gets or sets the object Id of the service principal with which the
+ /// on-premise management/data plane components would communicate with
+ /// our Azure services.
+ ///
+ [JsonProperty(PropertyName = "objectId")]
+ public string ObjectId { get; set; }
+
+ ///
+ /// Gets or sets the intended Audience of the service principal with
+ /// which the on-premise management/data plane components would
+ /// communicate with our Azure services.
+ ///
+ [JsonProperty(PropertyName = "audience")]
+ public string Audience { get; set; }
+
+ ///
+ /// Gets or sets the base authority for Azure Active Directory
+ /// authentication.
+ ///
+ [JsonProperty(PropertyName = "aadAuthority")]
+ public string AadAuthority { get; set; }
+
+ ///
+ /// Gets or sets the certificate thumbprint. Applicable only if
+ /// IdentityProviderType is RecoveryServicesActiveDirectory.
+ ///
+ [JsonProperty(PropertyName = "certificateThumbprint")]
+ public string CertificateThumbprint { get; set; }
+
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/IdentityProviderType.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/IdentityProviderType.cs
new file mode 100644
index 000000000000..4ec4c4c07384
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/IdentityProviderType.cs
@@ -0,0 +1,60 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+
+namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
+{
+ using Microsoft.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using System.Runtime;
+ using System.Runtime.Serialization;
+
+ ///
+ /// Defines values for IdentityProviderType.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum IdentityProviderType
+ {
+ [EnumMember(Value = "RecoveryServicesActiveDirectory")]
+ RecoveryServicesActiveDirectory,
+ [EnumMember(Value = "CustomerActiveDirectory")]
+ CustomerActiveDirectory
+ }
+ internal static class IdentityProviderTypeEnumExtension
+ {
+ internal static string ToSerializedValue(this IdentityProviderType? value) =>
+ value == null ? null : ((IdentityProviderType)value).ToSerializedValue();
+
+ internal static string ToSerializedValue(this IdentityProviderType value)
+ {
+ switch( value )
+ {
+ case IdentityProviderType.RecoveryServicesActiveDirectory:
+ return "RecoveryServicesActiveDirectory";
+ case IdentityProviderType.CustomerActiveDirectory:
+ return "CustomerActiveDirectory";
+ }
+ return null;
+ }
+
+ internal static IdentityProviderType? ParseIdentityProviderType(this string value)
+ {
+ switch( value )
+ {
+ case "RecoveryServicesActiveDirectory":
+ return IdentityProviderType.RecoveryServicesActiveDirectory;
+ case "CustomerActiveDirectory":
+ return IdentityProviderType.CustomerActiveDirectory;
+ }
+ return null;
+ }
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2EnableProtectionInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2EnableProtectionInput.cs
index d0f7b512b3ff..f4284eb621e4 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2EnableProtectionInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2EnableProtectionInput.cs
@@ -49,19 +49,17 @@ public InMageAzureV2EnableProtectionInput()
/// The selected target Azure subnet
/// Id.
/// The selected option to enable
- /// RDP\SSH on target vm after failover.
- /// String value of {SrsDataContract.EnableRDPOnTargetOption}
- /// enum.
+ /// RDP\SSH on target vm after failover. String value of
+ /// {SrsDataContract.EnableRDPOnTargetOption} enum.
/// The target azure Vm Name.
/// The storage account to be used
- /// for logging
- /// during replication.
+ /// for logging during replication.
/// The Id of the target
- /// resource group (for classic deployment) in which the
- /// failover VM is to be created.
+ /// resource group (for classic deployment) in which the failover VM is
+ /// to be created.
/// The Id of the target
- /// resource group (for resource manager deployment) in
- /// which the failover VM is to be created.
+ /// resource group (for resource manager deployment) in which the
+ /// failover VM is to be created.
/// A value indicating whether managed
/// disks should be used during failover.
public InMageAzureV2EnableProtectionInput(string storageAccountId, string masterTargetId = default(string), string processServerId = default(string), string runAsAccountId = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), IList disksToInclude = default(IList), string targetAzureNetworkId = default(string), string targetAzureSubnetId = default(string), string enableRDPOnTargetOption = default(string), string targetAzureVmName = default(string), string logStorageAccountId = default(string), string targetAzureV1ResourceGroupId = default(string), string targetAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string))
@@ -145,8 +143,8 @@ public InMageAzureV2EnableProtectionInput()
///
/// Gets or sets the selected option to enable RDP\SSH on target vm
- /// after failover.
- /// String value of {SrsDataContract.EnableRDPOnTargetOption} enum.
+ /// after failover. String value of
+ /// {SrsDataContract.EnableRDPOnTargetOption} enum.
///
[JsonProperty(PropertyName = "enableRDPOnTargetOption")]
public string EnableRDPOnTargetOption { get; set; }
@@ -158,24 +156,22 @@ public InMageAzureV2EnableProtectionInput()
public string TargetAzureVmName { get; set; }
///
- /// Gets or sets the storage account to be used for logging
- /// during replication.
+ /// Gets or sets the storage account to be used for logging during
+ /// replication.
///
[JsonProperty(PropertyName = "logStorageAccountId")]
public string LogStorageAccountId { get; set; }
///
/// Gets or sets the Id of the target resource group (for classic
- /// deployment) in which the
- /// failover VM is to be created.
+ /// deployment) in which the failover VM is to be created.
///
[JsonProperty(PropertyName = "targetAzureV1ResourceGroupId")]
public string TargetAzureV1ResourceGroupId { get; set; }
///
/// Gets or sets the Id of the target resource group (for resource
- /// manager deployment) in
- /// which the failover VM is to be created.
+ /// manager deployment) in which the failover VM is to be created.
///
[JsonProperty(PropertyName = "targetAzureV2ResourceGroupId")]
public string TargetAzureV2ResourceGroupId { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2EventDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2EventDetails.cs
index 11d43e954a96..cad4fc2264af 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2EventDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2EventDetails.cs
@@ -32,9 +32,8 @@ public InMageAzureV2EventDetails()
///
/// Initializes a new instance of the InMageAzureV2EventDetails class.
///
- /// InMage Event type.
- /// Takes one of the values of
- /// {InMageDataContract.InMageMonitoringEventType}.
+ /// InMage Event type. Takes one of the values
+ /// of {InMageDataContract.InMageMonitoringEventType}.
/// InMage Event Category.
/// InMage Event Component.
/// Corrective Action string for the
@@ -60,8 +59,7 @@ public InMageAzureV2EventDetails()
partial void CustomInit();
///
- /// Gets or sets inMage Event type.
- /// Takes one of the values of
+ /// Gets or sets inMage Event type. Takes one of the values of
/// {InMageDataContract.InMageMonitoringEventType}.
///
[JsonProperty(PropertyName = "eventType")]
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2FailoverProviderInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2FailoverProviderInput.cs
index dd4c4f58b59c..c03a146ce6de 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2FailoverProviderInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2FailoverProviderInput.cs
@@ -36,9 +36,8 @@ public InMageAzureV2FailoverProviderInput()
///
/// Location of the vault.
/// The recovery point id to be passed to
- /// failover to a particular recovery
- /// point. In case of latest recovery point, null should be
- /// passed.
+ /// failover to a particular recovery point. In case of latest recovery
+ /// point, null should be passed.
public InMageAzureV2FailoverProviderInput(string vaultLocation = default(string), string recoveryPointId = default(string))
{
VaultLocation = vaultLocation;
@@ -59,8 +58,8 @@ public InMageAzureV2FailoverProviderInput()
///
/// 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.
+ /// particular recovery point. In case of latest recovery point, null
+ /// should be passed.
///
[JsonProperty(PropertyName = "recoveryPointId")]
public string RecoveryPointId { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2PolicyDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2PolicyDetails.cs
index 09a940d8399e..bb0a153a5172 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2PolicyDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2PolicyDetails.cs
@@ -37,8 +37,7 @@ public InMageAzureV2PolicyDetails()
/// The recovery point
/// threshold in minutes.
/// The duration in minutes until
- /// which the recovery points need to be
- /// stored.
+ /// which the recovery points need to be stored.
/// The app consistent
/// snapshot frequency in minutes.
/// A value indicating whether multi-VM
@@ -72,8 +71,7 @@ public InMageAzureV2PolicyDetails()
///
/// Gets or sets the duration in minutes until which the recovery
- /// points need to be
- /// stored.
+ /// points need to be stored.
///
[JsonProperty(PropertyName = "recoveryPointHistory")]
public int? RecoveryPointHistory { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2PolicyInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2PolicyInput.cs
index f040b1844b9f..bb09e7dd850a 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2PolicyInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2PolicyInput.cs
@@ -33,14 +33,12 @@ public InMageAzureV2PolicyInput()
/// Initializes a new instance of the InMageAzureV2PolicyInput class.
///
/// A value indicating whether multi-VM
- /// sync has to be enabled.
- /// Value should be 'Enabled' or 'Disabled'. Possible values include:
- /// 'Enable', 'Disable'
+ /// sync has to be enabled. Value should be 'Enabled' or 'Disabled'.
+ /// Possible values include: 'Enable', 'Disable'
/// The recovery point
/// threshold in minutes.
/// The duration in minutes until
- /// which the recovery points need to be
- /// stored.
+ /// which the recovery points need to be stored.
/// The crash
/// consistent snapshot frequency (in minutes).
/// The app consistent
@@ -68,8 +66,7 @@ public InMageAzureV2PolicyInput()
///
/// Gets or sets the duration in minutes until which the recovery
- /// points need to be
- /// stored.
+ /// points need to be stored.
///
[JsonProperty(PropertyName = "recoveryPointHistory")]
public int? RecoveryPointHistory { get; set; }
@@ -88,9 +85,8 @@ public InMageAzureV2PolicyInput()
///
/// Gets or sets a value indicating whether multi-VM sync has to be
- /// enabled.
- /// Value should be 'Enabled' or 'Disabled'. Possible values include:
- /// 'Enable', 'Disable'
+ /// enabled. Value should be 'Enabled' or 'Disabled'. Possible values
+ /// include: 'Enable', 'Disable'
///
[JsonProperty(PropertyName = "multiVmSyncStatus")]
public SetMultiVmSyncStatus MultiVmSyncStatus { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2ProtectedDiskDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2ProtectedDiskDetails.cs
index 889d8e9ba677..e1f18fcc33eb 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2ProtectedDiskDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2ProtectedDiskDetails.cs
@@ -56,7 +56,9 @@ public InMageAzureV2ProtectedDiskDetails()
/// MB.
/// A value indicating whether disk is
/// resized.
- public InMageAzureV2ProtectedDiskDetails(string diskId = default(string), string diskName = default(string), string protectionStage = default(string), string healthErrorCode = default(string), long? rpoInSeconds = default(long?), string resyncRequired = default(string), int? resyncProgressPercentage = default(int?), long? resyncDurationInSeconds = default(long?), long? diskCapacityInBytes = default(long?), long? fileSystemCapacityInBytes = default(long?), double? sourceDataInMegaBytes = default(double?), double? psDataInMegaBytes = default(double?), double? targetDataInMegaBytes = default(double?), string diskResized = default(string))
+ /// The last RPO calculated
+ /// time.
+ public InMageAzureV2ProtectedDiskDetails(string diskId = default(string), string diskName = default(string), string protectionStage = default(string), string healthErrorCode = default(string), long? rpoInSeconds = default(long?), string resyncRequired = default(string), int? resyncProgressPercentage = default(int?), long? resyncDurationInSeconds = default(long?), long? diskCapacityInBytes = default(long?), long? fileSystemCapacityInBytes = default(long?), double? sourceDataInMegaBytes = default(double?), double? psDataInMegaBytes = default(double?), double? targetDataInMegaBytes = default(double?), string diskResized = default(string), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?))
{
DiskId = diskId;
DiskName = diskName;
@@ -72,6 +74,7 @@ public InMageAzureV2ProtectedDiskDetails()
PsDataInMegaBytes = psDataInMegaBytes;
TargetDataInMegaBytes = targetDataInMegaBytes;
DiskResized = diskResized;
+ LastRpoCalculatedTime = lastRpoCalculatedTime;
CustomInit();
}
@@ -165,5 +168,11 @@ public InMageAzureV2ProtectedDiskDetails()
[JsonProperty(PropertyName = "diskResized")]
public string DiskResized { get; set; }
+ ///
+ /// Gets or sets the last RPO calculated time.
+ ///
+ [JsonProperty(PropertyName = "lastRpoCalculatedTime")]
+ public System.DateTime? LastRpoCalculatedTime { get; set; }
+
}
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2RecoveryPointDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2RecoveryPointDetails.cs
new file mode 100644
index 000000000000..abe6b536df3d
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2RecoveryPointDetails.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 Microsoft.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// InMage Azure V2 provider specific recovery point details.
+ ///
+ public partial class InMageAzureV2RecoveryPointDetails : ProviderSpecificRecoveryPointDetails
+ {
+ ///
+ /// Initializes a new instance of the InMageAzureV2RecoveryPointDetails
+ /// class.
+ ///
+ public InMageAzureV2RecoveryPointDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the InMageAzureV2RecoveryPointDetails
+ /// class.
+ ///
+ /// Gets the provider type.
+ /// Gets the instance type.
+ /// A value indicating whether the
+ /// recovery point is multi VM consistent.
+ public InMageAzureV2RecoveryPointDetails(string type = default(string), string instanceType = default(string), string isMultiVmSyncPoint = default(string))
+ : base(type)
+ {
+ InstanceType = instanceType;
+ IsMultiVmSyncPoint = isMultiVmSyncPoint;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the instance type.
+ ///
+ [JsonProperty(PropertyName = "instanceType")]
+ public string InstanceType { get; private set; }
+
+ ///
+ /// Gets or sets a value indicating whether the recovery point is multi
+ /// VM consistent.
+ ///
+ [JsonProperty(PropertyName = "isMultiVmSyncPoint")]
+ public string IsMultiVmSyncPoint { get; set; }
+
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2ReplicationDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2ReplicationDetails.cs
index f197837cd6cb..c7faba782784 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2ReplicationDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2ReplicationDetails.cs
@@ -57,8 +57,7 @@ public InMageAzureV2ReplicationDetails()
/// A value indicating whether
/// installed agent needs to be updated.
/// A value indicating
- /// whether the source server requires a restart after
- /// update.
+ /// whether the source server requires a restart after update.
/// The last heartbeat received from the
/// source server.
/// The process server Id.
@@ -86,26 +85,22 @@ public InMageAzureV2ReplicationDetails()
/// The recovery Azure
/// storage account.
/// The ARM id of the
- /// log storage acount used for replication.
- /// This will be set to null if no log storage account was provided
- /// during enable
+ /// log storage account used for replication. This will be set to null
+ /// if no log storage account was provided during enable
/// protection.
/// The PE Network details.
/// The selected recovery
/// azure network Id.
- /// A value inidicating the discovery type
- /// of the machine.
- /// Value can be vCenter or physical.
+ /// A value indicating the discovery type
+ /// of the machine. Value can be vCenter or physical.
/// The selected option to enable
- /// RDP\SSH on target vm after failover.
- /// String value of {SrsDataContract.EnableRDPOnTargetOption}
- /// enum.
+ /// RDP\SSH on target vm after failover. String value of
+ /// {SrsDataContract.EnableRDPOnTargetOption} enum.
/// The datastores of the on-premise machine.
/// Value can be list of strings that contain datastore names.
- /// The ARM Id of the target Azure VM.
- /// This value will be null until the VM is failed over.
- /// Only after failure it will be populated with the ARM Id of the
- /// Azure VM.
+ /// The ARM Id of the target Azure VM. This
+ /// value will be null until the VM is failed over. Only after failure
+ /// it will be populated with the ARM Id of the Azure VM.
/// The target resource
/// group Id.
/// The recovery availability
@@ -115,9 +110,16 @@ public InMageAzureV2ReplicationDetails()
/// License Type of the VM to be
/// used.
/// The validation errors of the
- /// on-premise machine
- /// Value can be list of validation errors.
- public InMageAzureV2ReplicationDetails(string infrastructureVmId = default(string), string vCenterInfrastructureId = default(string), string protectionStage = default(string), string vmId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), int? resyncProgressPercentage = default(int?), long? rpoInSeconds = default(long?), double? compressedDataRateInMB = default(double?), double? uncompressedDataRateInMB = default(double?), string ipAddress = default(string), string agentVersion = default(string), string isAgentUpdateRequired = default(string), string isRebootAfterUpdateRequired = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string processServerId = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string multiVmSyncStatus = default(string), IList protectedDisks = default(IList), string diskResized = default(string), string masterTargetId = default(string), int? sourceVmCPUCount = default(int?), int? sourceVmRAMSizeInMB = default(int?), string osType = default(string), string vhdName = default(string), string osDiskId = default(string), IList azureVMDiskDetails = default(IList), string recoveryAzureVMName = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureStorageAccount = default(string), string recoveryAzureLogStorageAccountId = default(string), IList vmNics = default(IList), string selectedRecoveryAzureNetworkId = default(string), string discoveryType = default(string), string enableRDPOnTargetOption = default(string), IList datastores = default(IList), string targetVmId = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryAvailabilitySetId = default(string), string useManagedDisks = default(string), string licenseType = default(string), IList validationErrors = default(IList))
+ /// on-premise machine Value can be list of validation errors.
+ /// The last RPO calculated
+ /// time.
+ /// The last update time received
+ /// from on-prem components.
+ /// The replica id of the protected
+ /// item.
+ /// The OS Version of the protected
+ /// item.
+ public InMageAzureV2ReplicationDetails(string infrastructureVmId = default(string), string vCenterInfrastructureId = default(string), string protectionStage = default(string), string vmId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), int? resyncProgressPercentage = default(int?), long? rpoInSeconds = default(long?), double? compressedDataRateInMB = default(double?), double? uncompressedDataRateInMB = default(double?), string ipAddress = default(string), string agentVersion = default(string), string isAgentUpdateRequired = default(string), string isRebootAfterUpdateRequired = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string processServerId = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string multiVmSyncStatus = default(string), IList protectedDisks = default(IList), string diskResized = default(string), string masterTargetId = default(string), int? sourceVmCPUCount = default(int?), int? sourceVmRAMSizeInMB = default(int?), string osType = default(string), string vhdName = default(string), string osDiskId = default(string), IList azureVMDiskDetails = default(IList), string recoveryAzureVMName = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureStorageAccount = default(string), string recoveryAzureLogStorageAccountId = default(string), IList vmNics = default(IList), string selectedRecoveryAzureNetworkId = default(string), string discoveryType = default(string), string enableRDPOnTargetOption = default(string), IList datastores = default(IList), string targetVmId = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryAvailabilitySetId = default(string), string useManagedDisks = default(string), string licenseType = default(string), IList validationErrors = default(IList), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), System.DateTime? lastUpdateReceivedTime = default(System.DateTime?), string replicaId = default(string), string osVersion = default(string))
{
InfrastructureVmId = infrastructureVmId;
VCenterInfrastructureId = vCenterInfrastructureId;
@@ -162,6 +164,10 @@ public InMageAzureV2ReplicationDetails()
UseManagedDisks = useManagedDisks;
LicenseType = licenseType;
ValidationErrors = validationErrors;
+ LastRpoCalculatedTime = lastRpoCalculatedTime;
+ LastUpdateReceivedTime = lastUpdateReceivedTime;
+ ReplicaId = replicaId;
+ OsVersion = osVersion;
CustomInit();
}
@@ -251,8 +257,7 @@ public InMageAzureV2ReplicationDetails()
///
/// Gets or sets a value indicating whether the source server requires
- /// a restart after
- /// update.
+ /// a restart after update.
///
[JsonProperty(PropertyName = "isRebootAfterUpdateRequired")]
public string IsRebootAfterUpdateRequired { get; set; }
@@ -362,11 +367,9 @@ public InMageAzureV2ReplicationDetails()
public string RecoveryAzureStorageAccount { get; set; }
///
- /// Gets or sets the ARM id of the log storage acount used for
- /// replication.
- /// This will be set to null if no log storage account was provided
- /// during enable
- /// protection.
+ /// Gets or sets the ARM id of the log storage account used for
+ /// replication. This will be set to null if no log storage account was
+ /// provided during enable protection.
///
[JsonProperty(PropertyName = "recoveryAzureLogStorageAccountId")]
public string RecoveryAzureLogStorageAccountId { get; set; }
@@ -384,7 +387,7 @@ public InMageAzureV2ReplicationDetails()
public string SelectedRecoveryAzureNetworkId { get; set; }
///
- /// Gets or sets a value inidicating the discovery type of the machine.
+ /// Gets or sets a value indicating the discovery type of the machine.
/// Value can be vCenter or physical.
///
[JsonProperty(PropertyName = "discoveryType")]
@@ -392,24 +395,23 @@ public InMageAzureV2ReplicationDetails()
///
/// Gets or sets the selected option to enable RDP\SSH on target vm
- /// after failover.
- /// String value of {SrsDataContract.EnableRDPOnTargetOption} enum.
+ /// after failover. String value of
+ /// {SrsDataContract.EnableRDPOnTargetOption} enum.
///
[JsonProperty(PropertyName = "enableRDPOnTargetOption")]
public string EnableRDPOnTargetOption { get; set; }
///
- /// Gets or sets the datastores of the on-premise machine.
- /// Value can be list of strings that contain datastore names.
+ /// Gets or sets the datastores of the on-premise machine. Value can be
+ /// list of strings that contain datastore names.
///
[JsonProperty(PropertyName = "datastores")]
public IList Datastores { get; set; }
///
- /// Gets or sets the ARM Id of the target Azure VM.
- /// This value will be null until the VM is failed over.
- /// Only after failure it will be populated with the ARM Id of the
- /// Azure VM.
+ /// Gets or sets the ARM Id of the target Azure VM. This value will be
+ /// null until the VM is failed over. Only after failure it will be
+ /// populated with the ARM Id of the Azure VM.
///
[JsonProperty(PropertyName = "targetVmId")]
public string TargetVmId { get; set; }
@@ -440,11 +442,35 @@ public InMageAzureV2ReplicationDetails()
public string LicenseType { get; set; }
///
- /// Gets or sets the validation errors of the on-premise machine
- /// Value can be list of validation errors.
+ /// Gets or sets the validation errors of the on-premise machine Value
+ /// can be list of validation errors.
///
[JsonProperty(PropertyName = "validationErrors")]
public IList ValidationErrors { get; set; }
+ ///
+ /// Gets or sets the last RPO calculated time.
+ ///
+ [JsonProperty(PropertyName = "lastRpoCalculatedTime")]
+ public System.DateTime? LastRpoCalculatedTime { get; set; }
+
+ ///
+ /// Gets or sets the last update time received from on-prem components.
+ ///
+ [JsonProperty(PropertyName = "lastUpdateReceivedTime")]
+ public System.DateTime? LastUpdateReceivedTime { get; set; }
+
+ ///
+ /// Gets or sets the replica id of the protected item.
+ ///
+ [JsonProperty(PropertyName = "replicaId")]
+ public string ReplicaId { get; set; }
+
+ ///
+ /// Gets or sets the OS Version of the protected item.
+ ///
+ [JsonProperty(PropertyName = "osVersion")]
+ public string OsVersion { get; set; }
+
}
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2ReprotectInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2ReprotectInput.cs
index 0331d058f159..5a6ef6b64d54 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2ReprotectInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageAzureV2ReprotectInput.cs
@@ -42,8 +42,7 @@ public InMageAzureV2ReprotectInput()
/// The CS account Id.
/// The Policy Id.
/// The storage account to be used
- /// for logging
- /// during replication.
+ /// for logging during replication.
/// The disks to include list.
public InMageAzureV2ReprotectInput(string masterTargetId = default(string), string processServerId = default(string), string storageAccountId = default(string), string runAsAccountId = default(string), string policyId = default(string), string logStorageAccountId = default(string), IList disksToInclude = default(IList))
{
@@ -93,8 +92,8 @@ public InMageAzureV2ReprotectInput()
public string PolicyId { get; set; }
///
- /// Gets or sets the storage account to be used for logging
- /// during replication.
+ /// Gets or sets the storage account to be used for logging during
+ /// replication.
///
[JsonProperty(PropertyName = "logStorageAccountId")]
public string LogStorageAccountId { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageBasePolicyDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageBasePolicyDetails.cs
index f3697dfc9c65..4d86e9a0dff3 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageBasePolicyDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageBasePolicyDetails.cs
@@ -34,8 +34,7 @@ public InMageBasePolicyDetails()
/// The recovery point
/// threshold in minutes.
/// The duration in minutes until
- /// which the recovery points need to be
- /// stored.
+ /// which the recovery points need to be stored.
/// The app consistent
/// snapshot frequency in minutes.
/// A value indicating whether multi-VM
@@ -62,8 +61,7 @@ public InMageBasePolicyDetails()
///
/// Gets or sets the duration in minutes until which the recovery
- /// points need to be
- /// stored.
+ /// points need to be stored.
///
[JsonProperty(PropertyName = "recoveryPointHistory")]
public int? RecoveryPointHistory { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageDisableProtectionProviderSpecificInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageDisableProtectionProviderSpecificInput.cs
index 0b2f1945cf64..5c602b0aee98 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageDisableProtectionProviderSpecificInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageDisableProtectionProviderSpecificInput.cs
@@ -35,8 +35,8 @@ public InMageDisableProtectionProviderSpecificInput()
/// InMageDisableProtectionProviderSpecificInput class.
///
/// A value indicating whether
- /// the replica VM should be destroyed or retained.
- /// Values from Delete and Retain.
+ /// the replica VM should be destroyed or retained. Values from Delete
+ /// and Retain.
public InMageDisableProtectionProviderSpecificInput(string replicaVmDeletionStatus = default(string))
{
ReplicaVmDeletionStatus = replicaVmDeletionStatus;
@@ -50,8 +50,7 @@ public InMageDisableProtectionProviderSpecificInput()
///
/// Gets or sets a value indicating whether the replica VM should be
- /// destroyed or retained.
- /// Values from Delete and Retain.
+ /// destroyed or retained. Values from Delete and Retain.
///
[JsonProperty(PropertyName = "replicaVmDeletionStatus")]
public string ReplicaVmDeletionStatus { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageDiskSignatureExclusionOptions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageDiskSignatureExclusionOptions.cs
index 6a6d83e998dd..ae1b4da6615a 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageDiskSignatureExclusionOptions.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageDiskSignatureExclusionOptions.cs
@@ -17,8 +17,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
///
/// Guest disk signature based disk exclusion option when doing enable
- /// protection of
- /// virtual machine in InMage provider.
+ /// protection of virtual machine in InMage provider.
///
public partial class InMageDiskSignatureExclusionOptions
{
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageEnableProtectionInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageEnableProtectionInput.cs
index 24c80d91f27f..6944070907d1 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageEnableProtectionInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageEnableProtectionInput.cs
@@ -12,6 +12,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
using Microsoft.Azure.Management;
using Microsoft.Azure.Management.RecoveryServices;
using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
@@ -36,19 +37,19 @@ public InMageEnableProtectionInput()
/// Initializes a new instance of the InMageEnableProtectionInput
/// class.
///
- /// The Vm Name.
/// The Master Target Id.
/// The Process Server Id.
/// The retention drive to use on the
/// MT.
- /// The CS account Id.
/// The multi vm group Id.
/// The multi vm group name.
+ /// The Vm Name.
+ /// The CS account Id.
/// The target datastore name.
/// The enable disk exclusion
/// input.
/// The disks to include list.
- public InMageEnableProtectionInput(string vmFriendlyName = default(string), string masterTargetId = default(string), string processServerId = default(string), string retentionDrive = default(string), string runAsAccountId = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string datastoreName = default(string), InMageDiskExclusionInput diskExclusionInput = default(InMageDiskExclusionInput), IList disksToInclude = default(IList))
+ public InMageEnableProtectionInput(string masterTargetId, string processServerId, string retentionDrive, string multiVmGroupId, string multiVmGroupName, string vmFriendlyName = default(string), string runAsAccountId = default(string), string datastoreName = default(string), InMageDiskExclusionInput diskExclusionInput = default(InMageDiskExclusionInput), IList disksToInclude = default(IList))
{
VmFriendlyName = vmFriendlyName;
MasterTargetId = masterTargetId;
@@ -128,5 +129,34 @@ public InMageEnableProtectionInput()
[JsonProperty(PropertyName = "disksToInclude")]
public IList DisksToInclude { get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (MasterTargetId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "MasterTargetId");
+ }
+ if (ProcessServerId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "ProcessServerId");
+ }
+ if (RetentionDrive == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "RetentionDrive");
+ }
+ if (MultiVmGroupId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "MultiVmGroupId");
+ }
+ if (MultiVmGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "MultiVmGroupName");
+ }
+ }
}
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageFailoverProviderInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageFailoverProviderInput.cs
index 5ef531807f44..d2775cde9ec0 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageFailoverProviderInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageFailoverProviderInput.cs
@@ -35,17 +35,14 @@ public InMageFailoverProviderInput()
/// class.
///
/// The recovery point type. Values
- /// from LatestTime,
- /// LatestTag or Custom. In the case of custom, the recovery point
- /// provided by
- /// RecoveryPointId will be used. In the other two cases, recovery
- /// point id
- /// will be ignored.
+ /// from LatestTime, LatestTag or Custom. In the case of custom, the
+ /// recovery point provided by RecoveryPointId will be used. In the
+ /// other two cases, recovery point id will be ignored. Possible values
+ /// include: 'LatestTime', 'LatestTag', 'Custom'
/// 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 InMageFailoverProviderInput(string recoveryPointType = default(string), string recoveryPointId = default(string))
+ /// failover to a particular recovery point. In case of latest recovery
+ /// point, null should be passed.
+ public InMageFailoverProviderInput(RecoveryPointType? recoveryPointType = default(RecoveryPointType?), string recoveryPointId = default(string))
{
RecoveryPointType = recoveryPointType;
RecoveryPointId = recoveryPointId;
@@ -60,18 +57,17 @@ public InMageFailoverProviderInput()
///
/// Gets or sets the recovery point type. Values from LatestTime,
/// LatestTag or Custom. In the case of custom, the recovery point
- /// provided by
- /// RecoveryPointId will be used. In the other two cases, recovery
- /// point id
- /// will be ignored.
+ /// provided by RecoveryPointId will be used. In the other two cases,
+ /// recovery point id will be ignored. Possible values include:
+ /// 'LatestTime', 'LatestTag', 'Custom'
///
[JsonProperty(PropertyName = "recoveryPointType")]
- public string RecoveryPointType { get; set; }
+ public RecoveryPointType? RecoveryPointType { 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.
+ /// particular recovery point. In case of latest recovery point, null
+ /// should be passed.
///
[JsonProperty(PropertyName = "recoveryPointId")]
public string RecoveryPointId { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMagePolicyDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMagePolicyDetails.cs
index cdb18fecc2ee..575a7c2ee16f 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMagePolicyDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMagePolicyDetails.cs
@@ -35,8 +35,7 @@ public InMagePolicyDetails()
/// The recovery point
/// threshold in minutes.
/// The duration in minutes until
- /// which the recovery points need to be
- /// stored.
+ /// which the recovery points need to be stored.
/// The app consistent
/// snapshot frequency in minutes.
/// A value indicating whether multi-VM
@@ -63,8 +62,7 @@ public InMagePolicyDetails()
///
/// Gets or sets the duration in minutes until which the recovery
- /// points need to be
- /// stored.
+ /// points need to be stored.
///
[JsonProperty(PropertyName = "recoveryPointHistory")]
public int? RecoveryPointHistory { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMagePolicyInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMagePolicyInput.cs
index 2ea6f6a6a115..b8ec9ce5b166 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMagePolicyInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMagePolicyInput.cs
@@ -33,14 +33,12 @@ public InMagePolicyInput()
/// Initializes a new instance of the InMagePolicyInput class.
///
/// A value indicating whether multi-VM
- /// sync has to be enabled.
- /// Value should be 'Enabled' or 'Disabled'. Possible values include:
- /// 'Enable', 'Disable'
+ /// sync has to be enabled. Value should be 'Enabled' or 'Disabled'.
+ /// Possible values include: 'Enable', 'Disable'
/// The recovery point
/// threshold in minutes.
/// The duration in minutes until
- /// which the recovery points need to be
- /// stored.
+ /// which the recovery points need to be stored.
/// The app consistent
/// snapshot frequency (in minutes).
public InMagePolicyInput(SetMultiVmSyncStatus multiVmSyncStatus, int? recoveryPointThresholdInMinutes = default(int?), int? recoveryPointHistory = default(int?), int? appConsistentFrequencyInMinutes = default(int?))
@@ -65,8 +63,7 @@ public InMagePolicyInput()
///
/// Gets or sets the duration in minutes until which the recovery
- /// points need to be
- /// stored.
+ /// points need to be stored.
///
[JsonProperty(PropertyName = "recoveryPointHistory")]
public int? RecoveryPointHistory { get; set; }
@@ -79,9 +76,8 @@ public InMagePolicyInput()
///
/// Gets or sets a value indicating whether multi-VM sync has to be
- /// enabled.
- /// Value should be 'Enabled' or 'Disabled'. Possible values include:
- /// 'Enable', 'Disable'
+ /// enabled. Value should be 'Enabled' or 'Disabled'. Possible values
+ /// include: 'Enable', 'Disable'
///
[JsonProperty(PropertyName = "multiVmSyncStatus")]
public SetMultiVmSyncStatus MultiVmSyncStatus { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageProtectedDiskDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageProtectedDiskDetails.cs
index 345f466d80bd..2b2c8a55c0b0 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageProtectedDiskDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageProtectedDiskDetails.cs
@@ -52,7 +52,9 @@ public InMageProtectedDiskDetails()
/// The target data transit in MB.
/// A value indicating whether disk is
/// resized.
- public InMageProtectedDiskDetails(string diskId = default(string), string diskName = default(string), string protectionStage = default(string), string healthErrorCode = default(string), long? rpoInSeconds = default(long?), string resyncRequired = default(string), int? resyncProgressPercentage = default(int?), long? resyncDurationInSeconds = default(long?), long? diskCapacityInBytes = default(long?), long? fileSystemCapacityInBytes = default(long?), double? sourceDataInMB = default(double?), double? psDataInMB = default(double?), double? targetDataInMB = default(double?), string diskResized = default(string))
+ /// The last RPO calculated
+ /// time.
+ public InMageProtectedDiskDetails(string diskId = default(string), string diskName = default(string), string protectionStage = default(string), string healthErrorCode = default(string), long? rpoInSeconds = default(long?), string resyncRequired = default(string), int? resyncProgressPercentage = default(int?), long? resyncDurationInSeconds = default(long?), long? diskCapacityInBytes = default(long?), long? fileSystemCapacityInBytes = default(long?), double? sourceDataInMB = default(double?), double? psDataInMB = default(double?), double? targetDataInMB = default(double?), string diskResized = default(string), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?))
{
DiskId = diskId;
DiskName = diskName;
@@ -68,6 +70,7 @@ public InMageProtectedDiskDetails()
PsDataInMB = psDataInMB;
TargetDataInMB = targetDataInMB;
DiskResized = diskResized;
+ LastRpoCalculatedTime = lastRpoCalculatedTime;
CustomInit();
}
@@ -161,5 +164,11 @@ public InMageProtectedDiskDetails()
[JsonProperty(PropertyName = "diskResized")]
public string DiskResized { get; set; }
+ ///
+ /// Gets or sets the last RPO calculated time.
+ ///
+ [JsonProperty(PropertyName = "lastRpoCalculatedTime")]
+ public System.DateTime? LastRpoCalculatedTime { get; set; }
+
}
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageReplicationDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageReplicationDetails.cs
index 81dd2baa94ca..023f1c40444b 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageReplicationDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageReplicationDetails.cs
@@ -35,11 +35,9 @@ public InMageReplicationDetails()
/// Initializes a new instance of the InMageReplicationDetails class.
///
/// The active location of the VM. If the
- /// VM is being protected
- /// from Azure, this field will take values from { Azure, OnPrem }. If
- /// the VM
- /// is being protected between two data-centers, this field will be
- /// OnPrem always.
+ /// VM is being protected from Azure, this field will take values from
+ /// { Azure, OnPrem }. If the VM is being protected between two
+ /// data-centers, this field will be OnPrem always.
/// The CPU count of the VM on the
/// primary side.
/// The RAM size of the VM on the
@@ -73,8 +71,7 @@ public InMageReplicationDetails()
/// A value indicating whether any disk is
/// resized for this VM.
/// A value indicating whether
- /// the source server requires a restart after
- /// update.
+ /// the source server requires a restart after update.
/// The multi vm group Id, if any.
/// The multi vm group name, if
/// any.
@@ -85,18 +82,24 @@ public InMageReplicationDetails()
/// Id.
/// The infrastructure VM Id.
/// The PE Network details.
- /// A value inidicating the discovery type
+ /// A value indicating the discovery type
/// of the machine.
/// A value indicating the
- /// underlying Azure storage account. If
- /// the VM is not running in Azure, this value shall be set to
- /// null.
+ /// underlying Azure storage account. If the VM is not running in
+ /// Azure, this value shall be set to null.
/// The datastores of the on-premise machine
/// Value can be list of strings that contain datastore names
/// The validation errors of the
- /// on-premise machine
- /// Value can be list of validation errors
- public InMageReplicationDetails(string activeSiteType = default(string), int? sourceVmCPUCount = default(int?), int? sourceVmRAMSizeInMB = default(int?), OSDiskDetails osDetails = default(OSDiskDetails), string protectionStage = default(string), string vmId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), InitialReplicationDetails resyncDetails = default(InitialReplicationDetails), System.DateTime? retentionWindowStart = default(System.DateTime?), System.DateTime? retentionWindowEnd = default(System.DateTime?), double? compressedDataRateInMB = default(double?), double? uncompressedDataRateInMB = default(double?), long? rpoInSeconds = default(long?), IList protectedDisks = default(IList), string ipAddress = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string processServerId = default(string), string masterTargetId = default(string), IDictionary consistencyPoints = default(IDictionary), string diskResized = default(string), string rebootAfterUpdateStatus = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string multiVmSyncStatus = default(string), InMageAgentDetails agentDetails = default(InMageAgentDetails), string vCenterInfrastructureId = default(string), string infrastructureVmId = default(string), IList vmNics = default(IList), string discoveryType = default(string), string azureStorageAccountId = default(string), IList datastores = default(IList), IList validationErrors = default(IList))
+ /// on-premise machine Value can be list of validation errors
+ /// The last RPO calculated
+ /// time.
+ /// The last update time received
+ /// from on-prem components.
+ /// The replica id of the protected
+ /// item.
+ /// The OS Version of the protected
+ /// item.
+ public InMageReplicationDetails(string activeSiteType = default(string), int? sourceVmCPUCount = default(int?), int? sourceVmRAMSizeInMB = default(int?), OSDiskDetails osDetails = default(OSDiskDetails), string protectionStage = default(string), string vmId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), InitialReplicationDetails resyncDetails = default(InitialReplicationDetails), System.DateTime? retentionWindowStart = default(System.DateTime?), System.DateTime? retentionWindowEnd = default(System.DateTime?), double? compressedDataRateInMB = default(double?), double? uncompressedDataRateInMB = default(double?), long? rpoInSeconds = default(long?), IList protectedDisks = default(IList), string ipAddress = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string processServerId = default(string), string masterTargetId = default(string), IDictionary consistencyPoints = default(IDictionary), string diskResized = default(string), string rebootAfterUpdateStatus = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string multiVmSyncStatus = default(string), InMageAgentDetails agentDetails = default(InMageAgentDetails), string vCenterInfrastructureId = default(string), string infrastructureVmId = default(string), IList vmNics = default(IList), string discoveryType = default(string), string azureStorageAccountId = default(string), IList datastores = default(IList), IList validationErrors = default(IList), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), System.DateTime? lastUpdateReceivedTime = default(System.DateTime?), string replicaId = default(string), string osVersion = default(string))
{
ActiveSiteType = activeSiteType;
SourceVmCPUCount = sourceVmCPUCount;
@@ -131,6 +134,10 @@ public InMageReplicationDetails()
AzureStorageAccountId = azureStorageAccountId;
Datastores = datastores;
ValidationErrors = validationErrors;
+ LastRpoCalculatedTime = lastRpoCalculatedTime;
+ LastUpdateReceivedTime = lastUpdateReceivedTime;
+ ReplicaId = replicaId;
+ OsVersion = osVersion;
CustomInit();
}
@@ -141,11 +148,9 @@ public InMageReplicationDetails()
///
/// Gets or sets the active location of the VM. If the VM is being
- /// protected
- /// from Azure, this field will take values from { Azure, OnPrem }. If
- /// the VM
- /// is being protected between two data-centers, this field will be
- /// OnPrem always.
+ /// protected from Azure, this field will take values from { Azure,
+ /// OnPrem }. If the VM is being protected between two data-centers,
+ /// this field will be OnPrem always.
///
[JsonProperty(PropertyName = "activeSiteType")]
public string ActiveSiteType { get; set; }
@@ -273,8 +278,7 @@ public InMageReplicationDetails()
///
/// Gets or sets a value indicating whether the source server requires
- /// a restart after
- /// update.
+ /// a restart after update.
///
[JsonProperty(PropertyName = "rebootAfterUpdateStatus")]
public string RebootAfterUpdateStatus { get; set; }
@@ -323,32 +327,56 @@ public InMageReplicationDetails()
public IList VmNics { get; set; }
///
- /// Gets or sets a value inidicating the discovery type of the machine.
+ /// Gets or sets a value indicating the discovery type of the machine.
///
[JsonProperty(PropertyName = "discoveryType")]
public string DiscoveryType { get; set; }
///
/// Gets or sets a value indicating the underlying Azure storage
- /// account. If
- /// the VM is not running in Azure, this value shall be set to null.
+ /// account. If the VM is not running in Azure, this value shall be set
+ /// to null.
///
[JsonProperty(PropertyName = "azureStorageAccountId")]
public string AzureStorageAccountId { get; set; }
///
- /// Gets or sets the datastores of the on-premise machine
- /// Value can be list of strings that contain datastore names
+ /// Gets or sets the datastores of the on-premise machine Value can be
+ /// list of strings that contain datastore names
///
[JsonProperty(PropertyName = "datastores")]
public IList Datastores { get; set; }
///
- /// Gets or sets the validation errors of the on-premise machine
- /// Value can be list of validation errors
+ /// Gets or sets the validation errors of the on-premise machine Value
+ /// can be list of validation errors
///
[JsonProperty(PropertyName = "validationErrors")]
public IList ValidationErrors { get; set; }
+ ///
+ /// Gets or sets the last RPO calculated time.
+ ///
+ [JsonProperty(PropertyName = "lastRpoCalculatedTime")]
+ public System.DateTime? LastRpoCalculatedTime { get; set; }
+
+ ///
+ /// Gets or sets the last update time received from on-prem components.
+ ///
+ [JsonProperty(PropertyName = "lastUpdateReceivedTime")]
+ public System.DateTime? LastUpdateReceivedTime { get; set; }
+
+ ///
+ /// Gets or sets the replica id of the protected item.
+ ///
+ [JsonProperty(PropertyName = "replicaId")]
+ public string ReplicaId { get; set; }
+
+ ///
+ /// Gets or sets the OS Version of the protected item.
+ ///
+ [JsonProperty(PropertyName = "osVersion")]
+ public string OsVersion { get; set; }
+
}
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageReprotectInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageReprotectInput.cs
index 402e173d4d80..1bcc348fdb66 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageReprotectInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageReprotectInput.cs
@@ -12,6 +12,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
using Microsoft.Azure.Management;
using Microsoft.Azure.Management.RecoveryServices;
using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
@@ -38,13 +39,13 @@ public InMageReprotectInput()
/// The Process Server Id.
/// The retention drive to use on the
/// MT.
+ /// The Policy Id.
/// The CS account Id.
/// The target datastore name.
/// The enable disk exclusion
/// input.
- /// The Policy Id.
/// The disks to include list.
- public InMageReprotectInput(string masterTargetId = default(string), string processServerId = default(string), string retentionDrive = default(string), string runAsAccountId = default(string), string datastoreName = default(string), InMageDiskExclusionInput diskExclusionInput = default(InMageDiskExclusionInput), string profileId = default(string), IList disksToInclude = default(IList))
+ public InMageReprotectInput(string masterTargetId, string processServerId, string retentionDrive, string profileId, string runAsAccountId = default(string), string datastoreName = default(string), InMageDiskExclusionInput diskExclusionInput = default(InMageDiskExclusionInput), IList disksToInclude = default(IList))
{
MasterTargetId = masterTargetId;
ProcessServerId = processServerId;
@@ -110,5 +111,30 @@ public InMageReprotectInput()
[JsonProperty(PropertyName = "disksToInclude")]
public IList DisksToInclude { get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (MasterTargetId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "MasterTargetId");
+ }
+ if (ProcessServerId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "ProcessServerId");
+ }
+ if (RetentionDrive == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "RetentionDrive");
+ }
+ if (ProfileId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "ProfileId");
+ }
+ }
}
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageV2RpRecoveryPointType.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageV2RpRecoveryPointType.cs
index 87f9111bf626..f5f4742b5a90 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageV2RpRecoveryPointType.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageV2RpRecoveryPointType.cs
@@ -32,4 +32,41 @@ public enum InMageV2RpRecoveryPointType
[EnumMember(Value = "LatestProcessed")]
LatestProcessed
}
+ internal static class InMageV2RpRecoveryPointTypeEnumExtension
+ {
+ internal static string ToSerializedValue(this InMageV2RpRecoveryPointType? value) =>
+ value == null ? null : ((InMageV2RpRecoveryPointType)value).ToSerializedValue();
+
+ internal static string ToSerializedValue(this InMageV2RpRecoveryPointType value)
+ {
+ switch( value )
+ {
+ case InMageV2RpRecoveryPointType.Latest:
+ return "Latest";
+ case InMageV2RpRecoveryPointType.LatestApplicationConsistent:
+ return "LatestApplicationConsistent";
+ case InMageV2RpRecoveryPointType.LatestCrashConsistent:
+ return "LatestCrashConsistent";
+ case InMageV2RpRecoveryPointType.LatestProcessed:
+ return "LatestProcessed";
+ }
+ return null;
+ }
+
+ internal static InMageV2RpRecoveryPointType? ParseInMageV2RpRecoveryPointType(this string value)
+ {
+ switch( value )
+ {
+ case "Latest":
+ return InMageV2RpRecoveryPointType.Latest;
+ case "LatestApplicationConsistent":
+ return InMageV2RpRecoveryPointType.LatestApplicationConsistent;
+ case "LatestCrashConsistent":
+ return InMageV2RpRecoveryPointType.LatestCrashConsistent;
+ case "LatestProcessed":
+ return InMageV2RpRecoveryPointType.LatestProcessed;
+ }
+ return null;
+ }
+ }
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageVolumeExclusionOptions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageVolumeExclusionOptions.cs
index 5c4fd5bef37c..961cb60c4367 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageVolumeExclusionOptions.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InMageVolumeExclusionOptions.cs
@@ -17,8 +17,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
///
/// Guest disk signature based disk exclusion option when doing enable
- /// protection of
- /// virtual machine in InMage provider.
+ /// protection of virtual machine in InMage provider.
///
public partial class InMageVolumeExclusionOptions
{
@@ -36,13 +35,11 @@ public InMageVolumeExclusionOptions()
/// class.
///
/// The volume label. The disk having any
- /// volume with this label will be
- /// excluded from replication.
+ /// volume with this label will be excluded from replication.
/// The value indicating
- /// whether to exclude multi volume disk or not.
- /// If a disk has multiple volumes and one of the volume has label
- /// matching with
- /// VolumeLabel this disk will be excluded from replication if
+ /// whether to exclude multi volume disk or not. If a disk has multiple
+ /// volumes and one of the volume has label matching with VolumeLabel
+ /// this disk will be excluded from replication if
/// OnlyExcludeIfSingleVolume is false.
public InMageVolumeExclusionOptions(string volumeLabel = default(string), string onlyExcludeIfSingleVolume = default(string))
{
@@ -58,19 +55,16 @@ public InMageVolumeExclusionOptions()
///
/// Gets or sets the volume label. The disk having any volume with this
- /// label will be
- /// excluded from replication.
+ /// label will be excluded from replication.
///
[JsonProperty(PropertyName = "volumeLabel")]
public string VolumeLabel { get; set; }
///
/// Gets or sets the value indicating whether to exclude multi volume
- /// disk or not.
- /// If a disk has multiple volumes and one of the volume has label
- /// matching with
- /// VolumeLabel this disk will be excluded from replication if
- /// OnlyExcludeIfSingleVolume is false.
+ /// disk or not. If a disk has multiple volumes and one of the volume
+ /// has label matching with VolumeLabel this disk will be excluded from
+ /// replication if OnlyExcludeIfSingleVolume is false.
///
[JsonProperty(PropertyName = "OnlyExcludeIfSingleVolume")]
public string OnlyExcludeIfSingleVolume { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InconsistentVmDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InconsistentVmDetails.cs
index 1835ce4b618a..01f82f1a2e4c 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InconsistentVmDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/InconsistentVmDetails.cs
@@ -66,8 +66,8 @@ public InconsistentVmDetails()
public string CloudName { get; set; }
///
- /// Gets or sets the list of details regarding state of the
- /// Protected Entity in SRS and On prem.
+ /// Gets or sets the list of details regarding state of the Protected
+ /// Entity in SRS and On prem.
///
[JsonProperty(PropertyName = "details")]
public IList Details { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/Job.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/Job.cs
index ce70a88bd80e..dba844f276db 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/Job.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/Job.cs
@@ -37,10 +37,9 @@ public Job()
/// Resource Location
/// The custom data.
/// The status of the Job. ARM expects the
- /// terminal status to be one of
- /// (1) Succeeded, (2) Failed or (3) Canceled.
- /// All other values imply that the operation is still running / being
- /// applied.
+ /// terminal status to be one of (1) Succeeded, (2) Failed or (3)
+ /// Canceled. All other values imply that the operation is still
+ /// running / being applied.
/// The error.
/// The start time.
/// The start time.
@@ -68,10 +67,8 @@ public Job()
///
/// Gets or sets the status of the Job. ARM expects the terminal status
- /// to be one of
- /// (1) Succeeded, (2) Failed or (3) Canceled.
- /// All other values imply that the operation is still running / being
- /// applied.
+ /// to be one of (1) Succeeded, (2) Failed or (3) Canceled. All other
+ /// values imply that the operation is still running / being applied.
///
[JsonProperty(PropertyName = "status")]
public string Status { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/JobDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/JobDetails.cs
index 116ad1b66b6b..5027089d25f5 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/JobDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/JobDetails.cs
@@ -34,9 +34,8 @@ public JobDetails()
/// Initializes a new instance of the JobDetails class.
///
/// The affected object properties
- /// like source server, source cloud, target
- /// server, target cloud etc. based on the workflow object
- /// details.
+ /// like source server, source cloud, target server, target cloud etc.
+ /// based on the workflow object details.
public JobDetails(IDictionary affectedObjectDetails = default(IDictionary))
{
AffectedObjectDetails = affectedObjectDetails;
@@ -50,8 +49,8 @@ public JobDetails()
///
/// Gets or sets the affected object properties like source server,
- /// source cloud, target
- /// server, target cloud etc. based on the workflow object details.
+ /// source cloud, target server, target cloud etc. based on the
+ /// workflow object details.
///
[JsonProperty(PropertyName = "affectedObjectDetails")]
public IDictionary AffectedObjectDetails { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/JobProperties.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/JobProperties.cs
index 267dcec7d8be..9b1411b31f77 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/JobProperties.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/JobProperties.cs
@@ -37,12 +37,11 @@ public JobProperties()
/// The ScenarioName.
/// The DisplayName.
/// The status of the Job. It is one of these
- /// values - NotStarted, InProgress,
- /// Succeeded, Failed, Cancelled, Suspended or Other.
+ /// values - NotStarted, InProgress, Succeeded, Failed, Cancelled,
+ /// Suspended or Other.
/// The description of the state of the
- /// Job. For e.g. - For Succeeded state,
- /// description can be Completed, PartiallySucceeded,
- /// CompletedWithInformation or Skipped.
+ /// Job. For e.g. - For Succeeded state, description can be Completed,
+ /// PartiallySucceeded, CompletedWithInformation or Skipped.
/// The tasks.
/// The errors.
/// The start time.
@@ -52,8 +51,8 @@ public JobProperties()
/// The name of the affected
/// object.
/// The type of the affected object
- /// which is
- /// of {Microsoft.Azure.SiteRecovery.V2015_11_10.AffectedObjectType}
+ /// which is of
+ /// {Microsoft.Azure.SiteRecovery.V2015_11_10.AffectedObjectType}
/// class.
/// The custom job details like test
/// failover job details.
@@ -101,17 +100,16 @@ public JobProperties()
///
/// Gets or sets the status of the Job. It is one of these values -
- /// NotStarted, InProgress,
- /// Succeeded, Failed, Cancelled, Suspended or Other.
+ /// NotStarted, InProgress, Succeeded, Failed, Cancelled, Suspended or
+ /// Other.
///
[JsonProperty(PropertyName = "state")]
public string State { get; set; }
///
/// Gets or sets the description of the state of the Job. For e.g. -
- /// For Succeeded state,
- /// description can be Completed, PartiallySucceeded,
- /// CompletedWithInformation or Skipped.
+ /// For Succeeded state, description can be Completed,
+ /// PartiallySucceeded, CompletedWithInformation or Skipped.
///
[JsonProperty(PropertyName = "stateDescription")]
public string StateDescription { get; set; }
@@ -159,8 +157,8 @@ public JobProperties()
public string TargetObjectName { get; set; }
///
- /// Gets or sets the type of the affected object which is
- /// of {Microsoft.Azure.SiteRecovery.V2015_11_10.AffectedObjectType}
+ /// Gets or sets the type of the affected object which is of
+ /// {Microsoft.Azure.SiteRecovery.V2015_11_10.AffectedObjectType}
/// class.
///
[JsonProperty(PropertyName = "targetInstanceType")]
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/JobStatusEventDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/JobStatusEventDetails.cs
index 331cd46e0357..0b905b6fe4df 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/JobStatusEventDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/JobStatusEventDetails.cs
@@ -34,7 +34,7 @@ public JobStatusEventDetails()
///
/// Job arm id for the event.
/// JobName for the Event.
- /// JobStatus for the Event.
+ /// JobStatus for the Event.
/// AffectedObjectType for the
/// event.
public JobStatusEventDetails(string jobId = default(string), string jobFriendlyName = default(string), string jobStatus = default(string), string affectedObjectType = default(string))
@@ -64,7 +64,7 @@ public JobStatusEventDetails()
public string JobFriendlyName { get; set; }
///
- /// Gets or sets jobStatus for the Event.
+ /// Gets or sets jobStatus for the Event.
///
[JsonProperty(PropertyName = "jobStatus")]
public string JobStatus { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/JobTaskDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/JobTaskDetails.cs
index fc63eb18fb30..b12b96f741eb 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/JobTaskDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/JobTaskDetails.cs
@@ -17,8 +17,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
///
/// This class represents a task which is actually a workflow so that one
- /// can navigate
- /// to its individual drill down.
+ /// can navigate to its individual drill down.
///
public partial class JobTaskDetails : TaskTypeDetails
{
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/LicenseType.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/LicenseType.cs
index 7079903d7b5d..283cee336e74 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/LicenseType.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/LicenseType.cs
@@ -30,4 +30,37 @@ public enum LicenseType
[EnumMember(Value = "WindowsServer")]
WindowsServer
}
+ internal static class LicenseTypeEnumExtension
+ {
+ internal static string ToSerializedValue(this LicenseType? value) =>
+ value == null ? null : ((LicenseType)value).ToSerializedValue();
+
+ internal static string ToSerializedValue(this LicenseType value)
+ {
+ switch( value )
+ {
+ case LicenseType.NotSpecified:
+ return "NotSpecified";
+ case LicenseType.NoLicenseType:
+ return "NoLicenseType";
+ case LicenseType.WindowsServer:
+ return "WindowsServer";
+ }
+ return null;
+ }
+
+ internal static LicenseType? ParseLicenseType(this string value)
+ {
+ switch( value )
+ {
+ case "NotSpecified":
+ return LicenseType.NotSpecified;
+ case "NoLicenseType":
+ return LicenseType.NoLicenseType;
+ case "WindowsServer":
+ return LicenseType.WindowsServer;
+ }
+ return null;
+ }
+ }
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/MasterTargetServer.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/MasterTargetServer.cs
index 23e144adad92..c7754fd44d04 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/MasterTargetServer.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/MasterTargetServer.cs
@@ -47,7 +47,9 @@ public MasterTargetServer()
/// The list of data stores in the
/// fabric.
/// Validation errors.
- public MasterTargetServer(string id = default(string), string ipAddress = default(string), string name = default(string), string osType = default(string), string agentVersion = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string versionStatus = default(string), IList retentionVolumes = default(IList), IList dataStores = default(IList), IList validationErrors = default(IList))
+ /// Disk count of the master target.
+ /// OS Version of the master target.
+ public MasterTargetServer(string id = default(string), string ipAddress = default(string), string name = default(string), string osType = default(string), string agentVersion = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string versionStatus = default(string), IList retentionVolumes = default(IList), IList dataStores = default(IList), IList validationErrors = default(IList), int? diskCount = default(int?), string osVersion = default(string))
{
Id = id;
IpAddress = ipAddress;
@@ -59,6 +61,8 @@ public MasterTargetServer()
RetentionVolumes = retentionVolumes;
DataStores = dataStores;
ValidationErrors = validationErrors;
+ DiskCount = diskCount;
+ OsVersion = osVersion;
CustomInit();
}
@@ -127,5 +131,17 @@ public MasterTargetServer()
[JsonProperty(PropertyName = "validationErrors")]
public IList ValidationErrors { get; set; }
+ ///
+ /// Gets or sets disk count of the master target.
+ ///
+ [JsonProperty(PropertyName = "diskCount")]
+ public int? DiskCount { get; set; }
+
+ ///
+ /// Gets or sets OS Version of the master target.
+ ///
+ [JsonProperty(PropertyName = "osVersion")]
+ public string OsVersion { get; set; }
+
}
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/MultiVmSyncStatus.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/MultiVmSyncStatus.cs
new file mode 100644
index 000000000000..f6070cba60f3
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/MultiVmSyncStatus.cs
@@ -0,0 +1,60 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+
+namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
+{
+ using Microsoft.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using System.Runtime;
+ using System.Runtime.Serialization;
+
+ ///
+ /// Defines values for MultiVmSyncStatus.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum MultiVmSyncStatus
+ {
+ [EnumMember(Value = "Enabled")]
+ Enabled,
+ [EnumMember(Value = "Disabled")]
+ Disabled
+ }
+ internal static class MultiVmSyncStatusEnumExtension
+ {
+ internal static string ToSerializedValue(this MultiVmSyncStatus? value) =>
+ value == null ? null : ((MultiVmSyncStatus)value).ToSerializedValue();
+
+ internal static string ToSerializedValue(this MultiVmSyncStatus value)
+ {
+ switch( value )
+ {
+ case MultiVmSyncStatus.Enabled:
+ return "Enabled";
+ case MultiVmSyncStatus.Disabled:
+ return "Disabled";
+ }
+ return null;
+ }
+
+ internal static MultiVmSyncStatus? ParseMultiVmSyncStatus(this string value)
+ {
+ switch( value )
+ {
+ case "Enabled":
+ return MultiVmSyncStatus.Enabled;
+ case "Disabled":
+ return MultiVmSyncStatus.Disabled;
+ }
+ return null;
+ }
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/NetworkMapping.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/NetworkMapping.cs
index 40cef582b0c6..96d9e915ca02 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/NetworkMapping.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/NetworkMapping.cs
@@ -16,17 +16,13 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
using System.Linq;
///
- /// Network Mapping model.
- /// Ideally it should have been possible to inherit this class from prev
- /// version in
- /// InheritedModels as long as there is no difference in structure or
- /// method signature.
- /// Since there were no base Models for certain fields and methods viz
- /// NetworkMappingProperties
- /// and Load with required return type, the class has been introduced in
- /// its entirety with
- /// references to base models to facilitate exensions in subsequent
- /// versions.
+ /// Network Mapping model. Ideally it should have been possible to inherit
+ /// this class from prev version in InheritedModels as long as there is no
+ /// difference in structure or method signature. Since there were no base
+ /// Models for certain fields and methods viz NetworkMappingProperties and
+ /// Load with required return type, the class has been introduced in its
+ /// entirety with references to base models to facilitate exensions in
+ /// subsequent versions.
///
public partial class NetworkMapping : Resource
{
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/OSDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/OSDetails.cs
index 596533aad44c..9f4bddc008bd 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/OSDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/OSDetails.cs
@@ -32,7 +32,7 @@ public OSDetails()
/// Initializes a new instance of the OSDetails class.
///
/// VM Disk details.
- /// ProductType.
+ /// Product type.
/// The OSEdition.
/// The OS Version.
/// The OS Major Version.
@@ -60,7 +60,7 @@ public OSDetails()
public string OsType { get; set; }
///
- /// Gets or sets productType.
+ /// Gets or sets product type.
///
[JsonProperty(PropertyName = "productType")]
public string ProductType { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/OperationsDiscovery.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/OperationsDiscovery.cs
index cccfa91d6bfe..75adce4eed08 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/OperationsDiscovery.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/OperationsDiscovery.cs
@@ -31,36 +31,31 @@ public OperationsDiscovery()
///
/// Initializes a new instance of the OperationsDiscovery class.
///
- /// Name of the API.
- /// The name of the operation being performed on this particular
- /// object. It should match the action name that appears in RBAC / the
- /// event service.
- /// Examples of operations include:
- /// * Microsoft.Compute/virtualMachine/capture/action
- /// * Microsoft.Compute/virtualMachine/restart/action
- /// * Microsoft.Compute/virtualMachine/write
- /// * Microsoft.Compute/virtualMachine/read
- /// * Microsoft.Compute/virtualMachine/delete
- /// Each action should include, in order:
- /// (1) Resource Provider Namespace
- /// (2) Type hierarchy for which the action applies (e.g.
- /// server/databases for a SQL Azure database)
- /// (3) Read, Write, Action or Delete indicating which type applies. If
- /// it is a PUT/PATCH on a collection or named value, Write should be
- /// used.
- /// If it is a GET, Read should be used. If it is a DELETE, Delete
- /// should be used. If it is a POST, Action should be used.
- /// As a note: all resource providers would need to include the
+ /// Name of the API. The name of the operation being
+ /// performed on this particular object. It should match the action
+ /// name that appears in RBAC / the event service. Examples of
+ /// operations include: *
+ /// Microsoft.Compute/virtualMachine/capture/action *
+ /// Microsoft.Compute/virtualMachine/restart/action *
+ /// Microsoft.Compute/virtualMachine/write *
+ /// Microsoft.Compute/virtualMachine/read *
+ /// Microsoft.Compute/virtualMachine/delete Each action should include,
+ /// in order: (1) Resource Provider Namespace (2) Type hierarchy for
+ /// which the action applies (e.g. server/databases for a SQL Azure
+ /// database) (3) Read, Write, Action or Delete indicating which type
+ /// applies. If it is a PUT/PATCH on a collection or named value, Write
+ /// should be used. If it is a GET, Read should be used. If it is a
+ /// DELETE, Delete should be used. If it is a POST, Action should be
+ /// used. As a note: all resource providers would need to include the
/// "{Resource Provider Namespace}/register/action" operation in their
- /// response.
- /// This API is used to register for their service, and should include
- /// details about the operation (e.g. a localized name for the resource
- /// provider + any special considerations like PII release)
+ /// response. This API is used to register for their service, and
+ /// should include details about the operation (e.g. a localized name
+ /// for the resource provider + any special considerations like PII
+ /// release)
/// Object type
- /// Origin.
- /// The intended executor of the operation; governs the display of the
- /// operation in the RBAC UX and the audit logs UX.
- /// Default value is "user,system"
+ /// Origin. The intended executor of the
+ /// operation; governs the display of the operation in the RBAC UX and
+ /// the audit logs UX. Default value is "user,system"
/// Properties. Reserved for future
/// use.
public OperationsDiscovery(string name = default(string), Display display = default(Display), string origin = default(string), object properties = default(object))
@@ -78,31 +73,27 @@ public OperationsDiscovery()
partial void CustomInit();
///
- /// Gets or sets name of the API.
- /// The name of the operation being performed on this particular
- /// object. It should match the action name that appears in RBAC / the
- /// event service.
- /// Examples of operations include:
- /// * Microsoft.Compute/virtualMachine/capture/action
- /// * Microsoft.Compute/virtualMachine/restart/action
- /// * Microsoft.Compute/virtualMachine/write
- /// * Microsoft.Compute/virtualMachine/read
- /// * Microsoft.Compute/virtualMachine/delete
- /// Each action should include, in order:
- /// (1) Resource Provider Namespace
- /// (2) Type hierarchy for which the action applies (e.g.
- /// server/databases for a SQL Azure database)
- /// (3) Read, Write, Action or Delete indicating which type applies. If
- /// it is a PUT/PATCH on a collection or named value, Write should be
- /// used.
- /// If it is a GET, Read should be used. If it is a DELETE, Delete
- /// should be used. If it is a POST, Action should be used.
- /// As a note: all resource providers would need to include the
+ /// Gets or sets name of the API. The name of the operation being
+ /// performed on this particular object. It should match the action
+ /// name that appears in RBAC / the event service. Examples of
+ /// operations include: *
+ /// Microsoft.Compute/virtualMachine/capture/action *
+ /// Microsoft.Compute/virtualMachine/restart/action *
+ /// Microsoft.Compute/virtualMachine/write *
+ /// Microsoft.Compute/virtualMachine/read *
+ /// Microsoft.Compute/virtualMachine/delete Each action should include,
+ /// in order: (1) Resource Provider Namespace (2) Type hierarchy for
+ /// which the action applies (e.g. server/databases for a SQL Azure
+ /// database) (3) Read, Write, Action or Delete indicating which type
+ /// applies. If it is a PUT/PATCH on a collection or named value, Write
+ /// should be used. If it is a GET, Read should be used. If it is a
+ /// DELETE, Delete should be used. If it is a POST, Action should be
+ /// used. As a note: all resource providers would need to include the
/// "{Resource Provider Namespace}/register/action" operation in their
- /// response.
- /// This API is used to register for their service, and should include
- /// details about the operation (e.g. a localized name for the resource
- /// provider + any special considerations like PII release)
+ /// response. This API is used to register for their service, and
+ /// should include details about the operation (e.g. a localized name
+ /// for the resource provider + any special considerations like PII
+ /// release)
///
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
@@ -114,10 +105,9 @@ public OperationsDiscovery()
public Display Display { get; set; }
///
- /// Gets or sets origin.
- /// The intended executor of the operation; governs the display of the
- /// operation in the RBAC UX and the audit logs UX.
- /// Default value is "user,system"
+ /// Gets or sets origin. The intended executor of the operation;
+ /// governs the display of the operation in the RBAC UX and the audit
+ /// logs UX. Default value is "user,system"
///
[JsonProperty(PropertyName = "origin")]
public string Origin { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/PossibleOperationsDirections.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/PossibleOperationsDirections.cs
index cf2c593acc0b..a96d89f4a2b1 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/PossibleOperationsDirections.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/PossibleOperationsDirections.cs
@@ -28,4 +28,33 @@ public enum PossibleOperationsDirections
[EnumMember(Value = "RecoveryToPrimary")]
RecoveryToPrimary
}
+ internal static class PossibleOperationsDirectionsEnumExtension
+ {
+ internal static string ToSerializedValue(this PossibleOperationsDirections? value) =>
+ value == null ? null : ((PossibleOperationsDirections)value).ToSerializedValue();
+
+ internal static string ToSerializedValue(this PossibleOperationsDirections value)
+ {
+ switch( value )
+ {
+ case PossibleOperationsDirections.PrimaryToRecovery:
+ return "PrimaryToRecovery";
+ case PossibleOperationsDirections.RecoveryToPrimary:
+ return "RecoveryToPrimary";
+ }
+ return null;
+ }
+
+ internal static PossibleOperationsDirections? ParsePossibleOperationsDirections(this string value)
+ {
+ switch( value )
+ {
+ case "PrimaryToRecovery":
+ return PossibleOperationsDirections.PrimaryToRecovery;
+ case "RecoveryToPrimary":
+ return PossibleOperationsDirections.RecoveryToPrimary;
+ }
+ return null;
+ }
+ }
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProcessServer.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProcessServer.cs
index 78c0c1375c26..ead5550adb83 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProcessServer.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProcessServer.cs
@@ -44,8 +44,7 @@ public ProcessServer()
/// server.
/// Version status
/// The list of the mobility
- /// service updates available on the
- /// Process Server.
+ /// service updates available on the Process Server.
/// The agent generated Id.
/// The servers configured with this
/// PS.
@@ -66,7 +65,10 @@ public ProcessServer()
/// date.
/// CS SSL cert expiry
/// date.
- public ProcessServer(string friendlyName = default(string), string id = default(string), string ipAddress = default(string), string osType = default(string), string agentVersion = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string versionStatus = default(string), IList mobilityServiceUpdates = default(IList), string hostId = default(string), string machineCount = default(string), string replicationPairCount = default(string), string systemLoad = default(string), string systemLoadStatus = default(string), string cpuLoad = default(string), string cpuLoadStatus = default(string), long? totalMemoryInBytes = default(long?), long? availableMemoryInBytes = default(long?), string memoryUsageStatus = default(string), long? totalSpaceInBytes = default(long?), long? availableSpaceInBytes = default(long?), string spaceUsageStatus = default(string), string psServiceStatus = default(string), System.DateTime? sslCertExpiryDate = default(System.DateTime?), int? sslCertExpiryRemainingDays = default(int?))
+ /// OS Version of the process server. Note:
+ /// This will get populated if user has CS version greater than
+ /// 9.12.0.0.
+ public ProcessServer(string friendlyName = default(string), string id = default(string), string ipAddress = default(string), string osType = default(string), string agentVersion = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string versionStatus = default(string), IList mobilityServiceUpdates = default(IList), string hostId = default(string), string machineCount = default(string), string replicationPairCount = default(string), string systemLoad = default(string), string systemLoadStatus = default(string), string cpuLoad = default(string), string cpuLoadStatus = default(string), long? totalMemoryInBytes = default(long?), long? availableMemoryInBytes = default(long?), string memoryUsageStatus = default(string), long? totalSpaceInBytes = default(long?), long? availableSpaceInBytes = default(long?), string spaceUsageStatus = default(string), string psServiceStatus = default(string), System.DateTime? sslCertExpiryDate = default(System.DateTime?), int? sslCertExpiryRemainingDays = default(int?), string osVersion = default(string))
{
FriendlyName = friendlyName;
Id = id;
@@ -92,6 +94,7 @@ public ProcessServer()
PsServiceStatus = psServiceStatus;
SslCertExpiryDate = sslCertExpiryDate;
SslCertExpiryRemainingDays = sslCertExpiryRemainingDays;
+ OsVersion = osVersion;
CustomInit();
}
@@ -144,8 +147,7 @@ public ProcessServer()
///
/// Gets or sets the list of the mobility service updates available on
- /// the
- /// Process Server.
+ /// the Process Server.
///
[JsonProperty(PropertyName = "mobilityServiceUpdates")]
public IList MobilityServiceUpdates { get; set; }
@@ -246,5 +248,12 @@ public ProcessServer()
[JsonProperty(PropertyName = "sslCertExpiryRemainingDays")]
public int? SslCertExpiryRemainingDays { get; set; }
+ ///
+ /// Gets or sets OS Version of the process server. Note: This will get
+ /// populated if user has CS version greater than 9.12.0.0.
+ ///
+ [JsonProperty(PropertyName = "osVersion")]
+ public string OsVersion { get; set; }
+
}
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProtectedItemsQueryParameter.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProtectedItemsQueryParameter.cs
index 710c13ad141b..98bd27e0eee9 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProtectedItemsQueryParameter.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProtectedItemsQueryParameter.cs
@@ -36,10 +36,12 @@ public ProtectedItemsQueryParameter()
/// The source fabric name
/// filter.
/// The recovery plan filter.
- public ProtectedItemsQueryParameter(string sourceFabricName = default(string), string recoveryPlanName = default(string))
+ /// The vCenter name filter.
+ public ProtectedItemsQueryParameter(string sourceFabricName = default(string), string recoveryPlanName = default(string), string vCenterName = default(string))
{
SourceFabricName = sourceFabricName;
RecoveryPlanName = recoveryPlanName;
+ VCenterName = vCenterName;
CustomInit();
}
@@ -60,5 +62,11 @@ public ProtectedItemsQueryParameter()
[JsonProperty(PropertyName = "recoveryPlanName")]
public string RecoveryPlanName { get; set; }
+ ///
+ /// Gets or sets the vCenter name filter.
+ ///
+ [JsonProperty(PropertyName = "vCenterName")]
+ public string VCenterName { get; set; }
+
}
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProviderSpecificRecoveryPointDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProviderSpecificRecoveryPointDetails.cs
new file mode 100644
index 000000000000..6f06b2306296
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ProviderSpecificRecoveryPointDetails.cs
@@ -0,0 +1,55 @@
+// 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.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Replication provider specific recovery point details.
+ ///
+ public partial class ProviderSpecificRecoveryPointDetails
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ProviderSpecificRecoveryPointDetails class.
+ ///
+ public ProviderSpecificRecoveryPointDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ProviderSpecificRecoveryPointDetails class.
+ ///
+ /// Gets the provider type.
+ public ProviderSpecificRecoveryPointDetails(string type = default(string))
+ {
+ Type = type;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the provider type.
+ ///
+ [JsonProperty(PropertyName = "Type")]
+ public string Type { get; private set; }
+
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RcmAzureMigrationPolicyDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RcmAzureMigrationPolicyDetails.cs
new file mode 100644
index 000000000000..d0265a4b22b9
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RcmAzureMigrationPolicyDetails.cs
@@ -0,0 +1,96 @@
+// 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.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// RCM based Azure migration specific policy details.
+ ///
+ [Newtonsoft.Json.JsonObject("RcmAzureMigration")]
+ public partial class RcmAzureMigrationPolicyDetails : PolicyProviderSpecificDetails
+ {
+ ///
+ /// Initializes a new instance of the RcmAzureMigrationPolicyDetails
+ /// class.
+ ///
+ public RcmAzureMigrationPolicyDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the RcmAzureMigrationPolicyDetails
+ /// class.
+ ///
+ /// The recovery point
+ /// threshold in minutes.
+ /// The duration in minutes until
+ /// which the recovery points need to be stored.
+ /// The app consistent
+ /// snapshot frequency in minutes.
+ /// A value indicating whether multi-VM
+ /// sync has to be enabled. Possible values include: 'Enabled',
+ /// 'Disabled'
+ /// The crash
+ /// consistent snapshot frequency in minutes.
+ public RcmAzureMigrationPolicyDetails(int? recoveryPointThresholdInMinutes = default(int?), int? recoveryPointHistory = default(int?), int? appConsistentFrequencyInMinutes = default(int?), MultiVmSyncStatus? multiVmSyncStatus = default(MultiVmSyncStatus?), int? crashConsistentFrequencyInMinutes = default(int?))
+ {
+ RecoveryPointThresholdInMinutes = recoveryPointThresholdInMinutes;
+ RecoveryPointHistory = recoveryPointHistory;
+ AppConsistentFrequencyInMinutes = appConsistentFrequencyInMinutes;
+ MultiVmSyncStatus = multiVmSyncStatus;
+ CrashConsistentFrequencyInMinutes = crashConsistentFrequencyInMinutes;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the recovery point threshold in minutes.
+ ///
+ [JsonProperty(PropertyName = "recoveryPointThresholdInMinutes")]
+ public int? RecoveryPointThresholdInMinutes { get; set; }
+
+ ///
+ /// Gets or sets the duration in minutes until which the recovery
+ /// points need to be stored.
+ ///
+ [JsonProperty(PropertyName = "recoveryPointHistory")]
+ public int? RecoveryPointHistory { get; set; }
+
+ ///
+ /// Gets or sets the app consistent snapshot frequency in minutes.
+ ///
+ [JsonProperty(PropertyName = "appConsistentFrequencyInMinutes")]
+ public int? AppConsistentFrequencyInMinutes { get; set; }
+
+ ///
+ /// Gets or sets a value indicating whether multi-VM sync has to be
+ /// enabled. Possible values include: 'Enabled', 'Disabled'
+ ///
+ [JsonProperty(PropertyName = "multiVmSyncStatus")]
+ public MultiVmSyncStatus? MultiVmSyncStatus { get; set; }
+
+ ///
+ /// Gets or sets the crash consistent snapshot frequency in minutes.
+ ///
+ [JsonProperty(PropertyName = "crashConsistentFrequencyInMinutes")]
+ public int? CrashConsistentFrequencyInMinutes { get; set; }
+
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPlanActionLocation.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPlanActionLocation.cs
index 316bae8897cc..f8a609d2ef46 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPlanActionLocation.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPlanActionLocation.cs
@@ -28,4 +28,33 @@ public enum RecoveryPlanActionLocation
[EnumMember(Value = "Recovery")]
Recovery
}
+ internal static class RecoveryPlanActionLocationEnumExtension
+ {
+ internal static string ToSerializedValue(this RecoveryPlanActionLocation? value) =>
+ value == null ? null : ((RecoveryPlanActionLocation)value).ToSerializedValue();
+
+ internal static string ToSerializedValue(this RecoveryPlanActionLocation value)
+ {
+ switch( value )
+ {
+ case RecoveryPlanActionLocation.Primary:
+ return "Primary";
+ case RecoveryPlanActionLocation.Recovery:
+ return "Recovery";
+ }
+ return null;
+ }
+
+ internal static RecoveryPlanActionLocation? ParseRecoveryPlanActionLocation(this string value)
+ {
+ switch( value )
+ {
+ case "Primary":
+ return RecoveryPlanActionLocation.Primary;
+ case "Recovery":
+ return RecoveryPlanActionLocation.Recovery;
+ }
+ return null;
+ }
+ }
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPlanGroupType.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPlanGroupType.cs
index 35363a1f87b0..21079ed2867e 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPlanGroupType.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPlanGroupType.cs
@@ -30,4 +30,37 @@ public enum RecoveryPlanGroupType
[EnumMember(Value = "Failover")]
Failover
}
+ internal static class RecoveryPlanGroupTypeEnumExtension
+ {
+ internal static string ToSerializedValue(this RecoveryPlanGroupType? value) =>
+ value == null ? null : ((RecoveryPlanGroupType)value).ToSerializedValue();
+
+ internal static string ToSerializedValue(this RecoveryPlanGroupType value)
+ {
+ switch( value )
+ {
+ case RecoveryPlanGroupType.Shutdown:
+ return "Shutdown";
+ case RecoveryPlanGroupType.Boot:
+ return "Boot";
+ case RecoveryPlanGroupType.Failover:
+ return "Failover";
+ }
+ return null;
+ }
+
+ internal static RecoveryPlanGroupType? ParseRecoveryPlanGroupType(this string value)
+ {
+ switch( value )
+ {
+ case "Shutdown":
+ return RecoveryPlanGroupType.Shutdown;
+ case "Boot":
+ return RecoveryPlanGroupType.Boot;
+ case "Failover":
+ return RecoveryPlanGroupType.Failover;
+ }
+ return null;
+ }
+ }
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPlanInMageAzureV2FailoverInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPlanInMageAzureV2FailoverInput.cs
index 3b243e2df974..179b67c5b825 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPlanInMageAzureV2FailoverInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPlanInMageAzureV2FailoverInput.cs
@@ -39,10 +39,14 @@ public RecoveryPlanInMageAzureV2FailoverInput()
/// The recovery point type. Possible
/// values include: 'Latest', 'LatestApplicationConsistent',
/// 'LatestCrashConsistent', 'LatestProcessed'
- public RecoveryPlanInMageAzureV2FailoverInput(string vaultLocation, InMageV2RpRecoveryPointType recoveryPointType)
+ /// A value indicating whether multi
+ /// VM sync enabled VMs should use multi VM sync points for
+ /// failover.
+ public RecoveryPlanInMageAzureV2FailoverInput(string vaultLocation, InMageV2RpRecoveryPointType recoveryPointType, string useMultiVmSyncPoint = default(string))
{
VaultLocation = vaultLocation;
RecoveryPointType = recoveryPointType;
+ UseMultiVmSyncPoint = useMultiVmSyncPoint;
CustomInit();
}
@@ -65,6 +69,13 @@ public RecoveryPlanInMageAzureV2FailoverInput(string vaultLocation, InMageV2RpRe
[JsonProperty(PropertyName = "recoveryPointType")]
public InMageV2RpRecoveryPointType RecoveryPointType { get; set; }
+ ///
+ /// Gets or sets a value indicating whether multi VM sync enabled VMs
+ /// should use multi VM sync points for failover.
+ ///
+ [JsonProperty(PropertyName = "useMultiVmSyncPoint")]
+ public string UseMultiVmSyncPoint { get; set; }
+
///
/// Validate the object.
///
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPlanProperties.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPlanProperties.cs
index 2a0131fe5e09..702bac242bab 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPlanProperties.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPlanProperties.cs
@@ -48,6 +48,8 @@ public RecoveryPlanProperties()
/// operations.
/// The start time of the last
/// planned failover.
+ /// The start time of the last
+ /// unplanned failover.
/// The start time of the last test
/// failover.
/// The current scenario details.
@@ -56,7 +58,7 @@ public RecoveryPlanProperties()
/// The recovery plan
/// status description.
/// The recovery plan groups.
- public RecoveryPlanProperties(string friendlyName = default(string), string primaryFabricId = default(string), string primaryFabricFriendlyName = default(string), string recoveryFabricId = default(string), string recoveryFabricFriendlyName = default(string), string failoverDeploymentModel = default(string), IList replicationProviders = default(IList), IList allowedOperations = default(IList), System.DateTime? lastPlannedFailoverTime = default(System.DateTime?), System.DateTime? lastTestFailoverTime = default(System.DateTime?), CurrentScenarioDetails currentScenario = default(CurrentScenarioDetails), string currentScenarioStatus = default(string), string currentScenarioStatusDescription = default(string), IList groups = default(IList))
+ public RecoveryPlanProperties(string friendlyName = default(string), string primaryFabricId = default(string), string primaryFabricFriendlyName = default(string), string recoveryFabricId = default(string), string recoveryFabricFriendlyName = default(string), string failoverDeploymentModel = default(string), IList replicationProviders = default(IList), IList allowedOperations = default(IList), System.DateTime? lastPlannedFailoverTime = default(System.DateTime?), System.DateTime? lastUnplannedFailoverTime = default(System.DateTime?), System.DateTime? lastTestFailoverTime = default(System.DateTime?), CurrentScenarioDetails currentScenario = default(CurrentScenarioDetails), string currentScenarioStatus = default(string), string currentScenarioStatusDescription = default(string), IList groups = default(IList))
{
FriendlyName = friendlyName;
PrimaryFabricId = primaryFabricId;
@@ -67,6 +69,7 @@ public RecoveryPlanProperties()
ReplicationProviders = replicationProviders;
AllowedOperations = allowedOperations;
LastPlannedFailoverTime = lastPlannedFailoverTime;
+ LastUnplannedFailoverTime = lastUnplannedFailoverTime;
LastTestFailoverTime = lastTestFailoverTime;
CurrentScenario = currentScenario;
CurrentScenarioStatus = currentScenarioStatus;
@@ -134,6 +137,12 @@ public RecoveryPlanProperties()
[JsonProperty(PropertyName = "lastPlannedFailoverTime")]
public System.DateTime? LastPlannedFailoverTime { get; set; }
+ ///
+ /// Gets or sets the start time of the last unplanned failover.
+ ///
+ [JsonProperty(PropertyName = "lastUnplannedFailoverTime")]
+ public System.DateTime? LastUnplannedFailoverTime { get; set; }
+
///
/// Gets or sets the start time of the last test failover.
///
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPointProperties.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPointProperties.cs
index 42c0d0c0b2d7..93d26591e2e1 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPointProperties.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPointProperties.cs
@@ -34,10 +34,13 @@ public RecoveryPointProperties()
/// The recovery point time.
/// The recovery point type:
/// ApplicationConsistent, CrashConsistent.
- public RecoveryPointProperties(System.DateTime? recoveryPointTime = default(System.DateTime?), string recoveryPointType = default(string))
+ /// The provider specific details
+ /// for the recovery point.
+ public RecoveryPointProperties(System.DateTime? recoveryPointTime = default(System.DateTime?), string recoveryPointType = default(string), ProviderSpecificRecoveryPointDetails providerSpecificDetails = default(ProviderSpecificRecoveryPointDetails))
{
RecoveryPointTime = recoveryPointTime;
RecoveryPointType = recoveryPointType;
+ ProviderSpecificDetails = providerSpecificDetails;
CustomInit();
}
@@ -59,5 +62,11 @@ public RecoveryPointProperties()
[JsonProperty(PropertyName = "recoveryPointType")]
public string RecoveryPointType { get; set; }
+ ///
+ /// Gets or sets the provider specific details for the recovery point.
+ ///
+ [JsonProperty(PropertyName = "providerSpecificDetails")]
+ public ProviderSpecificRecoveryPointDetails ProviderSpecificDetails { get; set; }
+
}
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPointType.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPointType.cs
new file mode 100644
index 000000000000..7879de83f68a
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryPointType.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 Microsoft.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using System.Runtime;
+ using System.Runtime.Serialization;
+
+ ///
+ /// Defines values for RecoveryPointType.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum RecoveryPointType
+ {
+ [EnumMember(Value = "LatestTime")]
+ LatestTime,
+ [EnumMember(Value = "LatestTag")]
+ LatestTag,
+ [EnumMember(Value = "Custom")]
+ Custom
+ }
+ internal static class RecoveryPointTypeEnumExtension
+ {
+ internal static string ToSerializedValue(this RecoveryPointType? value) =>
+ value == null ? null : ((RecoveryPointType)value).ToSerializedValue();
+
+ internal static string ToSerializedValue(this RecoveryPointType value)
+ {
+ switch( value )
+ {
+ case RecoveryPointType.LatestTime:
+ return "LatestTime";
+ case RecoveryPointType.LatestTag:
+ return "LatestTag";
+ case RecoveryPointType.Custom:
+ return "Custom";
+ }
+ return null;
+ }
+
+ internal static RecoveryPointType? ParseRecoveryPointType(this string value)
+ {
+ switch( value )
+ {
+ case "LatestTime":
+ return RecoveryPointType.LatestTime;
+ case "LatestTag":
+ return RecoveryPointType.LatestTag;
+ case "Custom":
+ return RecoveryPointType.Custom;
+ }
+ return null;
+ }
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryServicesProviderProperties.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryServicesProviderProperties.cs
index 9c4bd4361ab4..87482fc68c1f 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryServicesProviderProperties.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RecoveryServicesProviderProperties.cs
@@ -49,11 +49,13 @@ public RecoveryServicesProviderProperties()
/// responsive.
/// Number of protected VMs currently
/// managed by the DRA.
- /// The scenarions allowed on this
+ /// The scenarios allowed on this
/// provider.
/// The recovery services provider
/// health error details.
- public RecoveryServicesProviderProperties(string fabricType = default(string), string friendlyName = default(string), string providerVersion = default(string), string serverVersion = default(string), string providerVersionState = default(string), System.DateTime? providerVersionExpiryDate = default(System.DateTime?), string fabricFriendlyName = default(string), System.DateTime? lastHeartBeat = default(System.DateTime?), string connectionStatus = default(string), int? protectedItemCount = default(int?), IList allowedScenarios = default(IList), IList healthErrorDetails = default(IList))
+ /// The DRA Id.
+ /// The identity details.
+ public RecoveryServicesProviderProperties(string fabricType = default(string), string friendlyName = default(string), string providerVersion = default(string), string serverVersion = default(string), string providerVersionState = default(string), System.DateTime? providerVersionExpiryDate = default(System.DateTime?), string fabricFriendlyName = default(string), System.DateTime? lastHeartBeat = default(System.DateTime?), string connectionStatus = default(string), int? protectedItemCount = default(int?), IList allowedScenarios = default(IList), IList healthErrorDetails = default(IList), string draIdentifier = default(string), IdentityInformation identityDetails = default(IdentityInformation))
{
FabricType = fabricType;
FriendlyName = friendlyName;
@@ -67,6 +69,8 @@ public RecoveryServicesProviderProperties()
ProtectedItemCount = protectedItemCount;
AllowedScenarios = allowedScenarios;
HealthErrorDetails = healthErrorDetails;
+ DraIdentifier = draIdentifier;
+ IdentityDetails = identityDetails;
CustomInit();
}
@@ -136,7 +140,7 @@ public RecoveryServicesProviderProperties()
public int? ProtectedItemCount { get; set; }
///
- /// Gets or sets the scenarions allowed on this provider.
+ /// Gets or sets the scenarios allowed on this provider.
///
[JsonProperty(PropertyName = "allowedScenarios")]
public IList AllowedScenarios { get; set; }
@@ -147,5 +151,17 @@ public RecoveryServicesProviderProperties()
[JsonProperty(PropertyName = "healthErrorDetails")]
public IList HealthErrorDetails { get; set; }
+ ///
+ /// Gets or sets the DRA Id.
+ ///
+ [JsonProperty(PropertyName = "draIdentifier")]
+ public string DraIdentifier { get; set; }
+
+ ///
+ /// Gets or sets the identity details.
+ ///
+ [JsonProperty(PropertyName = "identityDetails")]
+ public IdentityInformation IdentityDetails { get; set; }
+
}
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ReplicationProtectedItemOperation.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ReplicationProtectedItemOperation.cs
index 859b9a5a8696..d93f7a0d8343 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ReplicationProtectedItemOperation.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ReplicationProtectedItemOperation.cs
@@ -50,4 +50,77 @@ public enum ReplicationProtectedItemOperation
[EnumMember(Value = "CompleteMigration")]
CompleteMigration
}
+ internal static class ReplicationProtectedItemOperationEnumExtension
+ {
+ internal static string ToSerializedValue(this ReplicationProtectedItemOperation? value) =>
+ value == null ? null : ((ReplicationProtectedItemOperation)value).ToSerializedValue();
+
+ internal static string ToSerializedValue(this ReplicationProtectedItemOperation value)
+ {
+ switch( value )
+ {
+ case ReplicationProtectedItemOperation.ReverseReplicate:
+ return "ReverseReplicate";
+ case ReplicationProtectedItemOperation.Commit:
+ return "Commit";
+ case ReplicationProtectedItemOperation.PlannedFailover:
+ return "PlannedFailover";
+ case ReplicationProtectedItemOperation.UnplannedFailover:
+ return "UnplannedFailover";
+ case ReplicationProtectedItemOperation.DisableProtection:
+ return "DisableProtection";
+ case ReplicationProtectedItemOperation.TestFailover:
+ return "TestFailover";
+ case ReplicationProtectedItemOperation.TestFailoverCleanup:
+ return "TestFailoverCleanup";
+ case ReplicationProtectedItemOperation.Failback:
+ return "Failback";
+ case ReplicationProtectedItemOperation.FinalizeFailback:
+ return "FinalizeFailback";
+ case ReplicationProtectedItemOperation.ChangePit:
+ return "ChangePit";
+ case ReplicationProtectedItemOperation.RepairReplication:
+ return "RepairReplication";
+ case ReplicationProtectedItemOperation.SwitchProtection:
+ return "SwitchProtection";
+ case ReplicationProtectedItemOperation.CompleteMigration:
+ return "CompleteMigration";
+ }
+ return null;
+ }
+
+ internal static ReplicationProtectedItemOperation? ParseReplicationProtectedItemOperation(this string value)
+ {
+ switch( value )
+ {
+ case "ReverseReplicate":
+ return ReplicationProtectedItemOperation.ReverseReplicate;
+ case "Commit":
+ return ReplicationProtectedItemOperation.Commit;
+ case "PlannedFailover":
+ return ReplicationProtectedItemOperation.PlannedFailover;
+ case "UnplannedFailover":
+ return ReplicationProtectedItemOperation.UnplannedFailover;
+ case "DisableProtection":
+ return ReplicationProtectedItemOperation.DisableProtection;
+ case "TestFailover":
+ return ReplicationProtectedItemOperation.TestFailover;
+ case "TestFailoverCleanup":
+ return ReplicationProtectedItemOperation.TestFailoverCleanup;
+ case "Failback":
+ return ReplicationProtectedItemOperation.Failback;
+ case "FinalizeFailback":
+ return ReplicationProtectedItemOperation.FinalizeFailback;
+ case "ChangePit":
+ return ReplicationProtectedItemOperation.ChangePit;
+ case "RepairReplication":
+ return ReplicationProtectedItemOperation.RepairReplication;
+ case "SwitchProtection":
+ return ReplicationProtectedItemOperation.SwitchProtection;
+ case "CompleteMigration":
+ return ReplicationProtectedItemOperation.CompleteMigration;
+ }
+ return null;
+ }
+ }
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ReplicationProtectedItemProperties.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ReplicationProtectedItemProperties.cs
index b505b96cfc55..6f7f3dbba8b1 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ReplicationProtectedItemProperties.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ReplicationProtectedItemProperties.cs
@@ -62,13 +62,16 @@ public ReplicationProtectedItemProperties()
/// The allowed operations on the
/// Replication protected item.
/// The consolidated protection health
- /// for the VM taking any issues with SRS
- /// as well as all the replication units associated with the VM's
- /// replication group into
+ /// for the VM taking any issues with SRS as well as all the
+ /// replication units associated with the VM's replication group into
/// account. This is a string representation of the ProtectionHealth
/// enumeration.
+ /// The consolidated failover health for
+ /// the VM.
/// List of replication health
/// errors.
+ /// List of failover health
+ /// errors.
/// The ID of Policy governing this PE.
/// The name of Policy governing this
/// PE.
@@ -83,7 +86,7 @@ public ReplicationProtectedItemProperties()
/// custom settings.
/// The recovery container
/// Id.
- public ReplicationProtectedItemProperties(string friendlyName = default(string), string protectedItemType = default(string), string protectableItemId = default(string), string recoveryServicesProviderId = default(string), string primaryFabricFriendlyName = default(string), string recoveryFabricFriendlyName = default(string), string recoveryFabricId = default(string), string primaryProtectionContainerFriendlyName = default(string), string recoveryProtectionContainerFriendlyName = default(string), string protectionState = default(string), string protectionStateDescription = default(string), string activeLocation = default(string), string testFailoverState = default(string), string testFailoverStateDescription = default(string), IList allowedOperations = default(IList), string replicationHealth = default(string), IList replicationHealthErrors = default(IList), string policyId = default(string), string policyFriendlyName = default(string), System.DateTime? lastSuccessfulFailoverTime = default(System.DateTime?), System.DateTime? lastSuccessfulTestFailoverTime = default(System.DateTime?), CurrentScenarioDetails currentScenario = default(CurrentScenarioDetails), string failoverRecoveryPointId = default(string), ReplicationProviderSpecificSettings providerSpecificDetails = default(ReplicationProviderSpecificSettings), string recoveryContainerId = default(string))
+ public ReplicationProtectedItemProperties(string friendlyName = default(string), string protectedItemType = default(string), string protectableItemId = default(string), string recoveryServicesProviderId = default(string), string primaryFabricFriendlyName = default(string), string recoveryFabricFriendlyName = default(string), string recoveryFabricId = default(string), string primaryProtectionContainerFriendlyName = default(string), string recoveryProtectionContainerFriendlyName = default(string), string protectionState = default(string), string protectionStateDescription = default(string), string activeLocation = default(string), string testFailoverState = default(string), string testFailoverStateDescription = default(string), IList allowedOperations = default(IList), string replicationHealth = default(string), string failoverHealth = default(string), IList replicationHealthErrors = default(IList), IList failoverHealthErrors = default(IList), string policyId = default(string), string policyFriendlyName = default(string), System.DateTime? lastSuccessfulFailoverTime = default(System.DateTime?), System.DateTime? lastSuccessfulTestFailoverTime = default(System.DateTime?), CurrentScenarioDetails currentScenario = default(CurrentScenarioDetails), string failoverRecoveryPointId = default(string), ReplicationProviderSpecificSettings providerSpecificDetails = default(ReplicationProviderSpecificSettings), string recoveryContainerId = default(string))
{
FriendlyName = friendlyName;
ProtectedItemType = protectedItemType;
@@ -101,7 +104,9 @@ public ReplicationProtectedItemProperties()
TestFailoverStateDescription = testFailoverStateDescription;
AllowedOperations = allowedOperations;
ReplicationHealth = replicationHealth;
+ FailoverHealth = failoverHealth;
ReplicationHealthErrors = replicationHealthErrors;
+ FailoverHealthErrors = failoverHealthErrors;
PolicyId = policyId;
PolicyFriendlyName = policyFriendlyName;
LastSuccessfulFailoverTime = lastSuccessfulFailoverTime;
@@ -212,21 +217,31 @@ public ReplicationProtectedItemProperties()
///
/// Gets or sets the consolidated protection health for the VM taking
- /// any issues with SRS
- /// as well as all the replication units associated with the VM's
- /// replication group into
- /// account. This is a string representation of the ProtectionHealth
- /// enumeration.
+ /// any issues with SRS as well as all the replication units associated
+ /// with the VM's replication group into account. This is a string
+ /// representation of the ProtectionHealth enumeration.
///
[JsonProperty(PropertyName = "replicationHealth")]
public string ReplicationHealth { get; set; }
+ ///
+ /// Gets or sets the consolidated failover health for the VM.
+ ///
+ [JsonProperty(PropertyName = "failoverHealth")]
+ public string FailoverHealth { get; set; }
+
///
/// Gets or sets list of replication health errors.
///
[JsonProperty(PropertyName = "replicationHealthErrors")]
public IList ReplicationHealthErrors { get; set; }
+ ///
+ /// Gets or sets list of failover health errors.
+ ///
+ [JsonProperty(PropertyName = "failoverHealthErrors")]
+ public IList FailoverHealthErrors { get; set; }
+
///
/// Gets or sets the ID of Policy governing this PE.
///
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ResourceHealthSummary.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ResourceHealthSummary.cs
new file mode 100644
index 000000000000..ac02ee567fff
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/ResourceHealthSummary.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 Microsoft.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Base class to define the health summary of the resources contained
+ /// under an Arm resource.
+ ///
+ public partial class ResourceHealthSummary
+ {
+ ///
+ /// Initializes a new instance of the ResourceHealthSummary class.
+ ///
+ public ResourceHealthSummary()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ResourceHealthSummary class.
+ ///
+ /// The count of total resources umder the
+ /// container.
+ /// The list of summary of health errors across
+ /// the resources under the container.
+ public ResourceHealthSummary(int? resourceCount = default(int?), IList issues = default(IList))
+ {
+ ResourceCount = resourceCount;
+ Issues = issues;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the count of total resources umder the container.
+ ///
+ [JsonProperty(PropertyName = "resourceCount")]
+ public int? ResourceCount { get; set; }
+
+ ///
+ /// Gets or sets the list of summary of health errors across the
+ /// resources under the container.
+ ///
+ [JsonProperty(PropertyName = "issues")]
+ public IList Issues { get; set; }
+
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RpInMageRecoveryPointType.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RpInMageRecoveryPointType.cs
index ae577e65547b..870bc66e6f86 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RpInMageRecoveryPointType.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/RpInMageRecoveryPointType.cs
@@ -30,4 +30,37 @@ public enum RpInMageRecoveryPointType
[EnumMember(Value = "Custom")]
Custom
}
+ internal static class RpInMageRecoveryPointTypeEnumExtension
+ {
+ internal static string ToSerializedValue(this RpInMageRecoveryPointType? value) =>
+ value == null ? null : ((RpInMageRecoveryPointType)value).ToSerializedValue();
+
+ internal static string ToSerializedValue(this RpInMageRecoveryPointType value)
+ {
+ switch( value )
+ {
+ case RpInMageRecoveryPointType.LatestTime:
+ return "LatestTime";
+ case RpInMageRecoveryPointType.LatestTag:
+ return "LatestTag";
+ case RpInMageRecoveryPointType.Custom:
+ return "Custom";
+ }
+ return null;
+ }
+
+ internal static RpInMageRecoveryPointType? ParseRpInMageRecoveryPointType(this string value)
+ {
+ switch( value )
+ {
+ case "LatestTime":
+ return RpInMageRecoveryPointType.LatestTime;
+ case "LatestTag":
+ return RpInMageRecoveryPointType.LatestTag;
+ case "Custom":
+ return RpInMageRecoveryPointType.Custom;
+ }
+ return null;
+ }
+ }
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/SetMultiVmSyncStatus.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/SetMultiVmSyncStatus.cs
index 5f0ec1d7284b..8d7b71652557 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/SetMultiVmSyncStatus.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/SetMultiVmSyncStatus.cs
@@ -28,4 +28,33 @@ public enum SetMultiVmSyncStatus
[EnumMember(Value = "Disable")]
Disable
}
+ internal static class SetMultiVmSyncStatusEnumExtension
+ {
+ internal static string ToSerializedValue(this SetMultiVmSyncStatus? value) =>
+ value == null ? null : ((SetMultiVmSyncStatus)value).ToSerializedValue();
+
+ internal static string ToSerializedValue(this SetMultiVmSyncStatus value)
+ {
+ switch( value )
+ {
+ case SetMultiVmSyncStatus.Enable:
+ return "Enable";
+ case SetMultiVmSyncStatus.Disable:
+ return "Disable";
+ }
+ return null;
+ }
+
+ internal static SetMultiVmSyncStatus? ParseSetMultiVmSyncStatus(this string value)
+ {
+ switch( value )
+ {
+ case "Enable":
+ return SetMultiVmSyncStatus.Enable;
+ case "Disable":
+ return SetMultiVmSyncStatus.Disable;
+ }
+ return null;
+ }
+ }
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/Severity.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/Severity.cs
new file mode 100644
index 000000000000..b6f45ea8f576
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/Severity.cs
@@ -0,0 +1,72 @@
+// 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.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using System.Runtime;
+ using System.Runtime.Serialization;
+
+ ///
+ /// Defines values for Severity.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum Severity
+ {
+ [EnumMember(Value = "NONE")]
+ NONE,
+ [EnumMember(Value = "Warning")]
+ Warning,
+ [EnumMember(Value = "Error")]
+ Error,
+ [EnumMember(Value = "Info")]
+ Info
+ }
+ internal static class SeverityEnumExtension
+ {
+ internal static string ToSerializedValue(this Severity? value) =>
+ value == null ? null : ((Severity)value).ToSerializedValue();
+
+ internal static string ToSerializedValue(this Severity value)
+ {
+ switch( value )
+ {
+ case Severity.NONE:
+ return "NONE";
+ case Severity.Warning:
+ return "Warning";
+ case Severity.Error:
+ return "Error";
+ case Severity.Info:
+ return "Info";
+ }
+ return null;
+ }
+
+ internal static Severity? ParseSeverity(this string value)
+ {
+ switch( value )
+ {
+ case "NONE":
+ return Severity.NONE;
+ case "Warning":
+ return Severity.Warning;
+ case "Error":
+ return Severity.Error;
+ case "Info":
+ return Severity.Info;
+ }
+ return null;
+ }
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/SourceSiteOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/SourceSiteOperations.cs
index bcad5767e054..39c61fd1aa29 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/SourceSiteOperations.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/SourceSiteOperations.cs
@@ -28,4 +28,33 @@ public enum SourceSiteOperations
[EnumMember(Value = "NotRequired")]
NotRequired
}
+ internal static class SourceSiteOperationsEnumExtension
+ {
+ internal static string ToSerializedValue(this SourceSiteOperations? value) =>
+ value == null ? null : ((SourceSiteOperations)value).ToSerializedValue();
+
+ internal static string ToSerializedValue(this SourceSiteOperations value)
+ {
+ switch( value )
+ {
+ case SourceSiteOperations.Required:
+ return "Required";
+ case SourceSiteOperations.NotRequired:
+ return "NotRequired";
+ }
+ return null;
+ }
+
+ internal static SourceSiteOperations? ParseSourceSiteOperations(this string value)
+ {
+ switch( value )
+ {
+ case "Required":
+ return SourceSiteOperations.Required;
+ case "NotRequired":
+ return SourceSiteOperations.NotRequired;
+ }
+ return null;
+ }
+ }
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/SwitchProtectionJobDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/SwitchProtectionJobDetails.cs
index df093d16af4b..0862800d6548 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/SwitchProtectionJobDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/SwitchProtectionJobDetails.cs
@@ -34,9 +34,8 @@ public SwitchProtectionJobDetails()
/// Initializes a new instance of the SwitchProtectionJobDetails class.
///
/// The affected object properties
- /// like source server, source cloud, target
- /// server, target cloud etc. based on the workflow object
- /// details.
+ /// like source server, source cloud, target server, target cloud etc.
+ /// based on the workflow object details.
/// ARM Id of the new
/// replication protected item.
public SwitchProtectionJobDetails(IDictionary affectedObjectDetails = default(IDictionary), string newReplicationProtectedItemId = default(string))
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/TestFailoverJobDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/TestFailoverJobDetails.cs
index a00119b7bc06..7af399907b04 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/TestFailoverJobDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/TestFailoverJobDetails.cs
@@ -34,9 +34,8 @@ public TestFailoverJobDetails()
/// Initializes a new instance of the TestFailoverJobDetails class.
///
/// The affected object properties
- /// like source server, source cloud, target
- /// server, target cloud etc. based on the workflow object
- /// details.
+ /// like source server, source cloud, target server, target cloud etc.
+ /// based on the workflow object details.
/// The test failover status.
/// The test failover comments.
/// The test network name.
@@ -45,7 +44,7 @@ public TestFailoverJobDetails()
/// The test network type (see
/// TestFailoverInput enum for possible values).
/// The test VM details.
- public TestFailoverJobDetails(IDictionary affectedObjectDetails = default(IDictionary), string testFailoverStatus = default(string), string comments = default(string), string networkName = default(string), string networkFriendlyName = default(string), string networkType = default(string), IList protectedItemDetails = default(IList))
+ public TestFailoverJobDetails(IDictionary affectedObjectDetails = default(IDictionary), string testFailoverStatus = default(string), string comments = default(string), string networkName = default(string), string networkFriendlyName = default(string), string networkType = default(string), IList protectedItemDetails = default(IList))
: base(affectedObjectDetails)
{
TestFailoverStatus = testFailoverStatus;
@@ -97,7 +96,7 @@ public TestFailoverJobDetails()
/// Gets or sets the test VM details.
///
[JsonProperty(PropertyName = "protectedItemDetails")]
- public IList ProtectedItemDetails { get; set; }
+ public IList ProtectedItemDetails { get; set; }
}
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/UpdateNetworkMappingInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/UpdateNetworkMappingInput.cs
index e0ef0a4b4f0e..8faf16589c1e 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/UpdateNetworkMappingInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/UpdateNetworkMappingInput.cs
@@ -31,7 +31,8 @@ public UpdateNetworkMappingInput()
///
/// Initializes a new instance of the UpdateNetworkMappingInput class.
///
- /// Properties.
+ /// The input properties needed to update
+ /// network mapping.
public UpdateNetworkMappingInput(UpdateNetworkMappingInputProperties properties = default(UpdateNetworkMappingInputProperties))
{
Properties = properties;
@@ -44,7 +45,7 @@ public UpdateNetworkMappingInput()
partial void CustomInit();
///
- /// Gets or sets properties.
+ /// Gets or sets the input properties needed to update network mapping.
///
[JsonProperty(PropertyName = "properties")]
public UpdateNetworkMappingInputProperties Properties { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/UpdateReplicationProtectedItemInputProperties.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/UpdateReplicationProtectedItemInputProperties.cs
index 1787e247e258..3f5cd8444935 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/UpdateReplicationProtectedItemInputProperties.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/UpdateReplicationProtectedItemInputProperties.cs
@@ -41,11 +41,10 @@ public UpdateReplicationProtectedItemInputProperties()
/// Target Azure Network
/// Id.
/// The selected option to enable
- /// RDP\SSH on target vm after failover.
- /// String value of {SrsDataContract.EnableRDPOnTargetOption}
- /// enum.
+ /// RDP\SSH on target vm after failover. String value of
+ /// {SrsDataContract.EnableRDPOnTargetOption} enum.
/// The list of vm nic details.
- /// LicenseType. Possible values include:
+ /// License type. Possible values include:
/// 'NotSpecified', 'NoLicenseType', 'WindowsServer'
/// The target availability set
/// id.
@@ -89,8 +88,8 @@ public UpdateReplicationProtectedItemInputProperties()
///
/// Gets or sets the selected option to enable RDP\SSH on target vm
- /// after failover.
- /// String value of {SrsDataContract.EnableRDPOnTargetOption} enum.
+ /// after failover. String value of
+ /// {SrsDataContract.EnableRDPOnTargetOption} enum.
///
[JsonProperty(PropertyName = "enableRDPOnTargetOption")]
public string EnableRDPOnTargetOption { get; set; }
@@ -102,7 +101,7 @@ public UpdateReplicationProtectedItemInputProperties()
public IList VmNics { get; set; }
///
- /// Gets or sets licenseType. Possible values include: 'NotSpecified',
+ /// Gets or sets license type. Possible values include: 'NotSpecified',
/// 'NoLicenseType', 'WindowsServer'
///
[JsonProperty(PropertyName = "licenseType")]
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMNicDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMNicDetails.cs
index b873712fb604..c5df644c244d 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMNicDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMNicDetails.cs
@@ -44,7 +44,9 @@ public VMNicDetails()
/// Replica nic static IP
/// address.
/// Selection type for failover.
- public VMNicDetails(string nicId = default(string), string replicaNicId = default(string), string sourceNicArmId = default(string), string vMSubnetName = default(string), string vMNetworkName = default(string), string recoveryVMNetworkId = default(string), string recoveryVMSubnetName = default(string), string ipAddressType = default(string), string primaryNicStaticIPAddress = default(string), string replicaNicStaticIPAddress = default(string), string selectionType = default(string))
+ /// IP allocation type for
+ /// recovery VM.
+ public VMNicDetails(string nicId = default(string), string replicaNicId = default(string), string sourceNicArmId = default(string), string vMSubnetName = default(string), string vMNetworkName = default(string), string recoveryVMNetworkId = default(string), string recoveryVMSubnetName = default(string), string ipAddressType = default(string), string primaryNicStaticIPAddress = default(string), string replicaNicStaticIPAddress = default(string), string selectionType = default(string), string recoveryNicIpAddressType = default(string))
{
NicId = nicId;
ReplicaNicId = replicaNicId;
@@ -57,6 +59,7 @@ public VMNicDetails()
PrimaryNicStaticIPAddress = primaryNicStaticIPAddress;
ReplicaNicStaticIPAddress = replicaNicStaticIPAddress;
SelectionType = selectionType;
+ RecoveryNicIpAddressType = recoveryNicIpAddressType;
CustomInit();
}
@@ -131,5 +134,11 @@ public VMNicDetails()
[JsonProperty(PropertyName = "selectionType")]
public string SelectionType { get; set; }
+ ///
+ /// Gets or sets IP allocation type for recovery VM.
+ ///
+ [JsonProperty(PropertyName = "recoveryNicIpAddressType")]
+ public string RecoveryNicIpAddressType { get; set; }
+
}
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareCbtPolicyCreationInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareCbtPolicyCreationInput.cs
new file mode 100644
index 000000000000..d9420961d0ba
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareCbtPolicyCreationInput.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 Microsoft.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// VMware Cbt Policy creation input.
+ ///
+ [Newtonsoft.Json.JsonObject("VMwareCbt")]
+ public partial class VMwareCbtPolicyCreationInput : PolicyProviderSpecificInput
+ {
+ ///
+ /// Initializes a new instance of the VMwareCbtPolicyCreationInput
+ /// class.
+ ///
+ public VMwareCbtPolicyCreationInput()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the VMwareCbtPolicyCreationInput
+ /// class.
+ ///
+ /// The duration in minutes until
+ /// which the recovery points need to be stored.
+ /// The crash
+ /// consistent snapshot frequency (in minutes).
+ /// The app consistent
+ /// snapshot frequency (in minutes).
+ public VMwareCbtPolicyCreationInput(int? recoveryPointHistory = default(int?), int? crashConsistentFrequencyInMinutes = default(int?), int? appConsistentFrequencyInMinutes = default(int?))
+ {
+ RecoveryPointHistory = recoveryPointHistory;
+ CrashConsistentFrequencyInMinutes = crashConsistentFrequencyInMinutes;
+ AppConsistentFrequencyInMinutes = appConsistentFrequencyInMinutes;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the duration in minutes until which the recovery
+ /// points need to be stored.
+ ///
+ [JsonProperty(PropertyName = "recoveryPointHistory")]
+ public int? RecoveryPointHistory { get; set; }
+
+ ///
+ /// Gets or sets the crash consistent snapshot frequency (in minutes).
+ ///
+ [JsonProperty(PropertyName = "crashConsistentFrequencyInMinutes")]
+ public int? CrashConsistentFrequencyInMinutes { get; set; }
+
+ ///
+ /// Gets or sets the app consistent snapshot frequency (in minutes).
+ ///
+ [JsonProperty(PropertyName = "appConsistentFrequencyInMinutes")]
+ public int? AppConsistentFrequencyInMinutes { get; set; }
+
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareDetails.cs
index b2cce2ec646c..5159e4c93bbb 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareDetails.cs
@@ -37,8 +37,7 @@ public VMwareDetails()
/// The list of Process Servers associated
/// with the fabric.
/// The list of Master Target servers
- /// associated with
- /// the fabric.
+ /// associated with the fabric.
/// The list of run as accounts created on
/// the server.
/// The number of replication pairs
@@ -123,8 +122,8 @@ public VMwareDetails()
public IList ProcessServers { get; set; }
///
- /// Gets or sets the list of Master Target servers associated with
- /// the fabric.
+ /// Gets or sets the list of Master Target servers associated with the
+ /// fabric.
///
[JsonProperty(PropertyName = "masterTargetServers")]
public IList MasterTargetServers { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareV2FabricCreationInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareV2FabricCreationInput.cs
new file mode 100644
index 000000000000..2e5b8d1be9a0
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareV2FabricCreationInput.cs
@@ -0,0 +1,40 @@
+// 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.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Fabric provider specific settings.
+ ///
+ [Newtonsoft.Json.JsonObject("VMwareV2")]
+ public partial class VMwareV2FabricCreationInput : FabricSpecificCreationInput
+ {
+ ///
+ /// Initializes a new instance of the VMwareV2FabricCreationInput
+ /// class.
+ ///
+ public VMwareV2FabricCreationInput()
+ {
+ CustomInit();
+ }
+
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareV2FabricSpecificDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareV2FabricSpecificDetails.cs
new file mode 100644
index 000000000000..b843af2f8157
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareV2FabricSpecificDetails.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 Microsoft.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// VMwareV2 fabric Specific Details.
+ ///
+ [Newtonsoft.Json.JsonObject("VMwareV2")]
+ public partial class VMwareV2FabricSpecificDetails : FabricSpecificDetails
+ {
+ ///
+ /// Initializes a new instance of the VMwareV2FabricSpecificDetails
+ /// class.
+ ///
+ public VMwareV2FabricSpecificDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the VMwareV2FabricSpecificDetails
+ /// class.
+ ///
+ /// The endpoint for making requests
+ /// to the SRS Service.
+ /// The endpoint for making requests
+ /// to the RCM Service.
+ public VMwareV2FabricSpecificDetails(string srsServiceEndpoint = default(string), string rcmServiceEndpoint = default(string))
+ {
+ SrsServiceEndpoint = srsServiceEndpoint;
+ RcmServiceEndpoint = rcmServiceEndpoint;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the endpoint for making requests to the SRS Service.
+ ///
+ [JsonProperty(PropertyName = "srsServiceEndpoint")]
+ public string SrsServiceEndpoint { get; set; }
+
+ ///
+ /// Gets or sets the endpoint for making requests to the RCM Service.
+ ///
+ [JsonProperty(PropertyName = "rcmServiceEndpoint")]
+ public string RcmServiceEndpoint { get; set; }
+
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareVirtualMachineDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareVirtualMachineDetails.cs
index 8fba1bbad2aa..40c648f85c9d 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareVirtualMachineDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VMwareVirtualMachineDetails.cs
@@ -37,8 +37,8 @@ public VMwareVirtualMachineDetails()
/// class.
///
/// The ID generated by the InMage agent
- /// after it gets installed on guest. This is the ID
- /// to be used during InMage CreateProtection.
+ /// after it gets installed on guest. This is the ID to be used during
+ /// InMage CreateProtection.
/// The value indicating if InMage scout
/// agent is installed on guest.
/// The OsType installed on VM.
@@ -49,8 +49,7 @@ public VMwareVirtualMachineDetails()
/// The VCenter infrastructure
/// Id.
/// A value inidicating the discovery type
- /// of the machine.
- /// Value can be vCenter or physical.
+ /// of the machine. Value can be vCenter or physical.
/// The disk details.
/// The validation errors.
public VMwareVirtualMachineDetails(string agentGeneratedId = default(string), string agentInstalled = default(string), string osType = default(string), string agentVersion = default(string), string ipAddress = default(string), string poweredOn = default(string), string vCenterInfrastructureId = default(string), string discoveryType = default(string), IList diskDetails = default(IList), IList validationErrors = default(IList))
@@ -75,8 +74,8 @@ public VMwareVirtualMachineDetails()
///
/// Gets or sets the ID generated by the InMage agent after it gets
- /// installed on guest. This is the ID
- /// to be used during InMage CreateProtection.
+ /// installed on guest. This is the ID to be used during InMage
+ /// CreateProtection.
///
[JsonProperty(PropertyName = "agentGeneratedId")]
public string AgentGeneratedId { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VaultHealthDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VaultHealthDetails.cs
new file mode 100644
index 000000000000..e9e10933def8
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VaultHealthDetails.cs
@@ -0,0 +1,58 @@
+// 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.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Vault health details definition.
+ ///
+ public partial class VaultHealthDetails : Resource
+ {
+ ///
+ /// Initializes a new instance of the VaultHealthDetails class.
+ ///
+ public VaultHealthDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the VaultHealthDetails class.
+ ///
+ /// Resource Id
+ /// Resource Name
+ /// Resource Type
+ /// Resource Location
+ /// The vault health related data.
+ public VaultHealthDetails(string id = default(string), string name = default(string), string type = default(string), string location = default(string), VaultHealthProperties properties = default(VaultHealthProperties))
+ : base(id, name, type, location)
+ {
+ Properties = properties;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the vault health related data.
+ ///
+ [JsonProperty(PropertyName = "properties")]
+ public VaultHealthProperties Properties { get; set; }
+
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VaultHealthProperties.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VaultHealthProperties.cs
new file mode 100644
index 000000000000..5e8752ae0fef
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VaultHealthProperties.cs
@@ -0,0 +1,75 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+
+namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
+{
+ using Microsoft.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// class to define the health summary of the Vault.
+ ///
+ public partial class VaultHealthProperties
+ {
+ ///
+ /// Initializes a new instance of the VaultHealthProperties class.
+ ///
+ public VaultHealthProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the VaultHealthProperties class.
+ ///
+ /// The list of errors on the vault.
+ /// The list of the health detail of
+ /// the protected items in the vault.
+ /// The list of the health detail of the
+ /// fabrics in the vault.
+ public VaultHealthProperties(IList vaultErrors = default(IList), ResourceHealthSummary protectedItemsHealth = default(ResourceHealthSummary), ResourceHealthSummary fabricsHealth = default(ResourceHealthSummary))
+ {
+ VaultErrors = vaultErrors;
+ ProtectedItemsHealth = protectedItemsHealth;
+ FabricsHealth = fabricsHealth;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the list of errors on the vault.
+ ///
+ [JsonProperty(PropertyName = "vaultErrors")]
+ public IList VaultErrors { get; set; }
+
+ ///
+ /// Gets or sets the list of the health detail of the protected items
+ /// in the vault.
+ ///
+ [JsonProperty(PropertyName = "protectedItemsHealth")]
+ public ResourceHealthSummary ProtectedItemsHealth { get; set; }
+
+ ///
+ /// Gets or sets the list of the health detail of the fabrics in the
+ /// vault.
+ ///
+ [JsonProperty(PropertyName = "fabricsHealth")]
+ public ResourceHealthSummary FabricsHealth { get; set; }
+
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmNicUpdatesTaskDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmNicUpdatesTaskDetails.cs
index 9beb02cf4d40..ec984c958a7d 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmNicUpdatesTaskDetails.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmNicUpdatesTaskDetails.cs
@@ -31,9 +31,9 @@ public VmNicUpdatesTaskDetails()
///
/// Initializes a new instance of the VmNicUpdatesTaskDetails class.
///
- /// VmId.
- /// NicId.
- /// Name.
+ /// Virtual machine Id.
+ /// Nic Id.
+ /// Name of the Nic.
public VmNicUpdatesTaskDetails(string vmId = default(string), string nicId = default(string), string name = default(string))
{
VmId = vmId;
@@ -48,19 +48,19 @@ public VmNicUpdatesTaskDetails()
partial void CustomInit();
///
- /// Gets or sets vmId.
+ /// Gets or sets virtual machine Id.
///
[JsonProperty(PropertyName = "vmId")]
public string VmId { get; set; }
///
- /// Gets or sets nicId.
+ /// Gets or sets nic Id.
///
[JsonProperty(PropertyName = "nicId")]
public string NicId { get; set; }
///
- /// Gets or sets name.
+ /// Gets or sets name of the Nic.
///
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmmToAzureCreateNetworkMappingInput.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmmToAzureCreateNetworkMappingInput.cs
index 2f3ffd15274a..4940f319e38c 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmmToAzureCreateNetworkMappingInput.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmmToAzureCreateNetworkMappingInput.cs
@@ -17,8 +17,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
///
/// Create network mappings input properties/behaviour specific to Vmm to
- /// Azure Network
- /// mapping.
+ /// Azure Network mapping.
///
[Newtonsoft.Json.JsonObject("VmmToAzure")]
public partial class VmmToAzureCreateNetworkMappingInput : FabricSpecificCreateNetworkMappingInput
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmmToAzureNetworkMappingSettings.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmmToAzureNetworkMappingSettings.cs
index c5b9e578e08a..b595de2739db 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmmToAzureNetworkMappingSettings.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmmToAzureNetworkMappingSettings.cs
@@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
using System.Linq;
///
- /// E2A Network Mapping fabric specific settings.
+ /// E2A Network Mapping fabric specific settings.
///
[Newtonsoft.Json.JsonObject("VmmToAzure")]
public partial class VmmToAzureNetworkMappingSettings : NetworkMappingFabricSpecificSettings
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmmToVmmNetworkMappingSettings.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmmToVmmNetworkMappingSettings.cs
index f315dcbc5977..539674b0c219 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmmToVmmNetworkMappingSettings.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmmToVmmNetworkMappingSettings.cs
@@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models
using System.Linq;
///
- /// E2E Network Mapping fabric specific settings.
+ /// E2E Network Mapping fabric specific settings.
///
[Newtonsoft.Json.JsonObject("VmmToVmm")]
public partial class VmmToVmmNetworkMappingSettings : NetworkMappingFabricSpecificSettings
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmwareCbtPolicyDetails.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmwareCbtPolicyDetails.cs
new file mode 100644
index 000000000000..f6bb24e4c039
--- /dev/null
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmwareCbtPolicyDetails.cs
@@ -0,0 +1,83 @@
+// 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.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Azure.Management.RecoveryServices;
+ using Microsoft.Azure.Management.RecoveryServices.SiteRecovery;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// VMware Cbt specific policy details.
+ ///
+ [Newtonsoft.Json.JsonObject("VMwareCbt")]
+ public partial class VmwareCbtPolicyDetails : PolicyProviderSpecificDetails
+ {
+ ///
+ /// Initializes a new instance of the VmwareCbtPolicyDetails class.
+ ///
+ public VmwareCbtPolicyDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the VmwareCbtPolicyDetails class.
+ ///
+ /// The recovery point
+ /// threshold in minutes.
+ /// The duration in minutes until
+ /// which the recovery points need to be stored.
+ /// The app consistent
+ /// snapshot frequency in minutes.
+ /// The crash
+ /// consistent snapshot frequency in minutes.
+ public VmwareCbtPolicyDetails(int? recoveryPointThresholdInMinutes = default(int?), int? recoveryPointHistory = default(int?), int? appConsistentFrequencyInMinutes = default(int?), int? crashConsistentFrequencyInMinutes = default(int?))
+ {
+ RecoveryPointThresholdInMinutes = recoveryPointThresholdInMinutes;
+ RecoveryPointHistory = recoveryPointHistory;
+ AppConsistentFrequencyInMinutes = appConsistentFrequencyInMinutes;
+ CrashConsistentFrequencyInMinutes = crashConsistentFrequencyInMinutes;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the recovery point threshold in minutes.
+ ///
+ [JsonProperty(PropertyName = "recoveryPointThresholdInMinutes")]
+ public int? RecoveryPointThresholdInMinutes { get; set; }
+
+ ///
+ /// Gets or sets the duration in minutes until which the recovery
+ /// points need to be stored.
+ ///
+ [JsonProperty(PropertyName = "recoveryPointHistory")]
+ public int? RecoveryPointHistory { get; set; }
+
+ ///
+ /// Gets or sets the app consistent snapshot frequency in minutes.
+ ///
+ [JsonProperty(PropertyName = "appConsistentFrequencyInMinutes")]
+ public int? AppConsistentFrequencyInMinutes { get; set; }
+
+ ///
+ /// Gets or sets the crash consistent snapshot frequency in minutes.
+ ///
+ [JsonProperty(PropertyName = "crashConsistentFrequencyInMinutes")]
+ public int? CrashConsistentFrequencyInMinutes { get; set; }
+
+ }
+}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationAlertSettingsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationAlertSettingsOperations.cs
index 342d6a3be77e..0a37c02f264a 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationAlertSettingsOperations.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationAlertSettingsOperations.cs
@@ -469,7 +469,7 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client)
/// Gets the list of configured email notification(alert) configurations.
///
///
- /// Gets the list of email notification(alert) configurations for the vault. .
+ /// Gets the list of email notification(alert) configurations for the vault.
///
///
/// Headers that will be added to request.
@@ -660,7 +660,7 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client)
/// Gets the list of configured email notification(alert) configurations.
///
///
- /// Gets the list of email notification(alert) configurations for the vault. .
+ /// Gets the list of email notification(alert) configurations for the vault.
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationAlertSettingsOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationAlertSettingsOperationsExtensions.cs
index d3a4481f5590..13418d319424 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationAlertSettingsOperationsExtensions.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationAlertSettingsOperationsExtensions.cs
@@ -112,7 +112,7 @@ public static Alert Create(this IReplicationAlertSettingsOperations operations,
/// Gets the list of configured email notification(alert) configurations.
///
///
- /// Gets the list of email notification(alert) configurations for the vault. .
+ /// Gets the list of email notification(alert) configurations for the vault.
///
///
/// The operations group for this extension method.
@@ -126,7 +126,7 @@ public static IPage List(this IReplicationAlertSettingsOperations operati
/// Gets the list of configured email notification(alert) configurations.
///
///
- /// Gets the list of email notification(alert) configurations for the vault. .
+ /// Gets the list of email notification(alert) configurations for the vault.
///
///
/// The operations group for this extension method.
@@ -146,7 +146,7 @@ public static IPage List(this IReplicationAlertSettingsOperations operati
/// Gets the list of configured email notification(alert) configurations.
///
///
- /// Gets the list of email notification(alert) configurations for the vault. .
+ /// Gets the list of email notification(alert) configurations for the vault.
///
///
/// The operations group for this extension method.
@@ -163,7 +163,7 @@ public static IPage ListNext(this IReplicationAlertSettingsOperations ope
/// Gets the list of configured email notification(alert) configurations.
///
///
- /// Gets the list of email notification(alert) configurations for the vault. .
+ /// Gets the list of email notification(alert) configurations for the vault.
///
///
/// The operations group for this extension method.
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationEventsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationEventsOperations.cs
index d51810a54591..78e6a9548b57 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationEventsOperations.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationEventsOperations.cs
@@ -13,6 +13,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery
using Microsoft.Azure.Management.RecoveryServices;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
+ using Microsoft.Rest.Azure.OData;
using Models;
using Newtonsoft.Json;
using System.Collections;
@@ -257,6 +258,9 @@ internal ReplicationEventsOperations(SiteRecoveryManagementClient client)
///
/// Gets the list of Azure Site Recovery events for the vault.
///
+ ///
+ /// OData parameters to apply to the operation.
+ ///
///
/// Headers that will be added to request.
///
@@ -278,7 +282,7 @@ internal ReplicationEventsOperations(SiteRecoveryManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.ApiVersion == null)
{
@@ -303,6 +307,7 @@ internal ReplicationEventsOperations(SiteRecoveryManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("odataQuery", odataQuery);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
}
@@ -313,6 +318,14 @@ internal ReplicationEventsOperations(SiteRecoveryManagementClient client)
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
+ if (odataQuery != null)
+ {
+ var _odataFilter = odataQuery.ToString();
+ if (!string.IsNullOrEmpty(_odataFilter))
+ {
+ _queryParameters.Add(_odataFilter);
+ }
+ }
if (Client.ApiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationEventsOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationEventsOperationsExtensions.cs
index c5d2050d2eb0..e3335f9f8a4a 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationEventsOperationsExtensions.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationEventsOperationsExtensions.cs
@@ -13,6 +13,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery
using Microsoft.Azure.Management.RecoveryServices;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
+ using Microsoft.Rest.Azure.OData;
using Models;
using System.Threading;
using System.Threading.Tasks;
@@ -71,9 +72,12 @@ public static EventModel Get(this IReplicationEventsOperations operations, strin
///
/// The operations group for this extension method.
///
- public static IPage List(this IReplicationEventsOperations operations)
+ ///
+ /// OData parameters to apply to the operation.
+ ///
+ public static IPage List(this IReplicationEventsOperations operations, ODataQuery odataQuery = default(ODataQuery))
{
- return operations.ListAsync().GetAwaiter().GetResult();
+ return ((IReplicationEventsOperations)operations).ListAsync(odataQuery).GetAwaiter().GetResult();
}
///
@@ -85,12 +89,15 @@ public static IPage List(this IReplicationEventsOperations operation
///
/// The operations group for this extension method.
///
+ ///
+ /// OData parameters to apply to the operation.
+ ///
///
/// The cancellation token.
///
- public static async Task> ListAsync(this IReplicationEventsOperations operations, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListAsync(this IReplicationEventsOperations operations, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListWithHttpMessagesAsync(odataQuery, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationFabricsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationFabricsOperations.cs
index 19ee0a74cea9..f32e7a3410bc 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationFabricsOperations.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationFabricsOperations.cs
@@ -51,6 +51,28 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client)
///
public SiteRecoveryManagementClient Client { get; private set; }
+ ///
+ /// Migrates the site to AAD.
+ ///
+ ///
+ /// The operation to migrate an Azure Site Recovery fabric to AAD.
+ ///
+ ///
+ /// ASR fabric to migrate.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task MigrateToAadWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send request
+ AzureOperationResponse _response = await BeginMigrateToAadWithHttpMessagesAsync(fabricName, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
///
/// Renews certificate for the fabric.
///
@@ -87,8 +109,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client)
/// The name of the fabric containing the process server.
///
///
- /// The input to the failover process
- /// server operation.
+ /// The input to the failover process server operation.
///
///
/// The headers that will be added to request.
@@ -586,6 +607,185 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client)
return _result;
}
+ ///
+ /// Migrates the site to AAD.
+ ///
+ ///
+ /// The operation to migrate an Azure Site Recovery fabric to AAD.
+ ///
+ ///
+ /// ASR fabric to migrate.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task BeginMigrateToAadWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ResourceName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceName");
+ }
+ if (Client.ResourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (fabricName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "fabricName");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("fabricName", fabricName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginMigrateToAad", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/migratetoaad").ToString();
+ _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{fabricName}", System.Uri.EscapeDataString(fabricName));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 202 && (int)_statusCode != 204)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
///
/// Renews certificate for the fabric.
///
@@ -811,8 +1011,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client)
/// The name of the fabric containing the process server.
///
///
- /// The input to the failover process
- /// server operation.
+ /// The input to the failover process server operation.
///
///
/// Headers that will be added to request.
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationFabricsOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationFabricsOperationsExtensions.cs
index ffe29d07bf75..b2b3da63b2ce 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationFabricsOperationsExtensions.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationFabricsOperationsExtensions.cs
@@ -22,6 +22,43 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery
///
public static partial class ReplicationFabricsOperationsExtensions
{
+ ///
+ /// Migrates the site to AAD.
+ ///
+ ///
+ /// The operation to migrate an Azure Site Recovery fabric to AAD.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// ASR fabric to migrate.
+ ///
+ public static void MigrateToAad(this IReplicationFabricsOperations operations, string fabricName)
+ {
+ operations.MigrateToAadAsync(fabricName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Migrates the site to AAD.
+ ///
+ ///
+ /// The operation to migrate an Azure Site Recovery fabric to AAD.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// ASR fabric to migrate.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task MigrateToAadAsync(this IReplicationFabricsOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.MigrateToAadWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
///
/// Renews certificate for the fabric.
///
@@ -82,8 +119,7 @@ public static Fabric RenewCertificate(this IReplicationFabricsOperations operati
/// The name of the fabric containing the process server.
///
///
- /// The input to the failover process
- /// server operation.
+ /// The input to the failover process server operation.
///
public static Fabric ReassociateGateway(this IReplicationFabricsOperations operations, string fabricName, FailoverProcessServerRequest failoverProcessServerRequest)
{
@@ -104,8 +140,7 @@ public static Fabric ReassociateGateway(this IReplicationFabricsOperations opera
/// The name of the fabric containing the process server.
///
///
- /// The input to the failover process
- /// server operation.
+ /// The input to the failover process server operation.
///
///
/// The cancellation token.
@@ -354,6 +389,43 @@ public static IPage List(this IReplicationFabricsOperations operations)
}
}
+ ///
+ /// Migrates the site to AAD.
+ ///
+ ///
+ /// The operation to migrate an Azure Site Recovery fabric to AAD.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// ASR fabric to migrate.
+ ///
+ public static void BeginMigrateToAad(this IReplicationFabricsOperations operations, string fabricName)
+ {
+ operations.BeginMigrateToAadAsync(fabricName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Migrates the site to AAD.
+ ///
+ ///
+ /// The operation to migrate an Azure Site Recovery fabric to AAD.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// ASR fabric to migrate.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginMigrateToAadAsync(this IReplicationFabricsOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.BeginMigrateToAadWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
///
/// Renews certificate for the fabric.
///
@@ -414,8 +486,7 @@ public static Fabric BeginRenewCertificate(this IReplicationFabricsOperations op
/// The name of the fabric containing the process server.
///
///
- /// The input to the failover process
- /// server operation.
+ /// The input to the failover process server operation.
///
public static Fabric BeginReassociateGateway(this IReplicationFabricsOperations operations, string fabricName, FailoverProcessServerRequest failoverProcessServerRequest)
{
@@ -436,8 +507,7 @@ public static Fabric BeginReassociateGateway(this IReplicationFabricsOperations
/// The name of the fabric containing the process server.
///
///
- /// The input to the failover process
- /// server operation.
+ /// The input to the failover process server operation.
///
///
/// The cancellation token.
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectedItemsOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectedItemsOperations.cs
index 6959628da643..0833c0b21e4a 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectedItemsOperations.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectedItemsOperations.cs
@@ -272,8 +272,8 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client
/// OData parameters to apply to the operation.
///
///
- /// The pagination token.
- /// Possible values: "FabricId" or "FabricId_CloudId" or null
+ /// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or
+ /// null
///
///
/// Headers that will be added to request.
@@ -511,8 +511,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client
///
///
/// The operation to start resynchronize/repair replication for a replication
- /// protected item
- /// requiring resynchronization.
+ /// protected item requiring resynchronization.
///
///
/// The name of the fabric.
@@ -541,23 +540,19 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client
///
///
/// The operation to update(push update) the installed mobility service
- /// software on a
- /// replication protected item to the latest available version.
+ /// software on a replication protected item to the latest available version.
///
///
/// The name of the fabric containing the protected item.
///
///
- /// The name of the container containing the
- /// protected item.
+ /// The name of the container containing the protected item.
///
///
- /// The name of the protected item on which the
- /// agent is to be updated.
+ /// The name of the protected item on which the agent is to be updated.
///
///
- /// Request to update the mobility
- /// service on the protected item.
+ /// Request to update the mobility service on the protected item.
///
///
/// The headers that will be added to request.
@@ -761,8 +756,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client
///
///
/// The operation to disable replication on a replication protected item. This
- /// will also
- /// remove the item.
+ /// will also remove the item.
///
///
/// Fabric name.
@@ -1044,10 +1038,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client
///
///
/// The operation to delete or purge a replication protected item. This
- /// operation will
- /// force delete the replication protected item. Use the remove operation on
- /// replication protected item to perform a clean disable replication for the
- /// item.
+ /// operation will force delete the replication protected item. Use the remove
+ /// operation on replication protected item to perform a clean disable
+ /// replication for the item.
///
///
/// Fabric name.
@@ -1341,8 +1334,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client
///
///
/// The operation to start resynchronize/repair replication for a replication
- /// protected item
- /// requiring resynchronization.
+ /// protected item requiring resynchronization.
///
///
/// The name of the fabric.
@@ -1561,23 +1553,19 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client
///
///
/// The operation to update(push update) the installed mobility service
- /// software on a
- /// replication protected item to the latest available version.
+ /// software on a replication protected item to the latest available version.
///
///
/// The name of the fabric containing the protected item.
///
///
- /// The name of the container containing the
- /// protected item.
+ /// The name of the container containing the protected item.
///
///
- /// The name of the protected item on which the
- /// agent is to be updated.
+ /// The name of the protected item on which the agent is to be updated.
///
///
- /// Request to update the mobility
- /// service on the protected item.
+ /// Request to update the mobility service on the protected item.
///
///
/// Headers that will be added to request.
@@ -3181,8 +3169,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client
///
///
/// The operation to disable replication on a replication protected item. This
- /// will also
- /// remove the item.
+ /// will also remove the item.
///
///
/// Fabric name.
@@ -3627,10 +3614,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client
///
///
/// The operation to delete or purge a replication protected item. This
- /// operation will
- /// force delete the replication protected item. Use the remove operation on
- /// replication protected item to perform a clean disable replication for the
- /// item.
+ /// operation will force delete the replication protected item. Use the remove
+ /// operation on replication protected item to perform a clean disable
+ /// replication for the item.
///
///
/// Fabric name.
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectedItemsOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectedItemsOperationsExtensions.cs
index 7b09252dfe57..b2c121ea1acb 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectedItemsOperationsExtensions.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectedItemsOperationsExtensions.cs
@@ -84,8 +84,8 @@ public static IPage ListByReplicationProtectionContain
/// OData parameters to apply to the operation.
///
///
- /// The pagination token.
- /// Possible values: "FabricId" or "FabricId_CloudId" or null
+ /// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or
+ /// null
///
public static IPage List(this IReplicationProtectedItemsOperations operations, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string))
{
@@ -105,8 +105,8 @@ public static IPage ListByReplicationProtectionContain
/// OData parameters to apply to the operation.
///
///
- /// The pagination token.
- /// Possible values: "FabricId" or "FabricId_CloudId" or null
+ /// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or
+ /// null
///
///
/// The cancellation token.
@@ -184,8 +184,7 @@ public static ReplicationProtectedItem ApplyRecoveryPoint(this IReplicationProte
///
///
/// The operation to start resynchronize/repair replication for a replication
- /// protected item
- /// requiring resynchronization.
+ /// protected item requiring resynchronization.
///
///
/// The operations group for this extension method.
@@ -209,8 +208,7 @@ public static ReplicationProtectedItem RepairReplication(this IReplicationProtec
///
///
/// The operation to start resynchronize/repair replication for a replication
- /// protected item
- /// requiring resynchronization.
+ /// protected item requiring resynchronization.
///
///
/// The operations group for this extension method.
@@ -240,8 +238,7 @@ public static ReplicationProtectedItem RepairReplication(this IReplicationProtec
///
///
/// The operation to update(push update) the installed mobility service
- /// software on a
- /// replication protected item to the latest available version.
+ /// software on a replication protected item to the latest available version.
///
///
/// The operations group for this extension method.
@@ -250,16 +247,13 @@ public static ReplicationProtectedItem RepairReplication(this IReplicationProtec
/// The name of the fabric containing the protected item.
///
///
- /// The name of the container containing the
- /// protected item.
+ /// The name of the container containing the protected item.
///
///
- /// The name of the protected item on which the
- /// agent is to be updated.
+ /// The name of the protected item on which the agent is to be updated.
///
///
- /// Request to update the mobility
- /// service on the protected item.
+ /// Request to update the mobility service on the protected item.
///
public static ReplicationProtectedItem UpdateMobilityService(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicationProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest)
{
@@ -271,8 +265,7 @@ public static ReplicationProtectedItem UpdateMobilityService(this IReplicationPr
///
///
/// The operation to update(push update) the installed mobility service
- /// software on a
- /// replication protected item to the latest available version.
+ /// software on a replication protected item to the latest available version.
///
///
/// The operations group for this extension method.
@@ -281,16 +274,13 @@ public static ReplicationProtectedItem UpdateMobilityService(this IReplicationPr
/// The name of the fabric containing the protected item.
///
///
- /// The name of the container containing the
- /// protected item.
+ /// The name of the container containing the protected item.
///
///
- /// The name of the protected item on which the
- /// agent is to be updated.
+ /// The name of the protected item on which the agent is to be updated.
///
///
- /// Request to update the mobility
- /// service on the protected item.
+ /// Request to update the mobility service on the protected item.
///
///
/// The cancellation token.
@@ -652,8 +642,7 @@ public static ReplicationProtectedItem PlannedFailover(this IReplicationProtecte
///
///
/// The operation to disable replication on a replication protected item. This
- /// will also
- /// remove the item.
+ /// will also remove the item.
///
///
/// The operations group for this extension method.
@@ -680,8 +669,7 @@ public static void Delete(this IReplicationProtectedItemsOperations operations,
///
///
/// The operation to disable replication on a replication protected item. This
- /// will also
- /// remove the item.
+ /// will also remove the item.
///
///
/// The operations group for this extension method.
@@ -823,10 +811,9 @@ public static ReplicationProtectedItem Create(this IReplicationProtectedItemsOpe
///
///
/// The operation to delete or purge a replication protected item. This
- /// operation will
- /// force delete the replication protected item. Use the remove operation on
- /// replication protected item to perform a clean disable replication for the
- /// item.
+ /// operation will force delete the replication protected item. Use the remove
+ /// operation on replication protected item to perform a clean disable
+ /// replication for the item.
///
///
/// The operations group for this extension method.
@@ -850,10 +837,9 @@ public static void Purge(this IReplicationProtectedItemsOperations operations, s
///
///
/// The operation to delete or purge a replication protected item. This
- /// operation will
- /// force delete the replication protected item. Use the remove operation on
- /// replication protected item to perform a clean disable replication for the
- /// item.
+ /// operation will force delete the replication protected item. Use the remove
+ /// operation on replication protected item to perform a clean disable
+ /// replication for the item.
///
///
/// The operations group for this extension method.
@@ -1000,8 +986,7 @@ public static ReplicationProtectedItem BeginApplyRecoveryPoint(this IReplication
///
///
/// The operation to start resynchronize/repair replication for a replication
- /// protected item
- /// requiring resynchronization.
+ /// protected item requiring resynchronization.
///
///
/// The operations group for this extension method.
@@ -1025,8 +1010,7 @@ public static ReplicationProtectedItem BeginRepairReplication(this IReplicationP
///
///
/// The operation to start resynchronize/repair replication for a replication
- /// protected item
- /// requiring resynchronization.
+ /// protected item requiring resynchronization.
///
///
/// The operations group for this extension method.
@@ -1056,8 +1040,7 @@ public static ReplicationProtectedItem BeginRepairReplication(this IReplicationP
///
///
/// The operation to update(push update) the installed mobility service
- /// software on a
- /// replication protected item to the latest available version.
+ /// software on a replication protected item to the latest available version.
///
///
/// The operations group for this extension method.
@@ -1066,16 +1049,13 @@ public static ReplicationProtectedItem BeginRepairReplication(this IReplicationP
/// The name of the fabric containing the protected item.
///
///
- /// The name of the container containing the
- /// protected item.
+ /// The name of the container containing the protected item.
///
///
- /// The name of the protected item on which the
- /// agent is to be updated.
+ /// The name of the protected item on which the agent is to be updated.
///
///
- /// Request to update the mobility
- /// service on the protected item.
+ /// Request to update the mobility service on the protected item.
///
public static ReplicationProtectedItem BeginUpdateMobilityService(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicationProtectedItemName, UpdateMobilityServiceRequest updateMobilityServiceRequest)
{
@@ -1087,8 +1067,7 @@ public static ReplicationProtectedItem BeginUpdateMobilityService(this IReplicat
///
///
/// The operation to update(push update) the installed mobility service
- /// software on a
- /// replication protected item to the latest available version.
+ /// software on a replication protected item to the latest available version.
///
///
/// The operations group for this extension method.
@@ -1097,16 +1076,13 @@ public static ReplicationProtectedItem BeginUpdateMobilityService(this IReplicat
/// The name of the fabric containing the protected item.
///
///
- /// The name of the container containing the
- /// protected item.
+ /// The name of the container containing the protected item.
///
///
- /// The name of the protected item on which the
- /// agent is to be updated.
+ /// The name of the protected item on which the agent is to be updated.
///
///
- /// Request to update the mobility
- /// service on the protected item.
+ /// Request to update the mobility service on the protected item.
///
///
/// The cancellation token.
@@ -1468,8 +1444,7 @@ public static ReplicationProtectedItem BeginPlannedFailover(this IReplicationPro
///
///
/// The operation to disable replication on a replication protected item. This
- /// will also
- /// remove the item.
+ /// will also remove the item.
///
///
/// The operations group for this extension method.
@@ -1496,8 +1471,7 @@ public static void BeginDelete(this IReplicationProtectedItemsOperations operati
///
///
/// The operation to disable replication on a replication protected item. This
- /// will also
- /// remove the item.
+ /// will also remove the item.
///
///
/// The operations group for this extension method.
@@ -1587,10 +1561,9 @@ public static ReplicationProtectedItem BeginCreate(this IReplicationProtectedIte
///
///
/// The operation to delete or purge a replication protected item. This
- /// operation will
- /// force delete the replication protected item. Use the remove operation on
- /// replication protected item to perform a clean disable replication for the
- /// item.
+ /// operation will force delete the replication protected item. Use the remove
+ /// operation on replication protected item to perform a clean disable
+ /// replication for the item.
///
///
/// The operations group for this extension method.
@@ -1614,10 +1587,9 @@ public static void BeginPurge(this IReplicationProtectedItemsOperations operatio
///
///
/// The operation to delete or purge a replication protected item. This
- /// operation will
- /// force delete the replication protected item. Use the remove operation on
- /// replication protected item to perform a clean disable replication for the
- /// item.
+ /// operation will force delete the replication protected item. Use the remove
+ /// operation on replication protected item to perform a clean disable
+ /// replication for the item.
///
///
/// The operations group for this extension method.
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainersOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainersOperations.cs
index b3577b905d0f..6c2ac8504aa5 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainersOperations.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainersOperations.cs
@@ -53,13 +53,11 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient
///
/// Switches protection from one container to another or one replication
- /// provider to
- /// another.
+ /// provider to another.
///
///
/// Operation to switch protection from one container to another or one
- /// replication
- /// provider to another.
+ /// replication provider to another.
///
///
/// Unique fabric name.
@@ -122,8 +120,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient
/// The name of the protection container.
///
///
- /// The request object to add a protectable
- /// item.
+ /// The request object to add a protectable item.
///
///
/// The headers that will be added to request.
@@ -768,13 +765,11 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient
///
/// Switches protection from one container to another or one replication
- /// provider to
- /// another.
+ /// provider to another.
///
///
/// Operation to switch protection from one container to another or one
- /// replication
- /// provider to another.
+ /// replication provider to another.
///
///
/// Unique fabric name.
@@ -1195,8 +1190,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient
/// The name of the protection container.
///
///
- /// The request object to add a protectable
- /// item.
+ /// The request object to add a protectable item.
///
///
/// Headers that will be added to request.
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainersOperationsExtensions.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainersOperationsExtensions.cs
index 3bdb898554ba..abbdcdee0526 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainersOperationsExtensions.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationProtectionContainersOperationsExtensions.cs
@@ -24,13 +24,11 @@ public static partial class ReplicationProtectionContainersOperationsExtensions
{
///
/// Switches protection from one container to another or one replication
- /// provider to
- /// another.
+ /// provider to another.
///
///
/// Operation to switch protection from one container to another or one
- /// replication
- /// provider to another.
+ /// replication provider to another.
///
///
/// The operations group for this extension method.
@@ -51,13 +49,11 @@ public static ProtectionContainer SwitchProtection(this IReplicationProtectionCo
///
/// Switches protection from one container to another or one replication
- /// provider to
- /// another.
+ /// provider to another.
///
///
/// Operation to switch protection from one container to another or one
- /// replication
- /// provider to another.
+ /// replication provider to another.
///
///
/// The operations group for this extension method.
@@ -142,8 +138,7 @@ public static void Delete(this IReplicationProtectionContainersOperations operat
/// The name of the protection container.
///
///
- /// The request object to add a protectable
- /// item.
+ /// The request object to add a protectable item.
///
public static ProtectionContainer DiscoverProtectableItem(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest)
{
@@ -167,8 +162,7 @@ public static ProtectionContainer DiscoverProtectableItem(this IReplicationProte
/// The name of the protection container.
///
///
- /// The request object to add a protectable
- /// item.
+ /// The request object to add a protectable item.
///
///
/// The cancellation token.
@@ -355,13 +349,11 @@ public static IPage List(this IReplicationProtectionContain
///
/// Switches protection from one container to another or one replication
- /// provider to
- /// another.
+ /// provider to another.
///
///
/// Operation to switch protection from one container to another or one
- /// replication
- /// provider to another.
+ /// replication provider to another.
///
///
/// The operations group for this extension method.
@@ -382,13 +374,11 @@ public static ProtectionContainer BeginSwitchProtection(this IReplicationProtect
///
/// Switches protection from one container to another or one replication
- /// provider to
- /// another.
+ /// provider to another.
///
///
/// Operation to switch protection from one container to another or one
- /// replication
- /// provider to another.
+ /// replication provider to another.
///
///
/// The operations group for this extension method.
@@ -473,8 +463,7 @@ public static void BeginDelete(this IReplicationProtectionContainersOperations o
/// The name of the protection container.
///
///
- /// The request object to add a protectable
- /// item.
+ /// The request object to add a protectable item.
///
public static ProtectionContainer BeginDiscoverProtectableItem(this IReplicationProtectionContainersOperations operations, string fabricName, string protectionContainerName, DiscoverProtectableItemRequest discoverProtectableItemRequest)
{
@@ -498,8 +487,7 @@ public static ProtectionContainer BeginDiscoverProtectableItem(this IReplication
/// The name of the protection container.
///
///
- /// The request object to add a protectable
- /// item.
+ /// The request object to add a protectable item.
///
///
/// The cancellation token.
diff --git a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationRecoveryServicesProvidersOperations.cs b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationRecoveryServicesProvidersOperations.cs
index faab6017fd9e..f74d07f6568e 100644
--- a/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationRecoveryServicesProvidersOperations.cs
+++ b/src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/ReplicationRecoveryServicesProvidersOperations.cs
@@ -78,14 +78,10 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl
}
///
- /// Deletes provider from fabric.
- /// Note: Deleting provider for any fabric other than SingleHost is
- /// unsupported. To
- /// maintain backward compatibility for released clients the object
- /// "deleteRspInput" is
- /// used (if the object is empty we assume that it is old client and continue
- /// the old
- /// behavior).
+ /// Deletes provider from fabric. Note: Deleting provider for any fabric other
+ /// than SingleHost is unsupported. To maintain backward compatibility for
+ /// released clients the object "deleteRspInput" is used (if the object is
+ /// empty we assume that it is old client and continue the old behavior).
///
///
/// The operation to removes/delete(unregister) a recovery services provider
@@ -546,8 +542,8 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl
}
///