diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IRecoveryPointsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IRecoveryPointsOperations.cs index 0a7be56ab715..be42896c0d22 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IRecoveryPointsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IRecoveryPointsOperations.cs @@ -24,7 +24,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public partial interface IRecoveryPointsOperations { /// - /// Get recovery points for a replication protected item. + /// Gets the list of recovery points for a replication protected item. /// /// /// Lists the available recovery points for a replication protected @@ -37,7 +37,7 @@ public partial interface IRecoveryPointsOperations /// The protection container name. /// /// - /// The replication protected item's name. + /// The replication protected item name. /// /// /// The headers that will be added to request. @@ -56,7 +56,7 @@ public partial interface IRecoveryPointsOperations /// Task>> ListByReplicationProtectedItemsWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get a recovery point. + /// Gets a recovery point. /// /// /// Get the details of specified recovery point. @@ -68,7 +68,7 @@ public partial interface IRecoveryPointsOperations /// The protection container name. /// /// - /// The replication protected item's name. + /// The replication protected item name. /// /// /// The recovery point name. @@ -90,7 +90,7 @@ public partial interface IRecoveryPointsOperations /// Task> GetWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, string recoveryPointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get recovery points for a replication protected item. + /// Gets the list of recovery points for a replication protected item. /// /// /// Lists the available recovery points for a replication protected diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationAlertSettingsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationAlertSettingsOperations.cs index da98a7a1403a..2cd994c0cc97 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationAlertSettingsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationAlertSettingsOperations.cs @@ -102,6 +102,34 @@ public partial interface IReplicationAlertSettingsOperations /// Task> CreateWithHttpMessagesAsync(string alertSettingName, ConfigureAlertRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Configures email notifications for this vault. + /// + /// + /// Create or update an email notification(alert) configuration. + /// + /// + /// The name of the email notification(alert) configuration. + /// + /// + /// The input to configure the email notification(alert). + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateWithHttpMessagesAsync(string alertSettingName, ConfigureAlertRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Gets the list of configured email notification(alert) /// configurations. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationFabricsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationFabricsOperations.cs index 3e2da5975552..93e7890c23c0 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationFabricsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationFabricsOperations.cs @@ -12,6 +12,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery { using Microsoft.Rest; using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; using Models; using System.Collections; using System.Collections.Generic; @@ -24,7 +25,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public partial interface IReplicationFabricsOperations { /// - /// Gets the list of ASR fabrics + /// Gets the list of ASR fabrics. /// /// /// Gets a list of the Azure Site Recovery fabrics in the vault. @@ -54,6 +55,9 @@ public partial interface IReplicationFabricsOperations /// /// Fabric name. /// + /// + /// OData parameters to apply to the operation. + /// /// /// The headers that will be added to request. /// @@ -69,13 +73,13 @@ public partial interface IReplicationFabricsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string fabricName, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates an Azure Site Recovery fabric. /// /// /// The operation to create an Azure Site Recovery fabric (for e.g. - /// Hyper-V site) + /// Hyper-V site). /// /// /// Name of the ASR fabric. @@ -204,7 +208,7 @@ public partial interface IReplicationFabricsOperations /// The operation to delete or remove an Azure Site Recovery fabric. /// /// - /// ASR fabric to delete + /// ASR fabric to delete. /// /// /// The headers that will be added to request. @@ -252,7 +256,7 @@ public partial interface IReplicationFabricsOperations /// /// /// The operation to create an Azure Site Recovery fabric (for e.g. - /// Hyper-V site) + /// Hyper-V site). /// /// /// Name of the ASR fabric. @@ -381,7 +385,7 @@ public partial interface IReplicationFabricsOperations /// The operation to delete or remove an Azure Site Recovery fabric. /// /// - /// ASR fabric to delete + /// ASR fabric to delete. /// /// /// The headers that will be added to request. @@ -425,7 +429,7 @@ public partial interface IReplicationFabricsOperations /// Task> BeginRenewCertificateWithHttpMessagesAsync(string fabricName, RenewCertificateInput renewCertificate, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the list of ASR fabrics + /// Gets the list of ASR fabrics. /// /// /// Gets a list of the Azure Site Recovery fabrics in the vault. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationJobsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationJobsOperations.cs index cf37e77d059e..ba0c3ad02473 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationJobsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationJobsOperations.cs @@ -56,7 +56,7 @@ public partial interface IReplicationJobsOperations /// Get the details of an Azure Site Recovery job. /// /// - /// Job identifier + /// Job identifier. /// /// /// The headers that will be added to request. @@ -128,7 +128,7 @@ public partial interface IReplicationJobsOperations /// Resumes the specified job. /// /// - /// The operation to resume an Azure Site Recovery job + /// The operation to resume an Azure Site Recovery job. /// /// /// Job identifier. @@ -232,7 +232,7 @@ public partial interface IReplicationJobsOperations /// Resumes the specified job. /// /// - /// The operation to resume an Azure Site Recovery job + /// The operation to resume an Azure Site Recovery job. /// /// /// Job identifier. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationLogicalNetworksOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationLogicalNetworksOperations.cs index 66550876136b..b3e43325a496 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationLogicalNetworksOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationLogicalNetworksOperations.cs @@ -27,7 +27,7 @@ public partial interface IReplicationLogicalNetworksOperations /// Gets the list of logical networks under a fabric. /// /// - /// Lists all the logical networks of the Azure Site Recovery fabric + /// Lists all the logical networks of the Azure Site Recovery fabric. /// /// /// Server Id. @@ -81,7 +81,7 @@ public partial interface IReplicationLogicalNetworksOperations /// Gets the list of logical networks under a fabric. /// /// - /// Lists all the logical networks of the Azure Site Recovery fabric + /// Lists all the logical networks of the Azure Site Recovery fabric. /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationMigrationItemsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationMigrationItemsOperations.cs index 1b15d0a8367a..5a6bb86e7d90 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationMigrationItemsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationMigrationItemsOperations.cs @@ -36,6 +36,15 @@ public partial interface IReplicationMigrationItemsOperations /// /// Protection container name. /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The pagination token. + /// + /// + /// The page size. + /// /// /// The headers that will be added to request. /// @@ -51,7 +60,7 @@ public partial interface IReplicationMigrationItemsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), string takeToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the details of a migration item. /// @@ -326,6 +335,9 @@ public partial interface IReplicationMigrationItemsOperations /// /// The pagination token. /// + /// + /// The page size. + /// /// /// The headers that will be added to request. /// @@ -341,7 +353,7 @@ public partial interface IReplicationMigrationItemsOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), string takeToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Enables migration. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationNetworkMappingsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationNetworkMappingsOperations.cs index 47f696e21ce9..a3fbae4e2caa 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationNetworkMappingsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationNetworkMappingsOperations.cs @@ -55,7 +55,7 @@ public partial interface IReplicationNetworkMappingsOperations /// Gets network mapping by name. /// /// - /// Gets the details of an ASR network mapping + /// Gets the details of an ASR network mapping. /// /// /// Primary fabric name. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationNetworksOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationNetworksOperations.cs index fbe4773a1bbe..4d3b1d05978d 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationNetworksOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationNetworksOperations.cs @@ -30,7 +30,7 @@ public partial interface IReplicationNetworksOperations /// Lists the networks available for a fabric. /// /// - /// Fabric name + /// Fabric name. /// /// /// The headers that will be added to request. @@ -80,7 +80,7 @@ public partial interface IReplicationNetworksOperations /// Gets the list of networks. View-only API. /// /// - /// Lists the networks available in a vault + /// Lists the networks available in a vault. /// /// /// The headers that will be added to request. @@ -127,7 +127,7 @@ public partial interface IReplicationNetworksOperations /// Gets the list of networks. View-only API. /// /// - /// Lists the networks available in a vault + /// Lists the networks available in a vault. /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationPoliciesOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationPoliciesOperations.cs index 7433ff25f6f2..a434a03034da 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationPoliciesOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationPoliciesOperations.cs @@ -24,7 +24,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public partial interface IReplicationPoliciesOperations { /// - /// Gets the list of replication policies + /// Gets the list of replication policies. /// /// /// Lists the replication policies for a vault. @@ -74,13 +74,13 @@ public partial interface IReplicationPoliciesOperations /// Creates the policy. /// /// - /// The operation to create a replication policy + /// The operation to create a replication policy. /// /// - /// Replication policy name + /// Replication policy name. /// /// - /// Create policy input + /// Create policy input. /// /// /// The headers that will be added to request. @@ -130,7 +130,7 @@ public partial interface IReplicationPoliciesOperations /// Policy Id. /// /// - /// Update Policy Input + /// Update Policy Input. /// /// /// The headers that will be added to request. @@ -152,13 +152,13 @@ public partial interface IReplicationPoliciesOperations /// Creates the policy. /// /// - /// The operation to create a replication policy + /// The operation to create a replication policy. /// /// - /// Replication policy name + /// Replication policy name. /// /// - /// Create policy input + /// Create policy input. /// /// /// The headers that will be added to request. @@ -208,7 +208,7 @@ public partial interface IReplicationPoliciesOperations /// Policy Id. /// /// - /// Update Policy Input + /// Update Policy Input. /// /// /// The headers that will be added to request. @@ -227,7 +227,7 @@ public partial interface IReplicationPoliciesOperations /// Task> BeginUpdateWithHttpMessagesAsync(string policyName, UpdatePolicyInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the list of replication policies + /// Gets the list of replication policies. /// /// /// Lists the replication policies for a vault. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectableItemsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectableItemsOperations.cs index 6afea5879b22..c3d1f02a9257 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectableItemsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectableItemsOperations.cs @@ -39,6 +39,12 @@ public partial interface IReplicationProtectableItemsOperations /// /// OData parameters to apply to the operation. /// + /// + /// take OData query parameter. + /// + /// + /// skipToken OData query parameter. + /// /// /// The headers that will be added to request. /// @@ -54,7 +60,7 @@ public partial interface IReplicationProtectableItemsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, ODataQuery odataQuery = default(ODataQuery), string take = default(string), string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the details of a protectable item. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectedItemsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectedItemsOperations.cs index cae8f52a553e..40238e79fe92 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectedItemsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectedItemsOperations.cs @@ -151,7 +151,7 @@ public partial interface IReplicationProtectedItemsOperations /// Task PurgeWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates protection. + /// Updates the replication protected item settings. /// /// /// The operation to update the recovery settings of an ASR replication @@ -233,7 +233,7 @@ public partial interface IReplicationProtectedItemsOperations /// The protection container name. /// /// - /// The replicated protected item's name. + /// The replicated protected item name. /// /// /// The ApplyRecoveryPointInput. @@ -255,7 +255,38 @@ public partial interface IReplicationProtectedItemsOperations /// Task> ApplyRecoveryPointWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute commit failover + /// Execute cancel failover. + /// + /// + /// Operation to cancel the failover of the replication protected item. + /// + /// + /// Unique fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Replication protected item name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> FailoverCancelWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Execute commit failover. /// /// /// Operation to commit the failover of the replication protected item. @@ -286,7 +317,7 @@ public partial interface IReplicationProtectedItemsOperations /// Task> FailoverCommitWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute planned failover + /// Execute planned failover. /// /// /// Operation to initiate a planned failover of the replication @@ -302,7 +333,7 @@ public partial interface IReplicationProtectedItemsOperations /// Replication protected item name. /// /// - /// Disable protection input. + /// Planned failover input. /// /// /// The headers that will be added to request. @@ -419,7 +450,7 @@ public partial interface IReplicationProtectedItemsOperations /// Task> RepairReplicationWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute Reverse Replication\Reprotect + /// Execute Reverse Replication\Reprotect. /// /// /// Operation to reprotect or reverse replicate a failed over @@ -434,8 +465,8 @@ public partial interface IReplicationProtectedItemsOperations /// /// Replication protected item name. /// - /// - /// Disable protection input. + /// + /// Reverse replication input. /// /// /// The headers that will be added to request. @@ -452,7 +483,7 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> ReprotectWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ReprotectWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput reprotectInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Resolve health errors. /// @@ -489,7 +520,7 @@ public partial interface IReplicationProtectedItemsOperations /// Task> ResolveHealthErrorsWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ResolveHealthInput resolveHealthInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute test failover + /// Execute test failover. /// /// /// Operation to perform a test failover of the replication protected @@ -504,7 +535,7 @@ public partial interface IReplicationProtectedItemsOperations /// /// Replication protected item name. /// - /// + /// /// Test failover input. /// /// @@ -522,7 +553,7 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> TestFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> TestFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput testfailoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Execute test failover cleanup. /// @@ -559,7 +590,7 @@ public partial interface IReplicationProtectedItemsOperations /// Task> TestFailoverCleanupWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute unplanned failover + /// Execute unplanned failover. /// /// /// Operation to initiate a failover of the replication protected item. @@ -574,7 +605,7 @@ public partial interface IReplicationProtectedItemsOperations /// Replication protected item name. /// /// - /// Disable protection input. + /// Failover input. /// /// /// The headers that will be added to request. @@ -639,7 +670,7 @@ public partial interface IReplicationProtectedItemsOperations /// /// /// The pagination token. Possible values: "FabricId" or - /// "FabricId_CloudId" or null + /// "FabricId_CloudId" or null. /// /// /// The headers that will be added to request. @@ -724,7 +755,7 @@ public partial interface IReplicationProtectedItemsOperations /// Task BeginPurgeWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates protection. + /// Updates the replication protected item settings. /// /// /// The operation to update the recovery settings of an ASR replication @@ -806,7 +837,7 @@ public partial interface IReplicationProtectedItemsOperations /// The protection container name. /// /// - /// The replicated protected item's name. + /// The replicated protected item name. /// /// /// The ApplyRecoveryPointInput. @@ -828,7 +859,38 @@ public partial interface IReplicationProtectedItemsOperations /// Task> BeginApplyRecoveryPointWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ApplyRecoveryPointInput applyRecoveryPointInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute commit failover + /// Execute cancel failover. + /// + /// + /// Operation to cancel the failover of the replication protected item. + /// + /// + /// Unique fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Replication protected item name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginFailoverCancelWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Execute commit failover. /// /// /// Operation to commit the failover of the replication protected item. @@ -859,7 +921,7 @@ public partial interface IReplicationProtectedItemsOperations /// Task> BeginFailoverCommitWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute planned failover + /// Execute planned failover. /// /// /// Operation to initiate a planned failover of the replication @@ -875,7 +937,7 @@ public partial interface IReplicationProtectedItemsOperations /// Replication protected item name. /// /// - /// Disable protection input. + /// Planned failover input. /// /// /// The headers that will be added to request. @@ -992,7 +1054,7 @@ public partial interface IReplicationProtectedItemsOperations /// Task> BeginRepairReplicationWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute Reverse Replication\Reprotect + /// Execute Reverse Replication\Reprotect. /// /// /// Operation to reprotect or reverse replicate a failed over @@ -1007,8 +1069,8 @@ public partial interface IReplicationProtectedItemsOperations /// /// Replication protected item name. /// - /// - /// Disable protection input. + /// + /// Reverse replication input. /// /// /// The headers that will be added to request. @@ -1025,7 +1087,7 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> BeginReprotectWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginReprotectWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput reprotectInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Resolve health errors. /// @@ -1062,7 +1124,7 @@ public partial interface IReplicationProtectedItemsOperations /// Task> BeginResolveHealthErrorsWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ResolveHealthInput resolveHealthInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute test failover + /// Execute test failover. /// /// /// Operation to perform a test failover of the replication protected @@ -1077,7 +1139,7 @@ public partial interface IReplicationProtectedItemsOperations /// /// Replication protected item name. /// - /// + /// /// Test failover input. /// /// @@ -1095,7 +1157,7 @@ public partial interface IReplicationProtectedItemsOperations /// /// Thrown when a required parameter is null /// - Task> BeginTestFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginTestFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput testfailoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Execute test failover cleanup. /// @@ -1132,7 +1194,7 @@ public partial interface IReplicationProtectedItemsOperations /// Task> BeginTestFailoverCleanupWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupInput cleanupInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Execute unplanned failover + /// Execute unplanned failover. /// /// /// Operation to initiate a failover of the replication protected item. @@ -1147,7 +1209,7 @@ public partial interface IReplicationProtectedItemsOperations /// Replication protected item name. /// /// - /// Disable protection input. + /// Failover input. /// /// /// The headers that will be added to request. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionContainerMappingsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionContainerMappingsOperations.cs index bd9b10550cae..e3953baf00ec 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionContainerMappingsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionContainerMappingsOperations.cs @@ -53,7 +53,7 @@ public partial interface IReplicationProtectionContainerMappingsOperations /// Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets a protection container mapping/ + /// Gets a protection container mapping. /// /// /// Gets the details of a protection container mapping. @@ -121,7 +121,8 @@ public partial interface IReplicationProtectionContainerMappingsOperations /// Purge protection container mapping. /// /// - /// The operation to purge(force delete) a protection container mapping + /// The operation to purge(force delete) a protection container + /// mapping. /// /// /// Fabric name. @@ -270,7 +271,8 @@ public partial interface IReplicationProtectionContainerMappingsOperations /// Purge protection container mapping. /// /// - /// The operation to purge(force delete) a protection container mapping + /// The operation to purge(force delete) a protection container + /// mapping. /// /// /// Fabric name. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionContainersOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionContainersOperations.cs index c41da22e4dd0..d1161aedf309 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionContainersOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionContainersOperations.cs @@ -112,7 +112,7 @@ public partial interface IReplicationProtectionContainersOperations /// /// /// The operation to a add a protectable item to a protection - /// container(Add physical server.) + /// container(Add physical server). /// /// /// The name of the fabric. @@ -255,7 +255,7 @@ public partial interface IReplicationProtectionContainersOperations /// /// /// The operation to a add a protectable item to a protection - /// container(Add physical server.) + /// container(Add physical server). /// /// /// The name of the fabric. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionIntentsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionIntentsOperations.cs new file mode 100644 index 000000000000..d011c7b68bd9 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionIntentsOperations.cs @@ -0,0 +1,163 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ReplicationProtectionIntentsOperations operations. + /// + public partial interface IReplicationProtectionIntentsOperations + { + /// + /// Gets the list of replication protection intent objects. + /// + /// + /// Gets the list of ASR replication protection intent objects in the + /// vault. + /// + /// + /// The pagination token. + /// + /// + /// The page size. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string skipToken = default(string), string takeToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the details of a Replication protection intent item. + /// + /// + /// Gets the details of an ASR replication protection intent. + /// + /// + /// Replication protection intent name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string intentObjectName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create protection intent Resource. + /// + /// + /// The operation to create an ASR replication protection intent item. + /// + /// + /// A name for the replication protection item. + /// + /// + /// Create Protection Intent Input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateWithHttpMessagesAsync(string intentObjectName, CreateProtectionIntentInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create protection intent Resource. + /// + /// + /// The operation to create an ASR replication protection intent item. + /// + /// + /// A name for the replication protection item. + /// + /// + /// Create Protection Intent Input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateWithHttpMessagesAsync(string intentObjectName, CreateProtectionIntentInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the list of replication protection intent objects. + /// + /// + /// Gets the list of ASR replication protection intent objects in the + /// vault. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationRecoveryPlansOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationRecoveryPlansOperations.cs index a6f740db6a3b..b8efc1feaad1 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationRecoveryPlansOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationRecoveryPlansOperations.cs @@ -130,7 +130,7 @@ public partial interface IReplicationRecoveryPlansOperations /// Recovery plan name. /// /// - /// Update recovery plan input + /// Update recovery plan input. /// /// /// The headers that will be added to request. @@ -149,10 +149,35 @@ public partial interface IReplicationRecoveryPlansOperations /// Task> UpdateWithHttpMessagesAsync(string recoveryPlanName, UpdateRecoveryPlanInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Execute cancel failover of the recovery plan. + /// + /// + /// The operation to cancel the failover of a recovery plan. + /// + /// + /// Recovery plan name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> FailoverCancelWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Execute commit failover of the recovery plan. /// /// - /// The operation to commit the fail over of a recovery plan. + /// The operation to commit the failover of a recovery plan. /// /// /// Recovery plan name. @@ -236,7 +261,7 @@ public partial interface IReplicationRecoveryPlansOperations /// Recovery plan name. /// /// - /// Failover input. + /// Recovery plan test failover input. /// /// /// The headers that will be added to request. @@ -264,7 +289,7 @@ public partial interface IReplicationRecoveryPlansOperations /// Recovery plan name. /// /// - /// Test failover cleanup input. + /// Recovery plan test failover cleanup input. /// /// /// The headers that will be added to request. @@ -286,13 +311,13 @@ public partial interface IReplicationRecoveryPlansOperations /// Execute unplanned failover of the recovery plan. /// /// - /// The operation to start the failover of a recovery plan. + /// The operation to start the unplanned failover of a recovery plan. /// /// /// Recovery plan name. /// /// - /// Failover input. + /// Recovery plan unplanned failover input. /// /// /// The headers that will be added to request. @@ -370,7 +395,7 @@ public partial interface IReplicationRecoveryPlansOperations /// Recovery plan name. /// /// - /// Update recovery plan input + /// Update recovery plan input. /// /// /// The headers that will be added to request. @@ -389,10 +414,35 @@ public partial interface IReplicationRecoveryPlansOperations /// Task> BeginUpdateWithHttpMessagesAsync(string recoveryPlanName, UpdateRecoveryPlanInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Execute cancel failover of the recovery plan. + /// + /// + /// The operation to cancel the failover of a recovery plan. + /// + /// + /// Recovery plan name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginFailoverCancelWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Execute commit failover of the recovery plan. /// /// - /// The operation to commit the fail over of a recovery plan. + /// The operation to commit the failover of a recovery plan. /// /// /// Recovery plan name. @@ -476,7 +526,7 @@ public partial interface IReplicationRecoveryPlansOperations /// Recovery plan name. /// /// - /// Failover input. + /// Recovery plan test failover input. /// /// /// The headers that will be added to request. @@ -504,7 +554,7 @@ public partial interface IReplicationRecoveryPlansOperations /// Recovery plan name. /// /// - /// Test failover cleanup input. + /// Recovery plan test failover cleanup input. /// /// /// The headers that will be added to request. @@ -526,13 +576,13 @@ public partial interface IReplicationRecoveryPlansOperations /// Execute unplanned failover of the recovery plan. /// /// - /// The operation to start the failover of a recovery plan. + /// The operation to start the unplanned failover of a recovery plan. /// /// /// Recovery plan name. /// /// - /// Failover input. + /// Recovery plan unplanned failover input. /// /// /// The headers that will be added to request. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationRecoveryServicesProvidersOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationRecoveryServicesProvidersOperations.cs index 4b5a376d3b21..414b076e4b5e 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationRecoveryServicesProvidersOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationRecoveryServicesProvidersOperations.cs @@ -32,7 +32,7 @@ public partial interface IReplicationRecoveryServicesProvidersOperations /// fabric. /// /// - /// Fabric name + /// Fabric name. /// /// /// The headers that will be added to request. @@ -60,7 +60,7 @@ public partial interface IReplicationRecoveryServicesProvidersOperations /// Fabric name. /// /// - /// Recovery services provider name + /// Recovery services provider name. /// /// /// The headers that will be added to request. @@ -110,7 +110,7 @@ public partial interface IReplicationRecoveryServicesProvidersOperations /// Task> CreateWithHttpMessagesAsync(string fabricName, string providerName, AddRecoveryServicesProviderInput addProviderInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Purges recovery service provider from fabric + /// Purges recovery service provider from fabric. /// /// /// The operation to purge(force delete) a recovery services provider @@ -173,7 +173,7 @@ public partial interface IReplicationRecoveryServicesProvidersOperations /// /// /// The operation to removes/delete(unregister) a recovery services - /// provider from the vault + /// provider from the vault. /// /// /// Fabric name. @@ -199,7 +199,7 @@ public partial interface IReplicationRecoveryServicesProvidersOperations /// vault. This is a view only api. /// /// - /// Lists the registered recovery services providers in the vault + /// Lists the registered recovery services providers in the vault. /// /// /// The headers that will be added to request. @@ -249,7 +249,7 @@ public partial interface IReplicationRecoveryServicesProvidersOperations /// Task> BeginCreateWithHttpMessagesAsync(string fabricName, string providerName, AddRecoveryServicesProviderInput addProviderInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Purges recovery service provider from fabric + /// Purges recovery service provider from fabric. /// /// /// The operation to purge(force delete) a recovery services provider @@ -312,7 +312,7 @@ public partial interface IReplicationRecoveryServicesProvidersOperations /// /// /// The operation to removes/delete(unregister) a recovery services - /// provider from the vault + /// provider from the vault. /// /// /// Fabric name. @@ -365,7 +365,7 @@ public partial interface IReplicationRecoveryServicesProvidersOperations /// vault. This is a view only api. /// /// - /// Lists the registered recovery services providers in the vault + /// Lists the registered recovery services providers in the vault. /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationVaultSettingOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationVaultSettingOperations.cs index 5312e4f78158..b7609aec84db 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationVaultSettingOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationVaultSettingOperations.cs @@ -102,6 +102,35 @@ public partial interface IReplicationVaultSettingOperations /// Task> CreateWithHttpMessagesAsync(string vaultSettingName, VaultSettingCreationInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Updates vault setting. A vault setting object is a singleton per + /// vault and it is always present by default. + /// + /// + /// The operation to configure vault setting. + /// + /// + /// Vault setting name. + /// + /// + /// Vault setting creation input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateWithHttpMessagesAsync(string vaultSettingName, VaultSettingCreationInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Gets the list of vault setting. /// /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationvCentersOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationvCentersOperations.cs index d9552f54967f..1c473d5a0632 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationvCentersOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationvCentersOperations.cs @@ -53,13 +53,13 @@ public partial interface IReplicationvCentersOperations /// /// /// Gets the details of a registered vCenter server(Add vCenter - /// server.) + /// server). /// /// /// Fabric name. /// - /// - /// vCenter name. + /// + /// vcenter name. /// /// /// The headers that will be added to request. @@ -76,7 +76,7 @@ public partial interface IReplicationvCentersOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string fabricName, string vCenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string fabricName, string vcenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Add vCenter. /// @@ -86,8 +86,8 @@ public partial interface IReplicationvCentersOperations /// /// Fabric name. /// - /// - /// vCenter name. + /// + /// vcenter name. /// /// /// The input to the add vCenter operation. @@ -107,9 +107,9 @@ public partial interface IReplicationvCentersOperations /// /// Thrown when a required parameter is null /// - Task> CreateWithHttpMessagesAsync(string fabricName, string vCenterName, AddVCenterRequest addVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateWithHttpMessagesAsync(string fabricName, string vcenterName, AddVCenterRequest addVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Remove vCenter operation. + /// Remove vcenter operation. /// /// /// The operation to remove(unregister) a registered vCenter server @@ -118,8 +118,8 @@ public partial interface IReplicationvCentersOperations /// /// Fabric name. /// - /// - /// vCenter name. + /// + /// vcenter name. /// /// /// The headers that will be added to request. @@ -133,7 +133,7 @@ public partial interface IReplicationvCentersOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string fabricName, string vCenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string fabricName, string vcenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Update vCenter operation. /// @@ -143,8 +143,8 @@ public partial interface IReplicationvCentersOperations /// /// Fabric name. /// - /// - /// vCenter name + /// + /// vcenter name. /// /// /// The input to the update vCenter operation. @@ -164,7 +164,7 @@ public partial interface IReplicationvCentersOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string fabricName, string vCenterName, UpdateVCenterRequest updateVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string fabricName, string vcenterName, UpdateVCenterRequest updateVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the list of vCenter registered under the vault. /// @@ -196,8 +196,8 @@ public partial interface IReplicationvCentersOperations /// /// Fabric name. /// - /// - /// vCenter name. + /// + /// vcenter name. /// /// /// The input to the add vCenter operation. @@ -217,9 +217,9 @@ public partial interface IReplicationvCentersOperations /// /// Thrown when a required parameter is null /// - Task> BeginCreateWithHttpMessagesAsync(string fabricName, string vCenterName, AddVCenterRequest addVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginCreateWithHttpMessagesAsync(string fabricName, string vcenterName, AddVCenterRequest addVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Remove vCenter operation. + /// Remove vcenter operation. /// /// /// The operation to remove(unregister) a registered vCenter server @@ -228,8 +228,8 @@ public partial interface IReplicationvCentersOperations /// /// Fabric name. /// - /// - /// vCenter name. + /// + /// vcenter name. /// /// /// The headers that will be added to request. @@ -243,7 +243,7 @@ public partial interface IReplicationvCentersOperations /// /// Thrown when a required parameter is null /// - Task BeginDeleteWithHttpMessagesAsync(string fabricName, string vCenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginDeleteWithHttpMessagesAsync(string fabricName, string vcenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Update vCenter operation. /// @@ -253,8 +253,8 @@ public partial interface IReplicationvCentersOperations /// /// Fabric name. /// - /// - /// vCenter name + /// + /// vcenter name. /// /// /// The input to the update vCenter operation. @@ -274,7 +274,7 @@ public partial interface IReplicationvCentersOperations /// /// Thrown when a required parameter is null /// - Task> BeginUpdateWithHttpMessagesAsync(string fabricName, string vCenterName, UpdateVCenterRequest updateVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginUpdateWithHttpMessagesAsync(string fabricName, string vcenterName, UpdateVCenterRequest updateVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the list of vCenter registered under a fabric. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISiteRecoveryManagementClient.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISiteRecoveryManagementClient.cs index 25b5858aade8..edfade7bbef0 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISiteRecoveryManagementClient.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISiteRecoveryManagementClient.cs @@ -189,6 +189,11 @@ public partial interface ISiteRecoveryManagementClient : System.IDisposable /// IReplicationPoliciesOperations ReplicationPolicies { get; } + /// + /// Gets the IReplicationProtectionIntentsOperations. + /// + IReplicationProtectionIntentsOperations ReplicationProtectionIntents { get; } + /// /// Gets the IReplicationRecoveryPlansOperations. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISupportedOperatingSystemsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISupportedOperatingSystemsOperations.cs index d785646ce58a..65506bd98c71 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISupportedOperatingSystemsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISupportedOperatingSystemsOperations.cs @@ -24,8 +24,11 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public partial interface ISupportedOperatingSystemsOperations { /// - /// Gets the data of supported OSes by SRS. + /// Gets the data of supported operating systems by SRS. /// + /// + /// The instance type. + /// /// /// The headers that will be added to request. /// @@ -41,6 +44,6 @@ public partial interface ISupportedOperatingSystemsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string instanceType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/MigrationRecoveryPointsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/MigrationRecoveryPointsOperations.cs index 6af1fea3048d..9a3b242620dd 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/MigrationRecoveryPointsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/MigrationRecoveryPointsOperations.cs @@ -128,7 +128,7 @@ internal MigrationRecoveryPointsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}/migrationRecoveryPoints").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}/migrationRecoveryPoints").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -351,7 +351,7 @@ internal MigrationRecoveryPointsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}/migrationRecoveryPoints/{migrationRecoveryPointName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}/migrationRecoveryPoints/{migrationRecoveryPointName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACreateProtectionIntentInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACreateProtectionIntentInput.cs new file mode 100644 index 000000000000..dea28682888c --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACreateProtectionIntentInput.cs @@ -0,0 +1,285 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A2A create protection intent input. + /// + [Newtonsoft.Json.JsonObject("A2A")] + public partial class A2ACreateProtectionIntentInput : CreateProtectionIntentProviderSpecificDetails + { + /// + /// Initializes a new instance of the A2ACreateProtectionIntentInput + /// class. + /// + public A2ACreateProtectionIntentInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the A2ACreateProtectionIntentInput + /// class. + /// + /// The fabric specific object Id of the + /// virtual machine. + /// The primary location for the virtual + /// machine. + /// The recovery location for the + /// virtual machine. + /// The recovery subscription Id + /// of the virtual machine. + /// The recovery availability + /// type of the virtual machine. Possible values include: 'Single', + /// 'AvailabilitySet', 'AvailabilityZone' + /// The recovery resource group + /// Id. Valid for V2 scenarios. + /// The protection profile + /// custom inputs. + /// The primary + /// staging storage account input. + /// The recovery + /// availability set input. + /// The recovery + /// virtual network input. + /// The + /// recovery proximity placement group custom input. + /// A value indicating whether + /// the auto protection is enabled. Possible values include: + /// 'Disabled', 'Enabled' + /// The list of vm disk inputs. + /// The list of vm managed disk + /// inputs. + /// The vm os managed disk input. + /// The multi vm group name. + /// The multi vm group id. + /// The boot diagnostic + /// storage account. + /// The recovery disk encryption + /// information (for two pass flows). + /// The recovery availability + /// zone. + public A2ACreateProtectionIntentInput(string fabricObjectId, string primaryLocation, string recoveryLocation, string recoverySubscriptionId, string recoveryAvailabilityType, string recoveryResourceGroupId, ProtectionProfileCustomDetails protectionProfileCustomInput = default(ProtectionProfileCustomDetails), StorageAccountCustomDetails primaryStagingStorageAccountCustomInput = default(StorageAccountCustomDetails), RecoveryAvailabilitySetCustomDetails recoveryAvailabilitySetCustomInput = default(RecoveryAvailabilitySetCustomDetails), RecoveryVirtualNetworkCustomDetails recoveryVirtualNetworkCustomInput = default(RecoveryVirtualNetworkCustomDetails), RecoveryProximityPlacementGroupCustomDetails recoveryProximityPlacementGroupCustomInput = default(RecoveryProximityPlacementGroupCustomDetails), string autoProtectionOfDataDisk = default(string), IList vmDisks = default(IList), IList vmManagedDisks = default(IList), A2AProtectionIntentOSManagedDiskInputDetails vmOSManagedDisk = default(A2AProtectionIntentOSManagedDiskInputDetails), string multiVmGroupName = default(string), string multiVmGroupId = default(string), StorageAccountCustomDetails recoveryBootDiagStorageAccount = default(StorageAccountCustomDetails), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo), string recoveryAvailabilityZone = default(string)) + { + FabricObjectId = fabricObjectId; + PrimaryLocation = primaryLocation; + RecoveryLocation = recoveryLocation; + RecoverySubscriptionId = recoverySubscriptionId; + RecoveryAvailabilityType = recoveryAvailabilityType; + ProtectionProfileCustomInput = protectionProfileCustomInput; + RecoveryResourceGroupId = recoveryResourceGroupId; + PrimaryStagingStorageAccountCustomInput = primaryStagingStorageAccountCustomInput; + RecoveryAvailabilitySetCustomInput = recoveryAvailabilitySetCustomInput; + RecoveryVirtualNetworkCustomInput = recoveryVirtualNetworkCustomInput; + RecoveryProximityPlacementGroupCustomInput = recoveryProximityPlacementGroupCustomInput; + AutoProtectionOfDataDisk = autoProtectionOfDataDisk; + VmDisks = vmDisks; + VmManagedDisks = vmManagedDisks; + VmOSManagedDisk = vmOSManagedDisk; + MultiVmGroupName = multiVmGroupName; + MultiVmGroupId = multiVmGroupId; + RecoveryBootDiagStorageAccount = recoveryBootDiagStorageAccount; + DiskEncryptionInfo = diskEncryptionInfo; + RecoveryAvailabilityZone = recoveryAvailabilityZone; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the fabric specific object Id of the virtual machine. + /// + [JsonProperty(PropertyName = "fabricObjectId")] + public string FabricObjectId { get; set; } + + /// + /// Gets or sets the primary location for the virtual machine. + /// + [JsonProperty(PropertyName = "primaryLocation")] + public string PrimaryLocation { get; set; } + + /// + /// Gets or sets the recovery location for the virtual machine. + /// + [JsonProperty(PropertyName = "recoveryLocation")] + public string RecoveryLocation { get; set; } + + /// + /// Gets or sets the recovery subscription Id of the virtual machine. + /// + [JsonProperty(PropertyName = "recoverySubscriptionId")] + public string RecoverySubscriptionId { get; set; } + + /// + /// Gets or sets the recovery availability type of the virtual machine. + /// Possible values include: 'Single', 'AvailabilitySet', + /// 'AvailabilityZone' + /// + [JsonProperty(PropertyName = "recoveryAvailabilityType")] + public string RecoveryAvailabilityType { get; set; } + + /// + /// Gets or sets the protection profile custom inputs. + /// + [JsonProperty(PropertyName = "protectionProfileCustomInput")] + public ProtectionProfileCustomDetails ProtectionProfileCustomInput { get; set; } + + /// + /// Gets or sets the recovery resource group Id. Valid for V2 + /// scenarios. + /// + [JsonProperty(PropertyName = "recoveryResourceGroupId")] + public string RecoveryResourceGroupId { get; set; } + + /// + /// Gets or sets the primary staging storage account input. + /// + [JsonProperty(PropertyName = "primaryStagingStorageAccountCustomInput")] + public StorageAccountCustomDetails PrimaryStagingStorageAccountCustomInput { get; set; } + + /// + /// Gets or sets the recovery availability set input. + /// + [JsonProperty(PropertyName = "recoveryAvailabilitySetCustomInput")] + public RecoveryAvailabilitySetCustomDetails RecoveryAvailabilitySetCustomInput { get; set; } + + /// + /// Gets or sets the recovery virtual network input. + /// + [JsonProperty(PropertyName = "recoveryVirtualNetworkCustomInput")] + public RecoveryVirtualNetworkCustomDetails RecoveryVirtualNetworkCustomInput { get; set; } + + /// + /// Gets or sets the recovery proximity placement group custom input. + /// + [JsonProperty(PropertyName = "recoveryProximityPlacementGroupCustomInput")] + public RecoveryProximityPlacementGroupCustomDetails RecoveryProximityPlacementGroupCustomInput { get; set; } + + /// + /// Gets or sets a value indicating whether the auto protection is + /// enabled. Possible values include: 'Disabled', 'Enabled' + /// + [JsonProperty(PropertyName = "autoProtectionOfDataDisk")] + public string AutoProtectionOfDataDisk { get; set; } + + /// + /// Gets or sets the list of vm disk inputs. + /// + [JsonProperty(PropertyName = "vmDisks")] + public IList VmDisks { get; set; } + + /// + /// Gets or sets the list of vm managed disk inputs. + /// + [JsonProperty(PropertyName = "vmManagedDisks")] + public IList VmManagedDisks { get; set; } + + /// + /// Gets or sets the vm os managed disk input. + /// + [JsonProperty(PropertyName = "vmOSManagedDisk")] + public A2AProtectionIntentOSManagedDiskInputDetails VmOSManagedDisk { get; set; } + + /// + /// Gets or sets the multi vm group name. + /// + [JsonProperty(PropertyName = "multiVmGroupName")] + public string MultiVmGroupName { get; set; } + + /// + /// Gets or sets the multi vm group id. + /// + [JsonProperty(PropertyName = "multiVmGroupId")] + public string MultiVmGroupId { get; set; } + + /// + /// Gets or sets the boot diagnostic storage account. + /// + [JsonProperty(PropertyName = "recoveryBootDiagStorageAccount")] + public StorageAccountCustomDetails RecoveryBootDiagStorageAccount { get; set; } + + /// + /// Gets or sets the recovery disk encryption information (for two pass + /// flows). + /// + [JsonProperty(PropertyName = "diskEncryptionInfo")] + public DiskEncryptionInfo DiskEncryptionInfo { get; set; } + + /// + /// Gets or sets the recovery availability zone. + /// + [JsonProperty(PropertyName = "recoveryAvailabilityZone")] + public string RecoveryAvailabilityZone { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (FabricObjectId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "FabricObjectId"); + } + if (PrimaryLocation == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PrimaryLocation"); + } + if (RecoveryLocation == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryLocation"); + } + if (RecoverySubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "RecoverySubscriptionId"); + } + if (RecoveryAvailabilityType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryAvailabilityType"); + } + if (RecoveryResourceGroupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryResourceGroupId"); + } + if (VmDisks != null) + { + foreach (var element in VmDisks) + { + if (element != null) + { + element.Validate(); + } + } + } + if (VmManagedDisks != null) + { + foreach (var element1 in VmManagedDisks) + { + if (element1 != null) + { + element1.Validate(); + } + } + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationApplyRecoveryPointInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationApplyRecoveryPointInput.cs new file mode 100644 index 000000000000..4fb0b5ba8844 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationApplyRecoveryPointInput.cs @@ -0,0 +1,38 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// ApplyRecoveryPoint input specific to A2ACrossClusterMigration provider. + /// + [Newtonsoft.Json.JsonObject("A2ACrossClusterMigration")] + public partial class A2ACrossClusterMigrationApplyRecoveryPointInput : ApplyRecoveryPointProviderSpecificInput + { + /// + /// Initializes a new instance of the + /// A2ACrossClusterMigrationApplyRecoveryPointInput class. + /// + public A2ACrossClusterMigrationApplyRecoveryPointInput() + { + CustomInit(); + } + + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationContainerCreationInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationContainerCreationInput.cs new file mode 100644 index 000000000000..a89c59d5a4bd --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationContainerCreationInput.cs @@ -0,0 +1,38 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A2ACrossClusterMigration cloud creation input. + /// + [Newtonsoft.Json.JsonObject("A2ACrossClusterMigration")] + public partial class A2ACrossClusterMigrationContainerCreationInput : ReplicationProviderSpecificContainerCreationInput + { + /// + /// Initializes a new instance of the + /// A2ACrossClusterMigrationContainerCreationInput class. + /// + public A2ACrossClusterMigrationContainerCreationInput() + { + CustomInit(); + } + + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationEnableProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationEnableProtectionInput.cs new file mode 100644 index 000000000000..fb608a110a9e --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationEnableProtectionInput.cs @@ -0,0 +1,64 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A2A Cross-Cluster Migration enable protection input. + /// + [Newtonsoft.Json.JsonObject("A2ACrossClusterMigration")] + public partial class A2ACrossClusterMigrationEnableProtectionInput : EnableProtectionProviderSpecificInput + { + /// + /// Initializes a new instance of the + /// A2ACrossClusterMigrationEnableProtectionInput class. + /// + public A2ACrossClusterMigrationEnableProtectionInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// A2ACrossClusterMigrationEnableProtectionInput class. + /// + /// The fabric specific object Id of the + /// virtual machine. + /// The recovery container + /// Id. + public A2ACrossClusterMigrationEnableProtectionInput(string fabricObjectId = default(string), string recoveryContainerId = default(string)) + { + FabricObjectId = fabricObjectId; + RecoveryContainerId = recoveryContainerId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the fabric specific object Id of the virtual machine. + /// + [JsonProperty(PropertyName = "fabricObjectId")] + public string FabricObjectId { get; set; } + + /// + /// Gets or sets the recovery container Id. + /// + [JsonProperty(PropertyName = "recoveryContainerId")] + public string RecoveryContainerId { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationPolicyCreationInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationPolicyCreationInput.cs new file mode 100644 index 000000000000..911c7a212b93 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationPolicyCreationInput.cs @@ -0,0 +1,38 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A2A Cross-Cluster Migration Policy creation input. + /// + [Newtonsoft.Json.JsonObject("A2ACrossClusterMigration")] + public partial class A2ACrossClusterMigrationPolicyCreationInput : PolicyProviderSpecificInput + { + /// + /// Initializes a new instance of the + /// A2ACrossClusterMigrationPolicyCreationInput class. + /// + public A2ACrossClusterMigrationPolicyCreationInput() + { + CustomInit(); + } + + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationReplicationDetails.cs new file mode 100644 index 000000000000..d05d6117f7ba --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACrossClusterMigrationReplicationDetails.cs @@ -0,0 +1,108 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A2A provider specific settings. + /// + [Newtonsoft.Json.JsonObject("A2ACrossClusterMigration")] + public partial class A2ACrossClusterMigrationReplicationDetails : ReplicationProviderSpecificSettings + { + /// + /// Initializes a new instance of the + /// A2ACrossClusterMigrationReplicationDetails class. + /// + public A2ACrossClusterMigrationReplicationDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// A2ACrossClusterMigrationReplicationDetails class. + /// + /// The fabric specific object Id of the + /// virtual machine. + /// Primary fabric + /// location. + /// The type of operating system. + /// The protection state for the + /// vm. + /// The protection state + /// description for the vm. + /// An id associated with the PE that + /// survives actions like switch protection which change the backing + /// PE/CPE objects internally.The lifecycle id gets carried forward to + /// have a link/continuity in being able to have an Id that denotes the + /// "same" protected item even though other internal Ids/ARM Id might + /// be changing. + public A2ACrossClusterMigrationReplicationDetails(string fabricObjectId = default(string), string primaryFabricLocation = default(string), string osType = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), string lifecycleId = default(string)) + { + FabricObjectId = fabricObjectId; + PrimaryFabricLocation = primaryFabricLocation; + OsType = osType; + VmProtectionState = vmProtectionState; + VmProtectionStateDescription = vmProtectionStateDescription; + LifecycleId = lifecycleId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the fabric specific object Id of the virtual machine. + /// + [JsonProperty(PropertyName = "fabricObjectId")] + public string FabricObjectId { get; set; } + + /// + /// Gets or sets primary fabric location. + /// + [JsonProperty(PropertyName = "primaryFabricLocation")] + public string PrimaryFabricLocation { get; set; } + + /// + /// Gets or sets the type of operating system. + /// + [JsonProperty(PropertyName = "osType")] + public string OsType { get; set; } + + /// + /// Gets or sets the protection state for the vm. + /// + [JsonProperty(PropertyName = "vmProtectionState")] + public string VmProtectionState { get; set; } + + /// + /// Gets or sets the protection state description for the vm. + /// + [JsonProperty(PropertyName = "vmProtectionStateDescription")] + public string VmProtectionStateDescription { get; set; } + + /// + /// Gets or sets an id associated with the PE that survives actions + /// like switch protection which change the backing PE/CPE objects + /// internally.The lifecycle id gets carried forward to have a + /// link/continuity in being able to have an Id that denotes the "same" + /// protected item even though other internal Ids/ARM Id might be + /// changing. + /// + [JsonProperty(PropertyName = "lifecycleId")] + public string LifecycleId { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AEnableProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AEnableProtectionInput.cs index 05570464ebc8..680ba9dc4243 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AEnableProtectionInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AEnableProtectionInput.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -47,17 +48,23 @@ public A2AEnableProtectionInput() /// The list of vm disk details. /// The list of vm managed disk /// details. + /// A value indicating whether + /// the auto protection is enabled. Possible values include: + /// 'Disabled', 'Enabled' /// The multi vm group name. + /// The multi vm group id. /// The boot diagnostic /// storage account. /// The recovery disk encryption - /// information. + /// information (for two pass flows). /// The recovery availability /// zone. /// The recovery Azure virtual /// network ARM id. /// The recovery subnet name. - public A2AEnableProtectionInput(string fabricObjectId = default(string), string recoveryContainerId = default(string), string recoveryResourceGroupId = default(string), string recoveryCloudServiceId = default(string), string recoveryAvailabilitySetId = default(string), string recoveryProximityPlacementGroupId = default(string), IList vmDisks = default(IList), IList vmManagedDisks = default(IList), string multiVmGroupName = default(string), string recoveryBootDiagStorageAccountId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo), string recoveryAvailabilityZone = default(string), string recoveryAzureNetworkId = default(string), string recoverySubnetName = default(string)) + /// The virtual machine + /// scale set Id. + public A2AEnableProtectionInput(string fabricObjectId, string recoveryContainerId = default(string), string recoveryResourceGroupId = default(string), string recoveryCloudServiceId = default(string), string recoveryAvailabilitySetId = default(string), string recoveryProximityPlacementGroupId = default(string), IList vmDisks = default(IList), IList vmManagedDisks = default(IList), string autoProtectionOfDataDisk = default(string), string multiVmGroupName = default(string), string multiVmGroupId = default(string), string recoveryBootDiagStorageAccountId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo), string recoveryAvailabilityZone = default(string), string recoveryAzureNetworkId = default(string), string recoverySubnetName = default(string), string recoveryVirtualMachineScaleSetId = default(string)) { FabricObjectId = fabricObjectId; RecoveryContainerId = recoveryContainerId; @@ -67,12 +74,15 @@ public A2AEnableProtectionInput() RecoveryProximityPlacementGroupId = recoveryProximityPlacementGroupId; VmDisks = vmDisks; VmManagedDisks = vmManagedDisks; + AutoProtectionOfDataDisk = autoProtectionOfDataDisk; MultiVmGroupName = multiVmGroupName; + MultiVmGroupId = multiVmGroupId; RecoveryBootDiagStorageAccountId = recoveryBootDiagStorageAccountId; DiskEncryptionInfo = diskEncryptionInfo; RecoveryAvailabilityZone = recoveryAvailabilityZone; RecoveryAzureNetworkId = recoveryAzureNetworkId; RecoverySubnetName = recoverySubnetName; + RecoveryVirtualMachineScaleSetId = recoveryVirtualMachineScaleSetId; CustomInit(); } @@ -130,12 +140,25 @@ public A2AEnableProtectionInput() [JsonProperty(PropertyName = "vmManagedDisks")] public IList VmManagedDisks { get; set; } + /// + /// Gets or sets a value indicating whether the auto protection is + /// enabled. Possible values include: 'Disabled', 'Enabled' + /// + [JsonProperty(PropertyName = "autoProtectionOfDataDisk")] + public string AutoProtectionOfDataDisk { get; set; } + /// /// Gets or sets the multi vm group name. /// [JsonProperty(PropertyName = "multiVmGroupName")] public string MultiVmGroupName { get; set; } + /// + /// Gets or sets the multi vm group id. + /// + [JsonProperty(PropertyName = "multiVmGroupId")] + public string MultiVmGroupId { get; set; } + /// /// Gets or sets the boot diagnostic storage account. /// @@ -143,7 +166,8 @@ public A2AEnableProtectionInput() public string RecoveryBootDiagStorageAccountId { get; set; } /// - /// Gets or sets the recovery disk encryption information. + /// Gets or sets the recovery disk encryption information (for two pass + /// flows). /// [JsonProperty(PropertyName = "diskEncryptionInfo")] public DiskEncryptionInfo DiskEncryptionInfo { get; set; } @@ -166,5 +190,44 @@ public A2AEnableProtectionInput() [JsonProperty(PropertyName = "recoverySubnetName")] public string RecoverySubnetName { get; set; } + /// + /// Gets or sets the virtual machine scale set Id. + /// + [JsonProperty(PropertyName = "recoveryVirtualMachineScaleSetId")] + public string RecoveryVirtualMachineScaleSetId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (FabricObjectId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "FabricObjectId"); + } + if (VmDisks != null) + { + foreach (var element in VmDisks) + { + if (element != null) + { + element.Validate(); + } + } + } + if (VmManagedDisks != null) + { + foreach (var element1 in VmManagedDisks) + { + if (element1 != null) + { + element1.Validate(); + } + } + } + } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedDiskDetails.cs index ba81eb50cad4..22b27bfa76d4 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedDiskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedDiskDetails.cs @@ -69,7 +69,11 @@ public A2AProtectedDiskDetails() /// The key URL / identifier (KEK). /// The KeyVault resource id for key /// (KEK). - public A2AProtectedDiskDetails(string diskUri = default(string), string recoveryAzureStorageAccountId = default(string), string primaryDiskAzureStorageAccountId = default(string), string recoveryDiskUri = default(string), string diskName = default(string), long? diskCapacityInBytes = default(long?), string primaryStagingAzureStorageAccountId = default(string), string diskType = default(string), bool? resyncRequired = default(bool?), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), double? dataPendingInStagingStorageAccountInMB = default(double?), double? dataPendingAtSourceAgentInMB = default(double?), string diskState = default(string), IList allowedDiskLevelOperation = default(IList), bool? isDiskEncrypted = default(bool?), string secretIdentifier = default(string), string dekKeyVaultArmId = default(string), bool? isDiskKeyEncrypted = default(bool?), string keyIdentifier = default(string), string kekKeyVaultArmId = default(string)) + /// The failover name for the managed + /// disk. + /// The test failover name for the managed + /// disk. + public A2AProtectedDiskDetails(string diskUri = default(string), string recoveryAzureStorageAccountId = default(string), string primaryDiskAzureStorageAccountId = default(string), string recoveryDiskUri = default(string), string diskName = default(string), long? diskCapacityInBytes = default(long?), string primaryStagingAzureStorageAccountId = default(string), string diskType = default(string), bool? resyncRequired = default(bool?), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), double? dataPendingInStagingStorageAccountInMB = default(double?), double? dataPendingAtSourceAgentInMB = default(double?), string diskState = default(string), IList allowedDiskLevelOperation = default(IList), bool? isDiskEncrypted = default(bool?), string secretIdentifier = default(string), string dekKeyVaultArmId = default(string), bool? isDiskKeyEncrypted = default(bool?), string keyIdentifier = default(string), string kekKeyVaultArmId = default(string), string failoverDiskName = default(string), string tfoDiskName = default(string)) { DiskUri = diskUri; RecoveryAzureStorageAccountId = recoveryAzureStorageAccountId; @@ -92,6 +96,8 @@ public A2AProtectedDiskDetails() IsDiskKeyEncrypted = isDiskKeyEncrypted; KeyIdentifier = keyIdentifier; KekKeyVaultArmId = kekKeyVaultArmId; + FailoverDiskName = failoverDiskName; + TfoDiskName = tfoDiskName; CustomInit(); } @@ -232,5 +238,17 @@ public A2AProtectedDiskDetails() [JsonProperty(PropertyName = "kekKeyVaultArmId")] public string KekKeyVaultArmId { get; set; } + /// + /// Gets or sets the failover name for the managed disk. + /// + [JsonProperty(PropertyName = "failoverDiskName")] + public string FailoverDiskName { get; set; } + + /// + /// Gets or sets the test failover name for the managed disk. + /// + [JsonProperty(PropertyName = "tfoDiskName")] + public string TfoDiskName { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedManagedDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedManagedDiskDetails.cs index b774d7a56957..c2825bfc962d 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedManagedDiskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectedManagedDiskDetails.cs @@ -40,6 +40,8 @@ public A2AProtectedManagedDiskDetails() /// Id. /// Recovery replica disk Arm /// Id. + /// Recovery original target + /// disk Arm Id. /// The replica disk type. /// Its an optional value and will be same as source disk type if not /// user provided. @@ -48,6 +50,8 @@ public A2AProtectedManagedDiskDetails() /// disk type if not user provided. /// The recovery disk /// encryption set Id. + /// The primary disk + /// encryption set Id. /// The disk name. /// The disk capacity in /// bytes. @@ -84,15 +88,17 @@ public A2AProtectedManagedDiskDetails() /// disk. /// The test failover name for the managed /// disk. - public A2AProtectedManagedDiskDetails(string diskId = default(string), string recoveryResourceGroupId = default(string), string recoveryTargetDiskId = default(string), string recoveryReplicaDiskId = default(string), string recoveryReplicaDiskAccountType = default(string), string recoveryTargetDiskAccountType = default(string), string recoveryDiskEncryptionSetId = default(string), string diskName = default(string), long? diskCapacityInBytes = default(long?), string primaryStagingAzureStorageAccountId = default(string), string diskType = default(string), bool? resyncRequired = default(bool?), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), double? dataPendingInStagingStorageAccountInMB = default(double?), double? dataPendingAtSourceAgentInMB = default(double?), string diskState = default(string), IList allowedDiskLevelOperation = default(IList), bool? isDiskEncrypted = default(bool?), string secretIdentifier = default(string), string dekKeyVaultArmId = default(string), bool? isDiskKeyEncrypted = default(bool?), string keyIdentifier = default(string), string kekKeyVaultArmId = default(string), string failoverDiskName = default(string), string tfoDiskName = default(string)) + public A2AProtectedManagedDiskDetails(string diskId = default(string), string recoveryResourceGroupId = default(string), string recoveryTargetDiskId = default(string), string recoveryReplicaDiskId = default(string), string recoveryOrignalTargetDiskId = default(string), string recoveryReplicaDiskAccountType = default(string), string recoveryTargetDiskAccountType = default(string), string recoveryDiskEncryptionSetId = default(string), string primaryDiskEncryptionSetId = default(string), string diskName = default(string), long? diskCapacityInBytes = default(long?), string primaryStagingAzureStorageAccountId = default(string), string diskType = default(string), bool? resyncRequired = default(bool?), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), double? dataPendingInStagingStorageAccountInMB = default(double?), double? dataPendingAtSourceAgentInMB = default(double?), string diskState = default(string), IList allowedDiskLevelOperation = default(IList), bool? isDiskEncrypted = default(bool?), string secretIdentifier = default(string), string dekKeyVaultArmId = default(string), bool? isDiskKeyEncrypted = default(bool?), string keyIdentifier = default(string), string kekKeyVaultArmId = default(string), string failoverDiskName = default(string), string tfoDiskName = default(string)) { DiskId = diskId; RecoveryResourceGroupId = recoveryResourceGroupId; RecoveryTargetDiskId = recoveryTargetDiskId; RecoveryReplicaDiskId = recoveryReplicaDiskId; + RecoveryOrignalTargetDiskId = recoveryOrignalTargetDiskId; RecoveryReplicaDiskAccountType = recoveryReplicaDiskAccountType; RecoveryTargetDiskAccountType = recoveryTargetDiskAccountType; RecoveryDiskEncryptionSetId = recoveryDiskEncryptionSetId; + PrimaryDiskEncryptionSetId = primaryDiskEncryptionSetId; DiskName = diskName; DiskCapacityInBytes = diskCapacityInBytes; PrimaryStagingAzureStorageAccountId = primaryStagingAzureStorageAccountId; @@ -144,6 +150,12 @@ public A2AProtectedManagedDiskDetails() [JsonProperty(PropertyName = "recoveryReplicaDiskId")] public string RecoveryReplicaDiskId { get; set; } + /// + /// Gets or sets recovery original target disk Arm Id. + /// + [JsonProperty(PropertyName = "recoveryOrignalTargetDiskId")] + public string RecoveryOrignalTargetDiskId { get; set; } + /// /// Gets or sets the replica disk type. Its an optional value and will /// be same as source disk type if not user provided. @@ -164,6 +176,12 @@ public A2AProtectedManagedDiskDetails() [JsonProperty(PropertyName = "recoveryDiskEncryptionSetId")] public string RecoveryDiskEncryptionSetId { get; set; } + /// + /// Gets or sets the primary disk encryption set Id. + /// + [JsonProperty(PropertyName = "primaryDiskEncryptionSetId")] + public string PrimaryDiskEncryptionSetId { get; set; } + /// /// Gets or sets the disk name. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectionIntentDiskInputDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectionIntentDiskInputDetails.cs new file mode 100644 index 000000000000..7a654e3f1803 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectionIntentDiskInputDetails.cs @@ -0,0 +1,85 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Azure VM unmanaged disk input details. + /// + public partial class A2AProtectionIntentDiskInputDetails + { + /// + /// Initializes a new instance of the + /// A2AProtectionIntentDiskInputDetails class. + /// + public A2AProtectionIntentDiskInputDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// A2AProtectionIntentDiskInputDetails class. + /// + /// The disk Uri. + /// The recovery + /// VHD storage account input. + /// The primary + /// staging storage account input. + public A2AProtectionIntentDiskInputDetails(string diskUri, StorageAccountCustomDetails recoveryAzureStorageAccountCustomInput = default(StorageAccountCustomDetails), StorageAccountCustomDetails primaryStagingStorageAccountCustomInput = default(StorageAccountCustomDetails)) + { + DiskUri = diskUri; + RecoveryAzureStorageAccountCustomInput = recoveryAzureStorageAccountCustomInput; + PrimaryStagingStorageAccountCustomInput = primaryStagingStorageAccountCustomInput; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the disk Uri. + /// + [JsonProperty(PropertyName = "diskUri")] + public string DiskUri { get; set; } + + /// + /// Gets or sets the recovery VHD storage account input. + /// + [JsonProperty(PropertyName = "recoveryAzureStorageAccountCustomInput")] + public StorageAccountCustomDetails RecoveryAzureStorageAccountCustomInput { get; set; } + + /// + /// Gets or sets the primary staging storage account input. + /// + [JsonProperty(PropertyName = "primaryStagingStorageAccountCustomInput")] + public StorageAccountCustomDetails PrimaryStagingStorageAccountCustomInput { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (DiskUri == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DiskUri"); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectionIntentManagedDiskInputDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectionIntentManagedDiskInputDetails.cs new file mode 100644 index 000000000000..6bcaad089093 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectionIntentManagedDiskInputDetails.cs @@ -0,0 +1,126 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Azure VM managed disk input details. + /// + public partial class A2AProtectionIntentManagedDiskInputDetails + { + /// + /// Initializes a new instance of the + /// A2AProtectionIntentManagedDiskInputDetails class. + /// + public A2AProtectionIntentManagedDiskInputDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// A2AProtectionIntentManagedDiskInputDetails class. + /// + /// The disk Id. + /// The primary + /// staging storage account input. + /// The recovery + /// resource group input. + /// The replica disk type. + /// Its an optional value and will be same as source disk type if not + /// user provided. + /// The target disk type + /// after failover. Its an optional value and will be same as source + /// disk type if not user provided. + /// The recovery disk + /// encryption set Id. + /// The recovery disk encryption + /// information (for one / single pass flows). + public A2AProtectionIntentManagedDiskInputDetails(string diskId, StorageAccountCustomDetails primaryStagingStorageAccountCustomInput = default(StorageAccountCustomDetails), RecoveryResourceGroupCustomDetails recoveryResourceGroupCustomInput = default(RecoveryResourceGroupCustomDetails), string recoveryReplicaDiskAccountType = default(string), string recoveryTargetDiskAccountType = default(string), string recoveryDiskEncryptionSetId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo)) + { + DiskId = diskId; + PrimaryStagingStorageAccountCustomInput = primaryStagingStorageAccountCustomInput; + RecoveryResourceGroupCustomInput = recoveryResourceGroupCustomInput; + RecoveryReplicaDiskAccountType = recoveryReplicaDiskAccountType; + RecoveryTargetDiskAccountType = recoveryTargetDiskAccountType; + RecoveryDiskEncryptionSetId = recoveryDiskEncryptionSetId; + DiskEncryptionInfo = diskEncryptionInfo; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the disk Id. + /// + [JsonProperty(PropertyName = "diskId")] + public string DiskId { get; set; } + + /// + /// Gets or sets the primary staging storage account input. + /// + [JsonProperty(PropertyName = "primaryStagingStorageAccountCustomInput")] + public StorageAccountCustomDetails PrimaryStagingStorageAccountCustomInput { get; set; } + + /// + /// Gets or sets the recovery resource group input. + /// + [JsonProperty(PropertyName = "recoveryResourceGroupCustomInput")] + public RecoveryResourceGroupCustomDetails RecoveryResourceGroupCustomInput { get; set; } + + /// + /// Gets or sets the replica disk type. Its an optional value and will + /// be same as source disk type if not user provided. + /// + [JsonProperty(PropertyName = "recoveryReplicaDiskAccountType")] + public string RecoveryReplicaDiskAccountType { get; set; } + + /// + /// Gets or sets the target disk type after failover. Its an optional + /// value and will be same as source disk type if not user provided. + /// + [JsonProperty(PropertyName = "recoveryTargetDiskAccountType")] + public string RecoveryTargetDiskAccountType { get; set; } + + /// + /// Gets or sets the recovery disk encryption set Id. + /// + [JsonProperty(PropertyName = "recoveryDiskEncryptionSetId")] + public string RecoveryDiskEncryptionSetId { get; set; } + + /// + /// Gets or sets the recovery disk encryption information (for one / + /// single pass flows). + /// + [JsonProperty(PropertyName = "diskEncryptionInfo")] + public DiskEncryptionInfo DiskEncryptionInfo { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (DiskId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DiskId"); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectionIntentOSManagedDiskInputDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectionIntentOSManagedDiskInputDetails.cs new file mode 100644 index 000000000000..8426641efe86 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectionIntentOSManagedDiskInputDetails.cs @@ -0,0 +1,104 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Azure VM OS managed disk input details. + /// + public partial class A2AProtectionIntentOSManagedDiskInputDetails + { + /// + /// Initializes a new instance of the + /// A2AProtectionIntentOSManagedDiskInputDetails class. + /// + public A2AProtectionIntentOSManagedDiskInputDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// A2AProtectionIntentOSManagedDiskInputDetails class. + /// + /// The primary + /// staging storage account input. + /// The recovery + /// resource group input. + /// The replica disk type. + /// Its an optional value and will be same as source disk type if not + /// user provided. + /// The target disk type + /// after failover. Its an optional value and will be same as source + /// disk type if not user provided. + /// The recovery disk + /// encryption set Id. + /// The recovery disk encryption + /// information (for one / single pass flows). + public A2AProtectionIntentOSManagedDiskInputDetails(StorageAccountCustomDetails primaryStagingStorageAccountCustomInput = default(StorageAccountCustomDetails), RecoveryResourceGroupCustomDetails recoveryResourceGroupCustomInput = default(RecoveryResourceGroupCustomDetails), string recoveryReplicaDiskAccountType = default(string), string recoveryTargetDiskAccountType = default(string), string recoveryDiskEncryptionSetId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo)) + { + PrimaryStagingStorageAccountCustomInput = primaryStagingStorageAccountCustomInput; + RecoveryResourceGroupCustomInput = recoveryResourceGroupCustomInput; + RecoveryReplicaDiskAccountType = recoveryReplicaDiskAccountType; + RecoveryTargetDiskAccountType = recoveryTargetDiskAccountType; + RecoveryDiskEncryptionSetId = recoveryDiskEncryptionSetId; + DiskEncryptionInfo = diskEncryptionInfo; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the primary staging storage account input. + /// + [JsonProperty(PropertyName = "primaryStagingStorageAccountCustomInput")] + public StorageAccountCustomDetails PrimaryStagingStorageAccountCustomInput { get; set; } + + /// + /// Gets or sets the recovery resource group input. + /// + [JsonProperty(PropertyName = "recoveryResourceGroupCustomInput")] + public RecoveryResourceGroupCustomDetails RecoveryResourceGroupCustomInput { get; set; } + + /// + /// Gets or sets the replica disk type. Its an optional value and will + /// be same as source disk type if not user provided. + /// + [JsonProperty(PropertyName = "recoveryReplicaDiskAccountType")] + public string RecoveryReplicaDiskAccountType { get; set; } + + /// + /// Gets or sets the target disk type after failover. Its an optional + /// value and will be same as source disk type if not user provided. + /// + [JsonProperty(PropertyName = "recoveryTargetDiskAccountType")] + public string RecoveryTargetDiskAccountType { get; set; } + + /// + /// Gets or sets the recovery disk encryption set Id. + /// + [JsonProperty(PropertyName = "recoveryDiskEncryptionSetId")] + public string RecoveryDiskEncryptionSetId { get; set; } + + /// + /// Gets or sets the recovery disk encryption information (for one / + /// single pass flows). + /// + [JsonProperty(PropertyName = "diskEncryptionInfo")] + public DiskEncryptionInfo DiskEncryptionInfo { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ARecoveryAvailabilityType.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ARecoveryAvailabilityType.cs new file mode 100644 index 000000000000..56e7dcf84c88 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ARecoveryAvailabilityType.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + + /// + /// Defines values for A2ARecoveryAvailabilityType. + /// + public static class A2ARecoveryAvailabilityType + { + public const string Single = "Single"; + public const string AvailabilitySet = "AvailabilitySet"; + public const string AvailabilityZone = "AvailabilityZone"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationDetails.cs index 84b86fb23e4d..00cbb73d00d4 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationDetails.cs @@ -34,14 +34,14 @@ public A2AReplicationDetails() /// /// The fabric specific object Id of the /// virtual machine. - /// The initial primary - /// fabric location. - /// The initial recovery - /// fabric location. /// The initial primary availability /// zone. + /// The initial primary + /// fabric location. /// The initial recovery availability /// zone. + /// The initial recovery + /// fabric location. /// The multi vm group Id. /// The multi vm group name. /// Whether Multi VM group is @@ -86,8 +86,13 @@ public A2AReplicationDetails() /// The last heartbeat received from the /// source server. /// The agent version. + /// Agent expiry date. /// A value indicating /// whether replication agent update is required. + /// Agent certificate expiry + /// date. + /// A value + /// indicating whether agent certificate update is required. /// The recovery fabric object /// Id. /// The protection state for the @@ -105,21 +110,30 @@ public A2AReplicationDetails() /// The last RPO value in seconds. /// The time (in UTC) when the last /// RPO value was calculated by Protection Service. + /// The primary availability + /// zone. /// The recovery availability /// zone. /// The encryption type of the VM. /// Possible values include: 'NotEncrypted', 'OnePassEncrypted', /// 'TwoPassEncrypted' - /// The test failover VM name. + /// The test failover vm name. + /// The recovery azure + /// generation. /// The recovery /// proximity placement group Id. - public A2AReplicationDetails(string fabricObjectId = default(string), string initialPrimaryFabricLocation = default(string), string initialRecoveryFabricLocation = default(string), string initialPrimaryZone = default(string), string initialRecoveryZone = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string multiVmGroupCreateOption = default(string), string managementId = default(string), IList protectedDisks = default(IList), IList unprotectedDisks = default(IList), IList protectedManagedDisks = default(IList), string recoveryBootDiagStorageAccountId = default(string), string primaryFabricLocation = default(string), string recoveryFabricLocation = default(string), string osType = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureVMName = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryCloudService = default(string), string recoveryAvailabilitySet = default(string), string selectedRecoveryAzureNetworkId = default(string), string selectedTfoAzureNetworkId = default(string), IList vmNics = default(IList), AzureToAzureVmSyncedConfigDetails vmSyncedConfigDetails = default(AzureToAzureVmSyncedConfigDetails), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string agentVersion = default(string), bool? isReplicationAgentUpdateRequired = default(bool?), string recoveryFabricObjectId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), string lifecycleId = default(string), string testFailoverRecoveryFabricObjectId = default(string), long? rpoInSeconds = default(long?), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), string recoveryAvailabilityZone = default(string), string vmEncryptionType = default(string), string tfoAzureVMName = default(string), string recoveryProximityPlacementGroupId = default(string)) + /// A value indicating whether + /// the auto protection is enabled. Possible values include: + /// 'Disabled', 'Enabled' + /// The recovery virtual + /// machine scale set id. + public A2AReplicationDetails(string fabricObjectId = default(string), string initialPrimaryZone = default(string), string initialPrimaryFabricLocation = default(string), string initialRecoveryZone = default(string), string initialRecoveryFabricLocation = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string multiVmGroupCreateOption = default(string), string managementId = default(string), IList protectedDisks = default(IList), IList unprotectedDisks = default(IList), IList protectedManagedDisks = default(IList), string recoveryBootDiagStorageAccountId = default(string), string primaryFabricLocation = default(string), string recoveryFabricLocation = default(string), string osType = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureVMName = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryCloudService = default(string), string recoveryAvailabilitySet = default(string), string selectedRecoveryAzureNetworkId = default(string), string selectedTfoAzureNetworkId = default(string), IList vmNics = default(IList), AzureToAzureVmSyncedConfigDetails vmSyncedConfigDetails = default(AzureToAzureVmSyncedConfigDetails), int? monitoringPercentageCompletion = default(int?), string monitoringJobType = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string agentVersion = default(string), System.DateTime? agentExpiryDate = default(System.DateTime?), bool? isReplicationAgentUpdateRequired = default(bool?), System.DateTime? agentCertificateExpiryDate = default(System.DateTime?), bool? isReplicationAgentCertificateUpdateRequired = default(bool?), string recoveryFabricObjectId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), string lifecycleId = default(string), string testFailoverRecoveryFabricObjectId = default(string), long? rpoInSeconds = default(long?), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), string primaryAvailabilityZone = default(string), string recoveryAvailabilityZone = default(string), string vmEncryptionType = default(string), string tfoAzureVMName = default(string), string recoveryAzureGeneration = default(string), string recoveryProximityPlacementGroupId = default(string), string autoProtectionOfDataDisk = default(string), string recoveryVirtualMachineScaleSetId = default(string)) { FabricObjectId = fabricObjectId; - InitialPrimaryFabricLocation = initialPrimaryFabricLocation; - InitialRecoveryFabricLocation = initialRecoveryFabricLocation; InitialPrimaryZone = initialPrimaryZone; + InitialPrimaryFabricLocation = initialPrimaryFabricLocation; InitialRecoveryZone = initialRecoveryZone; + InitialRecoveryFabricLocation = initialRecoveryFabricLocation; MultiVmGroupId = multiVmGroupId; MultiVmGroupName = multiVmGroupName; MultiVmGroupCreateOption = multiVmGroupCreateOption; @@ -144,7 +158,10 @@ public A2AReplicationDetails() MonitoringJobType = monitoringJobType; LastHeartbeat = lastHeartbeat; AgentVersion = agentVersion; + AgentExpiryDate = agentExpiryDate; IsReplicationAgentUpdateRequired = isReplicationAgentUpdateRequired; + AgentCertificateExpiryDate = agentCertificateExpiryDate; + IsReplicationAgentCertificateUpdateRequired = isReplicationAgentCertificateUpdateRequired; RecoveryFabricObjectId = recoveryFabricObjectId; VmProtectionState = vmProtectionState; VmProtectionStateDescription = vmProtectionStateDescription; @@ -152,10 +169,14 @@ public A2AReplicationDetails() TestFailoverRecoveryFabricObjectId = testFailoverRecoveryFabricObjectId; RpoInSeconds = rpoInSeconds; LastRpoCalculatedTime = lastRpoCalculatedTime; + PrimaryAvailabilityZone = primaryAvailabilityZone; RecoveryAvailabilityZone = recoveryAvailabilityZone; VmEncryptionType = vmEncryptionType; TfoAzureVMName = tfoAzureVMName; + RecoveryAzureGeneration = recoveryAzureGeneration; RecoveryProximityPlacementGroupId = recoveryProximityPlacementGroupId; + AutoProtectionOfDataDisk = autoProtectionOfDataDisk; + RecoveryVirtualMachineScaleSetId = recoveryVirtualMachineScaleSetId; CustomInit(); } @@ -170,30 +191,30 @@ public A2AReplicationDetails() [JsonProperty(PropertyName = "fabricObjectId")] public string FabricObjectId { get; set; } - /// - /// Gets the initial primary fabric location. - /// - [JsonProperty(PropertyName = "initialPrimaryFabricLocation")] - public string InitialPrimaryFabricLocation { get; private set; } - - /// - /// Gets the initial recovery fabric location. - /// - [JsonProperty(PropertyName = "initialRecoveryFabricLocation")] - public string InitialRecoveryFabricLocation { get; private set; } - /// /// Gets the initial primary availability zone. /// [JsonProperty(PropertyName = "initialPrimaryZone")] public string InitialPrimaryZone { get; private set; } + /// + /// Gets the initial primary fabric location. + /// + [JsonProperty(PropertyName = "initialPrimaryFabricLocation")] + public string InitialPrimaryFabricLocation { get; private set; } + /// /// Gets the initial recovery availability zone. /// [JsonProperty(PropertyName = "initialRecoveryZone")] public string InitialRecoveryZone { get; private set; } + /// + /// Gets the initial recovery fabric location. + /// + [JsonProperty(PropertyName = "initialRecoveryFabricLocation")] + public string InitialRecoveryFabricLocation { get; private set; } + /// /// Gets or sets the multi vm group Id. /// @@ -341,6 +362,12 @@ public A2AReplicationDetails() [JsonProperty(PropertyName = "agentVersion")] public string AgentVersion { get; set; } + /// + /// Gets or sets agent expiry date. + /// + [JsonProperty(PropertyName = "agentExpiryDate")] + public System.DateTime? AgentExpiryDate { get; set; } + /// /// Gets or sets a value indicating whether replication agent update is /// required. @@ -348,6 +375,19 @@ public A2AReplicationDetails() [JsonProperty(PropertyName = "isReplicationAgentUpdateRequired")] public bool? IsReplicationAgentUpdateRequired { get; set; } + /// + /// Gets agent certificate expiry date. + /// + [JsonProperty(PropertyName = "agentCertificateExpiryDate")] + public System.DateTime? AgentCertificateExpiryDate { get; private set; } + + /// + /// Gets or sets a value indicating whether agent certificate update is + /// required. + /// + [JsonProperty(PropertyName = "isReplicationAgentCertificateUpdateRequired")] + public bool? IsReplicationAgentCertificateUpdateRequired { get; set; } + /// /// Gets or sets the recovery fabric object Id. /// @@ -396,6 +436,12 @@ public A2AReplicationDetails() [JsonProperty(PropertyName = "lastRpoCalculatedTime")] public System.DateTime? LastRpoCalculatedTime { get; set; } + /// + /// Gets or sets the primary availability zone. + /// + [JsonProperty(PropertyName = "primaryAvailabilityZone")] + public string PrimaryAvailabilityZone { get; set; } + /// /// Gets or sets the recovery availability zone. /// @@ -410,16 +456,35 @@ public A2AReplicationDetails() public string VmEncryptionType { get; private set; } /// - /// Gets or sets the test failover VM name. + /// Gets or sets the test failover vm name. /// [JsonProperty(PropertyName = "tfoAzureVMName")] public string TfoAzureVMName { get; set; } + /// + /// Gets the recovery azure generation. + /// + [JsonProperty(PropertyName = "recoveryAzureGeneration")] + public string RecoveryAzureGeneration { get; private set; } + /// /// Gets or sets the recovery proximity placement group Id. /// [JsonProperty(PropertyName = "recoveryProximityPlacementGroupId")] public string RecoveryProximityPlacementGroupId { get; set; } + /// + /// Gets or sets a value indicating whether the auto protection is + /// enabled. Possible values include: 'Disabled', 'Enabled' + /// + [JsonProperty(PropertyName = "autoProtectionOfDataDisk")] + public string AutoProtectionOfDataDisk { get; set; } + + /// + /// Gets or sets the recovery virtual machine scale set id. + /// + [JsonProperty(PropertyName = "recoveryVirtualMachineScaleSetId")] + public string RecoveryVirtualMachineScaleSetId { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationIntentDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationIntentDetails.cs new file mode 100644 index 000000000000..acec692bd0de --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationIntentDetails.cs @@ -0,0 +1,253 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A2A provider specific settings. + /// + [Newtonsoft.Json.JsonObject("A2A")] + public partial class A2AReplicationIntentDetails : ReplicationProtectionIntentProviderSpecificSettings + { + /// + /// Initializes a new instance of the A2AReplicationIntentDetails + /// class. + /// + public A2AReplicationIntentDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the A2AReplicationIntentDetails + /// class. + /// + /// The recovery availability + /// type of the virtual machine. + /// The fabric specific object Id of the + /// virtual machine. + /// The primary location for the virtual + /// machine. + /// The recovery location for the + /// virtual machine. + /// The recovery subscription Id + /// of the virtual machine. + /// The list of vm disk details. + /// The list of vm managed disk + /// details. + /// The recovery resource group + /// id. + /// The protection profile custom + /// details. + /// The primary staging + /// storage account details. + /// The recovery availability set + /// details. + /// The recovery virtual network + /// details. + /// The recovery + /// proximity placement group custom details. + /// A value indicating whether + /// the auto protection is enabled. Possible values include: + /// 'Disabled', 'Enabled' + /// The multi vm group name. + /// The multi vm group id. + /// The boot diagnostic + /// storage account. + /// The recovery disk encryption + /// information (for two pass flows). + /// The recovery availability + /// zone. + public A2AReplicationIntentDetails(string recoveryAvailabilityType, string fabricObjectId = default(string), string primaryLocation = default(string), string recoveryLocation = default(string), string recoverySubscriptionId = default(string), IList vmDisks = default(IList), IList vmManagedDisks = default(IList), string recoveryResourceGroupId = default(string), ProtectionProfileCustomDetails protectionProfile = default(ProtectionProfileCustomDetails), StorageAccountCustomDetails primaryStagingStorageAccount = default(StorageAccountCustomDetails), RecoveryAvailabilitySetCustomDetails recoveryAvailabilitySet = default(RecoveryAvailabilitySetCustomDetails), RecoveryVirtualNetworkCustomDetails recoveryVirtualNetwork = default(RecoveryVirtualNetworkCustomDetails), RecoveryProximityPlacementGroupCustomDetails recoveryProximityPlacementGroup = default(RecoveryProximityPlacementGroupCustomDetails), string autoProtectionOfDataDisk = default(string), string multiVmGroupName = default(string), string multiVmGroupId = default(string), StorageAccountCustomDetails recoveryBootDiagStorageAccount = default(StorageAccountCustomDetails), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo), string recoveryAvailabilityZone = default(string)) + { + FabricObjectId = fabricObjectId; + PrimaryLocation = primaryLocation; + RecoveryLocation = recoveryLocation; + RecoverySubscriptionId = recoverySubscriptionId; + VmDisks = vmDisks; + VmManagedDisks = vmManagedDisks; + RecoveryResourceGroupId = recoveryResourceGroupId; + ProtectionProfile = protectionProfile; + PrimaryStagingStorageAccount = primaryStagingStorageAccount; + RecoveryAvailabilitySet = recoveryAvailabilitySet; + RecoveryVirtualNetwork = recoveryVirtualNetwork; + RecoveryProximityPlacementGroup = recoveryProximityPlacementGroup; + AutoProtectionOfDataDisk = autoProtectionOfDataDisk; + MultiVmGroupName = multiVmGroupName; + MultiVmGroupId = multiVmGroupId; + RecoveryBootDiagStorageAccount = recoveryBootDiagStorageAccount; + DiskEncryptionInfo = diskEncryptionInfo; + RecoveryAvailabilityZone = recoveryAvailabilityZone; + RecoveryAvailabilityType = recoveryAvailabilityType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the fabric specific object Id of the virtual machine. + /// + [JsonProperty(PropertyName = "fabricObjectId")] + public string FabricObjectId { get; set; } + + /// + /// Gets or sets the primary location for the virtual machine. + /// + [JsonProperty(PropertyName = "primaryLocation")] + public string PrimaryLocation { get; set; } + + /// + /// Gets or sets the recovery location for the virtual machine. + /// + [JsonProperty(PropertyName = "recoveryLocation")] + public string RecoveryLocation { get; set; } + + /// + /// Gets or sets the recovery subscription Id of the virtual machine. + /// + [JsonProperty(PropertyName = "recoverySubscriptionId")] + public string RecoverySubscriptionId { get; set; } + + /// + /// Gets or sets the list of vm disk details. + /// + [JsonProperty(PropertyName = "vmDisks")] + public IList VmDisks { get; set; } + + /// + /// Gets or sets the list of vm managed disk details. + /// + [JsonProperty(PropertyName = "vmManagedDisks")] + public IList VmManagedDisks { get; set; } + + /// + /// Gets or sets the recovery resource group id. + /// + [JsonProperty(PropertyName = "recoveryResourceGroupId")] + public string RecoveryResourceGroupId { get; set; } + + /// + /// Gets or sets the protection profile custom details. + /// + [JsonProperty(PropertyName = "protectionProfile")] + public ProtectionProfileCustomDetails ProtectionProfile { get; set; } + + /// + /// Gets or sets the primary staging storage account details. + /// + [JsonProperty(PropertyName = "primaryStagingStorageAccount")] + public StorageAccountCustomDetails PrimaryStagingStorageAccount { get; set; } + + /// + /// Gets or sets the recovery availability set details. + /// + [JsonProperty(PropertyName = "recoveryAvailabilitySet")] + public RecoveryAvailabilitySetCustomDetails RecoveryAvailabilitySet { get; set; } + + /// + /// Gets or sets the recovery virtual network details. + /// + [JsonProperty(PropertyName = "recoveryVirtualNetwork")] + public RecoveryVirtualNetworkCustomDetails RecoveryVirtualNetwork { get; set; } + + /// + /// Gets or sets the recovery proximity placement group custom details. + /// + [JsonProperty(PropertyName = "recoveryProximityPlacementGroup")] + public RecoveryProximityPlacementGroupCustomDetails RecoveryProximityPlacementGroup { get; set; } + + /// + /// Gets or sets a value indicating whether the auto protection is + /// enabled. Possible values include: 'Disabled', 'Enabled' + /// + [JsonProperty(PropertyName = "autoProtectionOfDataDisk")] + public string AutoProtectionOfDataDisk { get; set; } + + /// + /// Gets or sets the multi vm group name. + /// + [JsonProperty(PropertyName = "multiVmGroupName")] + public string MultiVmGroupName { get; set; } + + /// + /// Gets or sets the multi vm group id. + /// + [JsonProperty(PropertyName = "multiVmGroupId")] + public string MultiVmGroupId { get; set; } + + /// + /// Gets or sets the boot diagnostic storage account. + /// + [JsonProperty(PropertyName = "recoveryBootDiagStorageAccount")] + public StorageAccountCustomDetails RecoveryBootDiagStorageAccount { get; set; } + + /// + /// Gets or sets the recovery disk encryption information (for two pass + /// flows). + /// + [JsonProperty(PropertyName = "diskEncryptionInfo")] + public DiskEncryptionInfo DiskEncryptionInfo { get; set; } + + /// + /// Gets or sets the recovery availability zone. + /// + [JsonProperty(PropertyName = "recoveryAvailabilityZone")] + public string RecoveryAvailabilityZone { get; set; } + + /// + /// Gets or sets the recovery availability type of the virtual machine. + /// + [JsonProperty(PropertyName = "recoveryAvailabilityType")] + public string RecoveryAvailabilityType { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (RecoveryAvailabilityType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryAvailabilityType"); + } + if (VmDisks != null) + { + foreach (var element in VmDisks) + { + if (element != null) + { + element.Validate(); + } + } + } + if (VmManagedDisks != null) + { + foreach (var element1 in VmManagedDisks) + { + if (element1 != null) + { + element1.Validate(); + } + } + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ASwitchProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ASwitchProtectionInput.cs index 12342f4c29be..7ba42f8e95e9 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ASwitchProtectionInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ASwitchProtectionInput.cs @@ -43,14 +43,18 @@ public A2ASwitchProtectionInput() /// Valid for V1 scenarios. /// The recovery availability /// set. - /// The recovery - /// proximity placement group Id. /// The Policy Id. /// The boot diagnostic /// storage account. + /// The recovery availability + /// zone. + /// The recovery + /// proximity placement group Id. + /// The virtual machine + /// scale set id. /// The recovery disk encryption /// information. - public A2ASwitchProtectionInput(string recoveryContainerId = default(string), IList vmDisks = default(IList), IList vmManagedDisks = default(IList), string recoveryResourceGroupId = default(string), string recoveryCloudServiceId = default(string), string recoveryAvailabilitySetId = default(string), string recoveryProximityPlacementGroupId = default(string), string policyId = default(string), string recoveryBootDiagStorageAccountId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo)) + public A2ASwitchProtectionInput(string recoveryContainerId = default(string), IList vmDisks = default(IList), IList vmManagedDisks = default(IList), string recoveryResourceGroupId = default(string), string recoveryCloudServiceId = default(string), string recoveryAvailabilitySetId = default(string), string policyId = default(string), string recoveryBootDiagStorageAccountId = default(string), string recoveryAvailabilityZone = default(string), string recoveryProximityPlacementGroupId = default(string), string recoveryVirtualMachineScaleSetId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo)) { RecoveryContainerId = recoveryContainerId; VmDisks = vmDisks; @@ -58,9 +62,11 @@ public A2ASwitchProtectionInput() RecoveryResourceGroupId = recoveryResourceGroupId; RecoveryCloudServiceId = recoveryCloudServiceId; RecoveryAvailabilitySetId = recoveryAvailabilitySetId; - RecoveryProximityPlacementGroupId = recoveryProximityPlacementGroupId; PolicyId = policyId; RecoveryBootDiagStorageAccountId = recoveryBootDiagStorageAccountId; + RecoveryAvailabilityZone = recoveryAvailabilityZone; + RecoveryProximityPlacementGroupId = recoveryProximityPlacementGroupId; + RecoveryVirtualMachineScaleSetId = recoveryVirtualMachineScaleSetId; DiskEncryptionInfo = diskEncryptionInfo; CustomInit(); } @@ -107,12 +113,6 @@ public A2ASwitchProtectionInput() [JsonProperty(PropertyName = "recoveryAvailabilitySetId")] public string RecoveryAvailabilitySetId { get; set; } - /// - /// Gets or sets the recovery proximity placement group Id. - /// - [JsonProperty(PropertyName = "recoveryProximityPlacementGroupId")] - public string RecoveryProximityPlacementGroupId { get; set; } - /// /// Gets or sets the Policy Id. /// @@ -125,6 +125,24 @@ public A2ASwitchProtectionInput() [JsonProperty(PropertyName = "recoveryBootDiagStorageAccountId")] public string RecoveryBootDiagStorageAccountId { get; set; } + /// + /// Gets or sets the recovery availability zone. + /// + [JsonProperty(PropertyName = "recoveryAvailabilityZone")] + public string RecoveryAvailabilityZone { get; set; } + + /// + /// Gets or sets the recovery proximity placement group Id. + /// + [JsonProperty(PropertyName = "recoveryProximityPlacementGroupId")] + public string RecoveryProximityPlacementGroupId { get; set; } + + /// + /// Gets or sets the virtual machine scale set id. + /// + [JsonProperty(PropertyName = "recoveryVirtualMachineScaleSetId")] + public string RecoveryVirtualMachineScaleSetId { get; set; } + /// /// Gets or sets the recovery disk encryption information. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ATestFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ATestFailoverInput.cs new file mode 100644 index 000000000000..c162d5c6c7db --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ATestFailoverInput.cs @@ -0,0 +1,66 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A2A provider specific input for test failover. + /// + [Newtonsoft.Json.JsonObject("A2A")] + public partial class A2ATestFailoverInput : TestFailoverProviderSpecificInput + { + /// + /// Initializes a new instance of the A2ATestFailoverInput class. + /// + public A2ATestFailoverInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the A2ATestFailoverInput class. + /// + /// The recovery point id to be passed to + /// test failover to a particular recovery point. In case of latest + /// recovery point, null should be passed. + /// A value indicating whether + /// to use recovery cloud service for TFO or not. + public A2ATestFailoverInput(string recoveryPointId = default(string), string cloudServiceCreationOption = default(string)) + { + RecoveryPointId = recoveryPointId; + CloudServiceCreationOption = cloudServiceCreationOption; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the recovery point id to be passed to test failover to + /// a particular recovery point. In case of latest recovery point, null + /// should be passed. + /// + [JsonProperty(PropertyName = "recoveryPointId")] + public string RecoveryPointId { get; set; } + + /// + /// Gets or sets a value indicating whether to use recovery cloud + /// service for TFO or not. + /// + [JsonProperty(PropertyName = "cloudServiceCreationOption")] + public string CloudServiceCreationOption { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AFailoverProviderInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUnplannedFailoverInput.cs similarity index 76% rename from sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AFailoverProviderInput.cs rename to sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUnplannedFailoverInput.cs index 1e9ed33b28e9..a08da451d866 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AFailoverProviderInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUnplannedFailoverInput.cs @@ -14,28 +14,28 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// A2A provider specific input for failover. + /// A2A provider specific input for unplanned failover. /// [Newtonsoft.Json.JsonObject("A2A")] - public partial class A2AFailoverProviderInput : ProviderSpecificFailoverInput + public partial class A2AUnplannedFailoverInput : UnplannedFailoverProviderSpecificInput { /// - /// Initializes a new instance of the A2AFailoverProviderInput class. + /// Initializes a new instance of the A2AUnplannedFailoverInput class. /// - public A2AFailoverProviderInput() + public A2AUnplannedFailoverInput() { CustomInit(); } /// - /// Initializes a new instance of the A2AFailoverProviderInput class. + /// Initializes a new instance of the A2AUnplannedFailoverInput class. /// /// The recovery point id to be passed to /// failover to a particular recovery point. In case of latest recovery /// point, null should be passed. /// A value indicating whether - /// to use recovery cloud service for TFO or not. - public A2AFailoverProviderInput(string recoveryPointId = default(string), string cloudServiceCreationOption = default(string)) + /// to use recovery cloud service for failover or not. + public A2AUnplannedFailoverInput(string recoveryPointId = default(string), string cloudServiceCreationOption = default(string)) { RecoveryPointId = recoveryPointId; CloudServiceCreationOption = cloudServiceCreationOption; @@ -57,7 +57,7 @@ public A2AFailoverProviderInput() /// /// Gets or sets a value indicating whether to use recovery cloud - /// service for TFO or not. + /// service for failover or not. /// [JsonProperty(PropertyName = "cloudServiceCreationOption")] public string CloudServiceCreationOption { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUnprotectedDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUnprotectedDiskDetails.cs index 2619ca0075e7..62057a109977 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUnprotectedDiskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUnprotectedDiskDetails.cs @@ -31,9 +31,13 @@ public A2AUnprotectedDiskDetails() /// /// The source lun Id for the data /// disk. - public A2AUnprotectedDiskDetails(int? diskLunId = default(int?)) + /// A value indicating whether + /// the disk auto protection is enabled. Possible values include: + /// 'Disabled', 'Enabled' + public A2AUnprotectedDiskDetails(int? diskLunId = default(int?), string diskAutoProtectionStatus = default(string)) { DiskLunId = diskLunId; + DiskAutoProtectionStatus = diskAutoProtectionStatus; CustomInit(); } @@ -48,5 +52,12 @@ public A2AUnprotectedDiskDetails() [JsonProperty(PropertyName = "diskLunId")] public int? DiskLunId { get; set; } + /// + /// Gets or sets a value indicating whether the disk auto protection is + /// enabled. Possible values include: 'Disabled', 'Enabled' + /// + [JsonProperty(PropertyName = "diskAutoProtectionStatus")] + public string DiskAutoProtectionStatus { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUpdateReplicationProtectedItemInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUpdateReplicationProtectedItemInput.cs index 4045a71afb7e..cc5ef32cffaa 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUpdateReplicationProtectedItemInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUpdateReplicationProtectedItemInput.cs @@ -44,19 +44,22 @@ public A2AUpdateReplicationProtectedItemInput() /// storage account. /// The recovery os disk encryption /// information. + /// The user given name for Test Failover + /// VM. /// The recovery /// proximity placement group Id. - /// The user given name for test failover - /// VM. - public A2AUpdateReplicationProtectedItemInput(string recoveryCloudServiceId = default(string), string recoveryResourceGroupId = default(string), IList managedDiskUpdateDetails = default(IList), string recoveryBootDiagStorageAccountId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo), string recoveryProximityPlacementGroupId = default(string), string tfoAzureVMName = default(string)) + /// The recovery virtual + /// machine scale set Id. + public A2AUpdateReplicationProtectedItemInput(string recoveryCloudServiceId = default(string), string recoveryResourceGroupId = default(string), IList managedDiskUpdateDetails = default(IList), string recoveryBootDiagStorageAccountId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo), string tfoAzureVMName = default(string), string recoveryProximityPlacementGroupId = default(string), string recoveryVirtualMachineScaleSetId = default(string)) { RecoveryCloudServiceId = recoveryCloudServiceId; RecoveryResourceGroupId = recoveryResourceGroupId; ManagedDiskUpdateDetails = managedDiskUpdateDetails; RecoveryBootDiagStorageAccountId = recoveryBootDiagStorageAccountId; DiskEncryptionInfo = diskEncryptionInfo; - RecoveryProximityPlacementGroupId = recoveryProximityPlacementGroupId; TfoAzureVMName = tfoAzureVMName; + RecoveryProximityPlacementGroupId = recoveryProximityPlacementGroupId; + RecoveryVirtualMachineScaleSetId = recoveryVirtualMachineScaleSetId; CustomInit(); } @@ -95,6 +98,12 @@ public A2AUpdateReplicationProtectedItemInput() [JsonProperty(PropertyName = "diskEncryptionInfo")] public DiskEncryptionInfo DiskEncryptionInfo { get; set; } + /// + /// Gets or sets the user given name for Test Failover VM. + /// + [JsonProperty(PropertyName = "tfoAzureVMName")] + public string TfoAzureVMName { get; set; } + /// /// Gets or sets the recovery proximity placement group Id. /// @@ -102,10 +111,10 @@ public A2AUpdateReplicationProtectedItemInput() public string RecoveryProximityPlacementGroupId { get; set; } /// - /// Gets or sets the user given name for test failover VM. + /// Gets or sets the recovery virtual machine scale set Id. /// - [JsonProperty(PropertyName = "tfoAzureVMName")] - public string TfoAzureVMName { get; set; } + [JsonProperty(PropertyName = "recoveryVirtualMachineScaleSetId")] + public string RecoveryVirtualMachineScaleSetId { get; set; } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmDiskInputDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmDiskInputDetails.cs index c3cda59a247b..2eba97ba3c0e 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmDiskInputDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmDiskInputDetails.cs @@ -10,11 +10,12 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; /// - /// Azure VM disk input details. + /// A2A disk input details. /// public partial class A2AVmDiskInputDetails { @@ -34,7 +35,7 @@ public A2AVmDiskInputDetails() /// storage account Id. /// The primary /// staging storage account Id. - public A2AVmDiskInputDetails(string diskUri = default(string), string recoveryAzureStorageAccountId = default(string), string primaryStagingAzureStorageAccountId = default(string)) + public A2AVmDiskInputDetails(string diskUri, string recoveryAzureStorageAccountId, string primaryStagingAzureStorageAccountId) { DiskUri = diskUri; RecoveryAzureStorageAccountId = recoveryAzureStorageAccountId; @@ -65,5 +66,26 @@ public A2AVmDiskInputDetails() [JsonProperty(PropertyName = "primaryStagingAzureStorageAccountId")] public string PrimaryStagingAzureStorageAccountId { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (DiskUri == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DiskUri"); + } + if (RecoveryAzureStorageAccountId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryAzureStorageAccountId"); + } + if (PrimaryStagingAzureStorageAccountId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PrimaryStagingAzureStorageAccountId"); + } + } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskInputDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskInputDetails.cs index e6006fabbafc..1348e6c18055 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskInputDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskInputDetails.cs @@ -10,11 +10,12 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; /// - /// Azure VM managed disk input details. + /// A2A managed disk input details. /// public partial class A2AVmManagedDiskInputDetails { @@ -46,7 +47,7 @@ public A2AVmManagedDiskInputDetails() /// encryption set Id. /// The recovery disk encryption /// information (for one / single pass flows). - public A2AVmManagedDiskInputDetails(string diskId = default(string), string primaryStagingAzureStorageAccountId = default(string), string recoveryResourceGroupId = default(string), string recoveryReplicaDiskAccountType = default(string), string recoveryTargetDiskAccountType = default(string), string recoveryDiskEncryptionSetId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo)) + public A2AVmManagedDiskInputDetails(string diskId, string primaryStagingAzureStorageAccountId, string recoveryResourceGroupId, string recoveryReplicaDiskAccountType = default(string), string recoveryTargetDiskAccountType = default(string), string recoveryDiskEncryptionSetId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo)) { DiskId = diskId; PrimaryStagingAzureStorageAccountId = primaryStagingAzureStorageAccountId; @@ -108,5 +109,26 @@ public A2AVmManagedDiskInputDetails() [JsonProperty(PropertyName = "diskEncryptionInfo")] public DiskEncryptionInfo DiskEncryptionInfo { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (DiskId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DiskId"); + } + if (PrimaryStagingAzureStorageAccountId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PrimaryStagingAzureStorageAccountId"); + } + if (RecoveryResourceGroupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryResourceGroupId"); + } + } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskUpdateDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskUpdateDetails.cs index fa03585d2cfd..918a8de29bb5 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskUpdateDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskUpdateDetails.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Azure VM managed disk update input details. + /// A2A Vm managed disk update details. /// public partial class A2AVmManagedDiskUpdateDetails { @@ -36,8 +36,8 @@ public A2AVmManagedDiskUpdateDetails() /// before failover. /// The replica disk type /// before failover. - /// The recovery disk encryption - /// information (for one / single pass flows). + /// The recovery os disk encryption + /// information. /// The target disk name for unplanned /// failover operation. /// The target disk name for test failover @@ -77,8 +77,7 @@ public A2AVmManagedDiskUpdateDetails() public string RecoveryReplicaDiskAccountType { get; set; } /// - /// Gets or sets the recovery disk encryption information (for one / - /// single pass flows). + /// Gets or sets the recovery os disk encryption information. /// [JsonProperty(PropertyName = "diskEncryptionInfo")] public DiskEncryptionInfo DiskEncryptionInfo { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AZoneDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AZoneDetails.cs new file mode 100644 index 000000000000..b4bc38b6a84a --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AZoneDetails.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Zone details data. + /// + public partial class A2AZoneDetails + { + /// + /// Initializes a new instance of the A2AZoneDetails class. + /// + public A2AZoneDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the A2AZoneDetails class. + /// + /// Source zone info. + /// The target zone info. + public A2AZoneDetails(string source = default(string), string target = default(string)) + { + Source = source; + Target = target; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets source zone info. + /// + [JsonProperty(PropertyName = "source")] + public string Source { get; set; } + + /// + /// Gets or sets the target zone info. + /// + [JsonProperty(PropertyName = "target")] + public string Target { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddDisksInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddDisksInput.cs index 4e6224bb5085..a0e278f9ee47 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddDisksInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddDisksInput.cs @@ -47,5 +47,18 @@ public AddDisksInput() [JsonProperty(PropertyName = "properties")] public AddDisksInputProperties Properties { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Properties != null) + { + Properties.Validate(); + } + } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddDisksInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddDisksInputProperties.cs index 65a8fcffe6e2..d9baff412a2f 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddDisksInputProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddDisksInputProperties.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -34,7 +35,7 @@ public AddDisksInputProperties() /// AzureEnableProtectionInput object. For San provider, it will be /// SanEnableProtectionInput object. For HyperVReplicaAzure provider, /// it can be null. - public AddDisksInputProperties(AddDisksProviderSpecificInput providerSpecificDetails = default(AddDisksProviderSpecificInput)) + public AddDisksInputProperties(AddDisksProviderSpecificInput providerSpecificDetails) { ProviderSpecificDetails = providerSpecificDetails; CustomInit(); @@ -54,5 +55,18 @@ public AddDisksInputProperties() [JsonProperty(PropertyName = "providerSpecificDetails")] public AddDisksProviderSpecificInput ProviderSpecificDetails { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ProviderSpecificDetails == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ProviderSpecificDetails"); + } + } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddRecoveryServicesProviderInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddRecoveryServicesProviderInputProperties.cs index 67b7b01b2476..021833f83923 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddRecoveryServicesProviderInputProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddRecoveryServicesProviderInputProperties.cs @@ -38,11 +38,19 @@ public AddRecoveryServicesProviderInputProperties() /// input for DRA authentication. /// The identity provider /// input for resource access. - public AddRecoveryServicesProviderInputProperties(string machineName, IdentityProviderInput authenticationIdentityInput, IdentityProviderInput resourceAccessIdentityInput) + /// The Id of the machine where the provider is + /// getting added. + /// The Bios Id of the machine. + /// The identity + /// provider input for data plane authentication. + public AddRecoveryServicesProviderInputProperties(string machineName, IdentityProviderInput authenticationIdentityInput, IdentityProviderInput resourceAccessIdentityInput, string machineId = default(string), string biosId = default(string), IdentityProviderInput dataPlaneAuthenticationIdentityInput = default(IdentityProviderInput)) { MachineName = machineName; + MachineId = machineId; + BiosId = biosId; AuthenticationIdentityInput = authenticationIdentityInput; ResourceAccessIdentityInput = resourceAccessIdentityInput; + DataPlaneAuthenticationIdentityInput = dataPlaneAuthenticationIdentityInput; CustomInit(); } @@ -58,6 +66,19 @@ public AddRecoveryServicesProviderInputProperties(string machineName, IdentityPr [JsonProperty(PropertyName = "machineName")] public string MachineName { get; set; } + /// + /// Gets or sets the Id of the machine where the provider is getting + /// added. + /// + [JsonProperty(PropertyName = "machineId")] + public string MachineId { get; set; } + + /// + /// Gets or sets the Bios Id of the machine. + /// + [JsonProperty(PropertyName = "biosId")] + public string BiosId { get; set; } + /// /// Gets or sets the identity provider input for DRA authentication. /// @@ -70,6 +91,13 @@ public AddRecoveryServicesProviderInputProperties(string machineName, IdentityPr [JsonProperty(PropertyName = "resourceAccessIdentityInput")] public IdentityProviderInput ResourceAccessIdentityInput { get; set; } + /// + /// Gets or sets the identity provider input for data plane + /// authentication. + /// + [JsonProperty(PropertyName = "dataPlaneAuthenticationIdentityInput")] + public IdentityProviderInput DataPlaneAuthenticationIdentityInput { get; set; } + /// /// Validate the object. /// @@ -98,6 +126,10 @@ public virtual void Validate() { ResourceAccessIdentityInput.Validate(); } + if (DataPlaneAuthenticationIdentityInput != null) + { + DataPlaneAuthenticationIdentityInput.Validate(); + } } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentDetails.cs new file mode 100644 index 000000000000..129b8b99e431 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentDetails.cs @@ -0,0 +1,87 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Agent details. + /// + public partial class AgentDetails + { + /// + /// Initializes a new instance of the AgentDetails class. + /// + public AgentDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AgentDetails class. + /// + /// The Id of the agent running on the + /// server. + /// The Id of the machine to which the agent is + /// registered. + /// The machine BIOS Id. + /// The machine FQDN. + /// The disks. + public AgentDetails(string agentId = default(string), string machineId = default(string), string biosId = default(string), string fqdn = default(string), IList disks = default(IList)) + { + AgentId = agentId; + MachineId = machineId; + BiosId = biosId; + Fqdn = fqdn; + Disks = disks; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the Id of the agent running on the server. + /// + [JsonProperty(PropertyName = "agentId")] + public string AgentId { get; private set; } + + /// + /// Gets the Id of the machine to which the agent is registered. + /// + [JsonProperty(PropertyName = "machineId")] + public string MachineId { get; private set; } + + /// + /// Gets the machine BIOS Id. + /// + [JsonProperty(PropertyName = "biosId")] + public string BiosId { get; private set; } + + /// + /// Gets the machine FQDN. + /// + [JsonProperty(PropertyName = "fqdn")] + public string Fqdn { get; private set; } + + /// + /// Gets the disks. + /// + [JsonProperty(PropertyName = "disks")] + public IList Disks { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentDiskDetails.cs new file mode 100644 index 000000000000..476dc7a684ff --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentDiskDetails.cs @@ -0,0 +1,84 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Agent disk details. + /// + public partial class AgentDiskDetails + { + /// + /// Initializes a new instance of the AgentDiskDetails class. + /// + public AgentDiskDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AgentDiskDetails class. + /// + /// The disk Id. + /// The disk name. + /// A value indicating whether the disk is the + /// OS disk. + /// The disk capacity in bytes. + /// The lun of disk. + public AgentDiskDetails(string diskId = default(string), string diskName = default(string), string isOSDisk = default(string), long? capacityInBytes = default(long?), int? lunId = default(int?)) + { + DiskId = diskId; + DiskName = diskName; + IsOSDisk = isOSDisk; + CapacityInBytes = capacityInBytes; + LunId = lunId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the disk Id. + /// + [JsonProperty(PropertyName = "diskId")] + public string DiskId { get; private set; } + + /// + /// Gets the disk name. + /// + [JsonProperty(PropertyName = "diskName")] + public string DiskName { get; private set; } + + /// + /// Gets a value indicating whether the disk is the OS disk. + /// + [JsonProperty(PropertyName = "isOSDisk")] + public string IsOSDisk { get; private set; } + + /// + /// Gets the disk capacity in bytes. + /// + [JsonProperty(PropertyName = "capacityInBytes")] + public long? CapacityInBytes { get; private set; } + + /// + /// Gets the lun of disk. + /// + [JsonProperty(PropertyName = "lunId")] + public int? LunId { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentUpgradeBlockedReason.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentUpgradeBlockedReason.cs new file mode 100644 index 000000000000..df00a65cbc53 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentUpgradeBlockedReason.cs @@ -0,0 +1,34 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + + /// + /// Defines values for AgentUpgradeBlockedReason. + /// + public static class AgentUpgradeBlockedReason + { + public const string AlreadyOnLatestVersion = "AlreadyOnLatestVersion"; + public const string RebootRequired = "RebootRequired"; + public const string AgentNoHeartbeat = "AgentNoHeartbeat"; + public const string RcmProxyNoHeartbeat = "RcmProxyNoHeartbeat"; + public const string ProcessServerNoHeartbeat = "ProcessServerNoHeartbeat"; + public const string IncompatibleApplianceVersion = "IncompatibleApplianceVersion"; + public const string NotProtected = "NotProtected"; + public const string UnsupportedProtectionScenario = "UnsupportedProtectionScenario"; + public const string DistroIsNotReported = "DistroIsNotReported"; + public const string DistroNotSupportedForUpgrade = "DistroNotSupportedForUpgrade"; + public const string MissingUpgradePath = "MissingUpgradePath"; + public const string InvalidAgentVersion = "InvalidAgentVersion"; + public const string InvalidDriverVersion = "InvalidDriverVersion"; + public const string Unknown = "Unknown"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ApplyRecoveryPointInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ApplyRecoveryPointInput.cs index f7ad85e5a4fa..ef7dabd5a7a6 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ApplyRecoveryPointInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ApplyRecoveryPointInput.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -31,7 +32,7 @@ public ApplyRecoveryPointInput() /// /// The input properties to apply recovery /// point. - public ApplyRecoveryPointInput(ApplyRecoveryPointInputProperties properties = default(ApplyRecoveryPointInputProperties)) + public ApplyRecoveryPointInput(ApplyRecoveryPointInputProperties properties) { Properties = properties; CustomInit(); @@ -48,5 +49,22 @@ public ApplyRecoveryPointInput() [JsonProperty(PropertyName = "properties")] public ApplyRecoveryPointInputProperties Properties { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Properties == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); + } + if (Properties != null) + { + Properties.Validate(); + } + } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ApplyRecoveryPointInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ApplyRecoveryPointInputProperties.cs index 6a036a119d23..8bc21a6c0104 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ApplyRecoveryPointInputProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ApplyRecoveryPointInputProperties.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -31,10 +32,10 @@ public ApplyRecoveryPointInputProperties() /// Initializes a new instance of the ApplyRecoveryPointInputProperties /// class. /// - /// The recovery point Id. /// Provider specific input for /// applying recovery point. - public ApplyRecoveryPointInputProperties(string recoveryPointId = default(string), ApplyRecoveryPointProviderSpecificInput providerSpecificDetails = default(ApplyRecoveryPointProviderSpecificInput)) + /// The recovery point Id. + public ApplyRecoveryPointInputProperties(ApplyRecoveryPointProviderSpecificInput providerSpecificDetails, string recoveryPointId = default(string)) { RecoveryPointId = recoveryPointId; ProviderSpecificDetails = providerSpecificDetails; @@ -58,5 +59,18 @@ public ApplyRecoveryPointInputProperties() [JsonProperty(PropertyName = "providerSpecificDetails")] public ApplyRecoveryPointProviderSpecificInput ProviderSpecificDetails { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ProviderSpecificDetails == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ProviderSpecificDetails"); + } + } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MultiVmSyncStatus.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AutoProtectionOfDataDisk.cs similarity index 85% rename from sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MultiVmSyncStatus.cs rename to sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AutoProtectionOfDataDisk.cs index 3193f4eae5dc..0d5b2f2e37db 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MultiVmSyncStatus.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AutoProtectionOfDataDisk.cs @@ -12,11 +12,11 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { /// - /// Defines values for MultiVmSyncStatus. + /// Defines values for AutoProtectionOfDataDisk. /// - public static class MultiVmSyncStatus + public static class AutoProtectionOfDataDisk { - public const string Enabled = "Enabled"; public const string Disabled = "Disabled"; + public const string Enabled = "Enabled"; } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureFabricSpecificDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureFabricSpecificDetails.cs index ac72ec3fd2ae..a2393d0986ff 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureFabricSpecificDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureFabricSpecificDetails.cs @@ -35,10 +35,12 @@ public AzureFabricSpecificDetails() /// The Location for the Azure fabric. /// The container Ids for the Azure /// fabric. - public AzureFabricSpecificDetails(string location = default(string), IList containerIds = default(IList)) + /// The zones. + public AzureFabricSpecificDetails(string location = default(string), IList containerIds = default(IList), IList zones = default(IList)) { Location = location; ContainerIds = containerIds; + Zones = zones; CustomInit(); } @@ -59,5 +61,11 @@ public AzureFabricSpecificDetails() [JsonProperty(PropertyName = "containerIds")] public IList ContainerIds { get; set; } + /// + /// Gets or sets the zones. + /// + [JsonProperty(PropertyName = "zones")] + public IList Zones { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureToAzureCreateNetworkMappingInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureToAzureCreateNetworkMappingInput.cs index 179ca4b57249..1a71a3e954b5 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureToAzureCreateNetworkMappingInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AzureToAzureCreateNetworkMappingInput.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -34,7 +35,7 @@ public AzureToAzureCreateNetworkMappingInput() /// AzureToAzureCreateNetworkMappingInput class. /// /// The primary azure vnet Id. - public AzureToAzureCreateNetworkMappingInput(string primaryNetworkId = default(string)) + public AzureToAzureCreateNetworkMappingInput(string primaryNetworkId) { PrimaryNetworkId = primaryNetworkId; CustomInit(); @@ -51,5 +52,18 @@ public AzureToAzureCreateNetworkMappingInput() [JsonProperty(PropertyName = "primaryNetworkId")] public string PrimaryNetworkId { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (PrimaryNetworkId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PrimaryNetworkId"); + } + } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateNetworkMappingInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateNetworkMappingInput.cs index a6f336202d27..6c7b8d441086 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateNetworkMappingInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateNetworkMappingInput.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -31,7 +32,7 @@ public CreateNetworkMappingInput() /// /// Input properties for creating network /// mapping. - public CreateNetworkMappingInput(CreateNetworkMappingInputProperties properties = default(CreateNetworkMappingInputProperties)) + public CreateNetworkMappingInput(CreateNetworkMappingInputProperties properties) { Properties = properties; CustomInit(); @@ -48,5 +49,22 @@ public CreateNetworkMappingInput() [JsonProperty(PropertyName = "properties")] public CreateNetworkMappingInputProperties Properties { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Properties == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); + } + if (Properties != null) + { + Properties.Validate(); + } + } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateNetworkMappingInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateNetworkMappingInputProperties.cs index c4c45f44896e..c76cabe16b55 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateNetworkMappingInputProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateNetworkMappingInputProperties.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -31,11 +32,11 @@ public CreateNetworkMappingInputProperties() /// Initializes a new instance of the /// CreateNetworkMappingInputProperties class. /// - /// Recovery fabric Name. /// Recovery network Id. + /// Recovery fabric Name. /// Fabric specific input /// properties. - public CreateNetworkMappingInputProperties(string recoveryFabricName = default(string), string recoveryNetworkId = default(string), FabricSpecificCreateNetworkMappingInput fabricSpecificDetails = default(FabricSpecificCreateNetworkMappingInput)) + public CreateNetworkMappingInputProperties(string recoveryNetworkId, string recoveryFabricName = default(string), FabricSpecificCreateNetworkMappingInput fabricSpecificDetails = default(FabricSpecificCreateNetworkMappingInput)) { RecoveryFabricName = recoveryFabricName; RecoveryNetworkId = recoveryNetworkId; @@ -66,5 +67,18 @@ public CreateNetworkMappingInputProperties() [JsonProperty(PropertyName = "fabricSpecificDetails")] public FabricSpecificCreateNetworkMappingInput FabricSpecificDetails { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (RecoveryNetworkId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryNetworkId"); + } + } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentInput.cs new file mode 100644 index 000000000000..2489b26446c4 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentInput.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Create protection intent input. + /// + public partial class CreateProtectionIntentInput + { + /// + /// Initializes a new instance of the CreateProtectionIntentInput + /// class. + /// + public CreateProtectionIntentInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CreateProtectionIntentInput + /// class. + /// + /// Create protection intent input + /// properties. + public CreateProtectionIntentInput(CreateProtectionIntentProperties properties = default(CreateProtectionIntentProperties)) + { + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets create protection intent input properties. + /// + [JsonProperty(PropertyName = "properties")] + public CreateProtectionIntentProperties Properties { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentProperties.cs new file mode 100644 index 000000000000..7a410208e8b7 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentProperties.cs @@ -0,0 +1,56 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Create protection intent input properties. + /// + public partial class CreateProtectionIntentProperties + { + /// + /// Initializes a new instance of the CreateProtectionIntentProperties + /// class. + /// + public CreateProtectionIntentProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CreateProtectionIntentProperties + /// class. + /// + /// The ReplicationProviderInput. + /// For A2A provider, it will be A2ACreateProtectionIntentInput + /// object. + public CreateProtectionIntentProperties(CreateProtectionIntentProviderSpecificDetails providerSpecificDetails = default(CreateProtectionIntentProviderSpecificDetails)) + { + ProviderSpecificDetails = providerSpecificDetails; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the ReplicationProviderInput. For A2A provider, it + /// will be A2ACreateProtectionIntentInput object. + /// + [JsonProperty(PropertyName = "providerSpecificDetails")] + public CreateProtectionIntentProviderSpecificDetails ProviderSpecificDetails { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SanEnableProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentProviderSpecificDetails.cs similarity index 69% rename from sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SanEnableProtectionInput.cs rename to sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentProviderSpecificDetails.cs index 81e5ac538a71..2e5993ab38cd 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SanEnableProtectionInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentProviderSpecificDetails.cs @@ -10,19 +10,18 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { - using Newtonsoft.Json; using System.Linq; /// - /// San enable protection provider specific input. + /// Create protection intent provider specific input. /// - [Newtonsoft.Json.JsonObject("San")] - public partial class SanEnableProtectionInput : EnableProtectionProviderSpecificInput + public partial class CreateProtectionIntentProviderSpecificDetails { /// - /// Initializes a new instance of the SanEnableProtectionInput class. + /// Initializes a new instance of the + /// CreateProtectionIntentProviderSpecificDetails class. /// - public SanEnableProtectionInput() + public CreateProtectionIntentProviderSpecificDetails() { CustomInit(); } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CurrentJobDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CurrentJobDetails.cs index 28c33e434630..33fa95e5e0f3 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CurrentJobDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CurrentJobDetails.cs @@ -46,22 +46,22 @@ public CurrentJobDetails() partial void CustomInit(); /// - /// Gets or sets the job name. + /// Gets the job name. /// [JsonProperty(PropertyName = "jobName")] - public string JobName { get; set; } + public string JobName { get; private set; } /// - /// Gets or sets the ARM Id of the job being executed. + /// Gets the ARM Id of the job being executed. /// [JsonProperty(PropertyName = "jobId")] - public string JobId { get; set; } + public string JobId { get; private set; } /// - /// Gets or sets the start time of the job. + /// Gets the start time of the job. /// [JsonProperty(PropertyName = "startTime")] - public System.DateTime? StartTime { get; set; } + public System.DateTime? StartTime { get; private set; } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DataStore.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DataStore.cs index 3d9aae721cea..7709f66edcfc 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DataStore.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DataStore.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// The data store details of the MT. + /// The datastore details of the MT. /// public partial class DataStore { diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DisableProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DisableProtectionInput.cs index 1c00d9046f7d..4705b72d94e8 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DisableProtectionInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DisableProtectionInput.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -31,7 +32,7 @@ public DisableProtectionInput() /// /// Disable protection input /// properties. - public DisableProtectionInput(DisableProtectionInputProperties properties = default(DisableProtectionInputProperties)) + public DisableProtectionInput(DisableProtectionInputProperties properties) { Properties = properties; CustomInit(); @@ -48,5 +49,18 @@ public DisableProtectionInput() [JsonProperty(PropertyName = "properties")] public DisableProtectionInputProperties Properties { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Properties == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); + } + } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskDetails.cs index 891e90ea5809..cc40139a924d 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskDetails.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// On-prem disk details data. + /// Onprem disk details data. /// public partial class DiskDetails { diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskEncryptionKeyInfo.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskEncryptionKeyInfo.cs index 14c7733603c0..9125876971ce 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskEncryptionKeyInfo.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskEncryptionKeyInfo.cs @@ -30,8 +30,8 @@ public DiskEncryptionKeyInfo() /// /// Initializes a new instance of the DiskEncryptionKeyInfo class. /// - /// The secret url / identifier. - /// The KeyVault resource ARM id + /// The secret url / identifier. + /// The KeyVault resource ARM id /// for secret. public DiskEncryptionKeyInfo(string secretIdentifier = default(string), string keyVaultResourceArmId = default(string)) { @@ -46,13 +46,13 @@ public DiskEncryptionKeyInfo() partial void CustomInit(); /// - /// Gets or sets the secret url / identifier. + /// Gets or sets the secret url / identifier. /// [JsonProperty(PropertyName = "secretIdentifier")] public string SecretIdentifier { get; set; } /// - /// Gets or sets the KeyVault resource ARM id for secret. + /// Gets or sets the KeyVault resource ARM id for secret. /// [JsonProperty(PropertyName = "keyVaultResourceArmId")] public string KeyVaultResourceArmId { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskReplicationProgressHealth.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskReplicationProgressHealth.cs new file mode 100644 index 000000000000..f610ba6cec09 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskReplicationProgressHealth.cs @@ -0,0 +1,25 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + + /// + /// Defines values for DiskReplicationProgressHealth. + /// + public static class DiskReplicationProgressHealth + { + public const string None = "None"; + public const string InProgress = "InProgress"; + public const string SlowProgress = "SlowProgress"; + public const string NoProgress = "NoProgress"; + public const string Queued = "Queued"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/Display.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/Display.cs index 4997e3127dfb..9ab745cb4930 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/Display.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/Display.cs @@ -34,32 +34,32 @@ public Display() /// Initializes a new instance of the Display class. /// /// The provider. The localized friendly form of - /// the resource provider name – it is expected to also include the + /// the resource provider name - it is expected to also include the /// publisher/company responsible. It should use Title Casing and begin /// with "Microsoft" for 1st party services. e.g. "Microsoft Monitoring - /// Insights" or "Microsoft Compute." + /// Insights" or "Microsoft Compute.". /// The resource. The localized friendly form of - /// the resource related to this action/operation – it should match the + /// the resource related to this action/operation - it should match the /// public documentation for the resource provider. It should use Title /// Casing. This value should be unique for a particular URL type (e.g. - /// nested types should *not* reuse their parent’s display.resource + /// nested types should *not* reuse their parent's display.resource /// field). e.g. "Virtual Machines" or "Scheduler Job Collections", or - /// "Virtual Machine VM Sizes" or "Scheduler Jobs" + /// "Virtual Machine VM Sizes" or "Scheduler Jobs". /// The operation. The localized friendly name /// for the operation, as it should be shown to the user. It should be /// concise (to fit in drop downs) but clear (i.e. self-documenting). /// It should use Title Casing. Prescriptive guidance: Read Create or - /// Update Delete 'ActionName' + /// Update Delete 'ActionName'. /// The description. The localized friendly /// description for the operation, as it should be shown to the user. - /// It should be thorough, yet concise – it will be used in tool tips + /// It should be thorough, yet concise - it will be used in tool tips /// and detailed views. Prescriptive guidance for namespaces: Read any /// 'display.provider' resource Create or Update any 'display.provider' /// resource Delete any 'display.provider' resource Perform any other /// action on any 'display.provider' resource Prescriptive guidance for /// namespaces: Read any 'display.resource' Create or Update any /// 'display.resource' Delete any 'display.resource' 'ActionName' any - /// 'display.resources' + /// 'display.resources'. public Display(string provider = default(string), string resource = default(string), string operation = default(string), string description = default(string)) { Provider = provider; @@ -76,22 +76,22 @@ public Display() /// /// Gets or sets the provider. The localized friendly form of the - /// resource provider name – it is expected to also include the + /// resource provider name - it is expected to also include the /// publisher/company responsible. It should use Title Casing and begin /// with "Microsoft" for 1st party services. e.g. "Microsoft Monitoring - /// Insights" or "Microsoft Compute." + /// Insights" or "Microsoft Compute.". /// [JsonProperty(PropertyName = "provider")] public string Provider { get; set; } /// /// Gets or sets the resource. The localized friendly form of the - /// resource related to this action/operation – it should match the + /// resource related to this action/operation - it should match the /// public documentation for the resource provider. It should use Title /// Casing. This value should be unique for a particular URL type (e.g. - /// nested types should *not* reuse their parent’s display.resource + /// nested types should *not* reuse their parent's display.resource /// field). e.g. "Virtual Machines" or "Scheduler Job Collections", or - /// "Virtual Machine VM Sizes" or "Scheduler Jobs" + /// "Virtual Machine VM Sizes" or "Scheduler Jobs". /// [JsonProperty(PropertyName = "resource")] public string Resource { get; set; } @@ -101,7 +101,7 @@ public Display() /// operation, as it should be shown to the user. It should be concise /// (to fit in drop downs) but clear (i.e. self-documenting). It should /// use Title Casing. Prescriptive guidance: Read Create or Update - /// Delete 'ActionName' + /// Delete 'ActionName'. /// [JsonProperty(PropertyName = "operation")] public string Operation { get; set; } @@ -109,14 +109,14 @@ public Display() /// /// Gets or sets the description. The localized friendly description /// for the operation, as it should be shown to the user. It should be - /// thorough, yet concise – it will be used in tool tips and detailed + /// thorough, yet concise - it will be used in tool tips and detailed /// views. Prescriptive guidance for namespaces: Read any /// 'display.provider' resource Create or Update any 'display.provider' /// resource Delete any 'display.provider' resource Perform any other /// action on any 'display.provider' resource Prescriptive guidance for /// namespaces: Read any 'display.resource' Create or Update any /// 'display.resource' Delete any 'display.resource' 'ActionName' any - /// 'display.resources' + /// 'display.resources'. /// [JsonProperty(PropertyName = "description")] public string Description { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DraDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DraDetails.cs new file mode 100644 index 000000000000..560d1348b316 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DraDetails.cs @@ -0,0 +1,104 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// DRA details. + /// + public partial class DraDetails + { + /// + /// Initializes a new instance of the DraDetails class. + /// + public DraDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DraDetails class. + /// + /// The DRA Id. + /// The DRA name. + /// The DRA Bios Id. + /// The version. + /// The last heartbeat received from the + /// DRA. + /// The health. Possible values include: 'None', + /// 'Normal', 'Warning', 'Critical' + /// The health errors. + public DraDetails(string id = default(string), string name = default(string), string biosId = default(string), string version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), string health = default(string), IList healthErrors = default(IList)) + { + Id = id; + Name = name; + BiosId = biosId; + Version = version; + LastHeartbeatUtc = lastHeartbeatUtc; + Health = health; + HealthErrors = healthErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the DRA Id. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the DRA name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the DRA Bios Id. + /// + [JsonProperty(PropertyName = "biosId")] + public string BiosId { get; private set; } + + /// + /// Gets the version. + /// + [JsonProperty(PropertyName = "version")] + public string Version { get; private set; } + + /// + /// Gets the last heartbeat received from the DRA. + /// + [JsonProperty(PropertyName = "lastHeartbeatUtc")] + public System.DateTime? LastHeartbeatUtc { get; private set; } + + /// + /// Gets the health. Possible values include: 'None', 'Normal', + /// 'Warning', 'Critical' + /// + [JsonProperty(PropertyName = "health")] + public string Health { get; private set; } + + /// + /// Gets the health errors. + /// + [JsonProperty(PropertyName = "healthErrors")] + public IList HealthErrors { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventProperties.cs index fcdd2597b959..b909833a5f6d 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventProperties.cs @@ -38,6 +38,8 @@ public EventProperties() /// The friendly name of the /// source of the event on which it is raised (for example, VM, VMM /// etc). + /// The affected object + /// correlationId for the event. /// The severity of the event. /// The time of occurrence of the /// event. @@ -48,12 +50,13 @@ public EventProperties() /// settings. /// The list of errors / warnings capturing /// details associated with the issue(s). - public EventProperties(string eventCode = default(string), string description = default(string), string eventType = default(string), string affectedObjectFriendlyName = default(string), string severity = default(string), System.DateTime? timeOfOccurrence = default(System.DateTime?), string fabricId = default(string), EventProviderSpecificDetails providerSpecificDetails = default(EventProviderSpecificDetails), EventSpecificDetails eventSpecificDetails = default(EventSpecificDetails), IList healthErrors = default(IList)) + public EventProperties(string eventCode = default(string), string description = default(string), string eventType = default(string), string affectedObjectFriendlyName = default(string), string affectedObjectCorrelationId = default(string), string severity = default(string), System.DateTime? timeOfOccurrence = default(System.DateTime?), string fabricId = default(string), EventProviderSpecificDetails providerSpecificDetails = default(EventProviderSpecificDetails), EventSpecificDetails eventSpecificDetails = default(EventSpecificDetails), IList healthErrors = default(IList)) { EventCode = eventCode; Description = description; EventType = eventType; AffectedObjectFriendlyName = affectedObjectFriendlyName; + AffectedObjectCorrelationId = affectedObjectCorrelationId; Severity = severity; TimeOfOccurrence = timeOfOccurrence; FabricId = fabricId; @@ -94,6 +97,12 @@ public EventProperties() [JsonProperty(PropertyName = "affectedObjectFriendlyName")] public string AffectedObjectFriendlyName { get; set; } + /// + /// Gets or sets the affected object correlationId for the event. + /// + [JsonProperty(PropertyName = "affectedObjectCorrelationId")] + public string AffectedObjectCorrelationId { get; set; } + /// /// Gets or sets the severity of the event. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventQueryParameter.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventQueryParameter.cs index b57897b9c72c..28caa55702a7 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventQueryParameter.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/EventQueryParameter.cs @@ -39,17 +39,20 @@ public EventQueryParameter() /// events to be queried. /// The affected object name /// of the events to be queried. + /// The affected object + /// correlationId for the events to be queried. /// The start time of the time range within /// which the events are to be queried. /// The end time of the time range within which /// the events are to be queried. - public EventQueryParameter(string eventCode = default(string), string severity = default(string), string eventType = default(string), string fabricName = default(string), string affectedObjectFriendlyName = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?)) + public EventQueryParameter(string eventCode = default(string), string severity = default(string), string eventType = default(string), string fabricName = default(string), string affectedObjectFriendlyName = default(string), string affectedObjectCorrelationId = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?)) { EventCode = eventCode; Severity = severity; EventType = eventType; FabricName = fabricName; AffectedObjectFriendlyName = affectedObjectFriendlyName; + AffectedObjectCorrelationId = affectedObjectCorrelationId; StartTime = startTime; EndTime = endTime; CustomInit(); @@ -91,6 +94,13 @@ public EventQueryParameter() [JsonProperty(PropertyName = "affectedObjectFriendlyName")] public string AffectedObjectFriendlyName { get; set; } + /// + /// Gets or sets the affected object correlationId for the events to be + /// queried. + /// + [JsonProperty(PropertyName = "affectedObjectCorrelationId")] + public string AffectedObjectCorrelationId { get; set; } + /// /// Gets or sets the start time of the time range within which the /// events are to be queried. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingProtectionProfile.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingProtectionProfile.cs new file mode 100644 index 000000000000..2faf4d1c5418 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingProtectionProfile.cs @@ -0,0 +1,68 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Existing storage account input. + /// + [Newtonsoft.Json.JsonObject("Existing")] + public partial class ExistingProtectionProfile : ProtectionProfileCustomDetails + { + /// + /// Initializes a new instance of the ExistingProtectionProfile class. + /// + public ExistingProtectionProfile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ExistingProtectionProfile class. + /// + /// The protection profile Arm Id. + /// Throw error, if resource does not exists. + public ExistingProtectionProfile(string protectionProfileId) + { + ProtectionProfileId = protectionProfileId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the protection profile Arm Id. Throw error, if + /// resource does not exists. + /// + [JsonProperty(PropertyName = "protectionProfileId")] + public string ProtectionProfileId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ProtectionProfileId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ProtectionProfileId"); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryAvailabilitySet.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryAvailabilitySet.cs new file mode 100644 index 000000000000..faae0fdd4031 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryAvailabilitySet.cs @@ -0,0 +1,56 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Existing recovery availability set input. + /// + [Newtonsoft.Json.JsonObject("Existing")] + public partial class ExistingRecoveryAvailabilitySet : RecoveryAvailabilitySetCustomDetails + { + /// + /// Initializes a new instance of the ExistingRecoveryAvailabilitySet + /// class. + /// + public ExistingRecoveryAvailabilitySet() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ExistingRecoveryAvailabilitySet + /// class. + /// + /// The recovery availability + /// set Id. Will throw error, if resource does not exist. + public ExistingRecoveryAvailabilitySet(string recoveryAvailabilitySetId = default(string)) + { + RecoveryAvailabilitySetId = recoveryAvailabilitySetId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the recovery availability set Id. Will throw error, if + /// resource does not exist. + /// + [JsonProperty(PropertyName = "recoveryAvailabilitySetId")] + public string RecoveryAvailabilitySetId { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryProximityPlacementGroup.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryProximityPlacementGroup.cs new file mode 100644 index 000000000000..8540face2a59 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryProximityPlacementGroup.cs @@ -0,0 +1,57 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Existing recovery proximity placement group input. + /// + [Newtonsoft.Json.JsonObject("Existing")] + public partial class ExistingRecoveryProximityPlacementGroup : RecoveryProximityPlacementGroupCustomDetails + { + /// + /// Initializes a new instance of the + /// ExistingRecoveryProximityPlacementGroup class. + /// + public ExistingRecoveryProximityPlacementGroup() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ExistingRecoveryProximityPlacementGroup class. + /// + /// The recovery + /// proximity placement group Id. Will throw error, if resource does + /// not exist. + public ExistingRecoveryProximityPlacementGroup(string recoveryProximityPlacementGroupId = default(string)) + { + RecoveryProximityPlacementGroupId = recoveryProximityPlacementGroupId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the recovery proximity placement group Id. Will throw + /// error, if resource does not exist. + /// + [JsonProperty(PropertyName = "recoveryProximityPlacementGroupId")] + public string RecoveryProximityPlacementGroupId { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryRecoveryResourceGroup.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryRecoveryResourceGroup.cs new file mode 100644 index 000000000000..227df071c1ad --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryRecoveryResourceGroup.cs @@ -0,0 +1,56 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Existing recovery resource group input. + /// + [Newtonsoft.Json.JsonObject("Existing")] + public partial class ExistingRecoveryRecoveryResourceGroup : RecoveryResourceGroupCustomDetails + { + /// + /// Initializes a new instance of the + /// ExistingRecoveryRecoveryResourceGroup class. + /// + public ExistingRecoveryRecoveryResourceGroup() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ExistingRecoveryRecoveryResourceGroup class. + /// + /// The recovery resource group + /// Id. Valid for V2 scenarios. + public ExistingRecoveryRecoveryResourceGroup(string recoveryResourceGroupId = default(string)) + { + RecoveryResourceGroupId = recoveryResourceGroupId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the recovery resource group Id. Valid for V2 + /// scenarios. + /// + [JsonProperty(PropertyName = "recoveryResourceGroupId")] + public string RecoveryResourceGroupId { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryVirtualNetwork.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryVirtualNetwork.cs new file mode 100644 index 000000000000..1d06d95248f0 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryVirtualNetwork.cs @@ -0,0 +1,78 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Existing recovery virtual network input. + /// + [Newtonsoft.Json.JsonObject("Existing")] + public partial class ExistingRecoveryVirtualNetwork : RecoveryVirtualNetworkCustomDetails + { + /// + /// Initializes a new instance of the ExistingRecoveryVirtualNetwork + /// class. + /// + public ExistingRecoveryVirtualNetwork() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ExistingRecoveryVirtualNetwork + /// class. + /// + /// The recovery virtual network + /// Id. Will throw error, if resource does not exist. + /// The recovery subnet name. + public ExistingRecoveryVirtualNetwork(string recoveryVirtualNetworkId, string recoverySubnetName = default(string)) + { + RecoveryVirtualNetworkId = recoveryVirtualNetworkId; + RecoverySubnetName = recoverySubnetName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the recovery virtual network Id. Will throw error, if + /// resource does not exist. + /// + [JsonProperty(PropertyName = "recoveryVirtualNetworkId")] + public string RecoveryVirtualNetworkId { get; set; } + + /// + /// Gets or sets the recovery subnet name. + /// + [JsonProperty(PropertyName = "recoverySubnetName")] + public string RecoverySubnetName { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (RecoveryVirtualNetworkId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryVirtualNetworkId"); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingStorageAccount.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingStorageAccount.cs new file mode 100644 index 000000000000..f183508d8655 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingStorageAccount.cs @@ -0,0 +1,68 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Existing storage account input. + /// + [Newtonsoft.Json.JsonObject("Existing")] + public partial class ExistingStorageAccount : StorageAccountCustomDetails + { + /// + /// Initializes a new instance of the ExistingStorageAccount class. + /// + public ExistingStorageAccount() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ExistingStorageAccount class. + /// + /// The storage account Arm Id. + /// Throw error, if resource does not exists. + public ExistingStorageAccount(string azureStorageAccountId) + { + AzureStorageAccountId = azureStorageAccountId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the storage account Arm Id. Throw error, if resource + /// does not exists. + /// + [JsonProperty(PropertyName = "azureStorageAccountId")] + public string AzureStorageAccountId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (AzureStorageAccountId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AzureStorageAccountId"); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskType.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExportJobOutputSerializationType.cs similarity index 65% rename from sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskType.cs rename to sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExportJobOutputSerializationType.cs index 2aa4481dc01b..560f3b988ffc 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskType.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExportJobOutputSerializationType.cs @@ -12,12 +12,12 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { /// - /// Defines values for DiskType. + /// Defines values for ExportJobOutputSerializationType. /// - public static class DiskType + public static class ExportJobOutputSerializationType { - public const string StandardLRS = "Standard_LRS"; - public const string PremiumLRS = "Premium_LRS"; - public const string StandardSSDLRS = "StandardSSD_LRS"; + public const string Json = "Json"; + public const string Xml = "Xml"; + public const string Excel = "Excel"; } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricCreationInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricCreationInput.cs index 29392ec792b3..7713b2b2bb0c 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricCreationInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricCreationInput.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Site details provided during the time of site creation + /// Site details provided during the time of site creation. /// public partial class FabricCreationInput { diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricCreationInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricCreationInputProperties.cs index 68e71c51c0a2..c8cd9243bc37 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricCreationInputProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricCreationInputProperties.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Properties of site details provided during the time of site creation + /// Properties of site details provided during the time of site creation. /// public partial class FabricCreationInputProperties { diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricQueryParameter.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricQueryParameter.cs new file mode 100644 index 000000000000..4aaa041d2388 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricQueryParameter.cs @@ -0,0 +1,100 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Query parameter to get fabric. + /// + public partial class FabricQueryParameter + { + /// + /// Initializes a new instance of the FabricQueryParameter class. + /// + public FabricQueryParameter() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FabricQueryParameter class. + /// + /// A value indicating whether the + /// zone to zone mappings are to be returned. + /// A value indicating whether the + /// agent details are to be fetched. + /// The BIOS Id to be used for fetching agent + /// details. + /// The FQDN to be used for fetching agent + /// details. + /// The type of the discovered machine to + /// be used for fetching agent details. + /// The OS type to be used for fetching agent + /// details. + public FabricQueryParameter(string zoneToZoneMappings = default(string), string fetchAgentDetails = default(string), string biosId = default(string), string fqdn = default(string), string discoveryType = default(string), string osType = default(string)) + { + ZoneToZoneMappings = zoneToZoneMappings; + FetchAgentDetails = fetchAgentDetails; + BiosId = biosId; + Fqdn = fqdn; + DiscoveryType = discoveryType; + OsType = osType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a value indicating whether the zone to zone mappings + /// are to be returned. + /// + [JsonProperty(PropertyName = "zoneToZoneMappings")] + public string ZoneToZoneMappings { get; set; } + + /// + /// Gets or sets a value indicating whether the agent details are to be + /// fetched. + /// + [JsonProperty(PropertyName = "fetchAgentDetails")] + public string FetchAgentDetails { get; set; } + + /// + /// Gets or sets the BIOS Id to be used for fetching agent details. + /// + [JsonProperty(PropertyName = "biosId")] + public string BiosId { get; set; } + + /// + /// Gets or sets the FQDN to be used for fetching agent details. + /// + [JsonProperty(PropertyName = "fqdn")] + public string Fqdn { get; set; } + + /// + /// Gets or sets the type of the discovered machine to be used for + /// fetching agent details. + /// + [JsonProperty(PropertyName = "discoveryType")] + public string DiscoveryType { get; set; } + + /// + /// Gets or sets the OS type to be used for fetching agent details. + /// + [JsonProperty(PropertyName = "osType")] + public string OsType { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricReplicationGroupTaskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricReplicationGroupTaskDetails.cs index 1401afb8af60..24227296ae39 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricReplicationGroupTaskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FabricReplicationGroupTaskDetails.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models /// /// This class represents the fabric replication group task details. /// - public partial class FabricReplicationGroupTaskDetails : TaskTypeDetails + public partial class FabricReplicationGroupTaskDetails : JobTaskDetails { /// /// Initializes a new instance of the FabricReplicationGroupTaskDetails @@ -31,15 +31,15 @@ public FabricReplicationGroupTaskDetails() /// Initializes a new instance of the FabricReplicationGroupTaskDetails /// class. /// + /// The job entity. /// The skipped reason. /// The skipped reason /// string. - /// The job entity. - public FabricReplicationGroupTaskDetails(string skippedReason = default(string), string skippedReasonString = default(string), JobEntity jobTask = default(JobEntity)) + public FabricReplicationGroupTaskDetails(JobEntity jobTask = default(JobEntity), string skippedReason = default(string), string skippedReasonString = default(string)) + : base(jobTask) { SkippedReason = skippedReason; SkippedReasonString = skippedReasonString; - JobTask = jobTask; CustomInit(); } @@ -60,11 +60,5 @@ public FabricReplicationGroupTaskDetails() [JsonProperty(PropertyName = "skippedReasonString")] public string SkippedReasonString { get; set; } - /// - /// Gets or sets the job entity. - /// - [JsonProperty(PropertyName = "jobTask")] - public JobEntity JobTask { get; set; } - } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FailoverProcessServerRequestProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FailoverProcessServerRequestProperties.cs index 4ab02f1d1364..fde7cacddb45 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FailoverProcessServerRequestProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/FailoverProcessServerRequestProperties.cs @@ -39,7 +39,7 @@ public FailoverProcessServerRequestProperties() /// The new process server. /// The VMS to migrate. /// A value for failover type. It can be - /// systemlevel/serverlevel + /// systemlevel/serverlevel. public FailoverProcessServerRequestProperties(string containerName = default(string), string sourceProcessServerId = default(string), string targetProcessServerId = default(string), IList vmsToMigrate = default(IList), string updateType = default(string)) { ContainerName = containerName; @@ -81,7 +81,7 @@ public FailoverProcessServerRequestProperties() /// /// Gets or sets a value for failover type. It can be - /// systemlevel/serverlevel + /// systemlevel/serverlevel. /// [JsonProperty(PropertyName = "updateType")] public string UpdateType { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthError.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthError.cs index 95e259191e4f..a32264840521 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthError.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthError.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Health Error + /// Health Error. /// public partial class HealthError { @@ -48,7 +48,7 @@ public HealthError() /// Possible causes of error. /// Recommended action to resolve /// error. - /// Error creation time (UTC) + /// Error creation time (UTC). /// DRA error /// message. /// ID of the entity. @@ -148,7 +148,7 @@ public HealthError() public string RecommendedAction { get; set; } /// - /// Gets or sets error creation time (UTC) + /// Gets or sets error creation time (UTC). /// [JsonProperty(PropertyName = "creationTimeUtc")] public System.DateTime? CreationTimeUtc { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthErrorCategory.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthErrorCategory.cs index 2209e474dc61..6b3558c8aea0 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthErrorCategory.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthErrorCategory.cs @@ -22,6 +22,10 @@ public static class HealthErrorCategory public const string Configuration = "Configuration"; public const string FabricInfrastructure = "FabricInfrastructure"; public const string VersionExpiry = "VersionExpiry"; - public const string AgentAutoUpdate = "AgentAutoUpdate"; + public const string AgentAutoUpdateInfra = "AgentAutoUpdateInfra"; + public const string AgentAutoUpdateArtifactDeleted = "AgentAutoUpdateArtifactDeleted"; + public const string AgentAutoUpdateRunAsAccount = "AgentAutoUpdateRunAsAccount"; + public const string AgentAutoUpdateRunAsAccountExpiry = "AgentAutoUpdateRunAsAccountExpiry"; + public const string AgentAutoUpdateRunAsAccountExpired = "AgentAutoUpdateRunAsAccountExpired"; } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthErrorSummary.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthErrorSummary.cs index 5cadc82904b1..55f84d81c49e 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthErrorSummary.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HealthErrorSummary.cs @@ -35,7 +35,9 @@ public HealthErrorSummary() /// The category of the health error. Possible /// values include: 'None', 'Replication', 'TestFailover', /// 'Configuration', 'FabricInfrastructure', 'VersionExpiry', - /// 'AgentAutoUpdate' + /// 'AgentAutoUpdateInfra', 'AgentAutoUpdateArtifactDeleted', + /// 'AgentAutoUpdateRunAsAccount', 'AgentAutoUpdateRunAsAccountExpiry', + /// 'AgentAutoUpdateRunAsAccountExpired' /// Severity of error. Possible values include: /// 'NONE', 'Warning', 'Error', 'Info' /// The summary message of the health @@ -75,7 +77,10 @@ public HealthErrorSummary() /// /// Gets or sets the category of the health error. Possible values /// include: 'None', 'Replication', 'TestFailover', 'Configuration', - /// 'FabricInfrastructure', 'VersionExpiry', 'AgentAutoUpdate' + /// 'FabricInfrastructure', 'VersionExpiry', 'AgentAutoUpdateInfra', + /// 'AgentAutoUpdateArtifactDeleted', 'AgentAutoUpdateRunAsAccount', + /// 'AgentAutoUpdateRunAsAccountExpiry', + /// 'AgentAutoUpdateRunAsAccountExpired' /// [JsonProperty(PropertyName = "category")] public string Category { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVHostDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVHostDetails.cs new file mode 100644 index 000000000000..572622f14b34 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVHostDetails.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Hyper-V host details. + /// + public partial class HyperVHostDetails + { + /// + /// Initializes a new instance of the HyperVHostDetails class. + /// + public HyperVHostDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the HyperVHostDetails class. + /// + /// The Hyper-V host Id. + /// The Hyper-V host name. + /// The Mars agent version. + public HyperVHostDetails(string id = default(string), string name = default(string), string marsAgentVersion = default(string)) + { + Id = id; + Name = name; + MarsAgentVersion = marsAgentVersion; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the Hyper-V host Id. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the Hyper-V host name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the Mars agent version. + /// + [JsonProperty(PropertyName = "marsAgentVersion")] + public string MarsAgentVersion { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureApplyRecoveryPointInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureApplyRecoveryPointInput.cs index dadbaed4144c..b550e4d11242 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureApplyRecoveryPointInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureApplyRecoveryPointInput.cs @@ -32,15 +32,12 @@ public HyperVReplicaAzureApplyRecoveryPointInput() /// Initializes a new instance of the /// HyperVReplicaAzureApplyRecoveryPointInput class. /// - /// The vault location where the recovery - /// Vm resides. /// The primary kek certificate /// pfx. /// The secondary kek /// certificate pfx. - public HyperVReplicaAzureApplyRecoveryPointInput(string vaultLocation = default(string), string primaryKekCertificatePfx = default(string), string secondaryKekCertificatePfx = default(string)) + public HyperVReplicaAzureApplyRecoveryPointInput(string primaryKekCertificatePfx = default(string), string secondaryKekCertificatePfx = default(string)) { - VaultLocation = vaultLocation; PrimaryKekCertificatePfx = primaryKekCertificatePfx; SecondaryKekCertificatePfx = secondaryKekCertificatePfx; CustomInit(); @@ -51,12 +48,6 @@ public HyperVReplicaAzureApplyRecoveryPointInput() /// partial void CustomInit(); - /// - /// Gets or sets the vault location where the recovery Vm resides. - /// - [JsonProperty(PropertyName = "vaultLocation")] - public string VaultLocation { get; set; } - /// /// Gets or sets the primary kek certificate pfx. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureDiskInputDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureDiskInputDetails.cs new file mode 100644 index 000000000000..0a2bb08d58c9 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureDiskInputDetails.cs @@ -0,0 +1,80 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Disk input details. + /// + public partial class HyperVReplicaAzureDiskInputDetails + { + /// + /// Initializes a new instance of the + /// HyperVReplicaAzureDiskInputDetails class. + /// + public HyperVReplicaAzureDiskInputDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// HyperVReplicaAzureDiskInputDetails class. + /// + /// The DiskId. + /// The LogStorageAccountId. + /// The DiskType. Possible values include: + /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' + /// The DiskEncryptionSet ARM + /// ID. + public HyperVReplicaAzureDiskInputDetails(string diskId = default(string), string logStorageAccountId = default(string), string diskType = default(string), string diskEncryptionSetId = default(string)) + { + DiskId = diskId; + LogStorageAccountId = logStorageAccountId; + DiskType = diskType; + DiskEncryptionSetId = diskEncryptionSetId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the DiskId. + /// + [JsonProperty(PropertyName = "diskId")] + public string DiskId { get; set; } + + /// + /// Gets or sets the LogStorageAccountId. + /// + [JsonProperty(PropertyName = "logStorageAccountId")] + public string LogStorageAccountId { get; set; } + + /// + /// Gets or sets the DiskType. Possible values include: 'Standard_LRS', + /// 'Premium_LRS', 'StandardSSD_LRS' + /// + [JsonProperty(PropertyName = "diskType")] + public string DiskType { get; set; } + + /// + /// Gets or sets the DiskEncryptionSet ARM ID. + /// + [JsonProperty(PropertyName = "diskEncryptionSetId")] + public string DiskEncryptionSetId { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureEnableProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureEnableProtectionInput.cs index f2ac393ffe40..b7273b5dcdb2 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureEnableProtectionInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureEnableProtectionInput.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Azure specific enable protection input. + /// HyperVReplicaAzure specific enable protection input. /// [Newtonsoft.Json.JsonObject("HyperVReplicaAzure")] public partial class HyperVReplicaAzureEnableProtectionInput : EnableProtectionProviderSpecificInput @@ -34,23 +34,23 @@ public HyperVReplicaAzureEnableProtectionInput() /// Initializes a new instance of the /// HyperVReplicaAzureEnableProtectionInput class. /// - /// The Hyper-V host Vm Id. - /// The Vm Name. - /// The OS type associated with vm. - /// The OS disk VHD id associated with vm. + /// The Hyper-V host VM Id. + /// The VM Name. + /// The OS type associated with VM. + /// The OS disk VHD id associated with VM. /// The storage account - /// name. + /// Id. /// The selected target Azure /// network Id. /// The selected target Azure subnet /// Id. /// The selected option to enable /// RDP\SSH on target vm after failover. String value of - /// {SrsDataContract.EnableRDPOnTargetOption} enum. - /// The target azure Vm Name. + /// SrsDataContract.EnableRDPOnTargetOption enum. + /// The target azure VM Name. /// The storage account to be used /// for logging during replication. - /// The list of VHD IDs of disks to be + /// The list of VHD Ids of disks to be /// protected. /// The Id of the target /// resource group (for classic deployment) in which the failover VM is @@ -60,13 +60,33 @@ public HyperVReplicaAzureEnableProtectionInput() /// failover VM is to be created. /// A value indicating whether managed /// disks should be used during failover. + /// The target availability set + /// ARM Id for resource manager deployment. /// The target availability /// zone. + /// License type. Possible values include: + /// 'NotSpecified', 'NoLicenseType', 'WindowsServer' + /// The SQL Server license type. + /// Possible values include: 'NotSpecified', 'NoLicenseType', 'PAYG', + /// 'AHUB' + /// The target VM size. /// The proximity /// placement group ARM Id. - /// The availability set ARM + /// A value indicating + /// whether managed disks should be used during replication. + /// The DiskType. Possible values include: + /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' + /// The disks to include + /// list for managed disks. + /// The DiskEncryptionSet ARM /// Id. - public HyperVReplicaAzureEnableProtectionInput(string hvHostVmId = default(string), string vmName = default(string), string osType = default(string), string vhdId = default(string), string targetStorageAccountId = default(string), string targetAzureNetworkId = default(string), string targetAzureSubnetId = default(string), string enableRdpOnTargetOption = default(string), string targetAzureVmName = default(string), string logStorageAccountId = default(string), IList disksToInclude = default(IList), string targetAzureV1ResourceGroupId = default(string), string targetAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string), string targetAvailabilityZone = default(string), string targetProximityPlacementGroupId = default(string), string targetAvailabilitySetId = default(string)) + /// The target VM tags. + /// The tags for the seed managed + /// disks. + /// The tags for the target managed + /// disks. + /// The tags for the target NICs. + public HyperVReplicaAzureEnableProtectionInput(string hvHostVmId = default(string), string vmName = default(string), string osType = default(string), string vhdId = default(string), string targetStorageAccountId = default(string), string targetAzureNetworkId = default(string), string targetAzureSubnetId = default(string), string enableRdpOnTargetOption = default(string), string targetAzureVmName = default(string), string logStorageAccountId = default(string), IList disksToInclude = default(IList), string targetAzureV1ResourceGroupId = default(string), string targetAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string), string targetAvailabilitySetId = default(string), string targetAvailabilityZone = default(string), string licenseType = default(string), string sqlServerLicenseType = default(string), string targetVmSize = default(string), string targetProximityPlacementGroupId = default(string), string useManagedDisksForReplication = default(string), string diskType = default(string), IList disksToIncludeForManagedDisks = default(IList), string diskEncryptionSetId = default(string), IDictionary targetVmTags = default(IDictionary), IDictionary seedManagedDiskTags = default(IDictionary), IDictionary targetManagedDiskTags = default(IDictionary), IDictionary targetNicTags = default(IDictionary)) { HvHostVmId = hvHostVmId; VmName = vmName; @@ -82,9 +102,20 @@ public HyperVReplicaAzureEnableProtectionInput() TargetAzureV1ResourceGroupId = targetAzureV1ResourceGroupId; TargetAzureV2ResourceGroupId = targetAzureV2ResourceGroupId; UseManagedDisks = useManagedDisks; + TargetAvailabilitySetId = targetAvailabilitySetId; TargetAvailabilityZone = targetAvailabilityZone; + LicenseType = licenseType; + SqlServerLicenseType = sqlServerLicenseType; + TargetVmSize = targetVmSize; TargetProximityPlacementGroupId = targetProximityPlacementGroupId; - TargetAvailabilitySetId = targetAvailabilitySetId; + UseManagedDisksForReplication = useManagedDisksForReplication; + DiskType = diskType; + DisksToIncludeForManagedDisks = disksToIncludeForManagedDisks; + DiskEncryptionSetId = diskEncryptionSetId; + TargetVmTags = targetVmTags; + SeedManagedDiskTags = seedManagedDiskTags; + TargetManagedDiskTags = targetManagedDiskTags; + TargetNicTags = targetNicTags; CustomInit(); } @@ -94,31 +125,31 @@ public HyperVReplicaAzureEnableProtectionInput() partial void CustomInit(); /// - /// Gets or sets the Hyper-V host Vm Id. + /// Gets or sets the Hyper-V host VM Id. /// [JsonProperty(PropertyName = "hvHostVmId")] public string HvHostVmId { get; set; } /// - /// Gets or sets the Vm Name. + /// Gets or sets the VM Name. /// [JsonProperty(PropertyName = "vmName")] public string VmName { get; set; } /// - /// Gets or sets the OS type associated with vm. + /// Gets or sets the OS type associated with VM. /// [JsonProperty(PropertyName = "osType")] public string OsType { get; set; } /// - /// Gets or sets the OS disk VHD id associated with vm. + /// Gets or sets the OS disk VHD id associated with VM. /// [JsonProperty(PropertyName = "vhdId")] public string VhdId { get; set; } /// - /// Gets or sets the storage account name. + /// Gets or sets the storage account Id. /// [JsonProperty(PropertyName = "targetStorageAccountId")] public string TargetStorageAccountId { get; set; } @@ -138,13 +169,13 @@ public HyperVReplicaAzureEnableProtectionInput() /// /// Gets or sets the selected option to enable RDP\SSH on target vm /// after failover. String value of - /// {SrsDataContract.EnableRDPOnTargetOption} enum. + /// SrsDataContract.EnableRDPOnTargetOption enum. /// [JsonProperty(PropertyName = "enableRdpOnTargetOption")] public string EnableRdpOnTargetOption { get; set; } /// - /// Gets or sets the target azure Vm Name. + /// Gets or sets the target azure VM Name. /// [JsonProperty(PropertyName = "targetAzureVmName")] public string TargetAzureVmName { get; set; } @@ -157,7 +188,7 @@ public HyperVReplicaAzureEnableProtectionInput() public string LogStorageAccountId { get; set; } /// - /// Gets or sets the list of VHD IDs of disks to be protected. + /// Gets or sets the list of VHD Ids of disks to be protected. /// [JsonProperty(PropertyName = "disksToInclude")] public IList DisksToInclude { get; set; } @@ -183,12 +214,39 @@ public HyperVReplicaAzureEnableProtectionInput() [JsonProperty(PropertyName = "useManagedDisks")] public string UseManagedDisks { get; set; } + /// + /// Gets or sets the target availability set ARM Id for resource + /// manager deployment. + /// + [JsonProperty(PropertyName = "targetAvailabilitySetId")] + public string TargetAvailabilitySetId { get; set; } + /// /// Gets or sets the target availability zone. /// [JsonProperty(PropertyName = "targetAvailabilityZone")] public string TargetAvailabilityZone { get; set; } + /// + /// Gets or sets license type. Possible values include: 'NotSpecified', + /// 'NoLicenseType', 'WindowsServer' + /// + [JsonProperty(PropertyName = "licenseType")] + public string LicenseType { get; set; } + + /// + /// Gets or sets the SQL Server license type. Possible values include: + /// 'NotSpecified', 'NoLicenseType', 'PAYG', 'AHUB' + /// + [JsonProperty(PropertyName = "sqlServerLicenseType")] + public string SqlServerLicenseType { get; set; } + + /// + /// Gets or sets the target VM size. + /// + [JsonProperty(PropertyName = "targetVmSize")] + public string TargetVmSize { get; set; } + /// /// Gets or sets the proximity placement group ARM Id. /// @@ -196,10 +254,54 @@ public HyperVReplicaAzureEnableProtectionInput() public string TargetProximityPlacementGroupId { get; set; } /// - /// Gets or sets the availability set ARM Id. + /// Gets or sets a value indicating whether managed disks should be + /// used during replication. /// - [JsonProperty(PropertyName = "targetAvailabilitySetId")] - public string TargetAvailabilitySetId { get; set; } + [JsonProperty(PropertyName = "useManagedDisksForReplication")] + public string UseManagedDisksForReplication { get; set; } + + /// + /// Gets or sets the DiskType. Possible values include: 'Standard_LRS', + /// 'Premium_LRS', 'StandardSSD_LRS' + /// + [JsonProperty(PropertyName = "diskType")] + public string DiskType { get; set; } + + /// + /// Gets or sets the disks to include list for managed disks. + /// + [JsonProperty(PropertyName = "disksToIncludeForManagedDisks")] + public IList DisksToIncludeForManagedDisks { get; set; } + + /// + /// Gets or sets the DiskEncryptionSet ARM Id. + /// + [JsonProperty(PropertyName = "diskEncryptionSetId")] + public string DiskEncryptionSetId { get; set; } + + /// + /// Gets or sets the target VM tags. + /// + [JsonProperty(PropertyName = "targetVmTags")] + public IDictionary TargetVmTags { get; set; } + + /// + /// Gets or sets the tags for the seed managed disks. + /// + [JsonProperty(PropertyName = "seedManagedDiskTags")] + public IDictionary SeedManagedDiskTags { get; set; } + + /// + /// Gets or sets the tags for the target managed disks. + /// + [JsonProperty(PropertyName = "targetManagedDiskTags")] + public IDictionary TargetManagedDiskTags { get; set; } + + /// + /// Gets or sets the tags for the target NICs. + /// + [JsonProperty(PropertyName = "targetNicTags")] + public IDictionary TargetNicTags { get; set; } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureFailbackProviderInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureFailbackProviderInput.cs index 111d38fa9cc8..33398747c760 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureFailbackProviderInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureFailbackProviderInput.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// HvrA provider specific input for failback. + /// HyperVReplicaAzureFailback specific planned failover input. /// [Newtonsoft.Json.JsonObject("HyperVReplicaAzureFailback")] - public partial class HyperVReplicaAzureFailbackProviderInput : ProviderSpecificFailoverInput + public partial class HyperVReplicaAzureFailbackProviderInput : PlannedFailoverProviderSpecificFailoverInput { /// /// Initializes a new instance of the @@ -35,8 +35,8 @@ public HyperVReplicaAzureFailbackProviderInput() /// Data sync option. /// ALR options to create /// alternate recovery. - /// Provider ID for - /// alternate location + /// Provider Id for + /// alternate location. public HyperVReplicaAzureFailbackProviderInput(string dataSyncOption = default(string), string recoveryVmCreationOption = default(string), string providerIdForAlternateRecovery = default(string)) { DataSyncOption = dataSyncOption; @@ -63,7 +63,7 @@ public HyperVReplicaAzureFailbackProviderInput() public string RecoveryVmCreationOption { get; set; } /// - /// Gets or sets provider ID for alternate location + /// Gets or sets provider Id for alternate location. /// [JsonProperty(PropertyName = "providerIdForAlternateRecovery")] public string ProviderIdForAlternateRecovery { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureManagedDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureManagedDiskDetails.cs new file mode 100644 index 000000000000..b98bd5790f55 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureManagedDiskDetails.cs @@ -0,0 +1,78 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Hyper-V Managed disk details. + /// + public partial class HyperVReplicaAzureManagedDiskDetails + { + /// + /// Initializes a new instance of the + /// HyperVReplicaAzureManagedDiskDetails class. + /// + public HyperVReplicaAzureManagedDiskDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// HyperVReplicaAzureManagedDiskDetails class. + /// + /// The disk Id. + /// Seed managed disk Id. + /// The replica disk type. + /// The disk encryption set ARM + /// Id. + public HyperVReplicaAzureManagedDiskDetails(string diskId = default(string), string seedManagedDiskId = default(string), string replicaDiskType = default(string), string diskEncryptionSetId = default(string)) + { + DiskId = diskId; + SeedManagedDiskId = seedManagedDiskId; + ReplicaDiskType = replicaDiskType; + DiskEncryptionSetId = diskEncryptionSetId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the disk Id. + /// + [JsonProperty(PropertyName = "diskId")] + public string DiskId { get; set; } + + /// + /// Gets or sets seed managed disk Id. + /// + [JsonProperty(PropertyName = "seedManagedDiskId")] + public string SeedManagedDiskId { get; set; } + + /// + /// Gets or sets the replica disk type. + /// + [JsonProperty(PropertyName = "replicaDiskType")] + public string ReplicaDiskType { get; set; } + + /// + /// Gets or sets the disk encryption set ARM Id. + /// + [JsonProperty(PropertyName = "diskEncryptionSetId")] + public string DiskEncryptionSetId { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureFailoverProviderInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzurePlannedFailoverProviderInput.cs similarity index 73% rename from sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureFailoverProviderInput.cs rename to sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzurePlannedFailoverProviderInput.cs index 7eca2a0f399c..4018e7885c5d 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureFailoverProviderInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzurePlannedFailoverProviderInput.cs @@ -14,25 +14,24 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// HvrA provider specific input for failover. + /// HyperVReplicaAzure specific planned failover input. /// [Newtonsoft.Json.JsonObject("HyperVReplicaAzure")] - public partial class HyperVReplicaAzureFailoverProviderInput : ProviderSpecificFailoverInput + public partial class HyperVReplicaAzurePlannedFailoverProviderInput : PlannedFailoverProviderSpecificFailoverInput { /// /// Initializes a new instance of the - /// HyperVReplicaAzureFailoverProviderInput class. + /// HyperVReplicaAzurePlannedFailoverProviderInput class. /// - public HyperVReplicaAzureFailoverProviderInput() + public HyperVReplicaAzurePlannedFailoverProviderInput() { CustomInit(); } /// /// Initializes a new instance of the - /// HyperVReplicaAzureFailoverProviderInput class. + /// HyperVReplicaAzurePlannedFailoverProviderInput class. /// - /// Location of the vault. /// Primary kek certificate /// pfx. /// Secondary kek certificate @@ -40,9 +39,8 @@ public HyperVReplicaAzureFailoverProviderInput() /// The recovery point id to be passed to /// failover to a particular recovery point. In case of latest recovery /// point, null should be passed. - public HyperVReplicaAzureFailoverProviderInput(string vaultLocation = default(string), string primaryKekCertificatePfx = default(string), string secondaryKekCertificatePfx = default(string), string recoveryPointId = default(string)) + public HyperVReplicaAzurePlannedFailoverProviderInput(string primaryKekCertificatePfx = default(string), string secondaryKekCertificatePfx = default(string), string recoveryPointId = default(string)) { - VaultLocation = vaultLocation; PrimaryKekCertificatePfx = primaryKekCertificatePfx; SecondaryKekCertificatePfx = secondaryKekCertificatePfx; RecoveryPointId = recoveryPointId; @@ -54,12 +52,6 @@ public HyperVReplicaAzureFailoverProviderInput() /// partial void CustomInit(); - /// - /// Gets or sets location of the vault. - /// - [JsonProperty(PropertyName = "vaultLocation")] - public string VaultLocation { get; set; } - /// /// Gets or sets primary kek certificate pfx. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureReplicationDetails.cs index 31a33960bb80..697b99c10322 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureReplicationDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureReplicationDetails.cs @@ -69,7 +69,7 @@ public HyperVReplicaAzureReplicationDetails() /// primary side. /// The selected option to enable /// RDP\SSH on target vm after failover. String value of - /// {SrsDataContract.EnableRDPOnTargetOption} enum. + /// SrsDataContract.EnableRDPOnTargetOption enum. /// The target resource /// group Id. /// The recovery availability @@ -82,7 +82,19 @@ public HyperVReplicaAzureReplicationDetails() /// disks should be used during failover. /// License Type of the VM to be /// used. - public HyperVReplicaAzureReplicationDetails(IList azureVmDiskDetails = default(IList), string recoveryAzureVmName = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureStorageAccount = default(string), string recoveryAzureLogStorageAccountId = default(string), System.DateTime? lastReplicatedTime = default(System.DateTime?), long? rpoInSeconds = default(long?), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), string vmId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), InitialReplicationDetails initialReplicationDetails = default(InitialReplicationDetails), IList vmNics = default(IList), string selectedRecoveryAzureNetworkId = default(string), string selectedSourceNicId = default(string), string encryption = default(string), OSDetails oSDetails = default(OSDetails), int? sourceVmRamSizeInMB = default(int?), int? sourceVmCpuCount = default(int?), string enableRdpOnTargetOption = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryAvailabilitySetId = default(string), string targetAvailabilityZone = default(string), string targetProximityPlacementGroupId = default(string), string useManagedDisks = default(string), string licenseType = default(string)) + /// The SQL Server license + /// type. + /// The last recovery point + /// received time. + /// The target VM tags. + /// The tags for the seed managed + /// disks. + /// The tags for the target managed + /// disks. + /// The tags for the target NICs. + /// The list of protected managed + /// disks. + public HyperVReplicaAzureReplicationDetails(IList azureVmDiskDetails = default(IList), string recoveryAzureVmName = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureStorageAccount = default(string), string recoveryAzureLogStorageAccountId = default(string), System.DateTime? lastReplicatedTime = default(System.DateTime?), long? rpoInSeconds = default(long?), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), string vmId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), InitialReplicationDetails initialReplicationDetails = default(InitialReplicationDetails), IList vmNics = default(IList), string selectedRecoveryAzureNetworkId = default(string), string selectedSourceNicId = default(string), string encryption = default(string), OSDetails oSDetails = default(OSDetails), int? sourceVmRamSizeInMB = default(int?), int? sourceVmCpuCount = default(int?), string enableRdpOnTargetOption = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryAvailabilitySetId = default(string), string targetAvailabilityZone = default(string), string targetProximityPlacementGroupId = default(string), string useManagedDisks = default(string), string licenseType = default(string), string sqlServerLicenseType = default(string), System.DateTime? lastRecoveryPointReceived = default(System.DateTime?), IDictionary targetVmTags = default(IDictionary), IDictionary seedManagedDiskTags = default(IDictionary), IDictionary targetManagedDiskTags = default(IDictionary), IDictionary targetNicTags = default(IDictionary), IList protectedManagedDisks = default(IList)) { AzureVmDiskDetails = azureVmDiskDetails; RecoveryAzureVmName = recoveryAzureVmName; @@ -110,6 +122,13 @@ public HyperVReplicaAzureReplicationDetails() TargetProximityPlacementGroupId = targetProximityPlacementGroupId; UseManagedDisks = useManagedDisks; LicenseType = licenseType; + SqlServerLicenseType = sqlServerLicenseType; + LastRecoveryPointReceived = lastRecoveryPointReceived; + TargetVmTags = targetVmTags; + SeedManagedDiskTags = seedManagedDiskTags; + TargetManagedDiskTags = targetManagedDiskTags; + TargetNicTags = targetNicTags; + ProtectedManagedDisks = protectedManagedDisks; CustomInit(); } @@ -238,7 +257,7 @@ public HyperVReplicaAzureReplicationDetails() /// /// Gets or sets the selected option to enable RDP\SSH on target vm /// after failover. String value of - /// {SrsDataContract.EnableRDPOnTargetOption} enum. + /// SrsDataContract.EnableRDPOnTargetOption enum. /// [JsonProperty(PropertyName = "enableRdpOnTargetOption")] public string EnableRdpOnTargetOption { get; set; } @@ -280,5 +299,47 @@ public HyperVReplicaAzureReplicationDetails() [JsonProperty(PropertyName = "licenseType")] public string LicenseType { get; set; } + /// + /// Gets or sets the SQL Server license type. + /// + [JsonProperty(PropertyName = "sqlServerLicenseType")] + public string SqlServerLicenseType { get; set; } + + /// + /// Gets the last recovery point received time. + /// + [JsonProperty(PropertyName = "lastRecoveryPointReceived")] + public System.DateTime? LastRecoveryPointReceived { get; private set; } + + /// + /// Gets or sets the target VM tags. + /// + [JsonProperty(PropertyName = "targetVmTags")] + public IDictionary TargetVmTags { get; set; } + + /// + /// Gets or sets the tags for the seed managed disks. + /// + [JsonProperty(PropertyName = "seedManagedDiskTags")] + public IDictionary SeedManagedDiskTags { get; set; } + + /// + /// Gets or sets the tags for the target managed disks. + /// + [JsonProperty(PropertyName = "targetManagedDiskTags")] + public IDictionary TargetManagedDiskTags { get; set; } + + /// + /// Gets or sets the tags for the target NICs. + /// + [JsonProperty(PropertyName = "targetNicTags")] + public IDictionary TargetNicTags { get; set; } + + /// + /// Gets or sets the list of protected managed disks. + /// + [JsonProperty(PropertyName = "protectedManagedDisks")] + public IList ProtectedManagedDisks { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureTestFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureTestFailoverInput.cs new file mode 100644 index 000000000000..5598ecda4c2e --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureTestFailoverInput.cs @@ -0,0 +1,76 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// HvrA provider specific input for test failover. + /// + [Newtonsoft.Json.JsonObject("HyperVReplicaAzure")] + public partial class HyperVReplicaAzureTestFailoverInput : TestFailoverProviderSpecificInput + { + /// + /// Initializes a new instance of the + /// HyperVReplicaAzureTestFailoverInput class. + /// + public HyperVReplicaAzureTestFailoverInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// HyperVReplicaAzureTestFailoverInput class. + /// + /// Primary kek certificate + /// pfx. + /// Secondary kek certificate + /// pfx. + /// The recovery point id to be passed to + /// test failover to a particular recovery point. In case of latest + /// recovery point, null should be passed. + public HyperVReplicaAzureTestFailoverInput(string primaryKekCertificatePfx = default(string), string secondaryKekCertificatePfx = default(string), string recoveryPointId = default(string)) + { + PrimaryKekCertificatePfx = primaryKekCertificatePfx; + SecondaryKekCertificatePfx = secondaryKekCertificatePfx; + RecoveryPointId = recoveryPointId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets primary kek certificate pfx. + /// + [JsonProperty(PropertyName = "primaryKekCertificatePfx")] + public string PrimaryKekCertificatePfx { get; set; } + + /// + /// Gets or sets secondary kek certificate pfx. + /// + [JsonProperty(PropertyName = "secondaryKekCertificatePfx")] + public string SecondaryKekCertificatePfx { get; set; } + + /// + /// Gets or sets the recovery point id to be passed to test failover to + /// a particular recovery point. In case of latest recovery point, null + /// should be passed. + /// + [JsonProperty(PropertyName = "recoveryPointId")] + public string RecoveryPointId { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUnplannedFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUnplannedFailoverInput.cs new file mode 100644 index 000000000000..150bf3a29304 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUnplannedFailoverInput.cs @@ -0,0 +1,76 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// HvrA provider specific input for unplanned failover. + /// + [Newtonsoft.Json.JsonObject("HyperVReplicaAzure")] + public partial class HyperVReplicaAzureUnplannedFailoverInput : UnplannedFailoverProviderSpecificInput + { + /// + /// Initializes a new instance of the + /// HyperVReplicaAzureUnplannedFailoverInput class. + /// + public HyperVReplicaAzureUnplannedFailoverInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// HyperVReplicaAzureUnplannedFailoverInput class. + /// + /// Primary kek certificate + /// pfx. + /// Secondary kek certificate + /// pfx. + /// The recovery point id to be passed to + /// failover to a particular recovery point. In case of latest recovery + /// point, null should be passed. + public HyperVReplicaAzureUnplannedFailoverInput(string primaryKekCertificatePfx = default(string), string secondaryKekCertificatePfx = default(string), string recoveryPointId = default(string)) + { + PrimaryKekCertificatePfx = primaryKekCertificatePfx; + SecondaryKekCertificatePfx = secondaryKekCertificatePfx; + RecoveryPointId = recoveryPointId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets primary kek certificate pfx. + /// + [JsonProperty(PropertyName = "primaryKekCertificatePfx")] + public string PrimaryKekCertificatePfx { get; set; } + + /// + /// Gets or sets secondary kek certificate pfx. + /// + [JsonProperty(PropertyName = "secondaryKekCertificatePfx")] + public string SecondaryKekCertificatePfx { get; set; } + + /// + /// Gets or sets the recovery point id to be passed to failover to a + /// particular recovery point. In case of latest recovery point, null + /// should be passed. + /// + [JsonProperty(PropertyName = "recoveryPointId")] + public string RecoveryPointId { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs index 70c905f587c6..38cdd9a0ba30 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs @@ -46,7 +46,14 @@ public HyperVReplicaAzureUpdateReplicationProtectedItemInput() /// placement group Id. /// The target availability /// zone. - public HyperVReplicaAzureUpdateReplicationProtectedItemInput(string recoveryAzureV1ResourceGroupId = default(string), string recoveryAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string), IDictionary diskIdToDiskEncryptionMap = default(IDictionary), string targetProximityPlacementGroupId = default(string), string targetAvailabilityZone = default(string)) + /// The target VM tags. + /// The tags for the target managed + /// disks. + /// The tags for the target NICs. + /// The SQL Server license type. + /// Possible values include: 'NotSpecified', 'NoLicenseType', 'PAYG', + /// 'AHUB' + public HyperVReplicaAzureUpdateReplicationProtectedItemInput(string recoveryAzureV1ResourceGroupId = default(string), string recoveryAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string), IDictionary diskIdToDiskEncryptionMap = default(IDictionary), string targetProximityPlacementGroupId = default(string), string targetAvailabilityZone = default(string), IDictionary targetVmTags = default(IDictionary), IDictionary targetManagedDiskTags = default(IDictionary), IDictionary targetNicTags = default(IDictionary), string sqlServerLicenseType = default(string)) { RecoveryAzureV1ResourceGroupId = recoveryAzureV1ResourceGroupId; RecoveryAzureV2ResourceGroupId = recoveryAzureV2ResourceGroupId; @@ -54,6 +61,10 @@ public HyperVReplicaAzureUpdateReplicationProtectedItemInput() DiskIdToDiskEncryptionMap = diskIdToDiskEncryptionMap; TargetProximityPlacementGroupId = targetProximityPlacementGroupId; TargetAvailabilityZone = targetAvailabilityZone; + TargetVmTags = targetVmTags; + TargetManagedDiskTags = targetManagedDiskTags; + TargetNicTags = targetNicTags; + SqlServerLicenseType = sqlServerLicenseType; CustomInit(); } @@ -102,5 +113,30 @@ public HyperVReplicaAzureUpdateReplicationProtectedItemInput() [JsonProperty(PropertyName = "targetAvailabilityZone")] public string TargetAvailabilityZone { get; set; } + /// + /// Gets or sets the target VM tags. + /// + [JsonProperty(PropertyName = "targetVmTags")] + public IDictionary TargetVmTags { get; set; } + + /// + /// Gets or sets the tags for the target managed disks. + /// + [JsonProperty(PropertyName = "targetManagedDiskTags")] + public IDictionary TargetManagedDiskTags { get; set; } + + /// + /// Gets or sets the tags for the target NICs. + /// + [JsonProperty(PropertyName = "targetNicTags")] + public IDictionary TargetNicTags { get; set; } + + /// + /// Gets or sets the SQL Server license type. Possible values include: + /// 'NotSpecified', 'NoLicenseType', 'PAYG', 'AHUB' + /// + [JsonProperty(PropertyName = "sqlServerLicenseType")] + public string SqlServerLicenseType { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaBasePolicyDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaBasePolicyDetails.cs index 406d1dd76fcf..ee237fae9d97 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaBasePolicyDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaBasePolicyDetails.cs @@ -51,7 +51,7 @@ public HyperVReplicaBasePolicyDetails() /// authentication type. /// A value indicating whether the /// VM has to be auto deleted. Supported Values: String.Empty, None, - /// OnRecoveryCloud + /// OnRecoveryCloud. public HyperVReplicaBasePolicyDetails(int? recoveryPoints = default(int?), int? applicationConsistentSnapshotFrequencyInHours = default(int?), string compression = default(string), string initialReplicationMethod = default(string), string onlineReplicationStartTime = default(string), string offlineReplicationImportPath = default(string), string offlineReplicationExportPath = default(string), int? replicationPort = default(int?), int? allowedAuthenticationType = default(int?), string replicaDeletionOption = default(string)) { RecoveryPoints = recoveryPoints; @@ -130,7 +130,7 @@ public HyperVReplicaBasePolicyDetails() /// /// Gets or sets a value indicating whether the VM has to be auto - /// deleted. Supported Values: String.Empty, None, OnRecoveryCloud + /// deleted. Supported Values: String.Empty, None, OnRecoveryCloud. /// [JsonProperty(PropertyName = "replicaDeletionOption")] public string ReplicaDeletionOption { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaBluePolicyInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaBluePolicyInput.cs index 45926b315540..a7dc2e63f013 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaBluePolicyInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaBluePolicyInput.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models /// HyperV Replica Blue policy input. /// [Newtonsoft.Json.JsonObject("HyperVReplica2012R2")] - public partial class HyperVReplicaBluePolicyInput : PolicyProviderSpecificInput + public partial class HyperVReplicaBluePolicyInput : HyperVReplicaPolicyInput { /// /// Initializes a new instance of the HyperVReplicaBluePolicyInput @@ -32,8 +32,6 @@ public HyperVReplicaBluePolicyInput() /// Initializes a new instance of the HyperVReplicaBluePolicyInput /// class. /// - /// A value indicating the - /// replication interval. /// A value indicating the number of /// recovery points. /// A value @@ -54,19 +52,12 @@ public HyperVReplicaBluePolicyInput() /// authentication type. /// A value indicating whether the VM has /// to be auto deleted. - public HyperVReplicaBluePolicyInput(int? replicationFrequencyInSeconds = default(int?), int? recoveryPoints = default(int?), int? applicationConsistentSnapshotFrequencyInHours = default(int?), string compression = default(string), string initialReplicationMethod = default(string), string onlineReplicationStartTime = default(string), string offlineReplicationImportPath = default(string), string offlineReplicationExportPath = default(string), int? replicationPort = default(int?), int? allowedAuthenticationType = default(int?), string replicaDeletion = default(string)) + /// A value indicating the + /// replication interval. + public HyperVReplicaBluePolicyInput(int? recoveryPoints = default(int?), int? applicationConsistentSnapshotFrequencyInHours = default(int?), string compression = default(string), string initialReplicationMethod = default(string), string onlineReplicationStartTime = default(string), string offlineReplicationImportPath = default(string), string offlineReplicationExportPath = default(string), int? replicationPort = default(int?), int? allowedAuthenticationType = default(int?), string replicaDeletion = default(string), int? replicationFrequencyInSeconds = default(int?)) + : base(recoveryPoints, applicationConsistentSnapshotFrequencyInHours, compression, initialReplicationMethod, onlineReplicationStartTime, offlineReplicationImportPath, offlineReplicationExportPath, replicationPort, allowedAuthenticationType, replicaDeletion) { ReplicationFrequencyInSeconds = replicationFrequencyInSeconds; - RecoveryPoints = recoveryPoints; - ApplicationConsistentSnapshotFrequencyInHours = applicationConsistentSnapshotFrequencyInHours; - Compression = compression; - InitialReplicationMethod = initialReplicationMethod; - OnlineReplicationStartTime = onlineReplicationStartTime; - OfflineReplicationImportPath = offlineReplicationImportPath; - OfflineReplicationExportPath = offlineReplicationExportPath; - ReplicationPort = replicationPort; - AllowedAuthenticationType = allowedAuthenticationType; - ReplicaDeletion = replicaDeletion; CustomInit(); } @@ -81,68 +72,5 @@ public HyperVReplicaBluePolicyInput() [JsonProperty(PropertyName = "replicationFrequencyInSeconds")] public int? ReplicationFrequencyInSeconds { get; set; } - /// - /// Gets or sets a value indicating the number of recovery points. - /// - [JsonProperty(PropertyName = "recoveryPoints")] - public int? RecoveryPoints { get; set; } - - /// - /// Gets or sets a value indicating the application consistent - /// frequency. - /// - [JsonProperty(PropertyName = "applicationConsistentSnapshotFrequencyInHours")] - public int? ApplicationConsistentSnapshotFrequencyInHours { get; set; } - - /// - /// Gets or sets a value indicating whether compression has to be - /// enabled. - /// - [JsonProperty(PropertyName = "compression")] - public string Compression { get; set; } - - /// - /// Gets or sets a value indicating whether IR is online. - /// - [JsonProperty(PropertyName = "initialReplicationMethod")] - public string InitialReplicationMethod { get; set; } - - /// - /// Gets or sets a value indicating the online IR start time. - /// - [JsonProperty(PropertyName = "onlineReplicationStartTime")] - public string OnlineReplicationStartTime { get; set; } - - /// - /// Gets or sets a value indicating the offline IR import path. - /// - [JsonProperty(PropertyName = "offlineReplicationImportPath")] - public string OfflineReplicationImportPath { get; set; } - - /// - /// Gets or sets a value indicating the offline IR export path. - /// - [JsonProperty(PropertyName = "offlineReplicationExportPath")] - public string OfflineReplicationExportPath { get; set; } - - /// - /// Gets or sets a value indicating the recovery HTTPS port. - /// - [JsonProperty(PropertyName = "replicationPort")] - public int? ReplicationPort { get; set; } - - /// - /// Gets or sets a value indicating the authentication type. - /// - [JsonProperty(PropertyName = "allowedAuthenticationType")] - public int? AllowedAuthenticationType { get; set; } - - /// - /// Gets or sets a value indicating whether the VM has to be auto - /// deleted. - /// - [JsonProperty(PropertyName = "replicaDeletion")] - public string ReplicaDeletion { get; set; } - } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVSiteDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVSiteDetails.cs index 02b44c853df5..7eefe0861533 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVSiteDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVSiteDetails.cs @@ -11,6 +11,8 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -27,11 +29,27 @@ public HyperVSiteDetails() CustomInit(); } + /// + /// Initializes a new instance of the HyperVSiteDetails class. + /// + /// The list of Hyper-V hosts associated with + /// the fabric. + public HyperVSiteDetails(IList hyperVHosts = default(IList)) + { + HyperVHosts = hyperVHosts; + CustomInit(); + } /// /// An initialization method that performs custom operations like setting defaults /// partial void CustomInit(); + /// + /// Gets or sets the list of Hyper-V hosts associated with the fabric. + /// + [JsonProperty(PropertyName = "hyperVHosts")] + public IList HyperVHosts { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVVirtualMachineDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVVirtualMachineDetails.cs index 2383b948ead9..4320822c8588 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVVirtualMachineDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVVirtualMachineDetails.cs @@ -41,16 +41,16 @@ public HyperVVirtualMachineDetails() /// time. /// A value indicating whether the VM has /// a physical disk attached. String value of - /// {SrsDataContract.PresenceStatus} enum. Possible values include: + /// SrsDataContract.PresenceStatus enum. Possible values include: /// 'Unknown', 'Present', 'NotPresent' /// A value indicating whether the /// VM has a fibre channel adapter attached. String value of - /// {SrsDataContract.PresenceStatus} enum. Possible values include: + /// SrsDataContract.PresenceStatus enum. Possible values include: /// 'Unknown', 'Present', 'NotPresent' /// A value indicating whether the VM has a - /// shared VHD attached. String value of - /// {SrsDataContract.PresenceStatus} enum. Possible values include: - /// 'Unknown', 'Present', 'NotPresent' + /// shared VHD attached. String value of SrsDataContract.PresenceStatus + /// enum. Possible values include: 'Unknown', 'Present', + /// 'NotPresent' public HyperVVirtualMachineDetails(string sourceItemId = default(string), string generation = default(string), OSDetails osDetails = default(OSDetails), IList diskDetails = default(IList), string hasPhysicalDisk = default(string), string hasFibreChannelAdapter = default(string), string hasSharedVhd = default(string)) { SourceItemId = sourceItemId; @@ -94,7 +94,7 @@ public HyperVVirtualMachineDetails() /// /// Gets or sets a value indicating whether the VM has a physical disk - /// attached. String value of {SrsDataContract.PresenceStatus} enum. + /// attached. String value of SrsDataContract.PresenceStatus enum. /// Possible values include: 'Unknown', 'Present', 'NotPresent' /// [JsonProperty(PropertyName = "hasPhysicalDisk")] @@ -102,7 +102,7 @@ public HyperVVirtualMachineDetails() /// /// Gets or sets a value indicating whether the VM has a fibre channel - /// adapter attached. String value of {SrsDataContract.PresenceStatus} + /// adapter attached. String value of SrsDataContract.PresenceStatus /// enum. Possible values include: 'Unknown', 'Present', 'NotPresent' /// [JsonProperty(PropertyName = "hasFibreChannelAdapter")] @@ -110,7 +110,7 @@ public HyperVVirtualMachineDetails() /// /// Gets or sets a value indicating whether the VM has a shared VHD - /// attached. String value of {SrsDataContract.PresenceStatus} enum. + /// attached. String value of SrsDataContract.PresenceStatus enum. /// Possible values include: 'Unknown', 'Present', 'NotPresent' /// [JsonProperty(PropertyName = "hasSharedVhd")] diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/IPConfig.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/IPConfig.cs deleted file mode 100644 index f0e6002a1a06..000000000000 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/IPConfig.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// IP configuration details. - /// - public partial class IPConfig - { - /// - /// Initializes a new instance of the IPConfig class. - /// - public IPConfig() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the IPConfig class. - /// - /// The static IP address of the IP - /// configuration. - /// The Id of the public IP address - /// associated with the IP configuration. - /// The backend address pools - /// associated with the IP configuration. - public IPConfig(string staticIPAddress = default(string), string publicIpAddressId = default(string), IList lBBackendAddressPoolIds = default(IList)) - { - StaticIPAddress = staticIPAddress; - PublicIpAddressId = publicIpAddressId; - LBBackendAddressPoolIds = lBBackendAddressPoolIds; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the static IP address of the IP configuration. - /// - [JsonProperty(PropertyName = "staticIPAddress")] - public string StaticIPAddress { get; set; } - - /// - /// Gets or sets the Id of the public IP address associated with the IP - /// configuration. - /// - [JsonProperty(PropertyName = "publicIpAddressId")] - public string PublicIpAddressId { get; set; } - - /// - /// Gets or sets the backend address pools associated with the IP - /// configuration. - /// - [JsonProperty(PropertyName = "lBBackendAddressPoolIds")] - public IList LBBackendAddressPoolIds { get; set; } - - } -} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/IPConfigDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/IPConfigDetails.cs new file mode 100644 index 000000000000..badd6b68e9ad --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/IPConfigDetails.cs @@ -0,0 +1,132 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + public partial class IPConfigDetails + { + /// + /// Initializes a new instance of the IPConfigDetails class. + /// + public IPConfigDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IPConfigDetails class. + /// + public IPConfigDetails(string name = default(string), bool? isPrimary = default(bool?), string subnetName = default(string), string staticIPAddress = default(string), string ipAddressType = default(string), bool? isSeletedForFailover = default(bool?), string recoverySubnetName = default(string), string recoveryStaticIPAddress = default(string), string recoveryIPAddressType = default(string), string recoveryPublicIPAddressId = default(string), IList recoveryLBBackendAddressPoolIds = default(IList), string tfoSubnetName = default(string), string tfoStaticIPAddress = default(string), string tfoPublicIPAddressId = default(string), IList tfoLBBackendAddressPoolIds = default(IList)) + { + Name = name; + IsPrimary = isPrimary; + SubnetName = subnetName; + StaticIPAddress = staticIPAddress; + IpAddressType = ipAddressType; + IsSeletedForFailover = isSeletedForFailover; + RecoverySubnetName = recoverySubnetName; + RecoveryStaticIPAddress = recoveryStaticIPAddress; + RecoveryIPAddressType = recoveryIPAddressType; + RecoveryPublicIPAddressId = recoveryPublicIPAddressId; + RecoveryLBBackendAddressPoolIds = recoveryLBBackendAddressPoolIds; + TfoSubnetName = tfoSubnetName; + TfoStaticIPAddress = tfoStaticIPAddress; + TfoPublicIPAddressId = tfoPublicIPAddressId; + TfoLBBackendAddressPoolIds = tfoLBBackendAddressPoolIds; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// + [JsonProperty(PropertyName = "isPrimary")] + public bool? IsPrimary { get; set; } + + /// + /// + [JsonProperty(PropertyName = "subnetName")] + public string SubnetName { get; set; } + + /// + /// + [JsonProperty(PropertyName = "staticIPAddress")] + public string StaticIPAddress { get; set; } + + /// + /// + [JsonProperty(PropertyName = "ipAddressType")] + public string IpAddressType { get; set; } + + /// + /// + [JsonProperty(PropertyName = "isSeletedForFailover")] + public bool? IsSeletedForFailover { get; set; } + + /// + /// + [JsonProperty(PropertyName = "recoverySubnetName")] + public string RecoverySubnetName { get; set; } + + /// + /// + [JsonProperty(PropertyName = "recoveryStaticIPAddress")] + public string RecoveryStaticIPAddress { get; set; } + + /// + /// + [JsonProperty(PropertyName = "recoveryIPAddressType")] + public string RecoveryIPAddressType { get; set; } + + /// + /// + [JsonProperty(PropertyName = "recoveryPublicIPAddressId")] + public string RecoveryPublicIPAddressId { get; set; } + + /// + /// + [JsonProperty(PropertyName = "recoveryLBBackendAddressPoolIds")] + public IList RecoveryLBBackendAddressPoolIds { get; set; } + + /// + /// + [JsonProperty(PropertyName = "tfoSubnetName")] + public string TfoSubnetName { get; set; } + + /// + /// + [JsonProperty(PropertyName = "tfoStaticIPAddress")] + public string TfoStaticIPAddress { get; set; } + + /// + /// + [JsonProperty(PropertyName = "tfoPublicIPAddressId")] + public string TfoPublicIPAddressId { get; set; } + + /// + /// + [JsonProperty(PropertyName = "tfoLBBackendAddressPoolIds")] + public IList TfoLBBackendAddressPoolIds { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/IPConfigInputDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/IPConfigInputDetails.cs new file mode 100644 index 000000000000..a854f6c485e9 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/IPConfigInputDetails.cs @@ -0,0 +1,108 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + public partial class IPConfigInputDetails + { + /// + /// Initializes a new instance of the IPConfigInputDetails class. + /// + public IPConfigInputDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IPConfigInputDetails class. + /// + public IPConfigInputDetails(string ipConfigName = default(string), bool? isPrimary = default(bool?), bool? isSeletedForFailover = default(bool?), string recoverySubnetName = default(string), string recoveryStaticIPAddress = default(string), string recoveryPublicIPAddressId = default(string), IList recoveryLBBackendAddressPoolIds = default(IList), string tfoSubnetName = default(string), string tfoStaticIPAddress = default(string), string tfoPublicIPAddressId = default(string), IList tfoLBBackendAddressPoolIds = default(IList)) + { + IpConfigName = ipConfigName; + IsPrimary = isPrimary; + IsSeletedForFailover = isSeletedForFailover; + RecoverySubnetName = recoverySubnetName; + RecoveryStaticIPAddress = recoveryStaticIPAddress; + RecoveryPublicIPAddressId = recoveryPublicIPAddressId; + RecoveryLBBackendAddressPoolIds = recoveryLBBackendAddressPoolIds; + TfoSubnetName = tfoSubnetName; + TfoStaticIPAddress = tfoStaticIPAddress; + TfoPublicIPAddressId = tfoPublicIPAddressId; + TfoLBBackendAddressPoolIds = tfoLBBackendAddressPoolIds; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "ipConfigName")] + public string IpConfigName { get; set; } + + /// + /// + [JsonProperty(PropertyName = "isPrimary")] + public bool? IsPrimary { get; set; } + + /// + /// + [JsonProperty(PropertyName = "isSeletedForFailover")] + public bool? IsSeletedForFailover { get; set; } + + /// + /// + [JsonProperty(PropertyName = "recoverySubnetName")] + public string RecoverySubnetName { get; set; } + + /// + /// + [JsonProperty(PropertyName = "recoveryStaticIPAddress")] + public string RecoveryStaticIPAddress { get; set; } + + /// + /// + [JsonProperty(PropertyName = "recoveryPublicIPAddressId")] + public string RecoveryPublicIPAddressId { get; set; } + + /// + /// + [JsonProperty(PropertyName = "recoveryLBBackendAddressPoolIds")] + public IList RecoveryLBBackendAddressPoolIds { get; set; } + + /// + /// + [JsonProperty(PropertyName = "tfoSubnetName")] + public string TfoSubnetName { get; set; } + + /// + /// + [JsonProperty(PropertyName = "tfoStaticIPAddress")] + public string TfoStaticIPAddress { get; set; } + + /// + /// + [JsonProperty(PropertyName = "tfoPublicIPAddressId")] + public string TfoPublicIPAddressId { get; set; } + + /// + /// + [JsonProperty(PropertyName = "tfoLBBackendAddressPoolIds")] + public IList TfoLBBackendAddressPoolIds { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAgentVersionDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAgentVersionDetails.cs deleted file mode 100644 index 5cfdfcac5604..000000000000 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAgentVersionDetails.cs +++ /dev/null @@ -1,81 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// InMage agent version details. - /// - public partial class InMageAgentVersionDetails - { - /// - /// Initializes a new instance of the InMageAgentVersionDetails class. - /// - public InMageAgentVersionDetails() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the InMageAgentVersionDetails class. - /// - /// A value indicating whether - /// reboot is required after update is applied. - /// The agent version. - /// Version expiry date. - /// A value indicating whether security update - /// required. Possible values include: 'Supported', 'NotSupported', - /// 'Deprecated', 'UpdateRequired', 'SecurityUpdateRequired' - public InMageAgentVersionDetails(string postUpdateRebootStatus = default(string), string version = default(string), System.DateTime? expiryDate = default(System.DateTime?), string status = default(string)) - { - PostUpdateRebootStatus = postUpdateRebootStatus; - Version = version; - ExpiryDate = expiryDate; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets a value indicating whether reboot is required after - /// update is applied. - /// - [JsonProperty(PropertyName = "postUpdateRebootStatus")] - public string PostUpdateRebootStatus { get; set; } - - /// - /// Gets or sets the agent version. - /// - [JsonProperty(PropertyName = "version")] - public string Version { get; set; } - - /// - /// Gets or sets version expiry date. - /// - [JsonProperty(PropertyName = "expiryDate")] - public System.DateTime? ExpiryDate { get; set; } - - /// - /// Gets or sets a value indicating whether security update required. - /// Possible values include: 'Supported', 'NotSupported', 'Deprecated', - /// 'UpdateRequired', 'SecurityUpdateRequired' - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - } -} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ApplyRecoveryPointInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ApplyRecoveryPointInput.cs index f753c358ac62..cd18b311c64a 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ApplyRecoveryPointInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ApplyRecoveryPointInput.cs @@ -28,28 +28,11 @@ public InMageAzureV2ApplyRecoveryPointInput() CustomInit(); } - /// - /// Initializes a new instance of the - /// InMageAzureV2ApplyRecoveryPointInput class. - /// - /// The vault location where the recovery - /// Vm resides. - public InMageAzureV2ApplyRecoveryPointInput(string vaultLocation = default(string)) - { - VaultLocation = vaultLocation; - CustomInit(); - } /// /// An initialization method that performs custom operations like setting defaults /// partial void CustomInit(); - /// - /// Gets or sets the vault location where the recovery Vm resides. - /// - [JsonProperty(PropertyName = "vaultLocation")] - public string VaultLocation { get; set; } - } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2EnableProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2EnableProtectionInput.cs index 0a10b324dd45..845a3309b3ca 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2EnableProtectionInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2EnableProtectionInput.cs @@ -36,19 +36,19 @@ public InMageAzureV2EnableProtectionInput() /// /// The Master target Id. /// The Process Server Id. - /// The storage account name. + /// The storage account Id. /// The CS account Id. - /// The multi vm group Id. - /// The multi vm group name. + /// The multi VM group Id. + /// The multi VM group name. /// The disks to include list. /// The selected target Azure /// network Id. /// The selected target Azure subnet /// Id. /// The selected option to enable - /// RDP\SSH on target vm after failover. String value of - /// {SrsDataContract.EnableRDPOnTargetOption} enum. - /// The target azure Vm Name. + /// 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 Id of the target @@ -59,15 +59,27 @@ public InMageAzureV2EnableProtectionInput() /// failover VM is to be created. /// The DiskType. Possible values include: /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' - /// The DiskEncryptionSet ARM - /// ID. + /// The target availability set + /// ARM Id for resource manager deployment. /// The target availability /// zone. /// The proximity /// placement group ARM Id. - /// The availability set ARM + /// License type. Possible values include: + /// 'NotSpecified', 'NoLicenseType', 'WindowsServer' + /// The SQL Server license type. + /// Possible values include: 'NotSpecified', 'NoLicenseType', 'PAYG', + /// 'AHUB' + /// The target VM size. + /// The DiskEncryptionSet ARM /// Id. - public InMageAzureV2EnableProtectionInput(string masterTargetId = default(string), string processServerId = default(string), string storageAccountId = default(string), string runAsAccountId = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), IList disksToInclude = default(IList), string targetAzureNetworkId = default(string), string targetAzureSubnetId = default(string), string enableRdpOnTargetOption = default(string), string targetAzureVmName = default(string), string logStorageAccountId = default(string), string targetAzureV1ResourceGroupId = default(string), string targetAzureV2ResourceGroupId = default(string), string diskType = default(string), string diskEncryptionSetId = default(string), string targetAvailabilityZone = default(string), string targetProximityPlacementGroupId = default(string), string targetAvailabilitySetId = default(string)) + /// The target VM tags. + /// The tags for the seed managed + /// disks. + /// The tags for the target managed + /// disks. + /// The tags for the target NICs. + public InMageAzureV2EnableProtectionInput(string masterTargetId = default(string), string processServerId = default(string), string storageAccountId = default(string), string runAsAccountId = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), IList disksToInclude = default(IList), string targetAzureNetworkId = default(string), string targetAzureSubnetId = default(string), string enableRdpOnTargetOption = default(string), string targetAzureVmName = default(string), string logStorageAccountId = default(string), string targetAzureV1ResourceGroupId = default(string), string targetAzureV2ResourceGroupId = default(string), string diskType = default(string), string targetAvailabilitySetId = default(string), string targetAvailabilityZone = default(string), string targetProximityPlacementGroupId = default(string), string licenseType = default(string), string sqlServerLicenseType = default(string), string targetVmSize = default(string), string diskEncryptionSetId = default(string), IDictionary targetVmTags = default(IDictionary), IDictionary seedManagedDiskTags = default(IDictionary), IDictionary targetManagedDiskTags = default(IDictionary), IDictionary targetNicTags = default(IDictionary)) { MasterTargetId = masterTargetId; ProcessServerId = processServerId; @@ -84,10 +96,17 @@ public InMageAzureV2EnableProtectionInput() TargetAzureV1ResourceGroupId = targetAzureV1ResourceGroupId; TargetAzureV2ResourceGroupId = targetAzureV2ResourceGroupId; DiskType = diskType; - DiskEncryptionSetId = diskEncryptionSetId; + TargetAvailabilitySetId = targetAvailabilitySetId; TargetAvailabilityZone = targetAvailabilityZone; TargetProximityPlacementGroupId = targetProximityPlacementGroupId; - TargetAvailabilitySetId = targetAvailabilitySetId; + LicenseType = licenseType; + SqlServerLicenseType = sqlServerLicenseType; + TargetVmSize = targetVmSize; + DiskEncryptionSetId = diskEncryptionSetId; + TargetVmTags = targetVmTags; + SeedManagedDiskTags = seedManagedDiskTags; + TargetManagedDiskTags = targetManagedDiskTags; + TargetNicTags = targetNicTags; CustomInit(); } @@ -109,7 +128,7 @@ public InMageAzureV2EnableProtectionInput() public string ProcessServerId { get; set; } /// - /// Gets or sets the storage account name. + /// Gets or sets the storage account Id. /// [JsonProperty(PropertyName = "storageAccountId")] public string StorageAccountId { get; set; } @@ -121,13 +140,13 @@ public InMageAzureV2EnableProtectionInput() public string RunAsAccountId { get; set; } /// - /// Gets or sets the multi vm group Id. + /// Gets or sets the multi VM group Id. /// [JsonProperty(PropertyName = "multiVmGroupId")] public string MultiVmGroupId { get; set; } /// - /// Gets or sets the multi vm group name. + /// Gets or sets the multi VM group name. /// [JsonProperty(PropertyName = "multiVmGroupName")] public string MultiVmGroupName { get; set; } @@ -151,15 +170,15 @@ public InMageAzureV2EnableProtectionInput() public string TargetAzureSubnetId { get; set; } /// - /// Gets or sets the selected option to enable RDP\SSH on target vm + /// Gets or sets the selected option to enable RDP\SSH on target VM /// after failover. String value of - /// {SrsDataContract.EnableRDPOnTargetOption} enum. + /// SrsDataContract.EnableRDPOnTargetOption enum. /// [JsonProperty(PropertyName = "enableRdpOnTargetOption")] public string EnableRdpOnTargetOption { get; set; } /// - /// Gets or sets the target azure Vm Name. + /// Gets or sets the target azure VM Name. /// [JsonProperty(PropertyName = "targetAzureVmName")] public string TargetAzureVmName { get; set; } @@ -193,10 +212,11 @@ public InMageAzureV2EnableProtectionInput() public string DiskType { get; set; } /// - /// Gets or sets the DiskEncryptionSet ARM ID. + /// Gets or sets the target availability set ARM Id for resource + /// manager deployment. /// - [JsonProperty(PropertyName = "diskEncryptionSetId")] - public string DiskEncryptionSetId { get; set; } + [JsonProperty(PropertyName = "targetAvailabilitySetId")] + public string TargetAvailabilitySetId { get; set; } /// /// Gets or sets the target availability zone. @@ -211,10 +231,54 @@ public InMageAzureV2EnableProtectionInput() public string TargetProximityPlacementGroupId { get; set; } /// - /// Gets or sets the availability set ARM Id. + /// Gets or sets license type. Possible values include: 'NotSpecified', + /// 'NoLicenseType', 'WindowsServer' /// - [JsonProperty(PropertyName = "targetAvailabilitySetId")] - public string TargetAvailabilitySetId { get; set; } + [JsonProperty(PropertyName = "licenseType")] + public string LicenseType { get; set; } + + /// + /// Gets or sets the SQL Server license type. Possible values include: + /// 'NotSpecified', 'NoLicenseType', 'PAYG', 'AHUB' + /// + [JsonProperty(PropertyName = "sqlServerLicenseType")] + public string SqlServerLicenseType { get; set; } + + /// + /// Gets or sets the target VM size. + /// + [JsonProperty(PropertyName = "targetVmSize")] + public string TargetVmSize { get; set; } + + /// + /// Gets or sets the DiskEncryptionSet ARM Id. + /// + [JsonProperty(PropertyName = "diskEncryptionSetId")] + public string DiskEncryptionSetId { get; set; } + + /// + /// Gets or sets the target VM tags. + /// + [JsonProperty(PropertyName = "targetVmTags")] + public IDictionary TargetVmTags { get; set; } + + /// + /// Gets or sets the tags for the seed managed disks. + /// + [JsonProperty(PropertyName = "seedManagedDiskTags")] + public IDictionary SeedManagedDiskTags { get; set; } + + /// + /// Gets or sets the tags for the target managed disks. + /// + [JsonProperty(PropertyName = "targetManagedDiskTags")] + public IDictionary TargetManagedDiskTags { get; set; } + + /// + /// Gets or sets the tags for the target NICs. + /// + [JsonProperty(PropertyName = "targetNicTags")] + public IDictionary TargetNicTags { get; set; } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2EventDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2EventDetails.cs index 2ae1af392316..abe6977ecbd6 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2EventDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2EventDetails.cs @@ -31,7 +31,7 @@ public InMageAzureV2EventDetails() /// Initializes a new instance of the InMageAzureV2EventDetails class. /// /// InMage Event type. Takes one of the values - /// of {InMageDataContract.InMageMonitoringEventType}. + /// of InMageDataContract.InMageMonitoringEventType. /// InMage Event Category. /// InMage Event Component. /// Corrective Action string for the @@ -58,7 +58,7 @@ public InMageAzureV2EventDetails() /// /// Gets or sets inMage Event type. Takes one of the values of - /// {InMageDataContract.InMageMonitoringEventType}. + /// InMageDataContract.InMageMonitoringEventType. /// [JsonProperty(PropertyName = "eventType")] public string EventType { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ManagedDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ManagedDiskDetails.cs index 8ce52ac99422..afb8d952019e 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ManagedDiskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ManagedDiskDetails.cs @@ -34,11 +34,14 @@ public InMageAzureV2ManagedDiskDetails() /// The disk id. /// Seed managed disk Id. /// The replica disk type. - public InMageAzureV2ManagedDiskDetails(string diskId = default(string), string seedManagedDiskId = default(string), string replicaDiskType = default(string)) + /// The DiskEncryptionSet ARM + /// ID. + public InMageAzureV2ManagedDiskDetails(string diskId = default(string), string seedManagedDiskId = default(string), string replicaDiskType = default(string), string diskEncryptionSetId = default(string)) { DiskId = diskId; SeedManagedDiskId = seedManagedDiskId; ReplicaDiskType = replicaDiskType; + DiskEncryptionSetId = diskEncryptionSetId; CustomInit(); } @@ -65,5 +68,11 @@ public InMageAzureV2ManagedDiskDetails() [JsonProperty(PropertyName = "replicaDiskType")] public string ReplicaDiskType { get; set; } + /// + /// Gets or sets the DiskEncryptionSet ARM ID. + /// + [JsonProperty(PropertyName = "diskEncryptionSetId")] + public string DiskEncryptionSetId { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ProtectedDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ProtectedDiskDetails.cs index e7ceb1948a69..c2067c8f82cb 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ProtectedDiskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ProtectedDiskDetails.cs @@ -56,7 +56,18 @@ public InMageAzureV2ProtectedDiskDetails() /// resized. /// 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?)) + /// The resync processed + /// bytes. + /// The resync total + /// transferred bytes. + /// The resync last + /// 15 minutes transferred bytes. + /// The last data transfer + /// time in UTC. + /// The resync start time. + /// The Progress Health. + /// The Progress Status. + 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?), long? resyncProcessedBytes = default(long?), long? resyncTotalTransferredBytes = default(long?), long? resyncLast15MinutesTransferredBytes = default(long?), System.DateTime? resyncLastDataTransferTimeUTC = default(System.DateTime?), System.DateTime? resyncStartTime = default(System.DateTime?), string progressHealth = default(string), string progressStatus = default(string)) { DiskId = diskId; DiskName = diskName; @@ -73,6 +84,13 @@ public InMageAzureV2ProtectedDiskDetails() TargetDataInMegaBytes = targetDataInMegaBytes; DiskResized = diskResized; LastRpoCalculatedTime = lastRpoCalculatedTime; + ResyncProcessedBytes = resyncProcessedBytes; + ResyncTotalTransferredBytes = resyncTotalTransferredBytes; + ResyncLast15MinutesTransferredBytes = resyncLast15MinutesTransferredBytes; + ResyncLastDataTransferTimeUTC = resyncLastDataTransferTimeUTC; + ResyncStartTime = resyncStartTime; + ProgressHealth = progressHealth; + ProgressStatus = progressStatus; CustomInit(); } @@ -172,5 +190,47 @@ public InMageAzureV2ProtectedDiskDetails() [JsonProperty(PropertyName = "lastRpoCalculatedTime")] public System.DateTime? LastRpoCalculatedTime { get; set; } + /// + /// Gets or sets the resync processed bytes. + /// + [JsonProperty(PropertyName = "resyncProcessedBytes")] + public long? ResyncProcessedBytes { get; set; } + + /// + /// Gets or sets the resync total transferred bytes. + /// + [JsonProperty(PropertyName = "resyncTotalTransferredBytes")] + public long? ResyncTotalTransferredBytes { get; set; } + + /// + /// Gets or sets the resync last 15 minutes transferred bytes. + /// + [JsonProperty(PropertyName = "resyncLast15MinutesTransferredBytes")] + public long? ResyncLast15MinutesTransferredBytes { get; set; } + + /// + /// Gets or sets the last data transfer time in UTC. + /// + [JsonProperty(PropertyName = "resyncLastDataTransferTimeUTC")] + public System.DateTime? ResyncLastDataTransferTimeUTC { get; set; } + + /// + /// Gets or sets the resync start time. + /// + [JsonProperty(PropertyName = "resyncStartTime")] + public System.DateTime? ResyncStartTime { get; set; } + + /// + /// Gets or sets the Progress Health. + /// + [JsonProperty(PropertyName = "progressHealth")] + public string ProgressHealth { get; set; } + + /// + /// Gets or sets the Progress Status. + /// + [JsonProperty(PropertyName = "progressStatus")] + public string ProgressStatus { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ReplicationDetails.cs index e59783fe0541..89c244158602 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ReplicationDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2ReplicationDetails.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// InMageAzureV2 provider specific settings + /// InMageAzureV2 provider specific settings. /// [Newtonsoft.Json.JsonObject("InMageAzureV2")] public partial class InMageAzureV2ReplicationDetails : ReplicationProviderSpecificSettings @@ -99,9 +99,9 @@ public InMageAzureV2ReplicationDetails() /// 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. - /// The data stores of the on-premise machine. - /// Value can be list of strings that contain data store names. + /// 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. @@ -117,6 +117,8 @@ public InMageAzureV2ReplicationDetails() /// disks should be used during failover. /// License Type of the VM to be /// used. + /// The SQL Server license + /// type. /// The validation errors of the /// on-premise machine Value can be list of validation errors. /// The last RPO calculated @@ -129,7 +131,24 @@ public InMageAzureV2ReplicationDetails() /// item. /// The list of protected managed /// disks. - public InMageAzureV2ReplicationDetails(string infrastructureVmId = default(string), string vCenterInfrastructureId = default(string), string protectionStage = default(string), string vmId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), int? resyncProgressPercentage = default(int?), long? rpoInSeconds = default(long?), double? compressedDataRateInMB = default(double?), double? uncompressedDataRateInMB = default(double?), string ipAddress = default(string), string agentVersion = default(string), System.DateTime? agentExpiryDate = default(System.DateTime?), string isAgentUpdateRequired = default(string), string isRebootAfterUpdateRequired = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string processServerId = default(string), string processServerName = 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 selectedTfoAzureNetworkId = default(string), string selectedSourceNicId = default(string), string discoveryType = default(string), string enableRdpOnTargetOption = default(string), IList datastores = default(IList), string targetVmId = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryAvailabilitySetId = default(string), string targetAvailabilityZone = default(string), string targetProximityPlacementGroupId = 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), IList protectedManagedDisks = default(IList)) + /// The last recovery point + /// received time. + /// The firmware type of this protected + /// item. + /// The target generation for this + /// protected item. + /// A value indicating whether + /// additional IR stats are available or not. + /// The total transferred data in + /// bytes. + /// The progress health. + /// The target VM tags. + /// The tags for the seed managed + /// disks. + /// The tags for the target managed + /// disks. + /// The tags for the target NICs. + public InMageAzureV2ReplicationDetails(string infrastructureVmId = default(string), string vCenterInfrastructureId = default(string), string protectionStage = default(string), string vmId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), int? resyncProgressPercentage = default(int?), long? rpoInSeconds = default(long?), double? compressedDataRateInMB = default(double?), double? uncompressedDataRateInMB = default(double?), string ipAddress = default(string), string agentVersion = default(string), System.DateTime? agentExpiryDate = default(System.DateTime?), string isAgentUpdateRequired = default(string), string isRebootAfterUpdateRequired = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string processServerId = default(string), string processServerName = 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 selectedTfoAzureNetworkId = default(string), string selectedSourceNicId = default(string), string discoveryType = default(string), string enableRdpOnTargetOption = default(string), IList datastores = default(IList), string targetVmId = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryAvailabilitySetId = default(string), string targetAvailabilityZone = default(string), string targetProximityPlacementGroupId = default(string), string useManagedDisks = default(string), string licenseType = default(string), string sqlServerLicenseType = 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), IList protectedManagedDisks = default(IList), System.DateTime? lastRecoveryPointReceived = default(System.DateTime?), string firmwareType = default(string), string azureVmGeneration = default(string), bool? isAdditionalStatsAvailable = default(bool?), long? totalDataTransferred = default(long?), string totalProgressHealth = default(string), IDictionary targetVmTags = default(IDictionary), IDictionary seedManagedDiskTags = default(IDictionary), IDictionary targetManagedDiskTags = default(IDictionary), IDictionary targetNicTags = default(IDictionary)) { InfrastructureVmId = infrastructureVmId; VCenterInfrastructureId = vCenterInfrastructureId; @@ -179,12 +198,23 @@ public InMageAzureV2ReplicationDetails() TargetProximityPlacementGroupId = targetProximityPlacementGroupId; UseManagedDisks = useManagedDisks; LicenseType = licenseType; + SqlServerLicenseType = sqlServerLicenseType; ValidationErrors = validationErrors; LastRpoCalculatedTime = lastRpoCalculatedTime; LastUpdateReceivedTime = lastUpdateReceivedTime; ReplicaId = replicaId; OsVersion = osVersion; ProtectedManagedDisks = protectedManagedDisks; + LastRecoveryPointReceived = lastRecoveryPointReceived; + FirmwareType = firmwareType; + AzureVmGeneration = azureVmGeneration; + IsAdditionalStatsAvailable = isAdditionalStatsAvailable; + TotalDataTransferred = totalDataTransferred; + TotalProgressHealth = totalProgressHealth; + TargetVmTags = targetVmTags; + SeedManagedDiskTags = seedManagedDiskTags; + TargetManagedDiskTags = targetManagedDiskTags; + TargetNicTags = targetNicTags; CustomInit(); } @@ -298,10 +328,10 @@ public InMageAzureV2ReplicationDetails() public string ProcessServerId { get; set; } /// - /// Gets the process server name. + /// Gets or sets the process server name. /// [JsonProperty(PropertyName = "processServerName")] - public string ProcessServerName { get; private set; } + public string ProcessServerName { get; set; } /// /// Gets or sets the multi vm group Id. @@ -438,14 +468,14 @@ public InMageAzureV2ReplicationDetails() /// /// Gets or sets the selected option to enable RDP\SSH on target vm /// after failover. String value of - /// {SrsDataContract.EnableRDPOnTargetOption} enum. + /// SrsDataContract.EnableRDPOnTargetOption enum. /// [JsonProperty(PropertyName = "enableRdpOnTargetOption")] public string EnableRdpOnTargetOption { get; set; } /// - /// Gets or sets the data stores of the on-premise machine. Value can - /// be list of strings that contain data store 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; } @@ -495,6 +525,12 @@ public InMageAzureV2ReplicationDetails() [JsonProperty(PropertyName = "licenseType")] public string LicenseType { get; set; } + /// + /// Gets or sets the SQL Server license type. + /// + [JsonProperty(PropertyName = "sqlServerLicenseType")] + public string SqlServerLicenseType { get; set; } + /// /// Gets or sets the validation errors of the on-premise machine Value /// can be list of validation errors. @@ -532,5 +568,66 @@ public InMageAzureV2ReplicationDetails() [JsonProperty(PropertyName = "protectedManagedDisks")] public IList ProtectedManagedDisks { get; set; } + /// + /// Gets the last recovery point received time. + /// + [JsonProperty(PropertyName = "lastRecoveryPointReceived")] + public System.DateTime? LastRecoveryPointReceived { get; private set; } + + /// + /// Gets or sets the firmware type of this protected item. + /// + [JsonProperty(PropertyName = "firmwareType")] + public string FirmwareType { get; set; } + + /// + /// Gets or sets the target generation for this protected item. + /// + [JsonProperty(PropertyName = "azureVmGeneration")] + public string AzureVmGeneration { get; set; } + + /// + /// Gets or sets a value indicating whether additional IR stats are + /// available or not. + /// + [JsonProperty(PropertyName = "isAdditionalStatsAvailable")] + public bool? IsAdditionalStatsAvailable { get; set; } + + /// + /// Gets or sets the total transferred data in bytes. + /// + [JsonProperty(PropertyName = "totalDataTransferred")] + public long? TotalDataTransferred { get; set; } + + /// + /// Gets or sets the progress health. + /// + [JsonProperty(PropertyName = "totalProgressHealth")] + public string TotalProgressHealth { get; set; } + + /// + /// Gets or sets the target VM tags. + /// + [JsonProperty(PropertyName = "targetVmTags")] + public IDictionary TargetVmTags { get; set; } + + /// + /// Gets or sets the tags for the seed managed disks. + /// + [JsonProperty(PropertyName = "seedManagedDiskTags")] + public IDictionary SeedManagedDiskTags { get; set; } + + /// + /// Gets or sets the tags for the target managed disks. + /// + [JsonProperty(PropertyName = "targetManagedDiskTags")] + public IDictionary TargetManagedDiskTags { get; set; } + + /// + /// Gets or sets the tags for the target NICs. + /// + [JsonProperty(PropertyName = "targetNicTags")] + public IDictionary TargetNicTags { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2TestFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2TestFailoverInput.cs new file mode 100644 index 000000000000..c7f4ce831560 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2TestFailoverInput.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 Newtonsoft.Json; + using System.Linq; + + /// + /// InMageAzureV2 provider specific input for test failover. + /// + [Newtonsoft.Json.JsonObject("InMageAzureV2")] + public partial class InMageAzureV2TestFailoverInput : TestFailoverProviderSpecificInput + { + /// + /// Initializes a new instance of the InMageAzureV2TestFailoverInput + /// class. + /// + public InMageAzureV2TestFailoverInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageAzureV2TestFailoverInput + /// class. + /// + /// The recovery point id to be passed to + /// test failover to a particular recovery point. In case of latest + /// recovery point, null should be passed. + public InMageAzureV2TestFailoverInput(string recoveryPointId = default(string)) + { + RecoveryPointId = recoveryPointId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the recovery point id to be passed to test failover to + /// a particular recovery point. In case of latest recovery point, null + /// should be passed. + /// + [JsonProperty(PropertyName = "recoveryPointId")] + public string RecoveryPointId { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2FailoverProviderInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2UnplannedFailoverInput.cs similarity index 68% rename from sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2FailoverProviderInput.cs rename to sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2UnplannedFailoverInput.cs index 1565f2855cfe..c2924ec7279b 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2FailoverProviderInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2UnplannedFailoverInput.cs @@ -14,31 +14,29 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// InMageAzureV2 provider specific input for failover. + /// InMageAzureV2 provider specific input for unplanned failover. /// [Newtonsoft.Json.JsonObject("InMageAzureV2")] - public partial class InMageAzureV2FailoverProviderInput : ProviderSpecificFailoverInput + public partial class InMageAzureV2UnplannedFailoverInput : UnplannedFailoverProviderSpecificInput { /// /// Initializes a new instance of the - /// InMageAzureV2FailoverProviderInput class. + /// InMageAzureV2UnplannedFailoverInput class. /// - public InMageAzureV2FailoverProviderInput() + public InMageAzureV2UnplannedFailoverInput() { CustomInit(); } /// /// Initializes a new instance of the - /// InMageAzureV2FailoverProviderInput class. + /// InMageAzureV2UnplannedFailoverInput class. /// - /// 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. - public InMageAzureV2FailoverProviderInput(string vaultLocation = default(string), string recoveryPointId = default(string)) + public InMageAzureV2UnplannedFailoverInput(string recoveryPointId = default(string)) { - VaultLocation = vaultLocation; RecoveryPointId = recoveryPointId; CustomInit(); } @@ -48,12 +46,6 @@ public InMageAzureV2FailoverProviderInput() /// partial void CustomInit(); - /// - /// Gets or sets location of the vault. - /// - [JsonProperty(PropertyName = "vaultLocation")] - public string VaultLocation { 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 diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2UpdateReplicationProtectedItemInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2UpdateReplicationProtectedItemInput.cs index c51d03a92176..235733d2b98d 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2UpdateReplicationProtectedItemInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2UpdateReplicationProtectedItemInput.cs @@ -11,6 +11,8 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -42,13 +44,24 @@ public InMageAzureV2UpdateReplicationProtectedItemInput() /// placement group Id. /// The target availability /// zone. - public InMageAzureV2UpdateReplicationProtectedItemInput(string recoveryAzureV1ResourceGroupId = default(string), string recoveryAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string), string targetProximityPlacementGroupId = default(string), string targetAvailabilityZone = default(string)) + /// The target VM tags. + /// The tags for the target managed + /// disks. + /// The tags for the target NICs. + /// The SQL Server license type. + /// Possible values include: 'NotSpecified', 'NoLicenseType', 'PAYG', + /// 'AHUB' + public InMageAzureV2UpdateReplicationProtectedItemInput(string recoveryAzureV1ResourceGroupId = default(string), string recoveryAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string), string targetProximityPlacementGroupId = default(string), string targetAvailabilityZone = default(string), IDictionary targetVmTags = default(IDictionary), IDictionary targetManagedDiskTags = default(IDictionary), IDictionary targetNicTags = default(IDictionary), string sqlServerLicenseType = default(string)) { RecoveryAzureV1ResourceGroupId = recoveryAzureV1ResourceGroupId; RecoveryAzureV2ResourceGroupId = recoveryAzureV2ResourceGroupId; UseManagedDisks = useManagedDisks; TargetProximityPlacementGroupId = targetProximityPlacementGroupId; TargetAvailabilityZone = targetAvailabilityZone; + TargetVmTags = targetVmTags; + TargetManagedDiskTags = targetManagedDiskTags; + TargetNicTags = targetNicTags; + SqlServerLicenseType = sqlServerLicenseType; CustomInit(); } @@ -90,5 +103,30 @@ public InMageAzureV2UpdateReplicationProtectedItemInput() [JsonProperty(PropertyName = "targetAvailabilityZone")] public string TargetAvailabilityZone { get; set; } + /// + /// Gets or sets the target VM tags. + /// + [JsonProperty(PropertyName = "targetVmTags")] + public IDictionary TargetVmTags { get; set; } + + /// + /// Gets or sets the tags for the target managed disks. + /// + [JsonProperty(PropertyName = "targetManagedDiskTags")] + public IDictionary TargetManagedDiskTags { get; set; } + + /// + /// Gets or sets the tags for the target NICs. + /// + [JsonProperty(PropertyName = "targetNicTags")] + public IDictionary TargetNicTags { get; set; } + + /// + /// Gets or sets the SQL Server license type. Possible values include: + /// 'NotSpecified', 'NoLicenseType', 'PAYG', 'AHUB' + /// + [JsonProperty(PropertyName = "sqlServerLicenseType")] + public string SqlServerLicenseType { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageDiskDetails.cs index 8c9d32b1b6fd..d0f82b56a451 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageDiskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageDiskDetails.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// VMware/Physical specific Disk Details + /// VMware/Physical specific Disk Details. /// public partial class InMageDiskDetails { diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageEnableProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageEnableProtectionInput.cs index a597070213a3..a7251e02d469 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageEnableProtectionInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageEnableProtectionInput.cs @@ -39,11 +39,11 @@ public InMageEnableProtectionInput() /// The Process Server Id. /// The retention drive to use on the /// MT. - /// The multi vm group Id. - /// The multi vm group name. - /// The Vm Name. + /// The multi VM group Id. + /// The multi VM group name. + /// The VM Name. /// The CS account Id. - /// The target data store name. + /// The target datastore name. /// The enable disk exclusion /// input. /// The disks to include list. @@ -68,7 +68,7 @@ public InMageEnableProtectionInput() partial void CustomInit(); /// - /// Gets or sets the Vm Name. + /// Gets or sets the VM Name. /// [JsonProperty(PropertyName = "vmFriendlyName")] public string VmFriendlyName { get; set; } @@ -98,19 +98,19 @@ public InMageEnableProtectionInput() public string RunAsAccountId { get; set; } /// - /// Gets or sets the multi vm group Id. + /// Gets or sets the multi VM group Id. /// [JsonProperty(PropertyName = "multiVmGroupId")] public string MultiVmGroupId { get; set; } /// - /// Gets or sets the multi vm group name. + /// Gets or sets the multi VM group name. /// [JsonProperty(PropertyName = "multiVmGroupName")] public string MultiVmGroupName { get; set; } /// - /// Gets or sets the target data store name. + /// Gets or sets the target datastore name. /// [JsonProperty(PropertyName = "datastoreName")] public string DatastoreName { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageProtectedDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageProtectedDiskDetails.cs index 4ae7865821c6..75c9e56b4136 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageProtectedDiskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageProtectedDiskDetails.cs @@ -52,7 +52,18 @@ public InMageProtectedDiskDetails() /// resized. /// 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?)) + /// The resync processed + /// bytes. + /// The resync total + /// transferred bytes. + /// The resync last + /// 15 minutes transferred bytes. + /// The last data transfer + /// time in UTC. + /// The resync start time. + /// The Progress Health. + /// The Progress Status. + 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?), long? resyncProcessedBytes = default(long?), long? resyncTotalTransferredBytes = default(long?), long? resyncLast15MinutesTransferredBytes = default(long?), System.DateTime? resyncLastDataTransferTimeUTC = default(System.DateTime?), System.DateTime? resyncStartTime = default(System.DateTime?), string progressHealth = default(string), string progressStatus = default(string)) { DiskId = diskId; DiskName = diskName; @@ -69,6 +80,13 @@ public InMageProtectedDiskDetails() TargetDataInMB = targetDataInMB; DiskResized = diskResized; LastRpoCalculatedTime = lastRpoCalculatedTime; + ResyncProcessedBytes = resyncProcessedBytes; + ResyncTotalTransferredBytes = resyncTotalTransferredBytes; + ResyncLast15MinutesTransferredBytes = resyncLast15MinutesTransferredBytes; + ResyncLastDataTransferTimeUTC = resyncLastDataTransferTimeUTC; + ResyncStartTime = resyncStartTime; + ProgressHealth = progressHealth; + ProgressStatus = progressStatus; CustomInit(); } @@ -168,5 +186,47 @@ public InMageProtectedDiskDetails() [JsonProperty(PropertyName = "lastRpoCalculatedTime")] public System.DateTime? LastRpoCalculatedTime { get; set; } + /// + /// Gets or sets the resync processed bytes. + /// + [JsonProperty(PropertyName = "resyncProcessedBytes")] + public long? ResyncProcessedBytes { get; set; } + + /// + /// Gets or sets the resync total transferred bytes. + /// + [JsonProperty(PropertyName = "resyncTotalTransferredBytes")] + public long? ResyncTotalTransferredBytes { get; set; } + + /// + /// Gets or sets the resync last 15 minutes transferred bytes. + /// + [JsonProperty(PropertyName = "resyncLast15MinutesTransferredBytes")] + public long? ResyncLast15MinutesTransferredBytes { get; set; } + + /// + /// Gets or sets the last data transfer time in UTC. + /// + [JsonProperty(PropertyName = "resyncLastDataTransferTimeUTC")] + public System.DateTime? ResyncLastDataTransferTimeUTC { get; set; } + + /// + /// Gets or sets the resync start time. + /// + [JsonProperty(PropertyName = "resyncStartTime")] + public System.DateTime? ResyncStartTime { get; set; } + + /// + /// Gets or sets the Progress Health. + /// + [JsonProperty(PropertyName = "progressHealth")] + public string ProgressHealth { get; set; } + + /// + /// Gets or sets the Progress Status. + /// + [JsonProperty(PropertyName = "progressStatus")] + public string ProgressStatus { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmAgentUpgradeBlockingErrorDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmAgentUpgradeBlockingErrorDetails.cs new file mode 100644 index 000000000000..4b9b1e640257 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmAgentUpgradeBlockingErrorDetails.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 Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// InMageRcm source agent upgrade blocking error details. + /// + public partial class InMageRcmAgentUpgradeBlockingErrorDetails + { + /// + /// Initializes a new instance of the + /// InMageRcmAgentUpgradeBlockingErrorDetails class. + /// + public InMageRcmAgentUpgradeBlockingErrorDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// InMageRcmAgentUpgradeBlockingErrorDetails class. + /// + /// The error code. + /// The error message. + /// The possible causes. + /// The recommended action. + /// The error message + /// parameters. + /// The error tags. + public InMageRcmAgentUpgradeBlockingErrorDetails(string errorCode = default(string), string errorMessage = default(string), string possibleCauses = default(string), string recommendedAction = default(string), IDictionary errorMessageParameters = default(IDictionary), IDictionary errorTags = default(IDictionary)) + { + ErrorCode = errorCode; + ErrorMessage = errorMessage; + PossibleCauses = possibleCauses; + RecommendedAction = recommendedAction; + ErrorMessageParameters = errorMessageParameters; + ErrorTags = errorTags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the error code. + /// + [JsonProperty(PropertyName = "errorCode")] + public string ErrorCode { get; private set; } + + /// + /// Gets the error message. + /// + [JsonProperty(PropertyName = "errorMessage")] + public string ErrorMessage { get; private set; } + + /// + /// Gets the possible causes. + /// + [JsonProperty(PropertyName = "possibleCauses")] + public string PossibleCauses { get; private set; } + + /// + /// Gets the recommended action. + /// + [JsonProperty(PropertyName = "recommendedAction")] + public string RecommendedAction { get; private set; } + + /// + /// Gets the error message parameters. + /// + [JsonProperty(PropertyName = "errorMessageParameters")] + public IDictionary ErrorMessageParameters { get; private set; } + + /// + /// Gets the error tags. + /// + [JsonProperty(PropertyName = "errorTags")] + public IDictionary ErrorTags { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmApplyRecoveryPointInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmApplyRecoveryPointInput.cs new file mode 100644 index 000000000000..770812983675 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmApplyRecoveryPointInput.cs @@ -0,0 +1,68 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// ApplyRecoveryPoint input specific to InMageRcm provider. + /// + [Newtonsoft.Json.JsonObject("InMageRcm")] + public partial class InMageRcmApplyRecoveryPointInput : ApplyRecoveryPointProviderSpecificInput + { + /// + /// Initializes a new instance of the InMageRcmApplyRecoveryPointInput + /// class. + /// + public InMageRcmApplyRecoveryPointInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmApplyRecoveryPointInput + /// class. + /// + /// The recovery point Id. + public InMageRcmApplyRecoveryPointInput(string recoveryPointId) + { + RecoveryPointId = recoveryPointId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the recovery point Id. + /// + [JsonProperty(PropertyName = "recoveryPointId")] + public string RecoveryPointId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (RecoveryPointId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryPointId"); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmDiskInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmDiskInput.cs new file mode 100644 index 000000000000..7bf3c16d574b --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmDiskInput.cs @@ -0,0 +1,101 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcm disk input. + /// + public partial class InMageRcmDiskInput + { + /// + /// Initializes a new instance of the InMageRcmDiskInput class. + /// + public InMageRcmDiskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmDiskInput class. + /// + /// The disk Id. + /// The log storage account ARM + /// Id. + /// The disk type. Possible values include: + /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' + /// The DiskEncryptionSet ARM + /// Id. + public InMageRcmDiskInput(string diskId, string logStorageAccountId, string diskType, string diskEncryptionSetId = default(string)) + { + DiskId = diskId; + LogStorageAccountId = logStorageAccountId; + DiskType = diskType; + DiskEncryptionSetId = diskEncryptionSetId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the disk Id. + /// + [JsonProperty(PropertyName = "diskId")] + public string DiskId { get; set; } + + /// + /// Gets or sets the log storage account ARM Id. + /// + [JsonProperty(PropertyName = "logStorageAccountId")] + public string LogStorageAccountId { get; set; } + + /// + /// Gets or sets the disk type. Possible values include: + /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' + /// + [JsonProperty(PropertyName = "diskType")] + public string DiskType { get; set; } + + /// + /// Gets or sets the DiskEncryptionSet ARM Id. + /// + [JsonProperty(PropertyName = "diskEncryptionSetId")] + public string DiskEncryptionSetId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (DiskId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DiskId"); + } + if (LogStorageAccountId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "LogStorageAccountId"); + } + if (DiskType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DiskType"); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmDisksDefaultInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmDisksDefaultInput.cs new file mode 100644 index 000000000000..19682c54ddda --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmDisksDefaultInput.cs @@ -0,0 +1,89 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcm disk input. + /// + public partial class InMageRcmDisksDefaultInput + { + /// + /// Initializes a new instance of the InMageRcmDisksDefaultInput class. + /// + public InMageRcmDisksDefaultInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmDisksDefaultInput class. + /// + /// The log storage account ARM + /// Id. + /// The disk type. Possible values include: + /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' + /// The DiskEncryptionSet ARM + /// Id. + public InMageRcmDisksDefaultInput(string logStorageAccountId, string diskType, string diskEncryptionSetId = default(string)) + { + LogStorageAccountId = logStorageAccountId; + DiskType = diskType; + DiskEncryptionSetId = diskEncryptionSetId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the log storage account ARM Id. + /// + [JsonProperty(PropertyName = "logStorageAccountId")] + public string LogStorageAccountId { get; set; } + + /// + /// Gets or sets the disk type. Possible values include: + /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' + /// + [JsonProperty(PropertyName = "diskType")] + public string DiskType { get; set; } + + /// + /// Gets or sets the DiskEncryptionSet ARM Id. + /// + [JsonProperty(PropertyName = "diskEncryptionSetId")] + public string DiskEncryptionSetId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (LogStorageAccountId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "LogStorageAccountId"); + } + if (DiskType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DiskType"); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmEnableProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmEnableProtectionInput.cs new file mode 100644 index 000000000000..81207e8184ce --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmEnableProtectionInput.cs @@ -0,0 +1,239 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// InMageRcm specific enable protection input. + /// + [Newtonsoft.Json.JsonObject("InMageRcm")] + public partial class InMageRcmEnableProtectionInput : EnableProtectionProviderSpecificInput + { + /// + /// Initializes a new instance of the InMageRcmEnableProtectionInput + /// class. + /// + public InMageRcmEnableProtectionInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmEnableProtectionInput + /// class. + /// + /// The ARM Id of discovered + /// machine. + /// The target resource group ARM + /// Id. + /// The process server Id. + /// The disks to include list. + /// The default disk input. + /// The selected target network ARM + /// Id. + /// The selected test network ARM + /// Id. + /// The selected target subnet + /// name. + /// The selected test subnet name. + /// The target VM name. + /// The target VM size. + /// The license type. Possible values + /// include: 'NotSpecified', 'NoLicenseType', 'WindowsServer' + /// The target availability set + /// ARM Id. + /// The target availability + /// zone. + /// The target proximity + /// placement group Id. + /// The target boot + /// diagnostics storage account ARM Id. + /// The run-as account Id. + /// The multi VM group name. + public InMageRcmEnableProtectionInput(string fabricDiscoveryMachineId, string targetResourceGroupId, string processServerId, IList disksToInclude = default(IList), InMageRcmDisksDefaultInput disksDefault = default(InMageRcmDisksDefaultInput), string targetNetworkId = default(string), string testNetworkId = default(string), string targetSubnetName = default(string), string testSubnetName = default(string), string targetVmName = default(string), string targetVmSize = default(string), string licenseType = default(string), string targetAvailabilitySetId = default(string), string targetAvailabilityZone = default(string), string targetProximityPlacementGroupId = default(string), string targetBootDiagnosticsStorageAccountId = default(string), string runAsAccountId = default(string), string multiVmGroupName = default(string)) + { + FabricDiscoveryMachineId = fabricDiscoveryMachineId; + DisksToInclude = disksToInclude; + DisksDefault = disksDefault; + TargetResourceGroupId = targetResourceGroupId; + TargetNetworkId = targetNetworkId; + TestNetworkId = testNetworkId; + TargetSubnetName = targetSubnetName; + TestSubnetName = testSubnetName; + TargetVmName = targetVmName; + TargetVmSize = targetVmSize; + LicenseType = licenseType; + TargetAvailabilitySetId = targetAvailabilitySetId; + TargetAvailabilityZone = targetAvailabilityZone; + TargetProximityPlacementGroupId = targetProximityPlacementGroupId; + TargetBootDiagnosticsStorageAccountId = targetBootDiagnosticsStorageAccountId; + RunAsAccountId = runAsAccountId; + ProcessServerId = processServerId; + MultiVmGroupName = multiVmGroupName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the ARM Id of discovered machine. + /// + [JsonProperty(PropertyName = "fabricDiscoveryMachineId")] + public string FabricDiscoveryMachineId { get; set; } + + /// + /// Gets or sets the disks to include list. + /// + [JsonProperty(PropertyName = "disksToInclude")] + public IList DisksToInclude { get; set; } + + /// + /// Gets or sets the default disk input. + /// + [JsonProperty(PropertyName = "disksDefault")] + public InMageRcmDisksDefaultInput DisksDefault { get; set; } + + /// + /// Gets or sets the target resource group ARM Id. + /// + [JsonProperty(PropertyName = "targetResourceGroupId")] + public string TargetResourceGroupId { get; set; } + + /// + /// Gets or sets the selected target network ARM Id. + /// + [JsonProperty(PropertyName = "targetNetworkId")] + public string TargetNetworkId { get; set; } + + /// + /// Gets or sets the selected test network ARM Id. + /// + [JsonProperty(PropertyName = "testNetworkId")] + public string TestNetworkId { get; set; } + + /// + /// Gets or sets the selected target subnet name. + /// + [JsonProperty(PropertyName = "targetSubnetName")] + public string TargetSubnetName { get; set; } + + /// + /// Gets or sets the selected test subnet name. + /// + [JsonProperty(PropertyName = "testSubnetName")] + public string TestSubnetName { get; set; } + + /// + /// Gets or sets the target VM name. + /// + [JsonProperty(PropertyName = "targetVmName")] + public string TargetVmName { get; set; } + + /// + /// Gets or sets the target VM size. + /// + [JsonProperty(PropertyName = "targetVmSize")] + public string TargetVmSize { get; set; } + + /// + /// Gets or sets the license type. Possible values include: + /// 'NotSpecified', 'NoLicenseType', 'WindowsServer' + /// + [JsonProperty(PropertyName = "licenseType")] + public string LicenseType { get; set; } + + /// + /// Gets or sets the target availability set ARM Id. + /// + [JsonProperty(PropertyName = "targetAvailabilitySetId")] + public string TargetAvailabilitySetId { get; set; } + + /// + /// Gets or sets the target availability zone. + /// + [JsonProperty(PropertyName = "targetAvailabilityZone")] + public string TargetAvailabilityZone { get; set; } + + /// + /// Gets or sets the target proximity placement group Id. + /// + [JsonProperty(PropertyName = "targetProximityPlacementGroupId")] + public string TargetProximityPlacementGroupId { get; set; } + + /// + /// Gets or sets the target boot diagnostics storage account ARM Id. + /// + [JsonProperty(PropertyName = "targetBootDiagnosticsStorageAccountId")] + public string TargetBootDiagnosticsStorageAccountId { get; set; } + + /// + /// Gets or sets the run-as account Id. + /// + [JsonProperty(PropertyName = "runAsAccountId")] + public string RunAsAccountId { get; set; } + + /// + /// Gets or sets the process server Id. + /// + [JsonProperty(PropertyName = "processServerId")] + public string ProcessServerId { get; set; } + + /// + /// Gets or sets the multi VM group name. + /// + [JsonProperty(PropertyName = "multiVmGroupName")] + public string MultiVmGroupName { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (FabricDiscoveryMachineId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "FabricDiscoveryMachineId"); + } + if (TargetResourceGroupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "TargetResourceGroupId"); + } + if (ProcessServerId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ProcessServerId"); + } + if (DisksToInclude != null) + { + foreach (var element in DisksToInclude) + { + if (element != null) + { + element.Validate(); + } + } + } + if (DisksDefault != null) + { + DisksDefault.Validate(); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmEventDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmEventDetails.cs new file mode 100644 index 000000000000..ac83cb83f888 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmEventDetails.cs @@ -0,0 +1,109 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Event details for InMageRcm provider. + /// + [Newtonsoft.Json.JsonObject("InMageRcm")] + public partial class InMageRcmEventDetails : EventProviderSpecificDetails + { + /// + /// Initializes a new instance of the InMageRcmEventDetails class. + /// + public InMageRcmEventDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmEventDetails class. + /// + /// The protected item name. + /// The protected item name. + /// The latest agent version. + /// The job Id. + /// The fabric name. + /// The appliance name. + /// The server type. + /// The component display + /// name. + public InMageRcmEventDetails(string protectedItemName = default(string), string vmName = default(string), string latestAgentVersion = default(string), string jobId = default(string), string fabricName = default(string), string applianceName = default(string), string serverType = default(string), string componentDisplayName = default(string)) + { + ProtectedItemName = protectedItemName; + VmName = vmName; + LatestAgentVersion = latestAgentVersion; + JobId = jobId; + FabricName = fabricName; + ApplianceName = applianceName; + ServerType = serverType; + ComponentDisplayName = componentDisplayName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the protected item name. + /// + [JsonProperty(PropertyName = "protectedItemName")] + public string ProtectedItemName { get; private set; } + + /// + /// Gets the protected item name. + /// + [JsonProperty(PropertyName = "vmName")] + public string VmName { get; private set; } + + /// + /// Gets the latest agent version. + /// + [JsonProperty(PropertyName = "latestAgentVersion")] + public string LatestAgentVersion { get; private set; } + + /// + /// Gets the job Id. + /// + [JsonProperty(PropertyName = "jobId")] + public string JobId { get; private set; } + + /// + /// Gets the fabric name. + /// + [JsonProperty(PropertyName = "fabricName")] + public string FabricName { get; private set; } + + /// + /// Gets the appliance name. + /// + [JsonProperty(PropertyName = "applianceName")] + public string ApplianceName { get; private set; } + + /// + /// Gets the server type. + /// + [JsonProperty(PropertyName = "serverType")] + public string ServerType { get; private set; } + + /// + /// Gets the component display name. + /// + [JsonProperty(PropertyName = "componentDisplayName")] + public string ComponentDisplayName { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFabricCreationInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFabricCreationInput.cs new file mode 100644 index 000000000000..8ee5e4f8b7d8 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFabricCreationInput.cs @@ -0,0 +1,99 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcm fabric provider specific settings. + /// + [Newtonsoft.Json.JsonObject("InMageRcm")] + public partial class InMageRcmFabricCreationInput : FabricSpecificCreationInput + { + /// + /// Initializes a new instance of the InMageRcmFabricCreationInput + /// class. + /// + public InMageRcmFabricCreationInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmFabricCreationInput + /// class. + /// + /// The ARM Id of the VMware site. + /// The ARM Id of the physical + /// site. + /// The identity provider input for + /// source agent authentication. + public InMageRcmFabricCreationInput(string vmwareSiteId, string physicalSiteId, IdentityProviderInput sourceAgentIdentity) + { + VmwareSiteId = vmwareSiteId; + PhysicalSiteId = physicalSiteId; + SourceAgentIdentity = sourceAgentIdentity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the ARM Id of the VMware site. + /// + [JsonProperty(PropertyName = "vmwareSiteId")] + public string VmwareSiteId { get; set; } + + /// + /// Gets or sets the ARM Id of the physical site. + /// + [JsonProperty(PropertyName = "physicalSiteId")] + public string PhysicalSiteId { get; set; } + + /// + /// Gets or sets the identity provider input for source agent + /// authentication. + /// + [JsonProperty(PropertyName = "sourceAgentIdentity")] + public IdentityProviderInput SourceAgentIdentity { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (VmwareSiteId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "VmwareSiteId"); + } + if (PhysicalSiteId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PhysicalSiteId"); + } + if (SourceAgentIdentity == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "SourceAgentIdentity"); + } + if (SourceAgentIdentity != null) + { + SourceAgentIdentity.Validate(); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFabricSpecificDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFabricSpecificDetails.cs new file mode 100644 index 000000000000..f5a90ee52a27 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFabricSpecificDetails.cs @@ -0,0 +1,170 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// InMageRcm fabric specific details. + /// + [Newtonsoft.Json.JsonObject("InMageRcm")] + public partial class InMageRcmFabricSpecificDetails : FabricSpecificDetails + { + /// + /// Initializes a new instance of the InMageRcmFabricSpecificDetails + /// class. + /// + public InMageRcmFabricSpecificDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmFabricSpecificDetails + /// class. + /// + /// The ARM Id of the VMware site. + /// The ARM Id of the physical + /// site. + /// The service endpoint. + /// The service resource Id. + /// The service container Id. + /// The data plane Uri. + /// The control plane Uri. + /// The list of process servers. + /// The list of RCM proxies. + /// The list of push installers. + /// The list of replication + /// agents. + /// The list of reprotect agents. + /// The list of Mars agents. + /// The list of DRAs. + /// The list of agent details. + public InMageRcmFabricSpecificDetails(string vmwareSiteId = default(string), string physicalSiteId = default(string), string serviceEndpoint = default(string), string serviceResourceId = default(string), string serviceContainerId = default(string), string dataPlaneUri = default(string), string controlPlaneUri = default(string), IList processServers = default(IList), IList rcmProxies = default(IList), IList pushInstallers = default(IList), IList replicationAgents = default(IList), IList reprotectAgents = default(IList), IList marsAgents = default(IList), IList dras = default(IList), IList agentDetails = default(IList)) + { + VmwareSiteId = vmwareSiteId; + PhysicalSiteId = physicalSiteId; + ServiceEndpoint = serviceEndpoint; + ServiceResourceId = serviceResourceId; + ServiceContainerId = serviceContainerId; + DataPlaneUri = dataPlaneUri; + ControlPlaneUri = controlPlaneUri; + ProcessServers = processServers; + RcmProxies = rcmProxies; + PushInstallers = pushInstallers; + ReplicationAgents = replicationAgents; + ReprotectAgents = reprotectAgents; + MarsAgents = marsAgents; + Dras = dras; + AgentDetails = agentDetails; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the ARM Id of the VMware site. + /// + [JsonProperty(PropertyName = "vmwareSiteId")] + public string VmwareSiteId { get; private set; } + + /// + /// Gets the ARM Id of the physical site. + /// + [JsonProperty(PropertyName = "physicalSiteId")] + public string PhysicalSiteId { get; private set; } + + /// + /// Gets the service endpoint. + /// + [JsonProperty(PropertyName = "serviceEndpoint")] + public string ServiceEndpoint { get; private set; } + + /// + /// Gets the service resource Id. + /// + [JsonProperty(PropertyName = "serviceResourceId")] + public string ServiceResourceId { get; private set; } + + /// + /// Gets the service container Id. + /// + [JsonProperty(PropertyName = "serviceContainerId")] + public string ServiceContainerId { get; private set; } + + /// + /// Gets the data plane Uri. + /// + [JsonProperty(PropertyName = "dataPlaneUri")] + public string DataPlaneUri { get; private set; } + + /// + /// Gets the control plane Uri. + /// + [JsonProperty(PropertyName = "controlPlaneUri")] + public string ControlPlaneUri { get; private set; } + + /// + /// Gets the list of process servers. + /// + [JsonProperty(PropertyName = "processServers")] + public IList ProcessServers { get; private set; } + + /// + /// Gets the list of RCM proxies. + /// + [JsonProperty(PropertyName = "rcmProxies")] + public IList RcmProxies { get; private set; } + + /// + /// Gets the list of push installers. + /// + [JsonProperty(PropertyName = "pushInstallers")] + public IList PushInstallers { get; private set; } + + /// + /// Gets the list of replication agents. + /// + [JsonProperty(PropertyName = "replicationAgents")] + public IList ReplicationAgents { get; private set; } + + /// + /// Gets the list of reprotect agents. + /// + [JsonProperty(PropertyName = "reprotectAgents")] + public IList ReprotectAgents { get; private set; } + + /// + /// Gets the list of Mars agents. + /// + [JsonProperty(PropertyName = "marsAgents")] + public IList MarsAgents { get; private set; } + + /// + /// Gets the list of DRAs. + /// + [JsonProperty(PropertyName = "dras")] + public IList Dras { get; private set; } + + /// + /// Gets the list of agent details. + /// + [JsonProperty(PropertyName = "agentDetails")] + public IList AgentDetails { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackEventDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackEventDetails.cs new file mode 100644 index 000000000000..3f77612949a1 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackEventDetails.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Event details for InMageRcmFailback provider. + /// + [Newtonsoft.Json.JsonObject("InMageRcmFailback")] + public partial class InMageRcmFailbackEventDetails : EventProviderSpecificDetails + { + /// + /// Initializes a new instance of the InMageRcmFailbackEventDetails + /// class. + /// + public InMageRcmFailbackEventDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmFailbackEventDetails + /// class. + /// + /// The protected item name. + public InMageRcmFailbackEventDetails(string protectedItemName = default(string)) + { + ProtectedItemName = protectedItemName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the protected item name. + /// + [JsonProperty(PropertyName = "protectedItemName")] + public string ProtectedItemName { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackMobilityAgentDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackMobilityAgentDetails.cs new file mode 100644 index 000000000000..fa8159b43583 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackMobilityAgentDetails.cs @@ -0,0 +1,126 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// InMageRcmFailback mobility agent details. + /// + public partial class InMageRcmFailbackMobilityAgentDetails + { + /// + /// Initializes a new instance of the + /// InMageRcmFailbackMobilityAgentDetails class. + /// + public InMageRcmFailbackMobilityAgentDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// InMageRcmFailbackMobilityAgentDetails class. + /// + /// The agent version. + /// The latest agent version + /// available. + /// The driver version. + /// The latest + /// upgradeable version available without reboot. + /// The agent version expiry + /// date. + /// The driver version expiry + /// date. + /// The time of the last heartbeat + /// received from the agent. + /// The whether update is possible + /// or not. + /// A value indicating whether agent is + /// upgradeable or not. + public InMageRcmFailbackMobilityAgentDetails(string version = default(string), string latestVersion = default(string), string driverVersion = default(string), string latestUpgradableVersionWithoutReboot = default(string), System.DateTime? agentVersionExpiryDate = default(System.DateTime?), System.DateTime? driverVersionExpiryDate = default(System.DateTime?), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), IList reasonsBlockingUpgrade = default(IList), string isUpgradeable = default(string)) + { + Version = version; + LatestVersion = latestVersion; + DriverVersion = driverVersion; + LatestUpgradableVersionWithoutReboot = latestUpgradableVersionWithoutReboot; + AgentVersionExpiryDate = agentVersionExpiryDate; + DriverVersionExpiryDate = driverVersionExpiryDate; + LastHeartbeatUtc = lastHeartbeatUtc; + ReasonsBlockingUpgrade = reasonsBlockingUpgrade; + IsUpgradeable = isUpgradeable; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the agent version. + /// + [JsonProperty(PropertyName = "version")] + public string Version { get; private set; } + + /// + /// Gets the latest agent version available. + /// + [JsonProperty(PropertyName = "latestVersion")] + public string LatestVersion { get; private set; } + + /// + /// Gets the driver version. + /// + [JsonProperty(PropertyName = "driverVersion")] + public string DriverVersion { get; private set; } + + /// + /// Gets the latest upgradeable version available without reboot. + /// + [JsonProperty(PropertyName = "latestUpgradableVersionWithoutReboot")] + public string LatestUpgradableVersionWithoutReboot { get; private set; } + + /// + /// Gets the agent version expiry date. + /// + [JsonProperty(PropertyName = "agentVersionExpiryDate")] + public System.DateTime? AgentVersionExpiryDate { get; private set; } + + /// + /// Gets the driver version expiry date. + /// + [JsonProperty(PropertyName = "driverVersionExpiryDate")] + public System.DateTime? DriverVersionExpiryDate { get; private set; } + + /// + /// Gets the time of the last heartbeat received from the agent. + /// + [JsonProperty(PropertyName = "lastHeartbeatUtc")] + public System.DateTime? LastHeartbeatUtc { get; private set; } + + /// + /// Gets the whether update is possible or not. + /// + [JsonProperty(PropertyName = "reasonsBlockingUpgrade")] + public IList ReasonsBlockingUpgrade { get; private set; } + + /// + /// Gets a value indicating whether agent is upgradeable or not. + /// + [JsonProperty(PropertyName = "isUpgradeable")] + public string IsUpgradeable { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackNicDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackNicDetails.cs new file mode 100644 index 000000000000..5bdb3f2a66d9 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackNicDetails.cs @@ -0,0 +1,77 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcmFailback NIC details. + /// + public partial class InMageRcmFailbackNicDetails + { + /// + /// Initializes a new instance of the InMageRcmFailbackNicDetails + /// class. + /// + public InMageRcmFailbackNicDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmFailbackNicDetails + /// class. + /// + /// The mac address. + /// The network name. + /// The adapter type. + /// The IP address. + public InMageRcmFailbackNicDetails(string macAddress = default(string), string networkName = default(string), string adapterType = default(string), string sourceIpAddress = default(string)) + { + MacAddress = macAddress; + NetworkName = networkName; + AdapterType = adapterType; + SourceIpAddress = sourceIpAddress; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the mac address. + /// + [JsonProperty(PropertyName = "macAddress")] + public string MacAddress { get; private set; } + + /// + /// Gets the network name. + /// + [JsonProperty(PropertyName = "networkName")] + public string NetworkName { get; private set; } + + /// + /// Gets the adapter type. + /// + [JsonProperty(PropertyName = "adapterType")] + public string AdapterType { get; private set; } + + /// + /// Gets the IP address. + /// + [JsonProperty(PropertyName = "sourceIpAddress")] + public string SourceIpAddress { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackPlannedFailoverProviderInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackPlannedFailoverProviderInput.cs new file mode 100644 index 000000000000..d8e36ed86be9 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackPlannedFailoverProviderInput.cs @@ -0,0 +1,70 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Provider specific input for InMageRcmFailback failover. + /// + [Newtonsoft.Json.JsonObject("InMageRcmFailback")] + public partial class InMageRcmFailbackPlannedFailoverProviderInput : PlannedFailoverProviderSpecificFailoverInput + { + /// + /// Initializes a new instance of the + /// InMageRcmFailbackPlannedFailoverProviderInput class. + /// + public InMageRcmFailbackPlannedFailoverProviderInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// InMageRcmFailbackPlannedFailoverProviderInput class. + /// + /// The recovery point type. Possible + /// values include: 'ApplicationConsistent', 'CrashConsistent' + public InMageRcmFailbackPlannedFailoverProviderInput(string recoveryPointType) + { + RecoveryPointType = recoveryPointType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the recovery point type. Possible values include: + /// 'ApplicationConsistent', 'CrashConsistent' + /// + [JsonProperty(PropertyName = "recoveryPointType")] + public string RecoveryPointType { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (RecoveryPointType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryPointType"); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackPolicyCreationInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackPolicyCreationInput.cs new file mode 100644 index 000000000000..cd6f31d3cde9 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackPolicyCreationInput.cs @@ -0,0 +1,64 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcmFailback policy creation input. + /// + [Newtonsoft.Json.JsonObject("InMageRcmFailback")] + public partial class InMageRcmFailbackPolicyCreationInput : PolicyProviderSpecificInput + { + /// + /// Initializes a new instance of the + /// InMageRcmFailbackPolicyCreationInput class. + /// + public InMageRcmFailbackPolicyCreationInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// InMageRcmFailbackPolicyCreationInput class. + /// + /// The crash + /// consistent snapshot frequency (in minutes). + /// The app consistent + /// snapshot frequency (in minutes). + public InMageRcmFailbackPolicyCreationInput(int? crashConsistentFrequencyInMinutes = default(int?), int? appConsistentFrequencyInMinutes = default(int?)) + { + CrashConsistentFrequencyInMinutes = crashConsistentFrequencyInMinutes; + AppConsistentFrequencyInMinutes = appConsistentFrequencyInMinutes; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// 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/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackPolicyDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackPolicyDetails.cs new file mode 100644 index 000000000000..c6c55d10a981 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackPolicyDetails.cs @@ -0,0 +1,64 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcm failback specific policy details. + /// + [Newtonsoft.Json.JsonObject("InMageRcmFailback")] + public partial class InMageRcmFailbackPolicyDetails : PolicyProviderSpecificDetails + { + /// + /// Initializes a new instance of the InMageRcmFailbackPolicyDetails + /// class. + /// + public InMageRcmFailbackPolicyDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmFailbackPolicyDetails + /// class. + /// + /// The app consistent + /// snapshot frequency in minutes. + /// The crash + /// consistent snapshot frequency in minutes. + public InMageRcmFailbackPolicyDetails(int? appConsistentFrequencyInMinutes = default(int?), int? crashConsistentFrequencyInMinutes = default(int?)) + { + AppConsistentFrequencyInMinutes = appConsistentFrequencyInMinutes; + CrashConsistentFrequencyInMinutes = crashConsistentFrequencyInMinutes; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// 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/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackProtectedDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackProtectedDiskDetails.cs new file mode 100644 index 000000000000..1c996c2fc2ee --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackProtectedDiskDetails.cs @@ -0,0 +1,139 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcmFailback protected disk details. + /// + public partial class InMageRcmFailbackProtectedDiskDetails + { + /// + /// Initializes a new instance of the + /// InMageRcmFailbackProtectedDiskDetails class. + /// + public InMageRcmFailbackProtectedDiskDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// InMageRcmFailbackProtectedDiskDetails class. + /// + /// The disk Id (reported by source + /// agent). + /// The disk name. + /// A value indicating whether the disk is the + /// OS disk. + /// The disk capacity in bytes. + /// The disk Uuid (reported by vCenter). + /// The data pending in log + /// data store in MB. + /// The data pending at + /// source agent in MB. + /// A value indicating + /// whether initial replication is complete or not. + /// The initial replication details. + /// The resync details. + /// The last sync time. + public InMageRcmFailbackProtectedDiskDetails(string diskId = default(string), string diskName = default(string), string isOSDisk = default(string), long? capacityInBytes = default(long?), string diskUuid = default(string), double? dataPendingInLogDataStoreInMB = default(double?), double? dataPendingAtSourceAgentInMB = default(double?), string isInitialReplicationComplete = default(string), InMageRcmFailbackSyncDetails irDetails = default(InMageRcmFailbackSyncDetails), InMageRcmFailbackSyncDetails resyncDetails = default(InMageRcmFailbackSyncDetails), System.DateTime? lastSyncTime = default(System.DateTime?)) + { + DiskId = diskId; + DiskName = diskName; + IsOSDisk = isOSDisk; + CapacityInBytes = capacityInBytes; + DiskUuid = diskUuid; + DataPendingInLogDataStoreInMB = dataPendingInLogDataStoreInMB; + DataPendingAtSourceAgentInMB = dataPendingAtSourceAgentInMB; + IsInitialReplicationComplete = isInitialReplicationComplete; + IrDetails = irDetails; + ResyncDetails = resyncDetails; + LastSyncTime = lastSyncTime; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the disk Id (reported by source agent). + /// + [JsonProperty(PropertyName = "diskId")] + public string DiskId { get; private set; } + + /// + /// Gets the disk name. + /// + [JsonProperty(PropertyName = "diskName")] + public string DiskName { get; private set; } + + /// + /// Gets a value indicating whether the disk is the OS disk. + /// + [JsonProperty(PropertyName = "isOSDisk")] + public string IsOSDisk { get; private set; } + + /// + /// Gets the disk capacity in bytes. + /// + [JsonProperty(PropertyName = "capacityInBytes")] + public long? CapacityInBytes { get; private set; } + + /// + /// Gets the disk Uuid (reported by vCenter). + /// + [JsonProperty(PropertyName = "diskUuid")] + public string DiskUuid { get; private set; } + + /// + /// Gets the data pending in log data store in MB. + /// + [JsonProperty(PropertyName = "dataPendingInLogDataStoreInMB")] + public double? DataPendingInLogDataStoreInMB { get; private set; } + + /// + /// Gets the data pending at source agent in MB. + /// + [JsonProperty(PropertyName = "dataPendingAtSourceAgentInMB")] + public double? DataPendingAtSourceAgentInMB { get; private set; } + + /// + /// Gets a value indicating whether initial replication is complete or + /// not. + /// + [JsonProperty(PropertyName = "isInitialReplicationComplete")] + public string IsInitialReplicationComplete { get; private set; } + + /// + /// Gets or sets the initial replication details. + /// + [JsonProperty(PropertyName = "irDetails")] + public InMageRcmFailbackSyncDetails IrDetails { get; set; } + + /// + /// Gets or sets the resync details. + /// + [JsonProperty(PropertyName = "resyncDetails")] + public InMageRcmFailbackSyncDetails ResyncDetails { get; set; } + + /// + /// Gets the last sync time. + /// + [JsonProperty(PropertyName = "lastSyncTime")] + public System.DateTime? LastSyncTime { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackRecoveryPointType.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackRecoveryPointType.cs new file mode 100644 index 000000000000..ea82a305b682 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackRecoveryPointType.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + + /// + /// Defines values for InMageRcmFailbackRecoveryPointType. + /// + public static class InMageRcmFailbackRecoveryPointType + { + public const string ApplicationConsistent = "ApplicationConsistent"; + public const string CrashConsistent = "CrashConsistent"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackReplicationDetails.cs new file mode 100644 index 000000000000..201e2f8d59c7 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackReplicationDetails.cs @@ -0,0 +1,263 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// InMageRcmFailback provider specific details. + /// + [Newtonsoft.Json.JsonObject("InMageRcmFailback")] + public partial class InMageRcmFailbackReplicationDetails : ReplicationProviderSpecificSettings + { + /// + /// Initializes a new instance of the + /// InMageRcmFailbackReplicationDetails class. + /// + public InMageRcmFailbackReplicationDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// InMageRcmFailbackReplicationDetails class. + /// + /// The virtual machine internal + /// identifier. + /// The ARM Id of the azure + /// VM. + /// The multi VM group name. + /// The reprotect agent Id. + /// The reprotect agent name. + /// The type of the OS on the VM. + /// The log storage account ARM + /// Id. + /// The target vCenter Id. + /// The target datastore + /// name. + /// The target VM name. + /// The initial + /// replication progress percentage. + /// The initial + /// replication processed bytes. This includes sum of total bytes + /// transferred and matched bytes on all selected disks in source + /// VM. + /// The initial + /// replication transferred bytes from source VM to target for all + /// selected disks on source VM. + /// The initial + /// replication progress health. Possible values include: 'None', + /// 'InProgress', 'SlowProgress', 'NoProgress' + /// The resync progress + /// percentage. + /// The resync processed bytes. This + /// includes sum of total bytes transferred and matched bytes on all + /// selected disks in source VM. + /// The resync transferred bytes + /// from source VM to target for all selected disks on source + /// VM. + /// The resync progress health. + /// Possible values include: 'None', 'InProgress', 'SlowProgress', + /// 'NoProgress' + /// A value indicating whether resync is + /// required. + /// The resync state. Possible values + /// include: 'None', 'PreparedForResynchronization', + /// 'StartedResynchronization' + /// The list of protected disks. + /// The mobility agent + /// information. + /// The network details. + public InMageRcmFailbackReplicationDetails(string internalIdentifier = default(string), string azureVirtualMachineId = default(string), string multiVmGroupName = default(string), string reprotectAgentId = default(string), string reprotectAgentName = default(string), string osType = default(string), string logStorageAccountId = default(string), string targetvCenterId = default(string), string targetDataStoreName = default(string), string targetVmName = default(string), int? initialReplicationProgressPercentage = default(int?), long? initialReplicationProcessedBytes = default(long?), long? initialReplicationTransferredBytes = default(long?), string initialReplicationProgressHealth = default(string), int? resyncProgressPercentage = default(int?), long? resyncProcessedBytes = default(long?), long? resyncTransferredBytes = default(long?), string resyncProgressHealth = default(string), string resyncRequired = default(string), string resyncState = default(string), IList protectedDisks = default(IList), InMageRcmFailbackMobilityAgentDetails mobilityAgentDetails = default(InMageRcmFailbackMobilityAgentDetails), IList vmNics = default(IList)) + { + InternalIdentifier = internalIdentifier; + AzureVirtualMachineId = azureVirtualMachineId; + MultiVmGroupName = multiVmGroupName; + ReprotectAgentId = reprotectAgentId; + ReprotectAgentName = reprotectAgentName; + OsType = osType; + LogStorageAccountId = logStorageAccountId; + TargetvCenterId = targetvCenterId; + TargetDataStoreName = targetDataStoreName; + TargetVmName = targetVmName; + InitialReplicationProgressPercentage = initialReplicationProgressPercentage; + InitialReplicationProcessedBytes = initialReplicationProcessedBytes; + InitialReplicationTransferredBytes = initialReplicationTransferredBytes; + InitialReplicationProgressHealth = initialReplicationProgressHealth; + ResyncProgressPercentage = resyncProgressPercentage; + ResyncProcessedBytes = resyncProcessedBytes; + ResyncTransferredBytes = resyncTransferredBytes; + ResyncProgressHealth = resyncProgressHealth; + ResyncRequired = resyncRequired; + ResyncState = resyncState; + ProtectedDisks = protectedDisks; + MobilityAgentDetails = mobilityAgentDetails; + VmNics = vmNics; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the virtual machine internal identifier. + /// + [JsonProperty(PropertyName = "internalIdentifier")] + public string InternalIdentifier { get; private set; } + + /// + /// Gets the ARM Id of the azure VM. + /// + [JsonProperty(PropertyName = "azureVirtualMachineId")] + public string AzureVirtualMachineId { get; private set; } + + /// + /// Gets the multi VM group name. + /// + [JsonProperty(PropertyName = "multiVmGroupName")] + public string MultiVmGroupName { get; private set; } + + /// + /// Gets the reprotect agent Id. + /// + [JsonProperty(PropertyName = "reprotectAgentId")] + public string ReprotectAgentId { get; private set; } + + /// + /// Gets the reprotect agent name. + /// + [JsonProperty(PropertyName = "reprotectAgentName")] + public string ReprotectAgentName { get; private set; } + + /// + /// Gets the type of the OS on the VM. + /// + [JsonProperty(PropertyName = "osType")] + public string OsType { get; private set; } + + /// + /// Gets the log storage account ARM Id. + /// + [JsonProperty(PropertyName = "logStorageAccountId")] + public string LogStorageAccountId { get; private set; } + + /// + /// Gets the target vCenter Id. + /// + [JsonProperty(PropertyName = "targetvCenterId")] + public string TargetvCenterId { get; private set; } + + /// + /// Gets the target datastore name. + /// + [JsonProperty(PropertyName = "targetDataStoreName")] + public string TargetDataStoreName { get; private set; } + + /// + /// Gets the target VM name. + /// + [JsonProperty(PropertyName = "targetVmName")] + public string TargetVmName { get; private set; } + + /// + /// Gets the initial replication progress percentage. + /// + [JsonProperty(PropertyName = "initialReplicationProgressPercentage")] + public int? InitialReplicationProgressPercentage { get; private set; } + + /// + /// Gets the initial replication processed bytes. This includes sum of + /// total bytes transferred and matched bytes on all selected disks in + /// source VM. + /// + [JsonProperty(PropertyName = "initialReplicationProcessedBytes")] + public long? InitialReplicationProcessedBytes { get; private set; } + + /// + /// Gets the initial replication transferred bytes from source VM to + /// target for all selected disks on source VM. + /// + [JsonProperty(PropertyName = "initialReplicationTransferredBytes")] + public long? InitialReplicationTransferredBytes { get; private set; } + + /// + /// Gets the initial replication progress health. Possible values + /// include: 'None', 'InProgress', 'SlowProgress', 'NoProgress' + /// + [JsonProperty(PropertyName = "initialReplicationProgressHealth")] + public string InitialReplicationProgressHealth { get; private set; } + + /// + /// Gets the resync progress percentage. + /// + [JsonProperty(PropertyName = "resyncProgressPercentage")] + public int? ResyncProgressPercentage { get; private set; } + + /// + /// Gets the resync processed bytes. This includes sum of total bytes + /// transferred and matched bytes on all selected disks in source VM. + /// + [JsonProperty(PropertyName = "resyncProcessedBytes")] + public long? ResyncProcessedBytes { get; private set; } + + /// + /// Gets the resync transferred bytes from source VM to target for all + /// selected disks on source VM. + /// + [JsonProperty(PropertyName = "resyncTransferredBytes")] + public long? ResyncTransferredBytes { get; private set; } + + /// + /// Gets the resync progress health. Possible values include: 'None', + /// 'InProgress', 'SlowProgress', 'NoProgress' + /// + [JsonProperty(PropertyName = "resyncProgressHealth")] + public string ResyncProgressHealth { get; private set; } + + /// + /// Gets a value indicating whether resync is required. + /// + [JsonProperty(PropertyName = "resyncRequired")] + public string ResyncRequired { get; private set; } + + /// + /// Gets the resync state. Possible values include: 'None', + /// 'PreparedForResynchronization', 'StartedResynchronization' + /// + [JsonProperty(PropertyName = "resyncState")] + public string ResyncState { get; private set; } + + /// + /// Gets or sets the list of protected disks. + /// + [JsonProperty(PropertyName = "protectedDisks")] + public IList ProtectedDisks { get; set; } + + /// + /// Gets or sets the mobility agent information. + /// + [JsonProperty(PropertyName = "mobilityAgentDetails")] + public InMageRcmFailbackMobilityAgentDetails MobilityAgentDetails { get; set; } + + /// + /// Gets or sets the network details. + /// + [JsonProperty(PropertyName = "vmNics")] + public IList VmNics { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackReprotectInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackReprotectInput.cs new file mode 100644 index 000000000000..68025d4cd328 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackReprotectInput.cs @@ -0,0 +1,88 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcmFailback specific provider input. + /// + [Newtonsoft.Json.JsonObject("InMageRcmFailback")] + public partial class InMageRcmFailbackReprotectInput : ReverseReplicationProviderSpecificInput + { + /// + /// Initializes a new instance of the InMageRcmFailbackReprotectInput + /// class. + /// + public InMageRcmFailbackReprotectInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmFailbackReprotectInput + /// class. + /// + /// The process server Id. + /// The Policy Id. + /// The run as account Id. + public InMageRcmFailbackReprotectInput(string processServerId, string policyId, string runAsAccountId = default(string)) + { + ProcessServerId = processServerId; + RunAsAccountId = runAsAccountId; + PolicyId = policyId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the process server Id. + /// + [JsonProperty(PropertyName = "processServerId")] + public string ProcessServerId { get; set; } + + /// + /// Gets or sets the run as account Id. + /// + [JsonProperty(PropertyName = "runAsAccountId")] + public string RunAsAccountId { get; set; } + + /// + /// Gets or sets the Policy Id. + /// + [JsonProperty(PropertyName = "policyId")] + public string PolicyId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ProcessServerId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ProcessServerId"); + } + if (PolicyId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PolicyId"); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackSyncDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackSyncDetails.cs new file mode 100644 index 000000000000..93d54bb1cfd2 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFailbackSyncDetails.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 Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcmFailback disk level sync details. + /// + public partial class InMageRcmFailbackSyncDetails + { + /// + /// Initializes a new instance of the InMageRcmFailbackSyncDetails + /// class. + /// + public InMageRcmFailbackSyncDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmFailbackSyncDetails + /// class. + /// + /// The progress health. Possible values + /// include: 'None', 'InProgress', 'SlowProgress', 'NoProgress', + /// 'Queued' + /// The transferred bytes from source VM + /// to azure for the disk. + /// The bytes transferred + /// in last 15 minutes from source VM to target. + /// The time of the last data + /// transfer from source VM to target. + /// The total processed bytes. This + /// includes bytes that are transferred from source VM to target and + /// matched bytes. + /// The start time. + /// The last refresh time. + /// Progress in percentage. Progress + /// percentage is calculated based on processed bytes. + public InMageRcmFailbackSyncDetails(string progressHealth = default(string), long? transferredBytes = default(long?), long? last15MinutesTransferredBytes = default(long?), string lastDataTransferTimeUtc = default(string), long? processedBytes = default(long?), string startTime = default(string), string lastRefreshTime = default(string), int? progressPercentage = default(int?)) + { + ProgressHealth = progressHealth; + TransferredBytes = transferredBytes; + Last15MinutesTransferredBytes = last15MinutesTransferredBytes; + LastDataTransferTimeUtc = lastDataTransferTimeUtc; + ProcessedBytes = processedBytes; + StartTime = startTime; + LastRefreshTime = lastRefreshTime; + ProgressPercentage = progressPercentage; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the progress health. Possible values include: 'None', + /// 'InProgress', 'SlowProgress', 'NoProgress', 'Queued' + /// + [JsonProperty(PropertyName = "progressHealth")] + public string ProgressHealth { get; private set; } + + /// + /// Gets the transferred bytes from source VM to azure for the disk. + /// + [JsonProperty(PropertyName = "transferredBytes")] + public long? TransferredBytes { get; private set; } + + /// + /// Gets the bytes transferred in last 15 minutes from source VM to + /// target. + /// + [JsonProperty(PropertyName = "last15MinutesTransferredBytes")] + public long? Last15MinutesTransferredBytes { get; private set; } + + /// + /// Gets the time of the last data transfer from source VM to target. + /// + [JsonProperty(PropertyName = "lastDataTransferTimeUtc")] + public string LastDataTransferTimeUtc { get; private set; } + + /// + /// Gets the total processed bytes. This includes bytes that are + /// transferred from source VM to target and matched bytes. + /// + [JsonProperty(PropertyName = "processedBytes")] + public long? ProcessedBytes { get; private set; } + + /// + /// Gets the start time. + /// + [JsonProperty(PropertyName = "startTime")] + public string StartTime { get; private set; } + + /// + /// Gets the last refresh time. + /// + [JsonProperty(PropertyName = "lastRefreshTime")] + public string LastRefreshTime { get; private set; } + + /// + /// Gets progress in percentage. Progress percentage is calculated + /// based on processed bytes. + /// + [JsonProperty(PropertyName = "progressPercentage")] + public int? ProgressPercentage { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmLastAgentUpgradeErrorDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmLastAgentUpgradeErrorDetails.cs new file mode 100644 index 000000000000..00c7a536f1a0 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmLastAgentUpgradeErrorDetails.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 Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// InMageRcm last source agent upgrade error details. + /// + public partial class InMageRcmLastAgentUpgradeErrorDetails + { + /// + /// Initializes a new instance of the + /// InMageRcmLastAgentUpgradeErrorDetails class. + /// + public InMageRcmLastAgentUpgradeErrorDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// InMageRcmLastAgentUpgradeErrorDetails class. + /// + /// The error code. + /// The error message. + /// The possible causes. + /// The recommended action. + /// The error message + /// parameters. + /// The error tags. + public InMageRcmLastAgentUpgradeErrorDetails(string errorCode = default(string), string errorMessage = default(string), string possibleCauses = default(string), string recommendedAction = default(string), IDictionary errorMessageParameters = default(IDictionary), IDictionary errorTags = default(IDictionary)) + { + ErrorCode = errorCode; + ErrorMessage = errorMessage; + PossibleCauses = possibleCauses; + RecommendedAction = recommendedAction; + ErrorMessageParameters = errorMessageParameters; + ErrorTags = errorTags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the error code. + /// + [JsonProperty(PropertyName = "errorCode")] + public string ErrorCode { get; private set; } + + /// + /// Gets the error message. + /// + [JsonProperty(PropertyName = "errorMessage")] + public string ErrorMessage { get; private set; } + + /// + /// Gets the possible causes. + /// + [JsonProperty(PropertyName = "possibleCauses")] + public string PossibleCauses { get; private set; } + + /// + /// Gets the recommended action. + /// + [JsonProperty(PropertyName = "recommendedAction")] + public string RecommendedAction { get; private set; } + + /// + /// Gets the error message parameters. + /// + [JsonProperty(PropertyName = "errorMessageParameters")] + public IDictionary ErrorMessageParameters { get; private set; } + + /// + /// Gets the error tags. + /// + [JsonProperty(PropertyName = "errorTags")] + public IDictionary ErrorTags { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmMobilityAgentDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmMobilityAgentDetails.cs new file mode 100644 index 000000000000..24f428c508e5 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmMobilityAgentDetails.cs @@ -0,0 +1,135 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// InMageRcm mobility agent details. + /// + public partial class InMageRcmMobilityAgentDetails + { + /// + /// Initializes a new instance of the InMageRcmMobilityAgentDetails + /// class. + /// + public InMageRcmMobilityAgentDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmMobilityAgentDetails + /// class. + /// + /// The agent version. + /// The latest agent version + /// available. + /// The latest agent version + /// release date. + /// The driver version. + /// The latest + /// upgradeable version available without reboot. + /// The agent version expiry + /// date. + /// The driver version expiry + /// date. + /// The time of the last heartbeat + /// received from the agent. + /// The whether update is possible + /// or not. + /// A value indicating whether agent is + /// upgradeable or not. + public InMageRcmMobilityAgentDetails(string version = default(string), string latestVersion = default(string), string latestAgentReleaseDate = default(string), string driverVersion = default(string), string latestUpgradableVersionWithoutReboot = default(string), System.DateTime? agentVersionExpiryDate = default(System.DateTime?), System.DateTime? driverVersionExpiryDate = default(System.DateTime?), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), IList reasonsBlockingUpgrade = default(IList), string isUpgradeable = default(string)) + { + Version = version; + LatestVersion = latestVersion; + LatestAgentReleaseDate = latestAgentReleaseDate; + DriverVersion = driverVersion; + LatestUpgradableVersionWithoutReboot = latestUpgradableVersionWithoutReboot; + AgentVersionExpiryDate = agentVersionExpiryDate; + DriverVersionExpiryDate = driverVersionExpiryDate; + LastHeartbeatUtc = lastHeartbeatUtc; + ReasonsBlockingUpgrade = reasonsBlockingUpgrade; + IsUpgradeable = isUpgradeable; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the agent version. + /// + [JsonProperty(PropertyName = "version")] + public string Version { get; private set; } + + /// + /// Gets the latest agent version available. + /// + [JsonProperty(PropertyName = "latestVersion")] + public string LatestVersion { get; private set; } + + /// + /// Gets the latest agent version release date. + /// + [JsonProperty(PropertyName = "latestAgentReleaseDate")] + public string LatestAgentReleaseDate { get; private set; } + + /// + /// Gets the driver version. + /// + [JsonProperty(PropertyName = "driverVersion")] + public string DriverVersion { get; private set; } + + /// + /// Gets the latest upgradeable version available without reboot. + /// + [JsonProperty(PropertyName = "latestUpgradableVersionWithoutReboot")] + public string LatestUpgradableVersionWithoutReboot { get; private set; } + + /// + /// Gets the agent version expiry date. + /// + [JsonProperty(PropertyName = "agentVersionExpiryDate")] + public System.DateTime? AgentVersionExpiryDate { get; private set; } + + /// + /// Gets the driver version expiry date. + /// + [JsonProperty(PropertyName = "driverVersionExpiryDate")] + public System.DateTime? DriverVersionExpiryDate { get; private set; } + + /// + /// Gets the time of the last heartbeat received from the agent. + /// + [JsonProperty(PropertyName = "lastHeartbeatUtc")] + public System.DateTime? LastHeartbeatUtc { get; private set; } + + /// + /// Gets the whether update is possible or not. + /// + [JsonProperty(PropertyName = "reasonsBlockingUpgrade")] + public IList ReasonsBlockingUpgrade { get; private set; } + + /// + /// Gets a value indicating whether agent is upgradeable or not. + /// + [JsonProperty(PropertyName = "isUpgradeable")] + public string IsUpgradeable { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmNicDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmNicDetails.cs new file mode 100644 index 000000000000..e3795d31334b --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmNicDetails.cs @@ -0,0 +1,156 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcm NIC details. + /// + public partial class InMageRcmNicDetails + { + /// + /// Initializes a new instance of the InMageRcmNicDetails class. + /// + public InMageRcmNicDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmNicDetails class. + /// + /// The NIC Id. + /// A value indicating whether this is the + /// primary NIC. + /// A value indicating whether this + /// NIC is selected for failover. + /// The source IP address. + /// The source IP address type. + /// Possible values include: 'Dynamic', 'Static' + /// Source network Id. + /// Source subnet name. + /// The target IP address. + /// The target IP address type. + /// Possible values include: 'Dynamic', 'Static' + /// Target subnet name. + /// Test subnet name. + /// The test IP address. + /// The test IP address type. Possible + /// values include: 'Dynamic', 'Static' + public InMageRcmNicDetails(string nicId = default(string), string isPrimaryNic = default(string), string isSelectedForFailover = default(string), string sourceIPAddress = default(string), string sourceIPAddressType = default(string), string sourceNetworkId = default(string), string sourceSubnetName = default(string), string targetIPAddress = default(string), string targetIPAddressType = default(string), string targetSubnetName = default(string), string testSubnetName = default(string), string testIPAddress = default(string), string testIPAddressType = default(string)) + { + NicId = nicId; + IsPrimaryNic = isPrimaryNic; + IsSelectedForFailover = isSelectedForFailover; + SourceIPAddress = sourceIPAddress; + SourceIPAddressType = sourceIPAddressType; + SourceNetworkId = sourceNetworkId; + SourceSubnetName = sourceSubnetName; + TargetIPAddress = targetIPAddress; + TargetIPAddressType = targetIPAddressType; + TargetSubnetName = targetSubnetName; + TestSubnetName = testSubnetName; + TestIPAddress = testIPAddress; + TestIPAddressType = testIPAddressType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the NIC Id. + /// + [JsonProperty(PropertyName = "nicId")] + public string NicId { get; private set; } + + /// + /// Gets or sets a value indicating whether this is the primary NIC. + /// + [JsonProperty(PropertyName = "isPrimaryNic")] + public string IsPrimaryNic { get; set; } + + /// + /// Gets or sets a value indicating whether this NIC is selected for + /// failover. + /// + [JsonProperty(PropertyName = "isSelectedForFailover")] + public string IsSelectedForFailover { get; set; } + + /// + /// Gets the source IP address. + /// + [JsonProperty(PropertyName = "sourceIPAddress")] + public string SourceIPAddress { get; private set; } + + /// + /// Gets the source IP address type. Possible values include: + /// 'Dynamic', 'Static' + /// + [JsonProperty(PropertyName = "sourceIPAddressType")] + public string SourceIPAddressType { get; private set; } + + /// + /// Gets source network Id. + /// + [JsonProperty(PropertyName = "sourceNetworkId")] + public string SourceNetworkId { get; private set; } + + /// + /// Gets source subnet name. + /// + [JsonProperty(PropertyName = "sourceSubnetName")] + public string SourceSubnetName { get; private set; } + + /// + /// Gets or sets the target IP address. + /// + [JsonProperty(PropertyName = "targetIPAddress")] + public string TargetIPAddress { get; set; } + + /// + /// Gets or sets the target IP address type. Possible values include: + /// 'Dynamic', 'Static' + /// + [JsonProperty(PropertyName = "targetIPAddressType")] + public string TargetIPAddressType { get; set; } + + /// + /// Gets or sets target subnet name. + /// + [JsonProperty(PropertyName = "targetSubnetName")] + public string TargetSubnetName { get; set; } + + /// + /// Gets or sets test subnet name. + /// + [JsonProperty(PropertyName = "testSubnetName")] + public string TestSubnetName { get; set; } + + /// + /// Gets or sets the test IP address. + /// + [JsonProperty(PropertyName = "testIPAddress")] + public string TestIPAddress { get; set; } + + /// + /// Gets or sets the test IP address type. Possible values include: + /// 'Dynamic', 'Static' + /// + [JsonProperty(PropertyName = "testIPAddressType")] + public string TestIPAddressType { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmNicInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmNicInput.cs new file mode 100644 index 000000000000..381821d10ef0 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmNicInput.cs @@ -0,0 +1,122 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcm NIC input. + /// + public partial class InMageRcmNicInput + { + /// + /// Initializes a new instance of the InMageRcmNicInput class. + /// + public InMageRcmNicInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmNicInput class. + /// + /// The NIC Id. + /// A value indicating whether this is the + /// primary NIC. + /// A value indicating whether this + /// NIC is selected for failover. + /// Target subnet name. + /// The target static IP + /// address. + /// The test subnet name. + /// The test static IP + /// address. + public InMageRcmNicInput(string nicId, string isPrimaryNic, string isSelectedForFailover = default(string), string targetSubnetName = default(string), string targetStaticIPAddress = default(string), string testSubnetName = default(string), string testStaticIPAddress = default(string)) + { + NicId = nicId; + IsPrimaryNic = isPrimaryNic; + IsSelectedForFailover = isSelectedForFailover; + TargetSubnetName = targetSubnetName; + TargetStaticIPAddress = targetStaticIPAddress; + TestSubnetName = testSubnetName; + TestStaticIPAddress = testStaticIPAddress; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the NIC Id. + /// + [JsonProperty(PropertyName = "nicId")] + public string NicId { get; set; } + + /// + /// Gets or sets a value indicating whether this is the primary NIC. + /// + [JsonProperty(PropertyName = "isPrimaryNic")] + public string IsPrimaryNic { get; set; } + + /// + /// Gets or sets a value indicating whether this NIC is selected for + /// failover. + /// + [JsonProperty(PropertyName = "isSelectedForFailover")] + public string IsSelectedForFailover { get; set; } + + /// + /// Gets or sets target subnet name. + /// + [JsonProperty(PropertyName = "targetSubnetName")] + public string TargetSubnetName { get; set; } + + /// + /// Gets or sets the target static IP address. + /// + [JsonProperty(PropertyName = "targetStaticIPAddress")] + public string TargetStaticIPAddress { get; set; } + + /// + /// Gets or sets the test subnet name. + /// + [JsonProperty(PropertyName = "testSubnetName")] + public string TestSubnetName { get; set; } + + /// + /// Gets or sets the test static IP address. + /// + [JsonProperty(PropertyName = "testStaticIPAddress")] + public string TestStaticIPAddress { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (NicId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "NicId"); + } + if (IsPrimaryNic == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "IsPrimaryNic"); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmPolicyCreationInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmPolicyCreationInput.cs new file mode 100644 index 000000000000..cb294194e3fd --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmPolicyCreationInput.cs @@ -0,0 +1,84 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcm policy creation input. + /// + [Newtonsoft.Json.JsonObject("InMageRcm")] + public partial class InMageRcmPolicyCreationInput : PolicyProviderSpecificInput + { + /// + /// Initializes a new instance of the InMageRcmPolicyCreationInput + /// class. + /// + public InMageRcmPolicyCreationInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmPolicyCreationInput + /// 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). + /// A value indicating whether multi-VM + /// sync has to be enabled. + public InMageRcmPolicyCreationInput(int? recoveryPointHistoryInMinutes = default(int?), int? crashConsistentFrequencyInMinutes = default(int?), int? appConsistentFrequencyInMinutes = default(int?), string enableMultiVmSync = default(string)) + { + RecoveryPointHistoryInMinutes = recoveryPointHistoryInMinutes; + CrashConsistentFrequencyInMinutes = crashConsistentFrequencyInMinutes; + AppConsistentFrequencyInMinutes = appConsistentFrequencyInMinutes; + EnableMultiVmSync = enableMultiVmSync; + 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 = "recoveryPointHistoryInMinutes")] + public int? RecoveryPointHistoryInMinutes { 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; } + + /// + /// Gets or sets a value indicating whether multi-VM sync has to be + /// enabled. + /// + [JsonProperty(PropertyName = "enableMultiVmSync")] + public string EnableMultiVmSync { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmPolicyDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmPolicyDetails.cs new file mode 100644 index 000000000000..4f480f5fefa7 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmPolicyDetails.cs @@ -0,0 +1,82 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcm specific policy details. + /// + [Newtonsoft.Json.JsonObject("InMageRcm")] + public partial class InMageRcmPolicyDetails : PolicyProviderSpecificDetails + { + /// + /// Initializes a new instance of the InMageRcmPolicyDetails class. + /// + public InMageRcmPolicyDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmPolicyDetails class. + /// + /// 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. + /// A value indicating whether multi-VM + /// sync has to be enabled. + public InMageRcmPolicyDetails(int? recoveryPointHistoryInMinutes = default(int?), int? appConsistentFrequencyInMinutes = default(int?), int? crashConsistentFrequencyInMinutes = default(int?), string enableMultiVmSync = default(string)) + { + RecoveryPointHistoryInMinutes = recoveryPointHistoryInMinutes; + AppConsistentFrequencyInMinutes = appConsistentFrequencyInMinutes; + CrashConsistentFrequencyInMinutes = crashConsistentFrequencyInMinutes; + EnableMultiVmSync = enableMultiVmSync; + 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 = "recoveryPointHistoryInMinutes")] + public int? RecoveryPointHistoryInMinutes { 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; } + + /// + /// Gets or sets a value indicating whether multi-VM sync has to be + /// enabled. + /// + [JsonProperty(PropertyName = "enableMultiVmSync")] + public string EnableMultiVmSync { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmProtectedDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmProtectedDiskDetails.cs new file mode 100644 index 000000000000..65d75bb2d90f --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmProtectedDiskDetails.cs @@ -0,0 +1,168 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcm protected disk details. + /// + public partial class InMageRcmProtectedDiskDetails + { + /// + /// Initializes a new instance of the InMageRcmProtectedDiskDetails + /// class. + /// + public InMageRcmProtectedDiskDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmProtectedDiskDetails + /// class. + /// + /// The disk Id. + /// The disk name. + /// A value indicating whether the disk is the + /// OS disk. + /// The disk capacity in bytes. + /// The log storage account ARM + /// Id. + /// The DiskEncryptionSet ARM + /// Id. + /// The ARM Id of the seed managed + /// disk. + /// The ARM Id of the target managed + /// disk. + /// The disk type. Possible values include: + /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' + /// The data pending in log + /// data store in MB. + /// The data pending at + /// source agent in MB. + /// A value indicating + /// whether initial replication is complete or not. + /// The initial replication details. + /// The resync details. + public InMageRcmProtectedDiskDetails(string diskId = default(string), string diskName = default(string), string isOSDisk = default(string), long? capacityInBytes = default(long?), string logStorageAccountId = default(string), string diskEncryptionSetId = default(string), string seedManagedDiskId = default(string), string targetManagedDiskId = default(string), string diskType = default(string), double? dataPendingInLogDataStoreInMB = default(double?), double? dataPendingAtSourceAgentInMB = default(double?), string isInitialReplicationComplete = default(string), InMageRcmSyncDetails irDetails = default(InMageRcmSyncDetails), InMageRcmSyncDetails resyncDetails = default(InMageRcmSyncDetails)) + { + DiskId = diskId; + DiskName = diskName; + IsOSDisk = isOSDisk; + CapacityInBytes = capacityInBytes; + LogStorageAccountId = logStorageAccountId; + DiskEncryptionSetId = diskEncryptionSetId; + SeedManagedDiskId = seedManagedDiskId; + TargetManagedDiskId = targetManagedDiskId; + DiskType = diskType; + DataPendingInLogDataStoreInMB = dataPendingInLogDataStoreInMB; + DataPendingAtSourceAgentInMB = dataPendingAtSourceAgentInMB; + IsInitialReplicationComplete = isInitialReplicationComplete; + IrDetails = irDetails; + ResyncDetails = resyncDetails; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the disk Id. + /// + [JsonProperty(PropertyName = "diskId")] + public string DiskId { get; private set; } + + /// + /// Gets the disk name. + /// + [JsonProperty(PropertyName = "diskName")] + public string DiskName { get; private set; } + + /// + /// Gets a value indicating whether the disk is the OS disk. + /// + [JsonProperty(PropertyName = "isOSDisk")] + public string IsOSDisk { get; private set; } + + /// + /// Gets the disk capacity in bytes. + /// + [JsonProperty(PropertyName = "capacityInBytes")] + public long? CapacityInBytes { get; private set; } + + /// + /// Gets the log storage account ARM Id. + /// + [JsonProperty(PropertyName = "logStorageAccountId")] + public string LogStorageAccountId { get; private set; } + + /// + /// Gets the DiskEncryptionSet ARM Id. + /// + [JsonProperty(PropertyName = "diskEncryptionSetId")] + public string DiskEncryptionSetId { get; private set; } + + /// + /// Gets the ARM Id of the seed managed disk. + /// + [JsonProperty(PropertyName = "seedManagedDiskId")] + public string SeedManagedDiskId { get; private set; } + + /// + /// Gets the ARM Id of the target managed disk. + /// + [JsonProperty(PropertyName = "targetManagedDiskId")] + public string TargetManagedDiskId { get; private set; } + + /// + /// Gets or sets the disk type. Possible values include: + /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' + /// + [JsonProperty(PropertyName = "diskType")] + public string DiskType { get; set; } + + /// + /// Gets the data pending in log data store in MB. + /// + [JsonProperty(PropertyName = "dataPendingInLogDataStoreInMB")] + public double? DataPendingInLogDataStoreInMB { get; private set; } + + /// + /// Gets the data pending at source agent in MB. + /// + [JsonProperty(PropertyName = "dataPendingAtSourceAgentInMB")] + public double? DataPendingAtSourceAgentInMB { get; private set; } + + /// + /// Gets a value indicating whether initial replication is complete or + /// not. + /// + [JsonProperty(PropertyName = "isInitialReplicationComplete")] + public string IsInitialReplicationComplete { get; private set; } + + /// + /// Gets or sets the initial replication details. + /// + [JsonProperty(PropertyName = "irDetails")] + public InMageRcmSyncDetails IrDetails { get; set; } + + /// + /// Gets or sets the resync details. + /// + [JsonProperty(PropertyName = "resyncDetails")] + public InMageRcmSyncDetails ResyncDetails { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmProtectionContainerMappingDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmProtectionContainerMappingDetails.cs new file mode 100644 index 000000000000..e5f790616cf3 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmProtectionContainerMappingDetails.cs @@ -0,0 +1,56 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcm provider specific container mapping details. + /// + [Newtonsoft.Json.JsonObject("InMageRcm")] + public partial class InMageRcmProtectionContainerMappingDetails : ProtectionContainerMappingProviderSpecificDetails + { + /// + /// Initializes a new instance of the + /// InMageRcmProtectionContainerMappingDetails class. + /// + public InMageRcmProtectionContainerMappingDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// InMageRcmProtectionContainerMappingDetails class. + /// + /// A value indicating whether the + /// flag for enable agent auto upgrade. + public InMageRcmProtectionContainerMappingDetails(string enableAgentAutoUpgrade = default(string)) + { + EnableAgentAutoUpgrade = enableAgentAutoUpgrade; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets a value indicating whether the flag for enable agent auto + /// upgrade. + /// + [JsonProperty(PropertyName = "enableAgentAutoUpgrade")] + public string EnableAgentAutoUpgrade { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmRecoveryPointDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmRecoveryPointDetails.cs new file mode 100644 index 000000000000..15965ef7ac36 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmRecoveryPointDetails.cs @@ -0,0 +1,56 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcm provider specific recovery point details. + /// + [Newtonsoft.Json.JsonObject("InMageRcm")] + public partial class InMageRcmRecoveryPointDetails : ProviderSpecificRecoveryPointDetails + { + /// + /// Initializes a new instance of the InMageRcmRecoveryPointDetails + /// class. + /// + public InMageRcmRecoveryPointDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmRecoveryPointDetails + /// class. + /// + /// A value indicating whether the + /// recovery point is multi VM consistent. + public InMageRcmRecoveryPointDetails(string isMultiVmSyncPoint = default(string)) + { + IsMultiVmSyncPoint = isMultiVmSyncPoint; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets a value indicating whether the recovery point is multi VM + /// consistent. + /// + [JsonProperty(PropertyName = "isMultiVmSyncPoint")] + public string IsMultiVmSyncPoint { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmReplicationDetails.cs new file mode 100644 index 000000000000..f7b9cb045ae8 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmReplicationDetails.cs @@ -0,0 +1,496 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// InMageRcm provider specific details. + /// + [Newtonsoft.Json.JsonObject("InMageRcm")] + public partial class InMageRcmReplicationDetails : ReplicationProviderSpecificSettings + { + /// + /// Initializes a new instance of the InMageRcmReplicationDetails + /// class. + /// + public InMageRcmReplicationDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmReplicationDetails + /// class. + /// + /// The virtual machine internal + /// identifier. + /// The ARM Id of the discovered + /// VM. + /// The multi VM group name. + /// The type of the discovered VM. + /// The process server Id. + /// The processor core count. + /// The allocated memory in + /// MB. + /// The process server name. + /// The run-as account Id. + /// The type of the OS on the VM. + /// The firmware type. + /// The IP address of the primary + /// network interface. + /// The target generation. + /// License Type of the VM to be + /// used. + /// Target VM name. + /// The target VM size. + /// The target resource group + /// Id. + /// The target location. + /// The target availability set + /// Id. + /// The target availability + /// zone. + /// The target proximity + /// placement group Id. + /// The target boot + /// diagnostics storage account ARM Id. + /// The target network Id. + /// The test network Id. + /// The recovery point Id to + /// which the VM was failed over. + /// The last recovery point + /// received time. + /// The last recovery point objective + /// value. + /// The last recovery point + /// objective calculated time. + /// The last recovery point + /// Id. + /// The initial + /// replication progress percentage. This is calculated based on total + /// bytes processed for all disks in the source VM. + /// The initial + /// replication processed bytes. This includes sum of total bytes + /// transferred and matched bytes on all selected disks in source + /// VM. + /// The initial + /// replication transferred bytes from source VM to azure for all + /// selected disks on source VM. + /// The initial + /// replication progress health. Possible values include: 'None', + /// 'InProgress', 'SlowProgress', 'NoProgress' + /// The resync progress + /// percentage. This is calculated based on total bytes processed for + /// all disks in the source VM. + /// The resync processed bytes. This + /// includes sum of total bytes transferred and matched bytes on all + /// selected disks in source VM. + /// The resync transferred bytes + /// from source VM to azure for all selected disks on source + /// VM. + /// The resync progress health. + /// Possible values include: 'None', 'InProgress', 'SlowProgress', + /// 'NoProgress' + /// A value indicating whether resync is + /// required. + /// The resync state. Possible values + /// include: 'None', 'PreparedForResynchronization', + /// 'StartedResynchronization' + /// The agent auto upgrade state. + /// Possible values include: 'None', 'Started', 'Completed', + /// 'Commit' + /// The last agent upgrade + /// type. + /// The agent upgrade job Id. + /// The agent version to + /// which last agent upgrade was attempted. + /// The list of protected disks. + /// A value indicating whether + /// last agent upgrade was successful or not. + /// The mobility agent + /// information. + /// The last agent upgrade + /// error information. + /// The agent upgrade + /// blocking error information. + /// The network details. + public InMageRcmReplicationDetails(string internalIdentifier = default(string), string fabricDiscoveryMachineId = default(string), string multiVmGroupName = default(string), string discoveryType = default(string), string processServerId = default(string), int? processorCoreCount = default(int?), double? allocatedMemoryInMB = default(double?), string processServerName = default(string), string runAsAccountId = default(string), string osType = default(string), string firmwareType = default(string), string primaryNicIpAddress = default(string), string targetGeneration = default(string), string licenseType = default(string), string targetVmName = default(string), string targetVmSize = default(string), string targetResourceGroupId = default(string), string targetLocation = default(string), string targetAvailabilitySetId = default(string), string targetAvailabilityZone = default(string), string targetProximityPlacementGroupId = default(string), string targetBootDiagnosticsStorageAccountId = default(string), string targetNetworkId = default(string), string testNetworkId = default(string), string failoverRecoveryPointId = default(string), System.DateTime? lastRecoveryPointReceived = default(System.DateTime?), long? lastRpoInSeconds = default(long?), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), string lastRecoveryPointId = default(string), int? initialReplicationProgressPercentage = default(int?), long? initialReplicationProcessedBytes = default(long?), long? initialReplicationTransferredBytes = default(long?), string initialReplicationProgressHealth = default(string), int? resyncProgressPercentage = default(int?), long? resyncProcessedBytes = default(long?), long? resyncTransferredBytes = default(long?), string resyncProgressHealth = default(string), string resyncRequired = default(string), string resyncState = default(string), string agentUpgradeState = default(string), string lastAgentUpgradeType = default(string), string agentUpgradeJobId = default(string), string agentUpgradeAttemptToVersion = default(string), IList protectedDisks = default(IList), string isLastUpgradeSuccessful = default(string), InMageRcmMobilityAgentDetails mobilityAgentDetails = default(InMageRcmMobilityAgentDetails), IList lastAgentUpgradeErrorDetails = default(IList), IList agentUpgradeBlockingErrorDetails = default(IList), IList vmNics = default(IList)) + { + InternalIdentifier = internalIdentifier; + FabricDiscoveryMachineId = fabricDiscoveryMachineId; + MultiVmGroupName = multiVmGroupName; + DiscoveryType = discoveryType; + ProcessServerId = processServerId; + ProcessorCoreCount = processorCoreCount; + AllocatedMemoryInMB = allocatedMemoryInMB; + ProcessServerName = processServerName; + RunAsAccountId = runAsAccountId; + OsType = osType; + FirmwareType = firmwareType; + PrimaryNicIpAddress = primaryNicIpAddress; + TargetGeneration = targetGeneration; + LicenseType = licenseType; + TargetVmName = targetVmName; + TargetVmSize = targetVmSize; + TargetResourceGroupId = targetResourceGroupId; + TargetLocation = targetLocation; + TargetAvailabilitySetId = targetAvailabilitySetId; + TargetAvailabilityZone = targetAvailabilityZone; + TargetProximityPlacementGroupId = targetProximityPlacementGroupId; + TargetBootDiagnosticsStorageAccountId = targetBootDiagnosticsStorageAccountId; + TargetNetworkId = targetNetworkId; + TestNetworkId = testNetworkId; + FailoverRecoveryPointId = failoverRecoveryPointId; + LastRecoveryPointReceived = lastRecoveryPointReceived; + LastRpoInSeconds = lastRpoInSeconds; + LastRpoCalculatedTime = lastRpoCalculatedTime; + LastRecoveryPointId = lastRecoveryPointId; + InitialReplicationProgressPercentage = initialReplicationProgressPercentage; + InitialReplicationProcessedBytes = initialReplicationProcessedBytes; + InitialReplicationTransferredBytes = initialReplicationTransferredBytes; + InitialReplicationProgressHealth = initialReplicationProgressHealth; + ResyncProgressPercentage = resyncProgressPercentage; + ResyncProcessedBytes = resyncProcessedBytes; + ResyncTransferredBytes = resyncTransferredBytes; + ResyncProgressHealth = resyncProgressHealth; + ResyncRequired = resyncRequired; + ResyncState = resyncState; + AgentUpgradeState = agentUpgradeState; + LastAgentUpgradeType = lastAgentUpgradeType; + AgentUpgradeJobId = agentUpgradeJobId; + AgentUpgradeAttemptToVersion = agentUpgradeAttemptToVersion; + ProtectedDisks = protectedDisks; + IsLastUpgradeSuccessful = isLastUpgradeSuccessful; + MobilityAgentDetails = mobilityAgentDetails; + LastAgentUpgradeErrorDetails = lastAgentUpgradeErrorDetails; + AgentUpgradeBlockingErrorDetails = agentUpgradeBlockingErrorDetails; + VmNics = vmNics; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the virtual machine internal identifier. + /// + [JsonProperty(PropertyName = "internalIdentifier")] + public string InternalIdentifier { get; private set; } + + /// + /// Gets the ARM Id of the discovered VM. + /// + [JsonProperty(PropertyName = "fabricDiscoveryMachineId")] + public string FabricDiscoveryMachineId { get; private set; } + + /// + /// Gets the multi VM group name. + /// + [JsonProperty(PropertyName = "multiVmGroupName")] + public string MultiVmGroupName { get; private set; } + + /// + /// Gets the type of the discovered VM. + /// + [JsonProperty(PropertyName = "discoveryType")] + public string DiscoveryType { get; private set; } + + /// + /// Gets the process server Id. + /// + [JsonProperty(PropertyName = "processServerId")] + public string ProcessServerId { get; private set; } + + /// + /// Gets the processor core count. + /// + [JsonProperty(PropertyName = "processorCoreCount")] + public int? ProcessorCoreCount { get; private set; } + + /// + /// Gets the allocated memory in MB. + /// + [JsonProperty(PropertyName = "allocatedMemoryInMB")] + public double? AllocatedMemoryInMB { get; private set; } + + /// + /// Gets the process server name. + /// + [JsonProperty(PropertyName = "processServerName")] + public string ProcessServerName { get; private set; } + + /// + /// Gets the run-as account Id. + /// + [JsonProperty(PropertyName = "runAsAccountId")] + public string RunAsAccountId { get; private set; } + + /// + /// Gets the type of the OS on the VM. + /// + [JsonProperty(PropertyName = "osType")] + public string OsType { get; private set; } + + /// + /// Gets the firmware type. + /// + [JsonProperty(PropertyName = "firmwareType")] + public string FirmwareType { get; private set; } + + /// + /// Gets the IP address of the primary network interface. + /// + [JsonProperty(PropertyName = "primaryNicIpAddress")] + public string PrimaryNicIpAddress { get; private set; } + + /// + /// Gets the target generation. + /// + [JsonProperty(PropertyName = "targetGeneration")] + public string TargetGeneration { get; private set; } + + /// + /// Gets or sets license Type of the VM to be used. + /// + [JsonProperty(PropertyName = "licenseType")] + public string LicenseType { get; set; } + + /// + /// Gets or sets target VM name. + /// + [JsonProperty(PropertyName = "targetVmName")] + public string TargetVmName { get; set; } + + /// + /// Gets or sets the target VM size. + /// + [JsonProperty(PropertyName = "targetVmSize")] + public string TargetVmSize { get; set; } + + /// + /// Gets or sets the target resource group Id. + /// + [JsonProperty(PropertyName = "targetResourceGroupId")] + public string TargetResourceGroupId { get; set; } + + /// + /// Gets or sets the target location. + /// + [JsonProperty(PropertyName = "targetLocation")] + public string TargetLocation { get; set; } + + /// + /// Gets or sets the target availability set Id. + /// + [JsonProperty(PropertyName = "targetAvailabilitySetId")] + public string TargetAvailabilitySetId { get; set; } + + /// + /// Gets or sets the target availability zone. + /// + [JsonProperty(PropertyName = "targetAvailabilityZone")] + public string TargetAvailabilityZone { get; set; } + + /// + /// Gets or sets the target proximity placement group Id. + /// + [JsonProperty(PropertyName = "targetProximityPlacementGroupId")] + public string TargetProximityPlacementGroupId { get; set; } + + /// + /// Gets or sets the target boot diagnostics storage account ARM Id. + /// + [JsonProperty(PropertyName = "targetBootDiagnosticsStorageAccountId")] + public string TargetBootDiagnosticsStorageAccountId { get; set; } + + /// + /// Gets or sets the target network Id. + /// + [JsonProperty(PropertyName = "targetNetworkId")] + public string TargetNetworkId { get; set; } + + /// + /// Gets or sets the test network Id. + /// + [JsonProperty(PropertyName = "testNetworkId")] + public string TestNetworkId { get; set; } + + /// + /// Gets the recovery point Id to which the VM was failed over. + /// + [JsonProperty(PropertyName = "failoverRecoveryPointId")] + public string FailoverRecoveryPointId { get; private set; } + + /// + /// Gets the last recovery point received time. + /// + [JsonProperty(PropertyName = "lastRecoveryPointReceived")] + public System.DateTime? LastRecoveryPointReceived { get; private set; } + + /// + /// Gets the last recovery point objective value. + /// + [JsonProperty(PropertyName = "lastRpoInSeconds")] + public long? LastRpoInSeconds { get; private set; } + + /// + /// Gets the last recovery point objective calculated time. + /// + [JsonProperty(PropertyName = "lastRpoCalculatedTime")] + public System.DateTime? LastRpoCalculatedTime { get; private set; } + + /// + /// Gets the last recovery point Id. + /// + [JsonProperty(PropertyName = "lastRecoveryPointId")] + public string LastRecoveryPointId { get; private set; } + + /// + /// Gets the initial replication progress percentage. This is + /// calculated based on total bytes processed for all disks in the + /// source VM. + /// + [JsonProperty(PropertyName = "initialReplicationProgressPercentage")] + public int? InitialReplicationProgressPercentage { get; private set; } + + /// + /// Gets the initial replication processed bytes. This includes sum of + /// total bytes transferred and matched bytes on all selected disks in + /// source VM. + /// + [JsonProperty(PropertyName = "initialReplicationProcessedBytes")] + public long? InitialReplicationProcessedBytes { get; private set; } + + /// + /// Gets the initial replication transferred bytes from source VM to + /// azure for all selected disks on source VM. + /// + [JsonProperty(PropertyName = "initialReplicationTransferredBytes")] + public long? InitialReplicationTransferredBytes { get; private set; } + + /// + /// Gets the initial replication progress health. Possible values + /// include: 'None', 'InProgress', 'SlowProgress', 'NoProgress' + /// + [JsonProperty(PropertyName = "initialReplicationProgressHealth")] + public string InitialReplicationProgressHealth { get; private set; } + + /// + /// Gets the resync progress percentage. This is calculated based on + /// total bytes processed for all disks in the source VM. + /// + [JsonProperty(PropertyName = "resyncProgressPercentage")] + public int? ResyncProgressPercentage { get; private set; } + + /// + /// Gets the resync processed bytes. This includes sum of total bytes + /// transferred and matched bytes on all selected disks in source VM. + /// + [JsonProperty(PropertyName = "resyncProcessedBytes")] + public long? ResyncProcessedBytes { get; private set; } + + /// + /// Gets the resync transferred bytes from source VM to azure for all + /// selected disks on source VM. + /// + [JsonProperty(PropertyName = "resyncTransferredBytes")] + public long? ResyncTransferredBytes { get; private set; } + + /// + /// Gets the resync progress health. Possible values include: 'None', + /// 'InProgress', 'SlowProgress', 'NoProgress' + /// + [JsonProperty(PropertyName = "resyncProgressHealth")] + public string ResyncProgressHealth { get; private set; } + + /// + /// Gets a value indicating whether resync is required. + /// + [JsonProperty(PropertyName = "resyncRequired")] + public string ResyncRequired { get; private set; } + + /// + /// Gets the resync state. Possible values include: 'None', + /// 'PreparedForResynchronization', 'StartedResynchronization' + /// + [JsonProperty(PropertyName = "resyncState")] + public string ResyncState { get; private set; } + + /// + /// Gets the agent auto upgrade state. Possible values include: 'None', + /// 'Started', 'Completed', 'Commit' + /// + [JsonProperty(PropertyName = "agentUpgradeState")] + public string AgentUpgradeState { get; private set; } + + /// + /// Gets the last agent upgrade type. + /// + [JsonProperty(PropertyName = "lastAgentUpgradeType")] + public string LastAgentUpgradeType { get; private set; } + + /// + /// Gets the agent upgrade job Id. + /// + [JsonProperty(PropertyName = "agentUpgradeJobId")] + public string AgentUpgradeJobId { get; private set; } + + /// + /// Gets the agent version to which last agent upgrade was attempted. + /// + [JsonProperty(PropertyName = "agentUpgradeAttemptToVersion")] + public string AgentUpgradeAttemptToVersion { get; private set; } + + /// + /// Gets or sets the list of protected disks. + /// + [JsonProperty(PropertyName = "protectedDisks")] + public IList ProtectedDisks { get; set; } + + /// + /// Gets a value indicating whether last agent upgrade was successful + /// or not. + /// + [JsonProperty(PropertyName = "isLastUpgradeSuccessful")] + public string IsLastUpgradeSuccessful { get; private set; } + + /// + /// Gets or sets the mobility agent information. + /// + [JsonProperty(PropertyName = "mobilityAgentDetails")] + public InMageRcmMobilityAgentDetails MobilityAgentDetails { get; set; } + + /// + /// Gets or sets the last agent upgrade error information. + /// + [JsonProperty(PropertyName = "lastAgentUpgradeErrorDetails")] + public IList LastAgentUpgradeErrorDetails { get; set; } + + /// + /// Gets or sets the agent upgrade blocking error information. + /// + [JsonProperty(PropertyName = "agentUpgradeBlockingErrorDetails")] + public IList AgentUpgradeBlockingErrorDetails { get; set; } + + /// + /// Gets or sets the network details. + /// + [JsonProperty(PropertyName = "vmNics")] + public IList VmNics { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmReprotectInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmReprotectInput.cs new file mode 100644 index 000000000000..c963c886439a --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmReprotectInput.cs @@ -0,0 +1,99 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcm specific provider input. + /// + [Newtonsoft.Json.JsonObject("InMageRcm")] + public partial class InMageRcmReprotectInput : ReverseReplicationProviderSpecificInput + { + /// + /// Initializes a new instance of the InMageRcmReprotectInput class. + /// + public InMageRcmReprotectInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmReprotectInput class. + /// + /// The reprotect agent Id. + /// The target datastore name. + /// The log storage account ARM + /// Id. + /// The Policy Id. + public InMageRcmReprotectInput(string reprotectAgentId, string datastoreName, string logStorageAccountId, string policyId = default(string)) + { + ReprotectAgentId = reprotectAgentId; + DatastoreName = datastoreName; + LogStorageAccountId = logStorageAccountId; + PolicyId = policyId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the reprotect agent Id. + /// + [JsonProperty(PropertyName = "reprotectAgentId")] + public string ReprotectAgentId { get; set; } + + /// + /// Gets or sets the target datastore name. + /// + [JsonProperty(PropertyName = "datastoreName")] + public string DatastoreName { get; set; } + + /// + /// Gets or sets the log storage account ARM Id. + /// + [JsonProperty(PropertyName = "logStorageAccountId")] + public string LogStorageAccountId { get; set; } + + /// + /// Gets or sets the Policy Id. + /// + [JsonProperty(PropertyName = "policyId")] + public string PolicyId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ReprotectAgentId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ReprotectAgentId"); + } + if (DatastoreName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DatastoreName"); + } + if (LogStorageAccountId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "LogStorageAccountId"); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmSyncDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmSyncDetails.cs new file mode 100644 index 000000000000..3bc0b95fa574 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmSyncDetails.cs @@ -0,0 +1,119 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcm disk level sync details. + /// + public partial class InMageRcmSyncDetails + { + /// + /// Initializes a new instance of the InMageRcmSyncDetails class. + /// + public InMageRcmSyncDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmSyncDetails class. + /// + /// The progress health. Possible values + /// include: 'None', 'InProgress', 'SlowProgress', 'NoProgress', + /// 'Queued' + /// The transferred bytes from source VM + /// to azure for the disk. + /// The bytes transferred + /// in last 15 minutes from source VM to azure. + /// The time of the last data + /// transfer from source VM to azure. + /// The total processed bytes. This + /// includes bytes that are transferred from source VM to azure and + /// matched bytes. + /// The start time. + /// The last refresh time. + /// Progress in percentage. Progress + /// percentage is calculated based on processed bytes. + public InMageRcmSyncDetails(string progressHealth = default(string), long? transferredBytes = default(long?), long? last15MinutesTransferredBytes = default(long?), string lastDataTransferTimeUtc = default(string), long? processedBytes = default(long?), string startTime = default(string), string lastRefreshTime = default(string), int? progressPercentage = default(int?)) + { + ProgressHealth = progressHealth; + TransferredBytes = transferredBytes; + Last15MinutesTransferredBytes = last15MinutesTransferredBytes; + LastDataTransferTimeUtc = lastDataTransferTimeUtc; + ProcessedBytes = processedBytes; + StartTime = startTime; + LastRefreshTime = lastRefreshTime; + ProgressPercentage = progressPercentage; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the progress health. Possible values include: 'None', + /// 'InProgress', 'SlowProgress', 'NoProgress', 'Queued' + /// + [JsonProperty(PropertyName = "progressHealth")] + public string ProgressHealth { get; private set; } + + /// + /// Gets the transferred bytes from source VM to azure for the disk. + /// + [JsonProperty(PropertyName = "transferredBytes")] + public long? TransferredBytes { get; private set; } + + /// + /// Gets the bytes transferred in last 15 minutes from source VM to + /// azure. + /// + [JsonProperty(PropertyName = "last15MinutesTransferredBytes")] + public long? Last15MinutesTransferredBytes { get; private set; } + + /// + /// Gets the time of the last data transfer from source VM to azure. + /// + [JsonProperty(PropertyName = "lastDataTransferTimeUtc")] + public string LastDataTransferTimeUtc { get; private set; } + + /// + /// Gets the total processed bytes. This includes bytes that are + /// transferred from source VM to azure and matched bytes. + /// + [JsonProperty(PropertyName = "processedBytes")] + public long? ProcessedBytes { get; private set; } + + /// + /// Gets the start time. + /// + [JsonProperty(PropertyName = "startTime")] + public string StartTime { get; private set; } + + /// + /// Gets the last refresh time. + /// + [JsonProperty(PropertyName = "lastRefreshTime")] + public string LastRefreshTime { get; private set; } + + /// + /// Gets progress in percentage. Progress percentage is calculated + /// based on processed bytes. + /// + [JsonProperty(PropertyName = "progressPercentage")] + public int? ProgressPercentage { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmTestFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmTestFailoverInput.cs new file mode 100644 index 000000000000..22f2ba02819b --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmTestFailoverInput.cs @@ -0,0 +1,64 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcm provider specific input for test failover. + /// + [Newtonsoft.Json.JsonObject("InMageRcm")] + public partial class InMageRcmTestFailoverInput : TestFailoverProviderSpecificInput + { + /// + /// Initializes a new instance of the InMageRcmTestFailoverInput class. + /// + public InMageRcmTestFailoverInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmTestFailoverInput class. + /// + /// The test network Id. + /// The recovery point id to be passed to + /// test failover to a particular recovery point. In case of latest + /// recovery point, null should be passed. + public InMageRcmTestFailoverInput(string networkId = default(string), string recoveryPointId = default(string)) + { + NetworkId = networkId; + RecoveryPointId = recoveryPointId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the test network Id. + /// + [JsonProperty(PropertyName = "networkId")] + public string NetworkId { get; set; } + + /// + /// Gets or sets the recovery point id to be passed to test failover to + /// a particular recovery point. In case of latest recovery point, null + /// should be passed. + /// + [JsonProperty(PropertyName = "recoveryPointId")] + public string RecoveryPointId { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmUnplannedFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmUnplannedFailoverInput.cs new file mode 100644 index 000000000000..9b54f303fdec --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmUnplannedFailoverInput.cs @@ -0,0 +1,81 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcm provider specific input for unplanned failover. + /// + [Newtonsoft.Json.JsonObject("InMageRcm")] + public partial class InMageRcmUnplannedFailoverInput : UnplannedFailoverProviderSpecificInput + { + /// + /// Initializes a new instance of the InMageRcmUnplannedFailoverInput + /// class. + /// + public InMageRcmUnplannedFailoverInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageRcmUnplannedFailoverInput + /// class. + /// + /// A value indicating whether VM is to + /// be shutdown. + /// 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 InMageRcmUnplannedFailoverInput(string performShutdown, string recoveryPointId = default(string)) + { + PerformShutdown = performShutdown; + RecoveryPointId = recoveryPointId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a value indicating whether VM is to be shutdown. + /// + [JsonProperty(PropertyName = "performShutdown")] + public string PerformShutdown { get; set; } + + /// + /// Gets or sets the recovery point id to be passed to failover to a + /// particular recovery point. In case of latest recovery point, null + /// should be passed. + /// + [JsonProperty(PropertyName = "recoveryPointId")] + public string RecoveryPointId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (PerformShutdown == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PerformShutdown"); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmUpdateContainerMappingInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmUpdateContainerMappingInput.cs new file mode 100644 index 000000000000..2c1b0cac383c --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmUpdateContainerMappingInput.cs @@ -0,0 +1,70 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// InMageRcm update protection container mapping. + /// + [Newtonsoft.Json.JsonObject("InMageRcm")] + public partial class InMageRcmUpdateContainerMappingInput : ReplicationProviderSpecificUpdateContainerMappingInput + { + /// + /// Initializes a new instance of the + /// InMageRcmUpdateContainerMappingInput class. + /// + public InMageRcmUpdateContainerMappingInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// InMageRcmUpdateContainerMappingInput class. + /// + /// A value indicating whether + /// agent auto upgrade has to be enabled. + public InMageRcmUpdateContainerMappingInput(string enableAgentAutoUpgrade) + { + EnableAgentAutoUpgrade = enableAgentAutoUpgrade; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a value indicating whether agent auto upgrade has to + /// be enabled. + /// + [JsonProperty(PropertyName = "enableAgentAutoUpgrade")] + public string EnableAgentAutoUpgrade { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (EnableAgentAutoUpgrade == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "EnableAgentAutoUpgrade"); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmUpdateReplicationProtectedItemInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmUpdateReplicationProtectedItemInput.cs new file mode 100644 index 000000000000..14a802856a58 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmUpdateReplicationProtectedItemInput.cs @@ -0,0 +1,143 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// InMageRcm provider specific input to update replication protected item. + /// + [Newtonsoft.Json.JsonObject("InMageRcm")] + public partial class InMageRcmUpdateReplicationProtectedItemInput : UpdateReplicationProtectedItemProviderInput + { + /// + /// Initializes a new instance of the + /// InMageRcmUpdateReplicationProtectedItemInput class. + /// + public InMageRcmUpdateReplicationProtectedItemInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// InMageRcmUpdateReplicationProtectedItemInput class. + /// + /// The target VM name. + /// The target VM size. + /// The target resource group ARM + /// Id. + /// The target availability set + /// ARM Id. + /// The target availability + /// zone. + /// The target proximity + /// placement group Id. + /// The target boot + /// diagnostics storage account ARM Id. + /// The target network ARM Id. + /// The test network ARM Id. + /// The list of NIC details. + /// The license type. Possible values + /// include: 'NotSpecified', 'NoLicenseType', 'WindowsServer' + public InMageRcmUpdateReplicationProtectedItemInput(string targetVmName = default(string), string targetVmSize = default(string), string targetResourceGroupId = default(string), string targetAvailabilitySetId = default(string), string targetAvailabilityZone = default(string), string targetProximityPlacementGroupId = default(string), string targetBootDiagnosticsStorageAccountId = default(string), string targetNetworkId = default(string), string testNetworkId = default(string), IList vmNics = default(IList), string licenseType = default(string)) + { + TargetVmName = targetVmName; + TargetVmSize = targetVmSize; + TargetResourceGroupId = targetResourceGroupId; + TargetAvailabilitySetId = targetAvailabilitySetId; + TargetAvailabilityZone = targetAvailabilityZone; + TargetProximityPlacementGroupId = targetProximityPlacementGroupId; + TargetBootDiagnosticsStorageAccountId = targetBootDiagnosticsStorageAccountId; + TargetNetworkId = targetNetworkId; + TestNetworkId = testNetworkId; + VmNics = vmNics; + LicenseType = licenseType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the target VM name. + /// + [JsonProperty(PropertyName = "targetVmName")] + public string TargetVmName { get; set; } + + /// + /// Gets or sets the target VM size. + /// + [JsonProperty(PropertyName = "targetVmSize")] + public string TargetVmSize { get; set; } + + /// + /// Gets or sets the target resource group ARM Id. + /// + [JsonProperty(PropertyName = "targetResourceGroupId")] + public string TargetResourceGroupId { get; set; } + + /// + /// Gets or sets the target availability set ARM Id. + /// + [JsonProperty(PropertyName = "targetAvailabilitySetId")] + public string TargetAvailabilitySetId { get; set; } + + /// + /// Gets or sets the target availability zone. + /// + [JsonProperty(PropertyName = "targetAvailabilityZone")] + public string TargetAvailabilityZone { get; set; } + + /// + /// Gets or sets the target proximity placement group Id. + /// + [JsonProperty(PropertyName = "targetProximityPlacementGroupId")] + public string TargetProximityPlacementGroupId { get; set; } + + /// + /// Gets or sets the target boot diagnostics storage account ARM Id. + /// + [JsonProperty(PropertyName = "targetBootDiagnosticsStorageAccountId")] + public string TargetBootDiagnosticsStorageAccountId { get; set; } + + /// + /// Gets or sets the target network ARM Id. + /// + [JsonProperty(PropertyName = "targetNetworkId")] + public string TargetNetworkId { get; set; } + + /// + /// Gets or sets the test network ARM Id. + /// + [JsonProperty(PropertyName = "testNetworkId")] + public string TestNetworkId { get; set; } + + /// + /// Gets or sets the list of NIC details. + /// + [JsonProperty(PropertyName = "vmNics")] + public IList VmNics { get; set; } + + /// + /// Gets or sets the license type. Possible values include: + /// 'NotSpecified', 'NoLicenseType', 'WindowsServer' + /// + [JsonProperty(PropertyName = "licenseType")] + public string LicenseType { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageReplicationDetails.cs index e62489d2572f..3160559f812c 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageReplicationDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageReplicationDetails.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// InMage provider specific settings + /// InMage provider specific settings. /// [Newtonsoft.Json.JsonObject("InMage")] public partial class InMageReplicationDetails : ReplicationProviderSpecificSettings @@ -48,7 +48,7 @@ public InMageReplicationDetails() /// The protection state /// description for the vm. /// The resync details of the - /// machine + /// machine. /// The retention window start /// time. /// The retention window end @@ -85,10 +85,10 @@ public InMageReplicationDetails() /// A value indicating the /// underlying Azure storage account. If the VM is not running in /// Azure, this value shall be set to null. - /// The data stores of the on-premise machine - /// Value can be list of strings that contain data store names + /// 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 + /// on-premise machine Value can be list of validation errors. /// The last RPO calculated /// time. /// The last update time received @@ -97,7 +97,12 @@ public InMageReplicationDetails() /// item. /// The OS Version of the protected /// item. - public InMageReplicationDetails(string activeSiteType = default(string), int? sourceVmCpuCount = default(int?), int? sourceVmRamSizeInMB = default(int?), OSDiskDetails osDetails = default(OSDiskDetails), string protectionStage = default(string), string vmId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), InitialReplicationDetails resyncDetails = default(InitialReplicationDetails), System.DateTime? retentionWindowStart = default(System.DateTime?), System.DateTime? retentionWindowEnd = default(System.DateTime?), double? compressedDataRateInMB = default(double?), double? uncompressedDataRateInMB = default(double?), long? rpoInSeconds = default(long?), IList protectedDisks = default(IList), string ipAddress = default(string), System.DateTime? lastHeartbeat = default(System.DateTime?), string processServerId = default(string), string masterTargetId = default(string), IDictionary consistencyPoints = default(IDictionary), string diskResized = default(string), string rebootAfterUpdateStatus = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), string multiVmSyncStatus = default(string), InMageAgentDetails agentDetails = default(InMageAgentDetails), string vCenterInfrastructureId = default(string), string infrastructureVmId = default(string), IList vmNics = default(IList), string discoveryType = default(string), string azureStorageAccountId = default(string), IList datastores = default(IList), IList validationErrors = default(IList), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), System.DateTime? lastUpdateReceivedTime = default(System.DateTime?), string replicaId = default(string), string osVersion = default(string)) + /// A value indicating whether + /// additional IR stats are available or not. + /// The total transferred data in + /// bytes. + /// The progress health. + 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), bool? isAdditionalStatsAvailable = default(bool?), long? totalDataTransferred = default(long?), string totalProgressHealth = default(string)) { ActiveSiteType = activeSiteType; SourceVmCpuCount = sourceVmCpuCount; @@ -136,6 +141,9 @@ public InMageReplicationDetails() LastUpdateReceivedTime = lastUpdateReceivedTime; ReplicaId = replicaId; OsVersion = osVersion; + IsAdditionalStatsAvailable = isAdditionalStatsAvailable; + TotalDataTransferred = totalDataTransferred; + TotalProgressHealth = totalProgressHealth; CustomInit(); } @@ -196,7 +204,7 @@ public InMageReplicationDetails() public string VmProtectionStateDescription { get; set; } /// - /// Gets or sets the resync details of the machine + /// Gets or sets the resync details of the machine. /// [JsonProperty(PropertyName = "resyncDetails")] public InitialReplicationDetails ResyncDetails { get; set; } @@ -339,15 +347,15 @@ public InMageReplicationDetails() public string AzureStorageAccountId { get; set; } /// - /// Gets or sets the data stores of the on-premise machine Value can be - /// list of strings that contain data store 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 + /// can be list of validation errors. /// [JsonProperty(PropertyName = "validationErrors")] public IList ValidationErrors { get; set; } @@ -376,5 +384,24 @@ public InMageReplicationDetails() [JsonProperty(PropertyName = "osVersion")] public string OsVersion { get; set; } + /// + /// Gets or sets a value indicating whether additional IR stats are + /// available or not. + /// + [JsonProperty(PropertyName = "isAdditionalStatsAvailable")] + public bool? IsAdditionalStatsAvailable { get; set; } + + /// + /// Gets or sets the total transferred data in bytes. + /// + [JsonProperty(PropertyName = "totalDataTransferred")] + public long? TotalDataTransferred { get; set; } + + /// + /// Gets or sets the progress health. + /// + [JsonProperty(PropertyName = "totalProgressHealth")] + public string TotalProgressHealth { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageReprotectInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageReprotectInput.cs index 744a30739471..9da32820fe9e 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageReprotectInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageReprotectInput.cs @@ -39,7 +39,7 @@ public InMageReprotectInput() /// MT. /// The Policy Id. /// The CS account Id. - /// The target data store name. + /// The target datastore name. /// The enable disk exclusion /// input. /// The disks to include list. @@ -86,7 +86,7 @@ public InMageReprotectInput() public string RunAsAccountId { get; set; } /// - /// Gets or sets the target data store name. + /// Gets or sets the target datastore name. /// [JsonProperty(PropertyName = "datastoreName")] public string DatastoreName { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageTestFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageTestFailoverInput.cs new file mode 100644 index 000000000000..1ca31d65a08e --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageTestFailoverInput.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 Newtonsoft.Json; + using System.Linq; + + /// + /// Provider specific input for InMage test failover. + /// + [Newtonsoft.Json.JsonObject("InMage")] + public partial class InMageTestFailoverInput : TestFailoverProviderSpecificInput + { + /// + /// Initializes a new instance of the InMageTestFailoverInput class. + /// + public InMageTestFailoverInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageTestFailoverInput 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. Possible values + /// include: 'LatestTime', 'LatestTag', 'Custom' + /// The recovery point id to be passed to + /// test failover to a particular recovery point. In case of latest + /// recovery point, null should be passed. + public InMageTestFailoverInput(string recoveryPointType = default(string), string recoveryPointId = default(string)) + { + RecoveryPointType = recoveryPointType; + RecoveryPointId = recoveryPointId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// 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. Possible values include: + /// 'LatestTime', 'LatestTag', 'Custom' + /// + [JsonProperty(PropertyName = "recoveryPointType")] + public string RecoveryPointType { get; set; } + + /// + /// Gets or sets the recovery point id to be passed to test failover to + /// a particular recovery point. In case of latest recovery point, null + /// should be passed. + /// + [JsonProperty(PropertyName = "recoveryPointId")] + public string RecoveryPointId { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageFailoverProviderInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageUnplannedFailoverInput.cs similarity index 83% rename from sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageFailoverProviderInput.cs rename to sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageUnplannedFailoverInput.cs index 47c9303a2594..96bbd9182629 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageFailoverProviderInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageUnplannedFailoverInput.cs @@ -14,22 +14,22 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Provider specific input for InMage failover. + /// Provider specific input for InMage unplanned failover. /// [Newtonsoft.Json.JsonObject("InMage")] - public partial class InMageFailoverProviderInput : ProviderSpecificFailoverInput + public partial class InMageUnplannedFailoverInput : UnplannedFailoverProviderSpecificInput { /// - /// Initializes a new instance of the InMageFailoverProviderInput + /// Initializes a new instance of the InMageUnplannedFailoverInput /// class. /// - public InMageFailoverProviderInput() + public InMageUnplannedFailoverInput() { CustomInit(); } /// - /// Initializes a new instance of the InMageFailoverProviderInput + /// Initializes a new instance of the InMageUnplannedFailoverInput /// class. /// /// The recovery point type. Values @@ -40,7 +40,7 @@ public InMageFailoverProviderInput() /// 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)) + public InMageUnplannedFailoverInput(string recoveryPointType = default(string), string recoveryPointId = default(string)) { RecoveryPointType = recoveryPointType; RecoveryPointId = recoveryPointId; diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InnerHealthError.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InnerHealthError.cs index 4d585044e4f4..e04a2492a5fd 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InnerHealthError.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InnerHealthError.cs @@ -44,11 +44,15 @@ public InnerHealthError() /// Possible causes of error. /// Recommended action to resolve /// error. - /// Error creation time (UTC) + /// Error creation time (UTC). /// DRA error /// message. /// ID of the entity. - public InnerHealthError(string errorSource = default(string), string errorType = default(string), string errorLevel = default(string), string errorCategory = default(string), string errorCode = default(string), string summaryMessage = default(string), string errorMessage = default(string), string possibleCauses = default(string), string recommendedAction = default(string), System.DateTime? creationTimeUtc = default(System.DateTime?), string recoveryProviderErrorMessage = default(string), string entityId = default(string)) + /// The health error unique id. + /// Value indicating whether the + /// health error is customer resolvable. Possible values include: + /// 'Allowed', 'NotAllowed' + public InnerHealthError(string errorSource = default(string), string errorType = default(string), string errorLevel = default(string), string errorCategory = default(string), string errorCode = default(string), string summaryMessage = default(string), string errorMessage = default(string), string possibleCauses = default(string), string recommendedAction = default(string), System.DateTime? creationTimeUtc = default(System.DateTime?), string recoveryProviderErrorMessage = default(string), string entityId = default(string), string errorId = default(string), string customerResolvability = default(string)) { ErrorSource = errorSource; ErrorType = errorType; @@ -62,6 +66,8 @@ public InnerHealthError() CreationTimeUtc = creationTimeUtc; RecoveryProviderErrorMessage = recoveryProviderErrorMessage; EntityId = entityId; + ErrorId = errorId; + CustomerResolvability = customerResolvability; CustomInit(); } @@ -125,7 +131,7 @@ public InnerHealthError() public string RecommendedAction { get; set; } /// - /// Gets or sets error creation time (UTC) + /// Gets or sets error creation time (UTC). /// [JsonProperty(PropertyName = "creationTimeUtc")] public System.DateTime? CreationTimeUtc { get; set; } @@ -142,5 +148,18 @@ public InnerHealthError() [JsonProperty(PropertyName = "entityId")] public string EntityId { get; set; } + /// + /// Gets or sets the health error unique id. + /// + [JsonProperty(PropertyName = "errorId")] + public string ErrorId { get; set; } + + /// + /// Gets or sets value indicating whether the health error is customer + /// resolvable. Possible values include: 'Allowed', 'NotAllowed' + /// + [JsonProperty(PropertyName = "customerResolvability")] + public string CustomerResolvability { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InputEndpoint.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InputEndpoint.cs index dc2b029bba3e..f1e9f3ad5a9e 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InputEndpoint.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InputEndpoint.cs @@ -13,9 +13,6 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using Newtonsoft.Json; using System.Linq; - /// - /// Azure VM input endpoint details. - /// public partial class InputEndpoint { /// @@ -29,10 +26,6 @@ public InputEndpoint() /// /// Initializes a new instance of the InputEndpoint class. /// - /// The input endpoint name. - /// The input endpoint private port. - /// The input endpoint public port. - /// The input endpoint protocol. public InputEndpoint(string endpointName = default(string), int? privatePort = default(int?), int? publicPort = default(int?), string protocol = default(string)) { EndpointName = endpointName; @@ -48,25 +41,21 @@ public InputEndpoint() partial void CustomInit(); /// - /// Gets or sets the input endpoint name. /// [JsonProperty(PropertyName = "endpointName")] public string EndpointName { get; set; } /// - /// Gets or sets the input endpoint private port. /// [JsonProperty(PropertyName = "privatePort")] public int? PrivatePort { get; set; } /// - /// Gets or sets the input endpoint public port. /// [JsonProperty(PropertyName = "publicPort")] public int? PublicPort { get; set; } /// - /// Gets or sets the input endpoint protocol. /// [JsonProperty(PropertyName = "protocol")] public string Protocol { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/JobProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/JobProperties.cs index be9133e6cbe0..15e620fb337c 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/JobProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/JobProperties.cs @@ -50,7 +50,7 @@ public JobProperties() /// object. /// The type of the affected object /// which is of - /// {Microsoft.Azure.SiteRecovery.V2015_11_10.AffectedObjectType} + /// Microsoft.Azure.SiteRecovery.V2015_11_10.AffectedObjectType /// class. /// The custom job details like test /// failover job details. @@ -156,8 +156,7 @@ public JobProperties() /// /// Gets or sets the type of the affected object which is of - /// {Microsoft.Azure.SiteRecovery.V2015_11_10.AffectedObjectType} - /// class. + /// Microsoft.Azure.SiteRecovery.V2015_11_10.AffectedObjectType class. /// [JsonProperty(PropertyName = "targetInstanceType")] public string TargetInstanceType { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/JobQueryParameter.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/JobQueryParameter.cs index 743e983a315c..e358dc193302 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/JobQueryParameter.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/JobQueryParameter.cs @@ -30,19 +30,27 @@ public JobQueryParameter() /// Initializes a new instance of the JobQueryParameter class. /// /// Date time to get jobs from. - /// Date time to get jobs up to. + /// Date time to get jobs upto. /// The Id of the fabric to search jobs /// under. /// The type of objects. /// The states of the job to be filtered can be /// in. - public JobQueryParameter(string startTime = default(string), string endTime = default(string), string fabricId = default(string), string affectedObjectTypes = default(string), string jobStatus = default(string)) + /// The output type of the jobs. Possible + /// values include: 'Json', 'Xml', 'Excel' + /// The job Name. + /// The timezone offset for the location + /// of the request (in minutes). + public JobQueryParameter(string startTime = default(string), string endTime = default(string), string fabricId = default(string), string affectedObjectTypes = default(string), string jobStatus = default(string), string jobOutputType = default(string), string jobName = default(string), double? timezoneOffset = default(double?)) { StartTime = startTime; EndTime = endTime; FabricId = fabricId; AffectedObjectTypes = affectedObjectTypes; JobStatus = jobStatus; + JobOutputType = jobOutputType; + JobName = jobName; + TimezoneOffset = timezoneOffset; CustomInit(); } @@ -58,7 +66,7 @@ public JobQueryParameter() public string StartTime { get; set; } /// - /// Gets or sets date time to get jobs up to. + /// Gets or sets date time to get jobs upto. /// [JsonProperty(PropertyName = "endTime")] public string EndTime { get; set; } @@ -81,5 +89,25 @@ public JobQueryParameter() [JsonProperty(PropertyName = "jobStatus")] public string JobStatus { get; set; } + /// + /// Gets or sets the output type of the jobs. Possible values include: + /// 'Json', 'Xml', 'Excel' + /// + [JsonProperty(PropertyName = "jobOutputType")] + public string JobOutputType { get; set; } + + /// + /// Gets or sets the job Name. + /// + [JsonProperty(PropertyName = "jobName")] + public string JobName { get; set; } + + /// + /// Gets or sets the timezone offset for the location of the request + /// (in minutes). + /// + [JsonProperty(PropertyName = "timezoneOffset")] + public double? TimezoneOffset { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/KeyEncryptionKeyInfo.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/KeyEncryptionKeyInfo.cs index 423a923e70b1..795acdbaaecf 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/KeyEncryptionKeyInfo.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/KeyEncryptionKeyInfo.cs @@ -29,8 +29,8 @@ public KeyEncryptionKeyInfo() /// /// Initializes a new instance of the KeyEncryptionKeyInfo class. /// - /// The key url / identifier. - /// The KeyVault resource ARM id + /// The key URL / identifier. + /// The KeyVault resource ARM Id /// for key. public KeyEncryptionKeyInfo(string keyIdentifier = default(string), string keyVaultResourceArmId = default(string)) { @@ -45,13 +45,13 @@ public KeyEncryptionKeyInfo() partial void CustomInit(); /// - /// Gets or sets the key url / identifier. + /// Gets or sets the key URL / identifier. /// [JsonProperty(PropertyName = "keyIdentifier")] public string KeyIdentifier { get; set; } /// - /// Gets or sets the KeyVault resource ARM id for key. + /// Gets or sets the KeyVault resource ARM Id for key. /// [JsonProperty(PropertyName = "keyVaultResourceArmId")] public string KeyVaultResourceArmId { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MarsAgentDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MarsAgentDetails.cs new file mode 100644 index 000000000000..7939133fe76f --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MarsAgentDetails.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 Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Mars agent details. + /// + public partial class MarsAgentDetails + { + /// + /// Initializes a new instance of the MarsAgentDetails class. + /// + public MarsAgentDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MarsAgentDetails class. + /// + /// The Mars agent Id. + /// The Mars agent name. + /// The Mars agent Bios Id. + /// The fabric object Id. + /// The Mars agent Fqdn. + /// The version. + /// The last heartbeat received from the + /// Mars agent. + /// The health of the Mars agent. Possible values + /// include: 'None', 'Normal', 'Warning', 'Critical' + /// The health errors. + public MarsAgentDetails(string id = default(string), string name = default(string), string biosId = default(string), string fabricObjectId = default(string), string fqdn = default(string), string version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), string health = default(string), IList healthErrors = default(IList)) + { + Id = id; + Name = name; + BiosId = biosId; + FabricObjectId = fabricObjectId; + Fqdn = fqdn; + Version = version; + LastHeartbeatUtc = lastHeartbeatUtc; + Health = health; + HealthErrors = healthErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the Mars agent Id. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the Mars agent name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the Mars agent Bios Id. + /// + [JsonProperty(PropertyName = "biosId")] + public string BiosId { get; private set; } + + /// + /// Gets the fabric object Id. + /// + [JsonProperty(PropertyName = "fabricObjectId")] + public string FabricObjectId { get; private set; } + + /// + /// Gets the Mars agent Fqdn. + /// + [JsonProperty(PropertyName = "fqdn")] + public string Fqdn { get; private set; } + + /// + /// Gets the version. + /// + [JsonProperty(PropertyName = "version")] + public string Version { get; private set; } + + /// + /// Gets the last heartbeat received from the Mars agent. + /// + [JsonProperty(PropertyName = "lastHeartbeatUtc")] + public System.DateTime? LastHeartbeatUtc { get; private set; } + + /// + /// Gets the health of the Mars agent. Possible values include: 'None', + /// 'Normal', 'Warning', 'Critical' + /// + [JsonProperty(PropertyName = "health")] + public string Health { get; private set; } + + /// + /// Gets the health errors. + /// + [JsonProperty(PropertyName = "healthErrors")] + public IList HealthErrors { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MasterTargetServer.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MasterTargetServer.cs index 996b07a113fc..f6e60f92b6fa 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MasterTargetServer.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MasterTargetServer.cs @@ -39,7 +39,7 @@ public MasterTargetServer() /// the server. /// The last heartbeat received from the /// server. - /// Version status + /// Version status. /// The retention volumes of Master /// target Server. /// The list of data stores in the @@ -119,7 +119,7 @@ public MasterTargetServer() public System.DateTime? LastHeartbeat { get; set; } /// - /// Gets or sets version status + /// Gets or sets version status. /// [JsonProperty(PropertyName = "versionStatus")] public string VersionStatus { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MigrationItemProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MigrationItemProperties.cs index 90ef4cb27749..9435bc902735 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MigrationItemProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MigrationItemProperties.cs @@ -59,7 +59,7 @@ public MigrationItemProperties() /// include: 'None', 'Normal', 'Warning', 'Critical' /// The list of health errors. /// The allowed operations on the - /// migration item, based on the current migration state of the + /// migration item based on the current migration state of the /// item. /// The current job details. /// The correlation Id for events @@ -165,7 +165,7 @@ public MigrationItemProperties() public IList HealthErrors { get; private set; } /// - /// Gets the allowed operations on the migration item, based on the + /// Gets the allowed operations on the migration item based on the /// current migration state of the item. /// [JsonProperty(PropertyName = "allowedOperations")] diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MigrationItemsQueryParameter.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MigrationItemsQueryParameter.cs index 5581a7df642c..15610f390293 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MigrationItemsQueryParameter.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MigrationItemsQueryParameter.cs @@ -33,10 +33,13 @@ public MigrationItemsQueryParameter() /// /// The source fabric name /// filter. + /// The source container name + /// filter. /// The replication provider type. - public MigrationItemsQueryParameter(string sourceFabricName = default(string), string instanceType = default(string)) + public MigrationItemsQueryParameter(string sourceFabricName = default(string), string sourceContainerName = default(string), string instanceType = default(string)) { SourceFabricName = sourceFabricName; + SourceContainerName = sourceContainerName; InstanceType = instanceType; CustomInit(); } @@ -52,6 +55,12 @@ public MigrationItemsQueryParameter() [JsonProperty(PropertyName = "sourceFabricName")] public string SourceFabricName { get; set; } + /// + /// Gets or sets the source container name filter. + /// + [JsonProperty(PropertyName = "sourceContainerName")] + public string SourceContainerName { get; set; } + /// /// Gets or sets the replication provider type. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MobilityAgentUpgradeState.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MobilityAgentUpgradeState.cs new file mode 100644 index 000000000000..743ba91280dd --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MobilityAgentUpgradeState.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + + /// + /// Defines values for MobilityAgentUpgradeState. + /// + public static class MobilityAgentUpgradeState + { + public const string None = "None"; + public const string Started = "Started"; + public const string Completed = "Completed"; + public const string Commit = "Commit"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/NetworkProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/NetworkProperties.cs index e8d42125f9d7..48d27b395a4b 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/NetworkProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/NetworkProperties.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Network Properties + /// Network Properties. /// public partial class NetworkProperties { diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RcmAzureMigrationPolicyDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/NewProtectionProfile.cs similarity index 56% rename from sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RcmAzureMigrationPolicyDetails.cs rename to sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/NewProtectionProfile.cs index c57469a8f933..2d5e73be690f 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RcmAzureMigrationPolicyDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/NewProtectionProfile.cs @@ -10,46 +10,44 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; /// - /// RCM based Azure migration specific policy details. + /// New Protection profile input. /// - [Newtonsoft.Json.JsonObject("RcmAzureMigration")] - public partial class RcmAzureMigrationPolicyDetails : PolicyProviderSpecificDetails + [Newtonsoft.Json.JsonObject("New")] + public partial class NewProtectionProfile : ProtectionProfileCustomDetails { /// - /// Initializes a new instance of the RcmAzureMigrationPolicyDetails - /// class. + /// Initializes a new instance of the NewProtectionProfile class. /// - public RcmAzureMigrationPolicyDetails() + public NewProtectionProfile() { CustomInit(); } /// - /// Initializes a new instance of the RcmAzureMigrationPolicyDetails - /// class. + /// Initializes a new instance of the NewProtectionProfile class. /// - /// The recovery point - /// threshold in minutes. + /// The protection profile input. + /// A value indicating whether multi-VM + /// 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. - /// 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?), string multiVmSyncStatus = default(string), int? crashConsistentFrequencyInMinutes = default(int?)) + /// consistent snapshot frequency (in minutes). + /// The app consistent + /// snapshot frequency (in minutes). + public NewProtectionProfile(string policyName, string multiVmSyncStatus, int? recoveryPointHistory = default(int?), int? crashConsistentFrequencyInMinutes = default(int?), int? appConsistentFrequencyInMinutes = default(int?)) { - RecoveryPointThresholdInMinutes = recoveryPointThresholdInMinutes; + PolicyName = policyName; RecoveryPointHistory = recoveryPointHistory; + CrashConsistentFrequencyInMinutes = crashConsistentFrequencyInMinutes; AppConsistentFrequencyInMinutes = appConsistentFrequencyInMinutes; MultiVmSyncStatus = multiVmSyncStatus; - CrashConsistentFrequencyInMinutes = crashConsistentFrequencyInMinutes; CustomInit(); } @@ -59,10 +57,10 @@ public RcmAzureMigrationPolicyDetails() partial void CustomInit(); /// - /// Gets or sets the recovery point threshold in minutes. + /// Gets or sets the protection profile input. /// - [JsonProperty(PropertyName = "recoveryPointThresholdInMinutes")] - public int? RecoveryPointThresholdInMinutes { get; set; } + [JsonProperty(PropertyName = "policyName")] + public string PolicyName { get; set; } /// /// Gets or sets the duration in minutes until which the recovery @@ -72,23 +70,41 @@ public RcmAzureMigrationPolicyDetails() public int? RecoveryPointHistory { get; set; } /// - /// Gets or sets the app consistent snapshot frequency in minutes. + /// 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; } /// /// Gets or sets a value indicating whether multi-VM sync has to be - /// enabled. Possible values include: 'Enabled', 'Disabled' + /// enabled. Value should be 'Enabled' or 'Disabled'. Possible values + /// include: 'Enable', 'Disable' /// [JsonProperty(PropertyName = "multiVmSyncStatus")] public string MultiVmSyncStatus { get; set; } /// - /// Gets or sets the crash consistent snapshot frequency in minutes. + /// Validate the object. /// - [JsonProperty(PropertyName = "crashConsistentFrequencyInMinutes")] - public int? CrashConsistentFrequencyInMinutes { get; set; } - + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (PolicyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PolicyName"); + } + if (MultiVmSyncStatus == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "MultiVmSyncStatus"); + } + } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/NewRecoveryVirtualNetwork.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/NewRecoveryVirtualNetwork.cs new file mode 100644 index 000000000000..02da59bfd702 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/NewRecoveryVirtualNetwork.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Recovery virtual network input to create new virtual network from given + /// source network. + /// + [Newtonsoft.Json.JsonObject("New")] + public partial class NewRecoveryVirtualNetwork : RecoveryVirtualNetworkCustomDetails + { + /// + /// Initializes a new instance of the NewRecoveryVirtualNetwork class. + /// + public NewRecoveryVirtualNetwork() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NewRecoveryVirtualNetwork class. + /// + /// The name of + /// the resource group to be used to create the recovery virtual + /// network. If absent, target network would be created in the same + /// resource group as target VM. + /// The recovery virtual + /// network name. + public NewRecoveryVirtualNetwork(string recoveryVirtualNetworkResourceGroupName = default(string), string recoveryVirtualNetworkName = default(string)) + { + RecoveryVirtualNetworkResourceGroupName = recoveryVirtualNetworkResourceGroupName; + RecoveryVirtualNetworkName = recoveryVirtualNetworkName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the resource group to be used to create + /// the recovery virtual network. If absent, target network would be + /// created in the same resource group as target VM. + /// + [JsonProperty(PropertyName = "recoveryVirtualNetworkResourceGroupName")] + public string RecoveryVirtualNetworkResourceGroupName { get; set; } + + /// + /// Gets or sets the recovery virtual network name. + /// + [JsonProperty(PropertyName = "recoveryVirtualNetworkName")] + public string RecoveryVirtualNetworkName { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/OSVersionWrapper.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/OSVersionWrapper.cs index 09944c92a601..cb4ba753ab71 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/OSVersionWrapper.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/OSVersionWrapper.cs @@ -30,7 +30,7 @@ public OSVersionWrapper() /// Initializes a new instance of the OSVersionWrapper class. /// /// The version. - /// Service pack. + /// The service pack. public OSVersionWrapper(string version = default(string), string servicePack = default(string)) { Version = version; @@ -50,7 +50,7 @@ public OSVersionWrapper() public string Version { get; set; } /// - /// Gets or sets service pack. + /// Gets or sets the service pack. /// [JsonProperty(PropertyName = "servicePack")] public string ServicePack { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/OperationsDiscovery.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/OperationsDiscovery.cs index 8e613bfee1dc..0d3b3dd0b01d 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/OperationsDiscovery.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/OperationsDiscovery.cs @@ -49,11 +49,11 @@ public OperationsDiscovery() /// 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 + /// 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" + /// 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)) @@ -91,13 +91,13 @@ public OperationsDiscovery() /// 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) + /// release). /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// - /// Gets or sets object type + /// Gets or sets object type. /// [JsonProperty(PropertyName = "display")] public Display Display { get; set; } @@ -105,7 +105,7 @@ public OperationsDiscovery() /// /// 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" + /// logs UX. Default value is "user,system". /// [JsonProperty(PropertyName = "origin")] public string Origin { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PlannedFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PlannedFailoverInput.cs index 9716a911bae4..a53ea0c28374 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PlannedFailoverInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PlannedFailoverInput.cs @@ -29,7 +29,7 @@ public PlannedFailoverInput() /// /// Initializes a new instance of the PlannedFailoverInput class. /// - /// Planned failover input properties + /// Planned failover input properties. public PlannedFailoverInput(PlannedFailoverInputProperties properties = default(PlannedFailoverInputProperties)) { Properties = properties; @@ -42,7 +42,7 @@ public PlannedFailoverInput() partial void CustomInit(); /// - /// Gets or sets planned failover input properties + /// Gets or sets planned failover input properties. /// [JsonProperty(PropertyName = "properties")] public PlannedFailoverInputProperties Properties { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PlannedFailoverInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PlannedFailoverInputProperties.cs index b69e04918b42..4bf0b3f79957 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PlannedFailoverInputProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PlannedFailoverInputProperties.cs @@ -33,8 +33,8 @@ public PlannedFailoverInputProperties() /// /// Failover direction. /// Provider specific - /// settings - public PlannedFailoverInputProperties(string failoverDirection = default(string), ProviderSpecificFailoverInput providerSpecificDetails = default(ProviderSpecificFailoverInput)) + /// settings. + public PlannedFailoverInputProperties(string failoverDirection = default(string), PlannedFailoverProviderSpecificFailoverInput providerSpecificDetails = default(PlannedFailoverProviderSpecificFailoverInput)) { FailoverDirection = failoverDirection; ProviderSpecificDetails = providerSpecificDetails; @@ -53,10 +53,10 @@ public PlannedFailoverInputProperties() public string FailoverDirection { get; set; } /// - /// Gets or sets provider specific settings + /// Gets or sets provider specific settings. /// [JsonProperty(PropertyName = "providerSpecificDetails")] - public ProviderSpecificFailoverInput ProviderSpecificDetails { get; set; } + public PlannedFailoverProviderSpecificFailoverInput ProviderSpecificDetails { get; set; } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PlannedFailoverProviderSpecificFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PlannedFailoverProviderSpecificFailoverInput.cs new file mode 100644 index 000000000000..a48d6caf5e64 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PlannedFailoverProviderSpecificFailoverInput.cs @@ -0,0 +1,36 @@ +// +// 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 System.Linq; + + /// + /// Provider specific failover input. + /// + public partial class PlannedFailoverProviderSpecificFailoverInput + { + /// + /// Initializes a new instance of the + /// PlannedFailoverProviderSpecificFailoverInput class. + /// + public PlannedFailoverProviderSpecificFailoverInput() + { + CustomInit(); + } + + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PolicyProviderSpecificInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PolicyProviderSpecificInput.cs index 4409c7b33410..a536b64f2594 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PolicyProviderSpecificInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PolicyProviderSpecificInput.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Base class for provider specific input + /// Base class for provider specific input. /// public partial class PolicyProviderSpecificInput { diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProcessServer.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProcessServer.cs index 70ac3b815d92..88bc38dad8ad 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProcessServer.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProcessServer.cs @@ -40,7 +40,7 @@ public ProcessServer() /// the server. /// The last heartbeat received from the /// server. - /// Version status + /// Version status. /// The list of the mobility /// service updates available on the Process Server. /// The agent generated Id. @@ -166,7 +166,7 @@ public ProcessServer() public System.DateTime? LastHeartbeat { get; set; } /// - /// Gets or sets version status + /// Gets or sets version status. /// [JsonProperty(PropertyName = "versionStatus")] public string VersionStatus { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProcessServerDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProcessServerDetails.cs new file mode 100644 index 000000000000..d110093db7ec --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProcessServerDetails.cs @@ -0,0 +1,284 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Process server details. + /// + public partial class ProcessServerDetails + { + /// + /// Initializes a new instance of the ProcessServerDetails class. + /// + public ProcessServerDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProcessServerDetails class. + /// + /// The process server Id. + /// The process server name. + /// The process server Bios Id. + /// The fabric object Id. + /// The process server Fqdn. + /// The version. + /// The last heartbeat received from the + /// process server. + /// The total memory. + /// The available memory. + /// The used memory. + /// The memory usage + /// percentage. + /// The total disk space. + /// The available disk + /// space. + /// The used disk space. + /// The free disk space + /// percentage. + /// The uploading + /// pending data in bytes. + /// The throughput in bytes. + /// The processor usage + /// percentage. + /// The throughput status. Possible + /// values include: 'Healthy', 'Warning', 'Critical', 'Unknown' + /// The system load. + /// The system load status. Possible + /// values include: 'Healthy', 'Warning', 'Critical', 'Unknown' + /// The disk usage status. Possible + /// values include: 'Healthy', 'Warning', 'Critical', 'Unknown' + /// The memory usage status. Possible + /// values include: 'Healthy', 'Warning', 'Critical', 'Unknown' + /// The processor usage status. + /// Possible values include: 'Healthy', 'Warning', 'Critical', + /// 'Unknown' + /// The health of the process server. Possible + /// values include: 'None', 'Normal', 'Warning', 'Critical' + /// The health errors. + /// The historic health of the process + /// server based on the health in last 24 hours. Possible values + /// include: 'None', 'Normal', 'Warning', 'Critical' + public ProcessServerDetails(string id = default(string), string name = default(string), string biosId = default(string), string fabricObjectId = default(string), string fqdn = default(string), string version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), long? totalMemoryInBytes = default(long?), long? availableMemoryInBytes = default(long?), long? usedMemoryInBytes = default(long?), double? memoryUsagePercentage = default(double?), long? totalSpaceInBytes = default(long?), long? availableSpaceInBytes = default(long?), long? usedSpaceInBytes = default(long?), double? freeSpacePercentage = default(double?), long? throughputUploadPendingDataInBytes = default(long?), long? throughputInBytes = default(long?), double? processorUsagePercentage = default(double?), string throughputStatus = default(string), long? systemLoad = default(long?), string systemLoadStatus = default(string), string diskUsageStatus = default(string), string memoryUsageStatus = default(string), string processorUsageStatus = default(string), string health = default(string), IList healthErrors = default(IList), string historicHealth = default(string)) + { + Id = id; + Name = name; + BiosId = biosId; + FabricObjectId = fabricObjectId; + Fqdn = fqdn; + Version = version; + LastHeartbeatUtc = lastHeartbeatUtc; + TotalMemoryInBytes = totalMemoryInBytes; + AvailableMemoryInBytes = availableMemoryInBytes; + UsedMemoryInBytes = usedMemoryInBytes; + MemoryUsagePercentage = memoryUsagePercentage; + TotalSpaceInBytes = totalSpaceInBytes; + AvailableSpaceInBytes = availableSpaceInBytes; + UsedSpaceInBytes = usedSpaceInBytes; + FreeSpacePercentage = freeSpacePercentage; + ThroughputUploadPendingDataInBytes = throughputUploadPendingDataInBytes; + ThroughputInBytes = throughputInBytes; + ProcessorUsagePercentage = processorUsagePercentage; + ThroughputStatus = throughputStatus; + SystemLoad = systemLoad; + SystemLoadStatus = systemLoadStatus; + DiskUsageStatus = diskUsageStatus; + MemoryUsageStatus = memoryUsageStatus; + ProcessorUsageStatus = processorUsageStatus; + Health = health; + HealthErrors = healthErrors; + HistoricHealth = historicHealth; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the process server Id. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the process server name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the process server Bios Id. + /// + [JsonProperty(PropertyName = "biosId")] + public string BiosId { get; private set; } + + /// + /// Gets the fabric object Id. + /// + [JsonProperty(PropertyName = "fabricObjectId")] + public string FabricObjectId { get; private set; } + + /// + /// Gets the process server Fqdn. + /// + [JsonProperty(PropertyName = "fqdn")] + public string Fqdn { get; private set; } + + /// + /// Gets the version. + /// + [JsonProperty(PropertyName = "version")] + public string Version { get; private set; } + + /// + /// Gets the last heartbeat received from the process server. + /// + [JsonProperty(PropertyName = "lastHeartbeatUtc")] + public System.DateTime? LastHeartbeatUtc { get; private set; } + + /// + /// Gets the total memory. + /// + [JsonProperty(PropertyName = "totalMemoryInBytes")] + public long? TotalMemoryInBytes { get; private set; } + + /// + /// Gets the available memory. + /// + [JsonProperty(PropertyName = "availableMemoryInBytes")] + public long? AvailableMemoryInBytes { get; private set; } + + /// + /// Gets the used memory. + /// + [JsonProperty(PropertyName = "usedMemoryInBytes")] + public long? UsedMemoryInBytes { get; private set; } + + /// + /// Gets the memory usage percentage. + /// + [JsonProperty(PropertyName = "memoryUsagePercentage")] + public double? MemoryUsagePercentage { get; private set; } + + /// + /// Gets the total disk space. + /// + [JsonProperty(PropertyName = "totalSpaceInBytes")] + public long? TotalSpaceInBytes { get; private set; } + + /// + /// Gets the available disk space. + /// + [JsonProperty(PropertyName = "availableSpaceInBytes")] + public long? AvailableSpaceInBytes { get; private set; } + + /// + /// Gets the used disk space. + /// + [JsonProperty(PropertyName = "usedSpaceInBytes")] + public long? UsedSpaceInBytes { get; private set; } + + /// + /// Gets the free disk space percentage. + /// + [JsonProperty(PropertyName = "freeSpacePercentage")] + public double? FreeSpacePercentage { get; private set; } + + /// + /// Gets the uploading pending data in bytes. + /// + [JsonProperty(PropertyName = "throughputUploadPendingDataInBytes")] + public long? ThroughputUploadPendingDataInBytes { get; private set; } + + /// + /// Gets the throughput in bytes. + /// + [JsonProperty(PropertyName = "throughputInBytes")] + public long? ThroughputInBytes { get; private set; } + + /// + /// Gets the processor usage percentage. + /// + [JsonProperty(PropertyName = "processorUsagePercentage")] + public double? ProcessorUsagePercentage { get; private set; } + + /// + /// Gets the throughput status. Possible values include: 'Healthy', + /// 'Warning', 'Critical', 'Unknown' + /// + [JsonProperty(PropertyName = "throughputStatus")] + public string ThroughputStatus { get; private set; } + + /// + /// Gets the system load. + /// + [JsonProperty(PropertyName = "systemLoad")] + public long? SystemLoad { get; private set; } + + /// + /// Gets the system load status. Possible values include: 'Healthy', + /// 'Warning', 'Critical', 'Unknown' + /// + [JsonProperty(PropertyName = "systemLoadStatus")] + public string SystemLoadStatus { get; private set; } + + /// + /// Gets the disk usage status. Possible values include: 'Healthy', + /// 'Warning', 'Critical', 'Unknown' + /// + [JsonProperty(PropertyName = "diskUsageStatus")] + public string DiskUsageStatus { get; private set; } + + /// + /// Gets the memory usage status. Possible values include: 'Healthy', + /// 'Warning', 'Critical', 'Unknown' + /// + [JsonProperty(PropertyName = "memoryUsageStatus")] + public string MemoryUsageStatus { get; private set; } + + /// + /// Gets the processor usage status. Possible values include: + /// 'Healthy', 'Warning', 'Critical', 'Unknown' + /// + [JsonProperty(PropertyName = "processorUsageStatus")] + public string ProcessorUsageStatus { get; private set; } + + /// + /// Gets the health of the process server. Possible values include: + /// 'None', 'Normal', 'Warning', 'Critical' + /// + [JsonProperty(PropertyName = "health")] + public string Health { get; private set; } + + /// + /// Gets the health errors. + /// + [JsonProperty(PropertyName = "healthErrors")] + public IList HealthErrors { get; private set; } + + /// + /// Gets the historic health of the process server based on the health + /// in last 24 hours. Possible values include: 'None', 'Normal', + /// 'Warning', 'Critical' + /// + [JsonProperty(PropertyName = "historicHealth")] + public string HistoricHealth { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectableItem.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectableItem.cs index 2593d53769da..e140f5b84365 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectableItem.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectableItem.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Replication protected item + /// Replication protected item. /// public partial class ProtectableItem : Resource { diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectedItemsQueryParameter.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectedItemsQueryParameter.cs index 4e2e30688ed6..c1aba2f7beac 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectedItemsQueryParameter.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectedItemsQueryParameter.cs @@ -39,13 +39,15 @@ public ProtectedItemsQueryParameter() /// Whether Multi VM group is /// auto created or specified by user. Possible values include: /// 'AutoCreated', 'UserSpecified' - public ProtectedItemsQueryParameter(string sourceFabricName = default(string), string recoveryPlanName = default(string), string vCenterName = default(string), string instanceType = default(string), string multiVmGroupCreateOption = default(string)) + /// The process server Id filter. + public ProtectedItemsQueryParameter(string sourceFabricName = default(string), string recoveryPlanName = default(string), string vCenterName = default(string), string instanceType = default(string), string multiVmGroupCreateOption = default(string), string processServerId = default(string)) { SourceFabricName = sourceFabricName; RecoveryPlanName = recoveryPlanName; VCenterName = vCenterName; InstanceType = instanceType; MultiVmGroupCreateOption = multiVmGroupCreateOption; + ProcessServerId = processServerId; CustomInit(); } @@ -85,5 +87,11 @@ public ProtectedItemsQueryParameter() [JsonProperty(PropertyName = "multiVmGroupCreateOption")] public string MultiVmGroupCreateOption { get; set; } + /// + /// Gets or sets the process server Id filter. + /// + [JsonProperty(PropertyName = "processServerId")] + public string ProcessServerId { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectionContainerMappingProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectionContainerMappingProperties.cs index 2ff0f1cedaf7..275c772c0330 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectionContainerMappingProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectionContainerMappingProperties.cs @@ -42,7 +42,7 @@ public ProtectionContainerMappingProperties() /// Health of pairing. /// Health error. /// Policy ARM Id. - /// Association Status + /// Association Status. /// Friendly name /// of source protection container. /// Friendly name of source @@ -109,7 +109,7 @@ public ProtectionContainerMappingProperties() public string PolicyId { get; set; } /// - /// Gets or sets association Status + /// Gets or sets association Status. /// [JsonProperty(PropertyName = "state")] public string State { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectionContainerProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectionContainerProperties.cs index aa1667f38639..f07b8a43d557 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectionContainerProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectionContainerProperties.cs @@ -34,7 +34,7 @@ public ProtectionContainerProperties() /// Fabric friendly name. /// The name. /// The fabric type. - /// Number of protected PEs + /// Number of protected PEs. /// The pairing status of this /// cloud. /// The role of this cloud. @@ -76,7 +76,7 @@ public ProtectionContainerProperties() public string FabricType { get; set; } /// - /// Gets or sets number of protected PEs + /// Gets or sets number of protected PEs. /// [JsonProperty(PropertyName = "protectedItemCount")] public int? ProtectedItemCount { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectionProfileCustomDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectionProfileCustomDetails.cs new file mode 100644 index 000000000000..de67fba03ce9 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectionProfileCustomDetails.cs @@ -0,0 +1,36 @@ +// +// 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 System.Linq; + + /// + /// Protection Profile custom input. + /// + public partial class ProtectionProfileCustomDetails + { + /// + /// Initializes a new instance of the ProtectionProfileCustomDetails + /// class. + /// + public ProtectionProfileCustomDetails() + { + CustomInit(); + } + + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PushInstallerDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PushInstallerDetails.cs new file mode 100644 index 000000000000..474d21c42efc --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PushInstallerDetails.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 Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Push installer details. + /// + public partial class PushInstallerDetails + { + /// + /// Initializes a new instance of the PushInstallerDetails class. + /// + public PushInstallerDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PushInstallerDetails class. + /// + /// The push installer Id. + /// The push installer name. + /// The push installer Bios Id. + /// The fabric object Id. + /// The push installer Fqdn. + /// The version. + /// The last heartbeat received from the + /// push installer. + /// The health of the push installer. Possible + /// values include: 'None', 'Normal', 'Warning', 'Critical' + /// The health errors. + public PushInstallerDetails(string id = default(string), string name = default(string), string biosId = default(string), string fabricObjectId = default(string), string fqdn = default(string), string version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), string health = default(string), IList healthErrors = default(IList)) + { + Id = id; + Name = name; + BiosId = biosId; + FabricObjectId = fabricObjectId; + Fqdn = fqdn; + Version = version; + LastHeartbeatUtc = lastHeartbeatUtc; + Health = health; + HealthErrors = healthErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the push installer Id. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the push installer name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the push installer Bios Id. + /// + [JsonProperty(PropertyName = "biosId")] + public string BiosId { get; private set; } + + /// + /// Gets the fabric object Id. + /// + [JsonProperty(PropertyName = "fabricObjectId")] + public string FabricObjectId { get; private set; } + + /// + /// Gets the push installer Fqdn. + /// + [JsonProperty(PropertyName = "fqdn")] + public string Fqdn { get; private set; } + + /// + /// Gets the version. + /// + [JsonProperty(PropertyName = "version")] + public string Version { get; private set; } + + /// + /// Gets the last heartbeat received from the push installer. + /// + [JsonProperty(PropertyName = "lastHeartbeatUtc")] + public System.DateTime? LastHeartbeatUtc { get; private set; } + + /// + /// Gets the health of the push installer. Possible values include: + /// 'None', 'Normal', 'Warning', 'Critical' + /// + [JsonProperty(PropertyName = "health")] + public string Health { get; private set; } + + /// + /// Gets the health errors. + /// + [JsonProperty(PropertyName = "healthErrors")] + public IList HealthErrors { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RcmComponentStatus.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RcmComponentStatus.cs new file mode 100644 index 000000000000..ad47bb065310 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RcmComponentStatus.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + + /// + /// Defines values for RcmComponentStatus. + /// + public static class RcmComponentStatus + { + public const string Healthy = "Healthy"; + public const string Warning = "Warning"; + public const string Critical = "Critical"; + public const string Unknown = "Unknown"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RcmProxyDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RcmProxyDetails.cs new file mode 100644 index 000000000000..b0d2a933ed5b --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RcmProxyDetails.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 Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// RCM proxy details. + /// + public partial class RcmProxyDetails + { + /// + /// Initializes a new instance of the RcmProxyDetails class. + /// + public RcmProxyDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RcmProxyDetails class. + /// + /// The RCM proxy Id. + /// The RCM proxy name. + /// The RCM proxy Bios Id. + /// The fabric object Id. + /// The RCM proxy Fqdn. + /// The version. + /// The last heartbeat received from the + /// RCM proxy. + /// The health of the RCM proxy. Possible values + /// include: 'None', 'Normal', 'Warning', 'Critical' + /// The health errors. + public RcmProxyDetails(string id = default(string), string name = default(string), string biosId = default(string), string fabricObjectId = default(string), string fqdn = default(string), string version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), string health = default(string), IList healthErrors = default(IList)) + { + Id = id; + Name = name; + BiosId = biosId; + FabricObjectId = fabricObjectId; + Fqdn = fqdn; + Version = version; + LastHeartbeatUtc = lastHeartbeatUtc; + Health = health; + HealthErrors = healthErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the RCM proxy Id. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the RCM proxy name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the RCM proxy Bios Id. + /// + [JsonProperty(PropertyName = "biosId")] + public string BiosId { get; private set; } + + /// + /// Gets the fabric object Id. + /// + [JsonProperty(PropertyName = "fabricObjectId")] + public string FabricObjectId { get; private set; } + + /// + /// Gets the RCM proxy Fqdn. + /// + [JsonProperty(PropertyName = "fqdn")] + public string Fqdn { get; private set; } + + /// + /// Gets the version. + /// + [JsonProperty(PropertyName = "version")] + public string Version { get; private set; } + + /// + /// Gets the last heartbeat received from the RCM proxy. + /// + [JsonProperty(PropertyName = "lastHeartbeatUtc")] + public System.DateTime? LastHeartbeatUtc { get; private set; } + + /// + /// Gets the health of the RCM proxy. Possible values include: 'None', + /// 'Normal', 'Warning', 'Critical' + /// + [JsonProperty(PropertyName = "health")] + public string Health { get; private set; } + + /// + /// Gets the health errors. + /// + [JsonProperty(PropertyName = "healthErrors")] + public IList HealthErrors { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryAvailabilitySetCustomDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryAvailabilitySetCustomDetails.cs new file mode 100644 index 000000000000..154c5ff0ec0a --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryAvailabilitySetCustomDetails.cs @@ -0,0 +1,36 @@ +// +// 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 System.Linq; + + /// + /// Recovery Availability Set custom input. + /// + public partial class RecoveryAvailabilitySetCustomDetails + { + /// + /// Initializes a new instance of the + /// RecoveryAvailabilitySetCustomDetails class. + /// + public RecoveryAvailabilitySetCustomDetails() + { + CustomInit(); + } + + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanHyperVReplicaAzureFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanHyperVReplicaAzureFailoverInput.cs index e42eeac5c02a..08dd4c256a1e 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanHyperVReplicaAzureFailoverInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanHyperVReplicaAzureFailoverInput.cs @@ -32,7 +32,6 @@ public RecoveryPlanHyperVReplicaAzureFailoverInput() /// Initializes a new instance of the /// RecoveryPlanHyperVReplicaAzureFailoverInput class. /// - /// The vault location. /// The primary KEK certificate /// PFX. /// The secondary KEK @@ -40,9 +39,8 @@ public RecoveryPlanHyperVReplicaAzureFailoverInput() /// The recovery point type. Possible /// values include: 'Latest', 'LatestApplicationConsistent', /// 'LatestProcessed' - public RecoveryPlanHyperVReplicaAzureFailoverInput(string vaultLocation = default(string), string primaryKekCertificatePfx = default(string), string secondaryKekCertificatePfx = default(string), string recoveryPointType = default(string)) + public RecoveryPlanHyperVReplicaAzureFailoverInput(string primaryKekCertificatePfx = default(string), string secondaryKekCertificatePfx = default(string), string recoveryPointType = default(string)) { - VaultLocation = vaultLocation; PrimaryKekCertificatePfx = primaryKekCertificatePfx; SecondaryKekCertificatePfx = secondaryKekCertificatePfx; RecoveryPointType = recoveryPointType; @@ -54,12 +52,6 @@ public RecoveryPlanHyperVReplicaAzureFailoverInput() /// partial void CustomInit(); - /// - /// Gets or sets the vault location. - /// - [JsonProperty(PropertyName = "vaultLocation")] - public string VaultLocation { get; set; } - /// /// Gets or sets the primary KEK certificate PFX. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanInMageAzureV2FailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanInMageAzureV2FailoverInput.cs index eae1b2cac85d..8063a4a24c90 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanInMageAzureV2FailoverInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanInMageAzureV2FailoverInput.cs @@ -33,16 +33,14 @@ public RecoveryPlanInMageAzureV2FailoverInput() /// Initializes a new instance of the /// RecoveryPlanInMageAzureV2FailoverInput class. /// - /// The vault location. /// The recovery point type. Possible /// values include: 'Latest', 'LatestApplicationConsistent', /// 'LatestCrashConsistent', 'LatestProcessed' /// A value indicating whether multi /// VM sync enabled VMs should use multi VM sync points for /// failover. - public RecoveryPlanInMageAzureV2FailoverInput(string vaultLocation, string recoveryPointType, string useMultiVmSyncPoint = default(string)) + public RecoveryPlanInMageAzureV2FailoverInput(string recoveryPointType, string useMultiVmSyncPoint = default(string)) { - VaultLocation = vaultLocation; RecoveryPointType = recoveryPointType; UseMultiVmSyncPoint = useMultiVmSyncPoint; CustomInit(); @@ -53,12 +51,6 @@ public RecoveryPlanInMageAzureV2FailoverInput() /// partial void CustomInit(); - /// - /// Gets or sets the vault location. - /// - [JsonProperty(PropertyName = "vaultLocation")] - public string VaultLocation { get; set; } - /// /// Gets or sets the recovery point type. Possible values include: /// 'Latest', 'LatestApplicationConsistent', 'LatestCrashConsistent', @@ -82,10 +74,6 @@ public RecoveryPlanInMageAzureV2FailoverInput() /// public virtual void Validate() { - if (VaultLocation == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "VaultLocation"); - } if (RecoveryPointType == null) { throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryPointType"); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanInMageRcmFailbackFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanInMageRcmFailbackFailoverInput.cs new file mode 100644 index 000000000000..795dbf7b1a39 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanInMageRcmFailbackFailoverInput.cs @@ -0,0 +1,81 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Recovery plan InMageRcmFailback failover input. + /// + [Newtonsoft.Json.JsonObject("InMageRcmFailback")] + public partial class RecoveryPlanInMageRcmFailbackFailoverInput : RecoveryPlanProviderSpecificFailoverInput + { + /// + /// Initializes a new instance of the + /// RecoveryPlanInMageRcmFailbackFailoverInput class. + /// + public RecoveryPlanInMageRcmFailbackFailoverInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// RecoveryPlanInMageRcmFailbackFailoverInput class. + /// + /// The recovery point type. Possible + /// values include: 'ApplicationConsistent', 'CrashConsistent' + /// A value indicating whether multi + /// VM sync enabled VMs should use multi VM sync points for + /// failover. + public RecoveryPlanInMageRcmFailbackFailoverInput(string recoveryPointType, string useMultiVmSyncPoint = default(string)) + { + RecoveryPointType = recoveryPointType; + UseMultiVmSyncPoint = useMultiVmSyncPoint; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the recovery point type. Possible values include: + /// 'ApplicationConsistent', 'CrashConsistent' + /// + [JsonProperty(PropertyName = "recoveryPointType")] + public string 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. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (RecoveryPointType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryPointType"); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanInMageRcmFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanInMageRcmFailoverInput.cs new file mode 100644 index 000000000000..3797aba59bc1 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanInMageRcmFailoverInput.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.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Recovery plan InMageRcm failover input. + /// + [Newtonsoft.Json.JsonObject("InMageRcm")] + public partial class RecoveryPlanInMageRcmFailoverInput : RecoveryPlanProviderSpecificFailoverInput + { + /// + /// Initializes a new instance of the + /// RecoveryPlanInMageRcmFailoverInput class. + /// + public RecoveryPlanInMageRcmFailoverInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// RecoveryPlanInMageRcmFailoverInput class. + /// + /// The recovery point type. Possible + /// values include: 'Latest', 'LatestApplicationConsistent', + /// 'LatestCrashConsistent', 'LatestProcessed' + /// A value indicating whether multi + /// VM sync enabled VMs should use multi VM sync points for + /// failover. + public RecoveryPlanInMageRcmFailoverInput(string recoveryPointType, string useMultiVmSyncPoint = default(string)) + { + RecoveryPointType = recoveryPointType; + UseMultiVmSyncPoint = useMultiVmSyncPoint; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the recovery point type. Possible values include: + /// 'Latest', 'LatestApplicationConsistent', 'LatestCrashConsistent', + /// 'LatestProcessed' + /// + [JsonProperty(PropertyName = "recoveryPointType")] + public string 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. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (RecoveryPointType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryPointType"); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanPointType.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanPointType.cs new file mode 100644 index 000000000000..e7b13f67add2 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanPointType.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + + /// + /// Defines values for RecoveryPlanPointType. + /// + public static class RecoveryPlanPointType + { + public const string Latest = "Latest"; + public const string LatestApplicationConsistent = "LatestApplicationConsistent"; + public const string LatestCrashConsistent = "LatestCrashConsistent"; + public const string LatestProcessed = "LatestProcessed"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanProperties.cs index 8314327d14af..1e9342e7f996 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanProperties.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Recovery plan custom details. + /// Recovery plan properties. /// public partial class RecoveryPlanProperties { @@ -175,10 +175,10 @@ public RecoveryPlanProperties() public IList Groups { get; set; } /// - /// Gets the provider id and provider specific details. + /// Gets or sets the provider id and provider specific details. /// [JsonProperty(PropertyName = "providerSpecificDetails")] - public IList ProviderSpecificDetails { get; private set; } + public IList ProviderSpecificDetails { get; set; } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanProviderSpecificFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanProviderSpecificFailoverInput.cs index a90b9cc186f0..b5f81a849462 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanProviderSpecificFailoverInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanProviderSpecificFailoverInput.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Recovery plan provider specific failover input base class. + /// Recovery plan provider specific failover input. /// public partial class RecoveryPlanProviderSpecificFailoverInput { diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanShutdownGroupTaskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanShutdownGroupTaskDetails.cs index 5941581275d4..e5fa930346e1 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanShutdownGroupTaskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanShutdownGroupTaskDetails.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { - using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; using System.Linq; @@ -18,7 +17,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models /// /// This class represents the recovery plan shutdown group task details. /// - public partial class RecoveryPlanShutdownGroupTaskDetails : GroupTaskDetails + public partial class RecoveryPlanShutdownGroupTaskDetails : RecoveryPlanGroupTaskDetails { /// /// Initializes a new instance of the @@ -38,11 +37,8 @@ public RecoveryPlanShutdownGroupTaskDetails() /// The group identifier. /// The group type. public RecoveryPlanShutdownGroupTaskDetails(IList childTasks = default(IList), string name = default(string), string groupId = default(string), string rpGroupType = default(string)) - : base(childTasks) + : base(childTasks, name, groupId, rpGroupType) { - Name = name; - GroupId = groupId; - RpGroupType = rpGroupType; CustomInit(); } @@ -51,23 +47,5 @@ public RecoveryPlanShutdownGroupTaskDetails() /// partial void CustomInit(); - /// - /// Gets or sets the name. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets the group identifier. - /// - [JsonProperty(PropertyName = "groupId")] - public string GroupId { get; set; } - - /// - /// Gets or sets the group type. - /// - [JsonProperty(PropertyName = "rpGroupType")] - public string RpGroupType { get; set; } - } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanTestFailoverCleanupInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanTestFailoverCleanupInput.cs index cff69a0c56b2..201391cc4c1f 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanTestFailoverCleanupInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanTestFailoverCleanupInput.cs @@ -64,6 +64,10 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); } + if (Properties != null) + { + Properties.Validate(); + } } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanTestFailoverCleanupInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanTestFailoverCleanupInputProperties.cs index ea4f61693755..6bb27f969f09 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanTestFailoverCleanupInputProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanTestFailoverCleanupInputProperties.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -49,5 +50,21 @@ public RecoveryPlanTestFailoverCleanupInputProperties() [JsonProperty(PropertyName = "comments")] public string Comments { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Comments != null) + { + if (Comments.Length > 1024) + { + throw new ValidationException(ValidationRules.MaxLength, "Comments", 1024); + } + } + } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanTestFailoverInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanTestFailoverInputProperties.cs index 717858bfe603..e6ff95beaf83 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanTestFailoverInputProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanTestFailoverInputProperties.cs @@ -40,16 +40,13 @@ public RecoveryPlanTestFailoverInputProperties() /// failover. /// The Id of the network to be used for test /// failover. - /// A value indicating whether - /// the test failover cleanup is to be skipped. /// The provider specific /// properties. - public RecoveryPlanTestFailoverInputProperties(string failoverDirection, string networkType, string networkId = default(string), string skipTestFailoverCleanup = default(string), IList providerSpecificDetails = default(IList)) + public RecoveryPlanTestFailoverInputProperties(string failoverDirection, string networkType, string networkId = default(string), IList providerSpecificDetails = default(IList)) { FailoverDirection = failoverDirection; NetworkType = networkType; NetworkId = networkId; - SkipTestFailoverCleanup = skipTestFailoverCleanup; ProviderSpecificDetails = providerSpecificDetails; CustomInit(); } @@ -78,13 +75,6 @@ public RecoveryPlanTestFailoverInputProperties() [JsonProperty(PropertyName = "networkId")] public string NetworkId { get; set; } - /// - /// Gets or sets a value indicating whether the test failover cleanup - /// is to be skipped. - /// - [JsonProperty(PropertyName = "skipTestFailoverCleanup")] - public string SkipTestFailoverCleanup { get; set; } - /// /// Gets or sets the provider specific properties. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPoint.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPoint.cs index 0a726f64de82..6aea1e61c6a9 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPoint.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPoint.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Base class representing a recovery point. + /// Recovery point. /// public partial class RecoveryPoint : Resource { @@ -33,7 +33,7 @@ public RecoveryPoint() /// Resource Name /// Resource Type /// Resource Location - /// Recovery point related data. + /// The recovery point properties. public RecoveryPoint(string id = default(string), string name = default(string), string type = default(string), string location = default(string), RecoveryPointProperties properties = default(RecoveryPointProperties)) : base(id, name, type, location) { @@ -47,7 +47,7 @@ public RecoveryPoint() partial void CustomInit(); /// - /// Gets or sets recovery point related data. + /// Gets or sets the recovery point properties. /// [JsonProperty(PropertyName = "properties")] public RecoveryPointProperties Properties { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryProximityPlacementGroupCustomDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryProximityPlacementGroupCustomDetails.cs new file mode 100644 index 000000000000..7ac465b99f6b --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryProximityPlacementGroupCustomDetails.cs @@ -0,0 +1,36 @@ +// +// 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 System.Linq; + + /// + /// Recovery Proximity placement group custom input. + /// + public partial class RecoveryProximityPlacementGroupCustomDetails + { + /// + /// Initializes a new instance of the + /// RecoveryProximityPlacementGroupCustomDetails class. + /// + public RecoveryProximityPlacementGroupCustomDetails() + { + CustomInit(); + } + + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryResourceGroupCustomDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryResourceGroupCustomDetails.cs new file mode 100644 index 000000000000..d879094e1cf1 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryResourceGroupCustomDetails.cs @@ -0,0 +1,36 @@ +// +// 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 System.Linq; + + /// + /// Recovery Resource Group custom input. + /// + public partial class RecoveryResourceGroupCustomDetails + { + /// + /// Initializes a new instance of the + /// RecoveryResourceGroupCustomDetails class. + /// + public RecoveryResourceGroupCustomDetails() + { + CustomInit(); + } + + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryServicesProviderProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryServicesProviderProperties.cs index d2e27fcccd54..350857e29cd1 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryServicesProviderProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryServicesProviderProperties.cs @@ -52,13 +52,18 @@ public RecoveryServicesProviderProperties() /// The recovery services provider /// health error details. /// The DRA Id. + /// The machine Id. + /// The machine name. + /// The Bios Id. /// The authentication /// identity details. /// The resource access /// identity details. + /// The data plane + /// authentication identity details. /// The provider version /// details. - public RecoveryServicesProviderProperties(string fabricType = default(string), string friendlyName = default(string), string providerVersion = default(string), string serverVersion = default(string), string providerVersionState = default(string), System.DateTime? providerVersionExpiryDate = default(System.DateTime?), string fabricFriendlyName = default(string), System.DateTime? lastHeartBeat = default(System.DateTime?), string connectionStatus = default(string), int? protectedItemCount = default(int?), IList allowedScenarios = default(IList), IList healthErrorDetails = default(IList), string draIdentifier = default(string), IdentityProviderDetails authenticationIdentityDetails = default(IdentityProviderDetails), IdentityProviderDetails resourceAccessIdentityDetails = default(IdentityProviderDetails), VersionDetails providerVersionDetails = default(VersionDetails)) + 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), string machineId = default(string), string machineName = default(string), string biosId = default(string), IdentityProviderDetails authenticationIdentityDetails = default(IdentityProviderDetails), IdentityProviderDetails resourceAccessIdentityDetails = default(IdentityProviderDetails), IdentityProviderDetails dataPlaneAuthenticationIdentityDetails = default(IdentityProviderDetails), VersionDetails providerVersionDetails = default(VersionDetails)) { FabricType = fabricType; FriendlyName = friendlyName; @@ -73,8 +78,12 @@ public RecoveryServicesProviderProperties() AllowedScenarios = allowedScenarios; HealthErrorDetails = healthErrorDetails; DraIdentifier = draIdentifier; + MachineId = machineId; + MachineName = machineName; + BiosId = biosId; AuthenticationIdentityDetails = authenticationIdentityDetails; ResourceAccessIdentityDetails = resourceAccessIdentityDetails; + DataPlaneAuthenticationIdentityDetails = dataPlaneAuthenticationIdentityDetails; ProviderVersionDetails = providerVersionDetails; CustomInit(); } @@ -162,6 +171,24 @@ public RecoveryServicesProviderProperties() [JsonProperty(PropertyName = "draIdentifier")] public string DraIdentifier { get; set; } + /// + /// Gets or sets the machine Id. + /// + [JsonProperty(PropertyName = "machineId")] + public string MachineId { get; set; } + + /// + /// Gets or sets the machine name. + /// + [JsonProperty(PropertyName = "machineName")] + public string MachineName { get; set; } + + /// + /// Gets or sets the Bios Id. + /// + [JsonProperty(PropertyName = "biosId")] + public string BiosId { get; set; } + /// /// Gets or sets the authentication identity details. /// @@ -174,6 +201,12 @@ public RecoveryServicesProviderProperties() [JsonProperty(PropertyName = "resourceAccessIdentityDetails")] public IdentityProviderDetails ResourceAccessIdentityDetails { get; set; } + /// + /// Gets or sets the data plane authentication identity details. + /// + [JsonProperty(PropertyName = "dataPlaneAuthenticationIdentityDetails")] + public IdentityProviderDetails DataPlaneAuthenticationIdentityDetails { get; set; } + /// /// Gets or sets the provider version details. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryVirtualNetworkCustomDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryVirtualNetworkCustomDetails.cs new file mode 100644 index 000000000000..6112535f56d4 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryVirtualNetworkCustomDetails.cs @@ -0,0 +1,36 @@ +// +// 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 System.Linq; + + /// + /// Recovery Virtual network custom input. + /// + public partial class RecoveryVirtualNetworkCustomDetails + { + /// + /// Initializes a new instance of the + /// RecoveryVirtualNetworkCustomDetails class. + /// + public RecoveryVirtualNetworkCustomDetails() + { + CustomInit(); + } + + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationAgentDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationAgentDetails.cs new file mode 100644 index 000000000000..b6cb1707f543 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationAgentDetails.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 Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Replication agent details. + /// + public partial class ReplicationAgentDetails + { + /// + /// Initializes a new instance of the ReplicationAgentDetails class. + /// + public ReplicationAgentDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ReplicationAgentDetails class. + /// + /// The replication agent Id. + /// The replication agent name. + /// The replication agent Bios Id. + /// The fabric object Id. + /// The replication agent Fqdn. + /// The version. + /// The last heartbeat received from the + /// replication agent. + /// The health of the replication agent. Possible + /// values include: 'None', 'Normal', 'Warning', 'Critical' + /// The health errors. + public ReplicationAgentDetails(string id = default(string), string name = default(string), string biosId = default(string), string fabricObjectId = default(string), string fqdn = default(string), string version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), string health = default(string), IList healthErrors = default(IList)) + { + Id = id; + Name = name; + BiosId = biosId; + FabricObjectId = fabricObjectId; + Fqdn = fqdn; + Version = version; + LastHeartbeatUtc = lastHeartbeatUtc; + Health = health; + HealthErrors = healthErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the replication agent Id. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the replication agent name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the replication agent Bios Id. + /// + [JsonProperty(PropertyName = "biosId")] + public string BiosId { get; private set; } + + /// + /// Gets the fabric object Id. + /// + [JsonProperty(PropertyName = "fabricObjectId")] + public string FabricObjectId { get; private set; } + + /// + /// Gets the replication agent Fqdn. + /// + [JsonProperty(PropertyName = "fqdn")] + public string Fqdn { get; private set; } + + /// + /// Gets the version. + /// + [JsonProperty(PropertyName = "version")] + public string Version { get; private set; } + + /// + /// Gets the last heartbeat received from the replication agent. + /// + [JsonProperty(PropertyName = "lastHeartbeatUtc")] + public System.DateTime? LastHeartbeatUtc { get; private set; } + + /// + /// Gets the health of the replication agent. Possible values include: + /// 'None', 'Normal', 'Warning', 'Critical' + /// + [JsonProperty(PropertyName = "health")] + public string Health { get; private set; } + + /// + /// Gets the health errors. + /// + [JsonProperty(PropertyName = "healthErrors")] + public IList HealthErrors { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationEligibilityResultsErrorInfo.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationEligibilityResultsErrorInfo.cs index bc0cde952eb2..d38193f2fba0 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationEligibilityResultsErrorInfo.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationEligibilityResultsErrorInfo.cs @@ -52,34 +52,34 @@ public ReplicationEligibilityResultsErrorInfo() partial void CustomInit(); /// - /// Gets the error code. + /// Gets or sets the error code. /// [JsonProperty(PropertyName = "code")] - public string Code { get; private set; } + public string Code { get; set; } /// - /// Gets the error message. + /// Gets or sets the error message. /// [JsonProperty(PropertyName = "message")] - public string Message { get; private set; } + public string Message { get; set; } /// - /// Gets the possible causes. + /// Gets or sets the possible causes. /// [JsonProperty(PropertyName = "possibleCauses")] - public string PossibleCauses { get; private set; } + public string PossibleCauses { get; set; } /// - /// Gets the recommended action. + /// Gets or sets the recommended action. /// [JsonProperty(PropertyName = "recommendedAction")] - public string RecommendedAction { get; private set; } + public string RecommendedAction { get; set; } /// - /// Gets the error status. + /// Gets or sets the error status. /// [JsonProperty(PropertyName = "status")] - public string Status { get; private set; } + public string Status { get; set; } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationEligibilityResultsProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationEligibilityResultsProperties.cs index e89045027c0e..15c31bb74529 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationEligibilityResultsProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationEligibilityResultsProperties.cs @@ -48,10 +48,10 @@ public ReplicationEligibilityResultsProperties() partial void CustomInit(); /// - /// Gets the client request Id. + /// Gets or sets the client request Id. /// [JsonProperty(PropertyName = "clientRequestId")] - public string ClientRequestId { get; private set; } + public string ClientRequestId { get; set; } /// /// Gets or sets the error details. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationGroupDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationGroupDetails.cs index e12efb20739e..d1030ff24563 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationGroupDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationGroupDetails.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Replication group details. This will be used in case of San and Wvr. + /// Replication group details. This will be used in case of San. /// public partial class ReplicationGroupDetails : ConfigurationSettings { diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationProtectedItemOperation.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationProtectedItemOperation.cs index 5b08dfb7a4f9..d32500db1bb0 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationProtectedItemOperation.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationProtectedItemOperation.cs @@ -25,6 +25,7 @@ public static class ReplicationProtectedItemOperation public const string TestFailoverCleanup = "TestFailoverCleanup"; public const string Failback = "Failback"; public const string FinalizeFailback = "FinalizeFailback"; + public const string CancelFailover = "CancelFailover"; public const string ChangePit = "ChangePit"; public const string RepairReplication = "RepairReplication"; public const string SwitchProtection = "SwitchProtection"; diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationProtectedItemProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationProtectedItemProperties.cs index 25f1b6fca665..da5da4f7dd38 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationProtectedItemProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationProtectedItemProperties.cs @@ -83,7 +83,9 @@ 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 primaryFabricProvider = default(string), string recoveryFabricFriendlyName = default(string), string recoveryFabricId = default(string), string primaryProtectionContainerFriendlyName = default(string), string recoveryProtectionContainerFriendlyName = default(string), string protectionState = default(string), string protectionStateDescription = default(string), string activeLocation = default(string), string testFailoverState = default(string), string testFailoverStateDescription = default(string), IList allowedOperations = default(IList), string replicationHealth = default(string), string failoverHealth = default(string), IList healthErrors = default(IList), string policyId = default(string), string policyFriendlyName = default(string), System.DateTime? lastSuccessfulFailoverTime = default(System.DateTime?), System.DateTime? lastSuccessfulTestFailoverTime = default(System.DateTime?), CurrentScenarioDetails currentScenario = default(CurrentScenarioDetails), string failoverRecoveryPointId = default(string), ReplicationProviderSpecificSettings providerSpecificDetails = default(ReplicationProviderSpecificSettings), string recoveryContainerId = default(string)) + /// The correlation Id for events + /// associated with this protected item. + public ReplicationProtectedItemProperties(string friendlyName = default(string), string protectedItemType = default(string), string protectableItemId = default(string), string recoveryServicesProviderId = default(string), string primaryFabricFriendlyName = default(string), string primaryFabricProvider = default(string), string recoveryFabricFriendlyName = default(string), string recoveryFabricId = default(string), string primaryProtectionContainerFriendlyName = default(string), string recoveryProtectionContainerFriendlyName = default(string), string protectionState = default(string), string protectionStateDescription = default(string), string activeLocation = default(string), string testFailoverState = default(string), string testFailoverStateDescription = default(string), IList allowedOperations = default(IList), string replicationHealth = default(string), string failoverHealth = default(string), IList healthErrors = default(IList), string policyId = default(string), string policyFriendlyName = default(string), System.DateTime? lastSuccessfulFailoverTime = default(System.DateTime?), System.DateTime? lastSuccessfulTestFailoverTime = default(System.DateTime?), CurrentScenarioDetails currentScenario = default(CurrentScenarioDetails), string failoverRecoveryPointId = default(string), ReplicationProviderSpecificSettings providerSpecificDetails = default(ReplicationProviderSpecificSettings), string recoveryContainerId = default(string), string eventCorrelationId = default(string)) { FriendlyName = friendlyName; ProtectedItemType = protectedItemType; @@ -112,6 +114,7 @@ public ReplicationProtectedItemProperties() FailoverRecoveryPointId = failoverRecoveryPointId; ProviderSpecificDetails = providerSpecificDetails; RecoveryContainerId = recoveryContainerId; + EventCorrelationId = eventCorrelationId; CustomInit(); } @@ -288,5 +291,12 @@ public ReplicationProtectedItemProperties() [JsonProperty(PropertyName = "recoveryContainerId")] public string RecoveryContainerId { get; set; } + /// + /// Gets or sets the correlation Id for events associated with this + /// protected item. + /// + [JsonProperty(PropertyName = "eventCorrelationId")] + public string EventCorrelationId { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationProtectionIntent.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationProtectionIntent.cs new file mode 100644 index 000000000000..40e4cabab99a --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationProtectionIntent.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 Newtonsoft.Json; + using System.Linq; + + /// + /// Replication protection intent. + /// + public partial class ReplicationProtectionIntent : Resource + { + /// + /// Initializes a new instance of the ReplicationProtectionIntent + /// class. + /// + public ReplicationProtectionIntent() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ReplicationProtectionIntent + /// class. + /// + /// Resource Id + /// Resource Name + /// Resource Type + /// Resource Location + /// The custom data. + public ReplicationProtectionIntent(string id = default(string), string name = default(string), string type = default(string), string location = default(string), ReplicationProtectionIntentProperties properties = default(ReplicationProtectionIntentProperties)) + : 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 custom data. + /// + [JsonProperty(PropertyName = "properties")] + public ReplicationProtectionIntentProperties Properties { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationProtectionIntentProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationProtectionIntentProperties.cs new file mode 100644 index 000000000000..c6d55ef7481a --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationProtectionIntentProperties.cs @@ -0,0 +1,95 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Replication protection intent custom data details. + /// + public partial class ReplicationProtectionIntentProperties + { + /// + /// Initializes a new instance of the + /// ReplicationProtectionIntentProperties class. + /// + public ReplicationProtectionIntentProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ReplicationProtectionIntentProperties class. + /// + /// The name. + /// The job Id. + /// The job state. + /// A value indicating whether the intent object + /// is active. + /// The creation time in UTC. + /// The Replication provider + /// custom settings. + public ReplicationProtectionIntentProperties(string friendlyName = default(string), string jobId = default(string), string jobState = default(string), bool? isActive = default(bool?), string creationTimeUTC = default(string), ReplicationProtectionIntentProviderSpecificSettings providerSpecificDetails = default(ReplicationProtectionIntentProviderSpecificSettings)) + { + FriendlyName = friendlyName; + JobId = jobId; + JobState = jobState; + IsActive = isActive; + CreationTimeUTC = creationTimeUTC; + ProviderSpecificDetails = providerSpecificDetails; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name. + /// + [JsonProperty(PropertyName = "friendlyName")] + public string FriendlyName { get; set; } + + /// + /// Gets the job Id. + /// + [JsonProperty(PropertyName = "jobId")] + public string JobId { get; private set; } + + /// + /// Gets the job state. + /// + [JsonProperty(PropertyName = "jobState")] + public string JobState { get; private set; } + + /// + /// Gets a value indicating whether the intent object is active. + /// + [JsonProperty(PropertyName = "isActive")] + public bool? IsActive { get; private set; } + + /// + /// Gets the creation time in UTC. + /// + [JsonProperty(PropertyName = "creationTimeUTC")] + public string CreationTimeUTC { get; private set; } + + /// + /// Gets or sets the Replication provider custom settings. + /// + [JsonProperty(PropertyName = "providerSpecificDetails")] + public ReplicationProtectionIntentProviderSpecificSettings ProviderSpecificDetails { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationProtectionIntentProviderSpecificSettings.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationProtectionIntentProviderSpecificSettings.cs new file mode 100644 index 000000000000..1285bc3fb510 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationProtectionIntentProviderSpecificSettings.cs @@ -0,0 +1,36 @@ +// +// 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 System.Linq; + + /// + /// Replication provider specific settings. + /// + public partial class ReplicationProtectionIntentProviderSpecificSettings + { + /// + /// Initializes a new instance of the + /// ReplicationProtectionIntentProviderSpecificSettings class. + /// + public ReplicationProtectionIntentProviderSpecificSettings() + { + CustomInit(); + } + + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReprotectAgentDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReprotectAgentDetails.cs new file mode 100644 index 000000000000..d0e4e9c4d43a --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReprotectAgentDetails.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 Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Reprotect agent details. + /// + public partial class ReprotectAgentDetails + { + /// + /// Initializes a new instance of the ReprotectAgentDetails class. + /// + public ReprotectAgentDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ReprotectAgentDetails class. + /// + /// The reprotect agent Id. + /// The reprotect agent name. + /// The reprotect agent Bios Id. + /// The fabric object Id. + /// The reprotect agent Fqdn. + /// The version. + /// The last heartbeat received from the + /// reprotect agent. + /// The health of the reprotect agent. Possible + /// values include: 'None', 'Normal', 'Warning', 'Critical' + /// The health errors. + public ReprotectAgentDetails(string id = default(string), string name = default(string), string biosId = default(string), string fabricObjectId = default(string), string fqdn = default(string), string version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), string health = default(string), IList healthErrors = default(IList)) + { + Id = id; + Name = name; + BiosId = biosId; + FabricObjectId = fabricObjectId; + Fqdn = fqdn; + Version = version; + LastHeartbeatUtc = lastHeartbeatUtc; + Health = health; + HealthErrors = healthErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the reprotect agent Id. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the reprotect agent name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the reprotect agent Bios Id. + /// + [JsonProperty(PropertyName = "biosId")] + public string BiosId { get; private set; } + + /// + /// Gets the fabric object Id. + /// + [JsonProperty(PropertyName = "fabricObjectId")] + public string FabricObjectId { get; private set; } + + /// + /// Gets the reprotect agent Fqdn. + /// + [JsonProperty(PropertyName = "fqdn")] + public string Fqdn { get; private set; } + + /// + /// Gets the version. + /// + [JsonProperty(PropertyName = "version")] + public string Version { get; private set; } + + /// + /// Gets the last heartbeat received from the reprotect agent. + /// + [JsonProperty(PropertyName = "lastHeartbeatUtc")] + public System.DateTime? LastHeartbeatUtc { get; private set; } + + /// + /// Gets the health of the reprotect agent. Possible values include: + /// 'None', 'Normal', 'Warning', 'Critical' + /// + [JsonProperty(PropertyName = "health")] + public string Health { get; private set; } + + /// + /// Gets the health errors. + /// + [JsonProperty(PropertyName = "healthErrors")] + public IList HealthErrors { get; private set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ResourceHealthSummary.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ResourceHealthSummary.cs index 9bc4a6c18dfe..ebc60c186ec1 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ResourceHealthSummary.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ResourceHealthSummary.cs @@ -36,10 +36,13 @@ public ResourceHealthSummary() /// container. /// The list of summary of health errors across /// the resources under the container. - public ResourceHealthSummary(int? resourceCount = default(int?), IList issues = default(IList)) + /// The categorized resource + /// counts. + public ResourceHealthSummary(int? resourceCount = default(int?), IList issues = default(IList), IDictionary categorizedResourceCounts = default(IDictionary)) { ResourceCount = resourceCount; Issues = issues; + CategorizedResourceCounts = categorizedResourceCounts; CustomInit(); } @@ -61,5 +64,11 @@ public ResourceHealthSummary() [JsonProperty(PropertyName = "issues")] public IList Issues { get; set; } + /// + /// Gets or sets the categorized resource counts. + /// + [JsonProperty(PropertyName = "categorizedResourceCounts")] + public IDictionary CategorizedResourceCounts { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReverseReplicationInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReverseReplicationInput.cs index 95bb25618b79..629d75f48e5e 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReverseReplicationInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReverseReplicationInput.cs @@ -29,7 +29,7 @@ public ReverseReplicationInput() /// /// Initializes a new instance of the ReverseReplicationInput class. /// - /// Reverse replication properties + /// Reverse replication properties. public ReverseReplicationInput(ReverseReplicationInputProperties properties = default(ReverseReplicationInputProperties)) { Properties = properties; @@ -42,7 +42,7 @@ public ReverseReplicationInput() partial void CustomInit(); /// - /// Gets or sets reverse replication properties + /// Gets or sets reverse replication properties. /// [JsonProperty(PropertyName = "properties")] public ReverseReplicationInputProperties Properties { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RoleAssignment.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RoleAssignment.cs deleted file mode 100644 index 4aee3fa65dd0..000000000000 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RoleAssignment.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Azure role assignment details. - /// - public partial class RoleAssignment - { - /// - /// Initializes a new instance of the RoleAssignment class. - /// - public RoleAssignment() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the RoleAssignment class. - /// - /// The ARM Id of the role assignment. - /// The name of the role assignment. - /// Role assignment scope. - /// Principal Id. - /// Role definition id. - public RoleAssignment(string id = default(string), string name = default(string), string scope = default(string), string principalId = default(string), string roleDefinitionId = default(string)) - { - Id = id; - Name = name; - Scope = scope; - PrincipalId = principalId; - RoleDefinitionId = roleDefinitionId; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the ARM Id of the role assignment. - /// - [JsonProperty(PropertyName = "id")] - public string Id { get; set; } - - /// - /// Gets or sets the name of the role assignment. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets role assignment scope. - /// - [JsonProperty(PropertyName = "scope")] - public string Scope { get; set; } - - /// - /// Gets or sets principal Id. - /// - [JsonProperty(PropertyName = "principalId")] - public string PrincipalId { get; set; } - - /// - /// Gets or sets role definition id. - /// - [JsonProperty(PropertyName = "roleDefinitionId")] - public string RoleDefinitionId { get; set; } - - } -} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ServiceError.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ServiceError.cs index 7d44f18fc748..bc9d2999f5d1 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ServiceError.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ServiceError.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// ASR error model + /// ASR error model. /// public partial class ServiceError { diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SqlServerLicenseType.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SqlServerLicenseType.cs new file mode 100644 index 000000000000..9211f0e4676d --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SqlServerLicenseType.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + + /// + /// Defines values for SqlServerLicenseType. + /// + public static class SqlServerLicenseType + { + public const string NotSpecified = "NotSpecified"; + public const string NoLicenseType = "NoLicenseType"; + public const string PAYG = "PAYG"; + public const string AHUB = "AHUB"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProviderSpecificFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/StorageAccountCustomDetails.cs similarity index 78% rename from sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProviderSpecificFailoverInput.cs rename to sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/StorageAccountCustomDetails.cs index 7ee542f769aa..03a09036f73d 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProviderSpecificFailoverInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/StorageAccountCustomDetails.cs @@ -13,15 +13,15 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Provider specific failover input. + /// Storage account custom input. /// - public partial class ProviderSpecificFailoverInput + public partial class StorageAccountCustomDetails { /// - /// Initializes a new instance of the ProviderSpecificFailoverInput + /// Initializes a new instance of the StorageAccountCustomDetails /// class. /// - public ProviderSpecificFailoverInput() + public StorageAccountCustomDetails() { CustomInit(); } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SupportedOSDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SupportedOSDetails.cs index 8f350561e668..bb8bf0973d0b 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SupportedOSDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SupportedOSDetails.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Supported Operating system details. + /// Supported operating system details. /// public partial class SupportedOSDetails { @@ -33,7 +33,8 @@ public SupportedOSDetails() /// /// The name. /// The type. - /// List of version for OS. + /// The list of version for operating + /// system. public SupportedOSDetails(string osName = default(string), string osType = default(string), IList osVersions = default(IList)) { OsName = osName; @@ -60,7 +61,7 @@ public SupportedOSDetails() public string OsType { get; set; } /// - /// Gets or sets list of version for OS. + /// Gets or sets the list of version for operating system. /// [JsonProperty(PropertyName = "osVersions")] public IList OsVersions { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SupportedOSProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SupportedOSProperties.cs index 0aca6e59620a..b65d6f3650cd 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SupportedOSProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SupportedOSProperties.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Properties model for supported OS API. + /// Supported operating systems properties. /// public partial class SupportedOSProperties { @@ -31,7 +31,8 @@ public SupportedOSProperties() /// /// Initializes a new instance of the SupportedOSProperties class. /// - /// The supported OS List. + /// The supported operating systems + /// property list. public SupportedOSProperties(IList supportedOsList = default(IList)) { SupportedOsList = supportedOsList; @@ -44,7 +45,7 @@ public SupportedOSProperties() partial void CustomInit(); /// - /// Gets or sets the supported OS List. + /// Gets or sets the supported operating systems property list. /// [JsonProperty(PropertyName = "supportedOsList")] public IList SupportedOsList { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SupportedOSProperty.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SupportedOSProperty.cs index 3bdccca16722..97989f11f22c 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SupportedOSProperty.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SupportedOSProperty.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Property object for supported OS api. + /// Supported operating systems property. /// public partial class SupportedOSProperty { @@ -31,9 +31,9 @@ public SupportedOSProperty() /// /// Initializes a new instance of the SupportedOSProperty class. /// - /// Gets the replication provider - /// type. - /// List of supported OS. + /// The replication provider type. + /// The list of supported operating + /// systems. public SupportedOSProperty(string instanceType = default(string), IList supportedOs = default(IList)) { InstanceType = instanceType; @@ -47,13 +47,13 @@ public SupportedOSProperty() partial void CustomInit(); /// - /// Gets the replication provider type. + /// Gets or sets the replication provider type. /// [JsonProperty(PropertyName = "instanceType")] - public string InstanceType { get; private set; } + public string InstanceType { get; set; } /// - /// Gets or sets list of supported OS. + /// Gets or sets the list of supported operating systems. /// [JsonProperty(PropertyName = "supportedOs")] public IList SupportedOs { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SupportedOperatingSystems.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SupportedOperatingSystems.cs index 3525d2eeed82..70cdaf071d7a 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SupportedOperatingSystems.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SupportedOperatingSystems.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Response object for supported operating systems API. + /// Supported operating systems. /// public partial class SupportedOperatingSystems : Resource { @@ -33,8 +33,8 @@ public SupportedOperatingSystems() /// Resource Name /// Resource Type /// Resource Location - /// Properties model for supported OS - /// API. + /// The supported operating systems + /// properties. public SupportedOperatingSystems(string id = default(string), string name = default(string), string type = default(string), string location = default(string), SupportedOSProperties properties = default(SupportedOSProperties)) : base(id, name, type, location) { @@ -48,7 +48,7 @@ public SupportedOperatingSystems() partial void CustomInit(); /// - /// Gets or sets properties model for supported OS API. + /// Gets or sets the supported operating systems properties. /// [JsonProperty(PropertyName = "properties")] public SupportedOSProperties Properties { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SwitchProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SwitchProtectionInput.cs index b11ff7f7d562..5c4c0336a681 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SwitchProtectionInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/SwitchProtectionInput.cs @@ -29,7 +29,7 @@ public SwitchProtectionInput() /// /// Initializes a new instance of the SwitchProtectionInput class. /// - /// Switch protection properties + /// Switch protection properties. public SwitchProtectionInput(SwitchProtectionInputProperties properties = default(SwitchProtectionInputProperties)) { Properties = properties; @@ -42,7 +42,7 @@ public SwitchProtectionInput() partial void CustomInit(); /// - /// Gets or sets switch protection properties + /// Gets or sets switch protection properties. /// [JsonProperty(PropertyName = "properties")] public SwitchProtectionInputProperties Properties { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TargetComputeSizeProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TargetComputeSizeProperties.cs index feb083db72e8..700ce189a3a9 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TargetComputeSizeProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TargetComputeSizeProperties.cs @@ -133,10 +133,10 @@ public TargetComputeSizeProperties() public string HighIopsSupported { get; set; } /// - /// Gets the supported HyperV Generations. + /// Gets or sets the supported HyperV Generations. /// [JsonProperty(PropertyName = "hyperVGenerations")] - public IList HyperVGenerations { get; private set; } + public IList HyperVGenerations { get; set; } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverCleanupInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverCleanupInput.cs index c9213927ce18..df4494989bb4 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverCleanupInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverCleanupInput.cs @@ -61,6 +61,10 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); } + if (Properties != null) + { + Properties.Validate(); + } } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverCleanupInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverCleanupInputProperties.cs index 903ca6ab9307..60696e21e3a1 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverCleanupInputProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverCleanupInputProperties.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -49,5 +50,21 @@ public TestFailoverCleanupInputProperties() [JsonProperty(PropertyName = "comments")] public string Comments { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Comments != null) + { + if (Comments.Length > 1024) + { + throw new ValidationException(ValidationRules.MaxLength, "Comments", 1024); + } + } + } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverInput.cs index 619eb9f6d0cb..f100453fb0a8 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverInput.cs @@ -10,11 +10,12 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; /// - /// Input definition for planned failover. + /// Input definition for test failover. /// public partial class TestFailoverInput { @@ -29,8 +30,8 @@ public TestFailoverInput() /// /// Initializes a new instance of the TestFailoverInput class. /// - /// Planned failover input properties - public TestFailoverInput(TestFailoverInputProperties properties = default(TestFailoverInputProperties)) + /// Test failover input properties. + public TestFailoverInput(TestFailoverInputProperties properties) { Properties = properties; CustomInit(); @@ -42,10 +43,23 @@ public TestFailoverInput() partial void CustomInit(); /// - /// Gets or sets planned failover input properties + /// Gets or sets test failover input properties. /// [JsonProperty(PropertyName = "properties")] public TestFailoverInputProperties Properties { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Properties == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); + } + } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverInputProperties.cs index 1e5cd1346e82..b2eb3df6c60e 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverInputProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverInputProperties.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Input definition for planned failover input properties. + /// Input definition for test failover input properties. /// public partial class TestFailoverInputProperties { @@ -31,21 +31,18 @@ public TestFailoverInputProperties() /// Initializes a new instance of the TestFailoverInputProperties /// class. /// - /// Failover direction. + /// Test failover direction. /// Network type to be used for test /// failover. /// The id of the network to be used for test - /// failover - /// A value indicating whether - /// the test failover cleanup is to be skipped. + /// failover. /// Provider specific - /// settings - public TestFailoverInputProperties(string failoverDirection = default(string), string networkType = default(string), string networkId = default(string), string skipTestFailoverCleanup = default(string), ProviderSpecificFailoverInput providerSpecificDetails = default(ProviderSpecificFailoverInput)) + /// settings. + public TestFailoverInputProperties(string failoverDirection = default(string), string networkType = default(string), string networkId = default(string), TestFailoverProviderSpecificInput providerSpecificDetails = default(TestFailoverProviderSpecificInput)) { FailoverDirection = failoverDirection; NetworkType = networkType; NetworkId = networkId; - SkipTestFailoverCleanup = skipTestFailoverCleanup; ProviderSpecificDetails = providerSpecificDetails; CustomInit(); } @@ -56,7 +53,7 @@ public TestFailoverInputProperties() partial void CustomInit(); /// - /// Gets or sets failover direction. + /// Gets or sets test failover direction. /// [JsonProperty(PropertyName = "failoverDirection")] public string FailoverDirection { get; set; } @@ -68,23 +65,16 @@ public TestFailoverInputProperties() public string NetworkType { get; set; } /// - /// Gets or sets the id of the network to be used for test failover + /// Gets or sets the id of the network to be used for test failover. /// [JsonProperty(PropertyName = "networkId")] public string NetworkId { get; set; } /// - /// Gets or sets a value indicating whether the test failover cleanup - /// is to be skipped. - /// - [JsonProperty(PropertyName = "skipTestFailoverCleanup")] - public string SkipTestFailoverCleanup { get; set; } - - /// - /// Gets or sets provider specific settings + /// Gets or sets provider specific settings. /// [JsonProperty(PropertyName = "providerSpecificDetails")] - public ProviderSpecificFailoverInput ProviderSpecificDetails { get; set; } + public TestFailoverProviderSpecificInput ProviderSpecificDetails { get; set; } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverProviderSpecificInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverProviderSpecificInput.cs new file mode 100644 index 000000000000..9076648c25eb --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverProviderSpecificInput.cs @@ -0,0 +1,36 @@ +// +// 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 System.Linq; + + /// + /// Provider specific test failover input. + /// + public partial class TestFailoverProviderSpecificInput + { + /// + /// Initializes a new instance of the TestFailoverProviderSpecificInput + /// class. + /// + public TestFailoverProviderSpecificInput() + { + CustomInit(); + } + + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UnplannedFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UnplannedFailoverInput.cs index e1e8c7ed92f4..fe9ce95e0d2e 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UnplannedFailoverInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UnplannedFailoverInput.cs @@ -10,11 +10,12 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; /// - /// Input definition for planned failover. + /// Input definition for unplanned failover. /// public partial class UnplannedFailoverInput { @@ -29,8 +30,9 @@ public UnplannedFailoverInput() /// /// Initializes a new instance of the UnplannedFailoverInput class. /// - /// Planned failover input properties - public UnplannedFailoverInput(UnplannedFailoverInputProperties properties = default(UnplannedFailoverInputProperties)) + /// Unplanned failover input + /// properties. + public UnplannedFailoverInput(UnplannedFailoverInputProperties properties) { Properties = properties; CustomInit(); @@ -42,10 +44,23 @@ public UnplannedFailoverInput() partial void CustomInit(); /// - /// Gets or sets planned failover input properties + /// Gets or sets unplanned failover input properties. /// [JsonProperty(PropertyName = "properties")] public UnplannedFailoverInputProperties Properties { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Properties == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); + } + } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UnplannedFailoverInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UnplannedFailoverInputProperties.cs index a6e46cd31805..8a7fd3df6051 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UnplannedFailoverInputProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UnplannedFailoverInputProperties.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Input definition for planned failover input properties. + /// Input definition for unplanned failover input properties. /// public partial class UnplannedFailoverInputProperties { @@ -33,10 +33,10 @@ public UnplannedFailoverInputProperties() /// /// Failover direction. /// Source site operations - /// status + /// status. /// Provider specific - /// settings - public UnplannedFailoverInputProperties(string failoverDirection = default(string), string sourceSiteOperations = default(string), ProviderSpecificFailoverInput providerSpecificDetails = default(ProviderSpecificFailoverInput)) + /// settings. + public UnplannedFailoverInputProperties(string failoverDirection = default(string), string sourceSiteOperations = default(string), UnplannedFailoverProviderSpecificInput providerSpecificDetails = default(UnplannedFailoverProviderSpecificInput)) { FailoverDirection = failoverDirection; SourceSiteOperations = sourceSiteOperations; @@ -56,16 +56,16 @@ public UnplannedFailoverInputProperties() public string FailoverDirection { get; set; } /// - /// Gets or sets source site operations status + /// Gets or sets source site operations status. /// [JsonProperty(PropertyName = "sourceSiteOperations")] public string SourceSiteOperations { get; set; } /// - /// Gets or sets provider specific settings + /// Gets or sets provider specific settings. /// [JsonProperty(PropertyName = "providerSpecificDetails")] - public ProviderSpecificFailoverInput ProviderSpecificDetails { get; set; } + public UnplannedFailoverProviderSpecificInput ProviderSpecificDetails { get; set; } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UnplannedFailoverProviderSpecificInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UnplannedFailoverProviderSpecificInput.cs new file mode 100644 index 000000000000..6c6e627804f5 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UnplannedFailoverProviderSpecificInput.cs @@ -0,0 +1,36 @@ +// +// 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 System.Linq; + + /// + /// Provider specific unplanned failover input. + /// + public partial class UnplannedFailoverProviderSpecificInput + { + /// + /// Initializes a new instance of the + /// UnplannedFailoverProviderSpecificInput class. + /// + public UnplannedFailoverProviderSpecificInput() + { + CustomInit(); + } + + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UpdateReplicationProtectedItemInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UpdateReplicationProtectedItemInputProperties.cs index 12e3f5756750..d66b9ee49893 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UpdateReplicationProtectedItemInputProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UpdateReplicationProtectedItemInputProperties.cs @@ -33,9 +33,9 @@ public UpdateReplicationProtectedItemInputProperties() /// Initializes a new instance of the /// UpdateReplicationProtectedItemInputProperties class. /// - /// Target azure VM name given by the + /// Target Azure VM name given by the /// user. - /// Target Azure Vm size. + /// Target Azure VM size. /// Target Azure Network /// Id. /// The Azure Network Id for @@ -44,12 +44,12 @@ public UpdateReplicationProtectedItemInputProperties() /// will be used as the primary nic during failover. /// The selected option to enable /// RDP\SSH on target vm after failover. String value of - /// {SrsDataContract.EnableRDPOnTargetOption} enum. - /// The list of vm nic details. + /// SrsDataContract.EnableRDPOnTargetOption enum. + /// The list of VM nic details. /// License type. Possible values include: /// 'NotSpecified', 'NoLicenseType', 'WindowsServer' /// The target availability set - /// id. + /// Id. /// The provider specific input /// to update replication protected item. public UpdateReplicationProtectedItemInputProperties(string recoveryAzureVMName = default(string), string recoveryAzureVMSize = default(string), string selectedRecoveryAzureNetworkId = default(string), string selectedTfoAzureNetworkId = default(string), string selectedSourceNicId = default(string), string enableRdpOnTargetOption = default(string), IList vmNics = default(IList), string licenseType = default(string), string recoveryAvailabilitySetId = default(string), UpdateReplicationProtectedItemProviderInput providerSpecificDetails = default(UpdateReplicationProtectedItemProviderInput)) @@ -73,13 +73,13 @@ public UpdateReplicationProtectedItemInputProperties() partial void CustomInit(); /// - /// Gets or sets target azure VM name given by the user. + /// Gets or sets target Azure VM name given by the user. /// [JsonProperty(PropertyName = "recoveryAzureVMName")] public string RecoveryAzureVMName { get; set; } /// - /// Gets or sets target Azure Vm size. + /// Gets or sets target Azure VM size. /// [JsonProperty(PropertyName = "recoveryAzureVMSize")] public string RecoveryAzureVMSize { get; set; } @@ -106,13 +106,13 @@ public UpdateReplicationProtectedItemInputProperties() /// /// Gets or sets the selected option to enable RDP\SSH on target vm /// after failover. String value of - /// {SrsDataContract.EnableRDPOnTargetOption} enum. + /// SrsDataContract.EnableRDPOnTargetOption enum. /// [JsonProperty(PropertyName = "enableRdpOnTargetOption")] public string EnableRdpOnTargetOption { get; set; } /// - /// Gets or sets the list of vm nic details. + /// Gets or sets the list of VM nic details. /// [JsonProperty(PropertyName = "vmNics")] public IList VmNics { get; set; } @@ -125,7 +125,7 @@ public UpdateReplicationProtectedItemInputProperties() public string LicenseType { get; set; } /// - /// Gets or sets the target availability set id. + /// Gets or sets the target availability set Id. /// [JsonProperty(PropertyName = "recoveryAvailabilitySetId")] public string RecoveryAvailabilitySetId { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicDetails.cs index 071d487cfdea..638aa32af69d 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicDetails.cs @@ -34,37 +34,21 @@ public VMNicDetails() /// The nic Id. /// The replica nic Id. /// The source nic ARM Id. - /// VM subnet name. /// VM network name. /// Recovery VM network Id. - /// Recovery VM subnet name. - /// Ip address type. - /// Primary nic static IP - /// address. - /// Replica nic static IP - /// address. + /// The IP configurations of the NIC. /// Selection type for failover. - /// IP allocation type for - /// recovery VM. - /// The id of the public IP - /// address resource associated with the NIC. /// The id of the NSG /// associated with the NIC. - /// The target backend - /// address pools for the NIC. /// A value /// indicating whether the NIC has accelerated networking /// enabled. /// The network to be used by NIC during /// test failover. - /// The subnet to be used by NIC during - /// test failover. /// The NSG to be used by NIC /// during test failover. - /// Whether the test - /// failover NIC has accelerated networking enabled. - /// The IP configurations to be used by NIC - /// during test failover. + /// Whether the TFO NIC + /// has accelerated networking enabled. /// The name of the NIC to be used when /// creating target NICs. /// The resource group of @@ -79,29 +63,20 @@ public VMNicDetails() /// A value indicating whether an /// existing NIC is allowed to be reused during test failover subject /// to availability. - public VMNicDetails(string nicId = default(string), string replicaNicId = default(string), string sourceNicArmId = default(string), string vMSubnetName = default(string), string vMNetworkName = default(string), string recoveryVMNetworkId = default(string), string recoveryVMSubnetName = default(string), string ipAddressType = default(string), string primaryNicStaticIPAddress = default(string), string replicaNicStaticIPAddress = default(string), string selectionType = default(string), string recoveryNicIpAddressType = default(string), string recoveryPublicIpAddressId = default(string), string recoveryNetworkSecurityGroupId = default(string), IList recoveryLBBackendAddressPoolIds = default(IList), bool? enableAcceleratedNetworkingOnRecovery = default(bool?), string tfoVMNetworkId = default(string), string tfoVMSubnetName = default(string), string tfoNetworkSecurityGroupId = default(string), bool? enableAcceleratedNetworkingOnTfo = default(bool?), IList tfoIPConfigs = default(IList), string recoveryNicName = default(string), string recoveryNicResourceGroupName = default(string), bool? reuseExistingNic = default(bool?), string tfoRecoveryNicName = default(string), string tfoRecoveryNicResourceGroupName = default(string), bool? tfoReuseExistingNic = default(bool?)) + public VMNicDetails(string nicId = default(string), string replicaNicId = default(string), string sourceNicArmId = default(string), string vMNetworkName = default(string), string recoveryVMNetworkId = default(string), IList ipConfigs = default(IList), string selectionType = default(string), string recoveryNetworkSecurityGroupId = default(string), bool? enableAcceleratedNetworkingOnRecovery = default(bool?), string tfoVMNetworkId = default(string), string tfoNetworkSecurityGroupId = default(string), bool? enableAcceleratedNetworkingOnTfo = default(bool?), string recoveryNicName = default(string), string recoveryNicResourceGroupName = default(string), bool? reuseExistingNic = default(bool?), string tfoRecoveryNicName = default(string), string tfoRecoveryNicResourceGroupName = default(string), bool? tfoReuseExistingNic = default(bool?)) { NicId = nicId; ReplicaNicId = replicaNicId; SourceNicArmId = sourceNicArmId; - VMSubnetName = vMSubnetName; VMNetworkName = vMNetworkName; RecoveryVMNetworkId = recoveryVMNetworkId; - RecoveryVMSubnetName = recoveryVMSubnetName; - IpAddressType = ipAddressType; - PrimaryNicStaticIPAddress = primaryNicStaticIPAddress; - ReplicaNicStaticIPAddress = replicaNicStaticIPAddress; + IpConfigs = ipConfigs; SelectionType = selectionType; - RecoveryNicIpAddressType = recoveryNicIpAddressType; - RecoveryPublicIpAddressId = recoveryPublicIpAddressId; RecoveryNetworkSecurityGroupId = recoveryNetworkSecurityGroupId; - RecoveryLBBackendAddressPoolIds = recoveryLBBackendAddressPoolIds; EnableAcceleratedNetworkingOnRecovery = enableAcceleratedNetworkingOnRecovery; TfoVMNetworkId = tfoVMNetworkId; - TfoVMSubnetName = tfoVMSubnetName; TfoNetworkSecurityGroupId = tfoNetworkSecurityGroupId; EnableAcceleratedNetworkingOnTfo = enableAcceleratedNetworkingOnTfo; - TfoIPConfigs = tfoIPConfigs; RecoveryNicName = recoveryNicName; RecoveryNicResourceGroupName = recoveryNicResourceGroupName; ReuseExistingNic = reuseExistingNic; @@ -134,12 +109,6 @@ public VMNicDetails() [JsonProperty(PropertyName = "sourceNicArmId")] public string SourceNicArmId { get; set; } - /// - /// Gets or sets VM subnet name. - /// - [JsonProperty(PropertyName = "vMSubnetName")] - public string VMSubnetName { get; set; } - /// /// Gets or sets VM network name. /// @@ -153,28 +122,10 @@ public VMNicDetails() public string RecoveryVMNetworkId { get; set; } /// - /// Gets or sets recovery VM subnet name. - /// - [JsonProperty(PropertyName = "recoveryVMSubnetName")] - public string RecoveryVMSubnetName { get; set; } - - /// - /// Gets or sets ip address type. + /// Gets or sets the IP configurations of the NIC. /// - [JsonProperty(PropertyName = "ipAddressType")] - public string IpAddressType { get; set; } - - /// - /// Gets or sets primary nic static IP address. - /// - [JsonProperty(PropertyName = "primaryNicStaticIPAddress")] - public string PrimaryNicStaticIPAddress { get; set; } - - /// - /// Gets or sets replica nic static IP address. - /// - [JsonProperty(PropertyName = "replicaNicStaticIPAddress")] - public string ReplicaNicStaticIPAddress { get; set; } + [JsonProperty(PropertyName = "ipConfigs")] + public IList IpConfigs { get; set; } /// /// Gets or sets selection type for failover. @@ -182,31 +133,12 @@ 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; } - - /// - /// Gets or sets the id of the public IP address resource associated - /// with the NIC. - /// - [JsonProperty(PropertyName = "recoveryPublicIpAddressId")] - public string RecoveryPublicIpAddressId { get; set; } - /// /// Gets or sets the id of the NSG associated with the NIC. /// [JsonProperty(PropertyName = "recoveryNetworkSecurityGroupId")] public string RecoveryNetworkSecurityGroupId { get; set; } - /// - /// Gets or sets the target backend address pools for the NIC. - /// - [JsonProperty(PropertyName = "recoveryLBBackendAddressPoolIds")] - public IList RecoveryLBBackendAddressPoolIds { get; set; } - /// /// Gets or sets a value indicating whether the NIC has accelerated /// networking enabled. @@ -220,12 +152,6 @@ public VMNicDetails() [JsonProperty(PropertyName = "tfoVMNetworkId")] public string TfoVMNetworkId { get; set; } - /// - /// Gets or sets the subnet to be used by NIC during test failover. - /// - [JsonProperty(PropertyName = "tfoVMSubnetName")] - public string TfoVMSubnetName { get; set; } - /// /// Gets or sets the NSG to be used by NIC during test failover. /// @@ -233,19 +159,12 @@ public VMNicDetails() public string TfoNetworkSecurityGroupId { get; set; } /// - /// Gets or sets whether the test failover NIC has accelerated - /// networking enabled. + /// Gets or sets whether the TFO NIC has accelerated networking + /// enabled. /// [JsonProperty(PropertyName = "enableAcceleratedNetworkingOnTfo")] public bool? EnableAcceleratedNetworkingOnTfo { get; set; } - /// - /// Gets or sets the IP configurations to be used by NIC during test - /// failover. - /// - [JsonProperty(PropertyName = "tfoIPConfigs")] - public IList TfoIPConfigs { get; set; } - /// /// Gets or sets the name of the NIC to be used when creating target /// NICs. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicInputDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicInputDetails.cs index 69097f452d11..1e31de9704e7 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicInputDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMNicInputDetails.cs @@ -32,26 +32,17 @@ public VMNicInputDetails() /// Initializes a new instance of the VMNicInputDetails class. /// /// The nic Id. - /// Recovery VM subnet name. - /// Replica nic static IP - /// address. + /// The IP configurations to be used by NIC + /// during test failover and failover. /// Selection type for failover. - /// The id of the public IP - /// address resource associated with the NIC. /// The id of the NSG /// associated with the NIC. - /// The target backend - /// address pools for the NIC. /// Whether the NIC /// has accelerated networking enabled. - /// The subnet to be used by NIC during - /// test failover. /// The NSG to be used by NIC /// during test failover. /// Whether the test NIC /// has accelerated networking enabled. - /// The IP configurations to be used by NIC - /// during test failover. /// The name of the NIC to be used when /// creating target NICs. /// The resource group of @@ -66,20 +57,15 @@ public VMNicInputDetails() /// A value indicating whether an /// existing NIC is allowed to be reused during test failover subject /// to availability. - public VMNicInputDetails(string nicId = default(string), string recoveryVMSubnetName = default(string), string replicaNicStaticIPAddress = default(string), string selectionType = default(string), string recoveryPublicIpAddressId = default(string), string recoveryNetworkSecurityGroupId = default(string), IList recoveryLBBackendAddressPoolIds = default(IList), bool? enableAcceleratedNetworkingOnRecovery = default(bool?), string tfoVMSubnetName = default(string), string tfoNetworkSecurityGroupId = default(string), bool? enableAcceleratedNetworkingOnTfo = default(bool?), IList tfoIPConfigs = default(IList), string recoveryNicName = default(string), string recoveryNicResourceGroupName = default(string), bool? reuseExistingNic = default(bool?), string tfoNicName = default(string), string tfoNicResourceGroupName = default(string), bool? tfoReuseExistingNic = default(bool?)) + public VMNicInputDetails(string nicId = default(string), IList ipConfigs = default(IList), string selectionType = default(string), string recoveryNetworkSecurityGroupId = default(string), bool? enableAcceleratedNetworkingOnRecovery = default(bool?), string tfoNetworkSecurityGroupId = default(string), bool? enableAcceleratedNetworkingOnTfo = default(bool?), string recoveryNicName = default(string), string recoveryNicResourceGroupName = default(string), bool? reuseExistingNic = default(bool?), string tfoNicName = default(string), string tfoNicResourceGroupName = default(string), bool? tfoReuseExistingNic = default(bool?)) { NicId = nicId; - RecoveryVMSubnetName = recoveryVMSubnetName; - ReplicaNicStaticIPAddress = replicaNicStaticIPAddress; + IpConfigs = ipConfigs; SelectionType = selectionType; - RecoveryPublicIpAddressId = recoveryPublicIpAddressId; RecoveryNetworkSecurityGroupId = recoveryNetworkSecurityGroupId; - RecoveryLBBackendAddressPoolIds = recoveryLBBackendAddressPoolIds; EnableAcceleratedNetworkingOnRecovery = enableAcceleratedNetworkingOnRecovery; - TfoVMSubnetName = tfoVMSubnetName; TfoNetworkSecurityGroupId = tfoNetworkSecurityGroupId; EnableAcceleratedNetworkingOnTfo = enableAcceleratedNetworkingOnTfo; - TfoIPConfigs = tfoIPConfigs; RecoveryNicName = recoveryNicName; RecoveryNicResourceGroupName = recoveryNicResourceGroupName; ReuseExistingNic = reuseExistingNic; @@ -101,16 +87,11 @@ public VMNicInputDetails() public string NicId { get; set; } /// - /// Gets or sets recovery VM subnet name. - /// - [JsonProperty(PropertyName = "recoveryVMSubnetName")] - public string RecoveryVMSubnetName { get; set; } - - /// - /// Gets or sets replica nic static IP address. + /// Gets or sets the IP configurations to be used by NIC during test + /// failover and failover. /// - [JsonProperty(PropertyName = "replicaNicStaticIPAddress")] - public string ReplicaNicStaticIPAddress { get; set; } + [JsonProperty(PropertyName = "ipConfigs")] + public IList IpConfigs { get; set; } /// /// Gets or sets selection type for failover. @@ -118,37 +99,18 @@ public VMNicInputDetails() [JsonProperty(PropertyName = "selectionType")] public string SelectionType { get; set; } - /// - /// Gets or sets the id of the public IP address resource associated - /// with the NIC. - /// - [JsonProperty(PropertyName = "recoveryPublicIpAddressId")] - public string RecoveryPublicIpAddressId { get; set; } - /// /// Gets or sets the id of the NSG associated with the NIC. /// [JsonProperty(PropertyName = "recoveryNetworkSecurityGroupId")] public string RecoveryNetworkSecurityGroupId { get; set; } - /// - /// Gets or sets the target backend address pools for the NIC. - /// - [JsonProperty(PropertyName = "recoveryLBBackendAddressPoolIds")] - public IList RecoveryLBBackendAddressPoolIds { get; set; } - /// /// Gets or sets whether the NIC has accelerated networking enabled. /// [JsonProperty(PropertyName = "enableAcceleratedNetworkingOnRecovery")] public bool? EnableAcceleratedNetworkingOnRecovery { get; set; } - /// - /// Gets or sets the subnet to be used by NIC during test failover. - /// - [JsonProperty(PropertyName = "tfoVMSubnetName")] - public string TfoVMSubnetName { get; set; } - /// /// Gets or sets the NSG to be used by NIC during test failover. /// @@ -162,13 +124,6 @@ public VMNicInputDetails() [JsonProperty(PropertyName = "enableAcceleratedNetworkingOnTfo")] public bool? EnableAcceleratedNetworkingOnTfo { get; set; } - /// - /// Gets or sets the IP configurations to be used by NIC during test - /// failover. - /// - [JsonProperty(PropertyName = "tfoIPConfigs")] - public IList TfoIPConfigs { get; set; } - /// /// Gets or sets the name of the NIC to be used when creating target /// NICs. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtDiskInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtDiskInput.cs index 7a6b05129147..24f4143429eb 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtDiskInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtDiskInput.cs @@ -44,10 +44,10 @@ public VMwareCbtDiskInput() public VMwareCbtDiskInput(string diskId, string isOSDisk, string logStorageAccountId, string logStorageAccountSasSecretName, string diskType = default(string), string diskEncryptionSetId = default(string)) { DiskId = diskId; + DiskType = diskType; IsOSDisk = isOSDisk; LogStorageAccountId = logStorageAccountId; LogStorageAccountSasSecretName = logStorageAccountSasSecretName; - DiskType = diskType; DiskEncryptionSetId = diskEncryptionSetId; CustomInit(); } @@ -63,6 +63,13 @@ public VMwareCbtDiskInput() [JsonProperty(PropertyName = "diskId")] public string DiskId { get; set; } + /// + /// Gets or sets the disk type. Possible values include: + /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' + /// + [JsonProperty(PropertyName = "diskType")] + public string DiskType { get; set; } + /// /// Gets or sets a value indicating whether the disk is the OS disk. /// @@ -81,13 +88,6 @@ public VMwareCbtDiskInput() [JsonProperty(PropertyName = "logStorageAccountSasSecretName")] public string LogStorageAccountSasSecretName { get; set; } - /// - /// Gets or sets the disk type. Possible values include: - /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' - /// - [JsonProperty(PropertyName = "diskType")] - public string DiskType { get; set; } - /// /// Gets or sets the DiskEncryptionSet ARM Id. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtEnableMigrationInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtEnableMigrationInput.cs index 576ca6da2a2c..9d907c910ef0 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtEnableMigrationInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtEnableMigrationInput.cs @@ -38,29 +38,41 @@ public VMwareCbtEnableMigrationInput() /// The ARM Id of the VM discovered in /// VMware. /// The disks to include list. - /// The data mover RunAs account + /// The data mover run as account /// Id. - /// The snapshot RunAs account + /// The snapshot run as account /// Id. /// The target resource group ARM /// Id. /// The target network ARM Id. /// License type. Possible values include: /// 'NotSpecified', 'NoLicenseType', 'WindowsServer' + /// The SQL Server license type. + /// Possible values include: 'NotSpecified', 'NoLicenseType', 'PAYG', + /// 'AHUB' /// The target VM name. /// The target VM size. /// The target subnet name. /// The target availability set /// ARM Id. + /// The target availability + /// zone. + /// The target proximity + /// placement group ARM Id. /// The target boot /// diagnostics storage account ARM Id. /// A value indicating whether auto /// resync is to be done. - public VMwareCbtEnableMigrationInput(string vmwareMachineId, IList disksToInclude, string dataMoverRunAsAccountId, string snapshotRunAsAccountId, string targetResourceGroupId, string targetNetworkId, string licenseType = default(string), string targetVmName = default(string), string targetVmSize = default(string), string targetSubnetName = default(string), string targetAvailabilitySetId = default(string), string targetBootDiagnosticsStorageAccountId = default(string), string performAutoResync = default(string)) + /// The target VM tags. + /// The tags for the seed disks. + /// The tags for the target disks. + /// The tags for the target NICs. + public VMwareCbtEnableMigrationInput(string vmwareMachineId, IList disksToInclude, string dataMoverRunAsAccountId, string snapshotRunAsAccountId, string targetResourceGroupId, string targetNetworkId, string licenseType = default(string), string sqlServerLicenseType = default(string), string targetVmName = default(string), string targetVmSize = default(string), string targetSubnetName = default(string), string targetAvailabilitySetId = default(string), string targetAvailabilityZone = default(string), string targetProximityPlacementGroupId = default(string), string targetBootDiagnosticsStorageAccountId = default(string), string performAutoResync = default(string), IDictionary targetVmTags = default(IDictionary), IDictionary seedDiskTags = default(IDictionary), IDictionary targetDiskTags = default(IDictionary), IDictionary targetNicTags = default(IDictionary)) { VmwareMachineId = vmwareMachineId; DisksToInclude = disksToInclude; LicenseType = licenseType; + SqlServerLicenseType = sqlServerLicenseType; DataMoverRunAsAccountId = dataMoverRunAsAccountId; SnapshotRunAsAccountId = snapshotRunAsAccountId; TargetVmName = targetVmName; @@ -69,8 +81,14 @@ public VMwareCbtEnableMigrationInput() TargetNetworkId = targetNetworkId; TargetSubnetName = targetSubnetName; TargetAvailabilitySetId = targetAvailabilitySetId; + TargetAvailabilityZone = targetAvailabilityZone; + TargetProximityPlacementGroupId = targetProximityPlacementGroupId; TargetBootDiagnosticsStorageAccountId = targetBootDiagnosticsStorageAccountId; PerformAutoResync = performAutoResync; + TargetVmTags = targetVmTags; + SeedDiskTags = seedDiskTags; + TargetDiskTags = targetDiskTags; + TargetNicTags = targetNicTags; CustomInit(); } @@ -99,13 +117,20 @@ public VMwareCbtEnableMigrationInput() public string LicenseType { get; set; } /// - /// Gets or sets the data mover RunAs account Id. + /// Gets or sets the SQL Server license type. Possible values include: + /// 'NotSpecified', 'NoLicenseType', 'PAYG', 'AHUB' + /// + [JsonProperty(PropertyName = "sqlServerLicenseType")] + public string SqlServerLicenseType { get; set; } + + /// + /// Gets or sets the data mover run as account Id. /// [JsonProperty(PropertyName = "dataMoverRunAsAccountId")] public string DataMoverRunAsAccountId { get; set; } /// - /// Gets or sets the snapshot RunAs account Id. + /// Gets or sets the snapshot run as account Id. /// [JsonProperty(PropertyName = "snapshotRunAsAccountId")] public string SnapshotRunAsAccountId { get; set; } @@ -146,6 +171,18 @@ public VMwareCbtEnableMigrationInput() [JsonProperty(PropertyName = "targetAvailabilitySetId")] public string TargetAvailabilitySetId { get; set; } + /// + /// Gets or sets the target availability zone. + /// + [JsonProperty(PropertyName = "targetAvailabilityZone")] + public string TargetAvailabilityZone { get; set; } + + /// + /// Gets or sets the target proximity placement group ARM Id. + /// + [JsonProperty(PropertyName = "targetProximityPlacementGroupId")] + public string TargetProximityPlacementGroupId { get; set; } + /// /// Gets or sets the target boot diagnostics storage account ARM Id. /// @@ -158,6 +195,30 @@ public VMwareCbtEnableMigrationInput() [JsonProperty(PropertyName = "performAutoResync")] public string PerformAutoResync { get; set; } + /// + /// Gets or sets the target VM tags. + /// + [JsonProperty(PropertyName = "targetVmTags")] + public IDictionary TargetVmTags { get; set; } + + /// + /// Gets or sets the tags for the seed disks. + /// + [JsonProperty(PropertyName = "seedDiskTags")] + public IDictionary SeedDiskTags { get; set; } + + /// + /// Gets or sets the tags for the target disks. + /// + [JsonProperty(PropertyName = "targetDiskTags")] + public IDictionary TargetDiskTags { get; set; } + + /// + /// Gets or sets the tags for the target NICs. + /// + [JsonProperty(PropertyName = "targetNicTags")] + public IDictionary TargetNicTags { get; set; } + /// /// Validate the object. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtMigrationDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtMigrationDetails.cs index 37a27d0fdc3e..fb39dec32905 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtMigrationDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtMigrationDetails.cs @@ -35,11 +35,15 @@ public VMwareCbtMigrationDetails() /// The ARM Id of the VM discovered in /// VMware. /// The type of the OS on the VM. + /// The firmware type. + /// The target generation. /// License Type of the VM to be /// used. - /// The data mover RunAs account + /// The SQL Server license + /// type. + /// The data mover run as account /// Id. - /// The snapshot RunAs account + /// The snapshot run as account /// Id. /// Target VM name. /// The target VM size. @@ -48,11 +52,17 @@ public VMwareCbtMigrationDetails() /// Id. /// The target availability set /// Id. + /// The target availability + /// zone. + /// The target proximity + /// placement group Id. /// The target boot /// diagnostics storage account ARM Id. + /// The target VM tags. /// The list of protected disks. /// The target network Id. /// The network details. + /// The tags for the target NICs. /// The recovery point Id to /// which the VM was migrated. /// The last recovery point @@ -65,6 +75,9 @@ public VMwareCbtMigrationDetails() /// percentage. /// The resync progress /// percentage. + /// The initial seeding retry + /// count. + /// The resync retry count. /// A value indicating whether resync is /// required. /// The resync state. Possible values @@ -72,11 +85,16 @@ public VMwareCbtMigrationDetails() /// 'StartedResynchronization' /// A value indicating whether auto /// resync is to be done. - public VMwareCbtMigrationDetails(string vmwareMachineId = default(string), string osType = default(string), string licenseType = default(string), string dataMoverRunAsAccountId = default(string), string snapshotRunAsAccountId = default(string), string targetVmName = default(string), string targetVmSize = default(string), string targetLocation = default(string), string targetResourceGroupId = default(string), string targetAvailabilitySetId = default(string), string targetBootDiagnosticsStorageAccountId = default(string), IList protectedDisks = default(IList), string targetNetworkId = default(string), IList vmNics = default(IList), string migrationRecoveryPointId = default(string), System.DateTime? lastRecoveryPointReceived = default(System.DateTime?), string lastRecoveryPointId = default(string), int? initialSeedingProgressPercentage = default(int?), int? migrationProgressPercentage = default(int?), int? resyncProgressPercentage = default(int?), string resyncRequired = default(string), string resyncState = default(string), string performAutoResync = default(string)) + /// The tags for the seed disks. + /// The tags for the target disks. + public VMwareCbtMigrationDetails(string vmwareMachineId = default(string), string osType = default(string), string firmwareType = default(string), string targetGeneration = default(string), string licenseType = default(string), string sqlServerLicenseType = default(string), string dataMoverRunAsAccountId = default(string), string snapshotRunAsAccountId = default(string), string targetVmName = default(string), string targetVmSize = default(string), string targetLocation = default(string), string targetResourceGroupId = default(string), string targetAvailabilitySetId = default(string), string targetAvailabilityZone = default(string), string targetProximityPlacementGroupId = default(string), string targetBootDiagnosticsStorageAccountId = default(string), IDictionary targetVmTags = default(IDictionary), IList protectedDisks = default(IList), string targetNetworkId = default(string), IList vmNics = default(IList), IDictionary targetNicTags = default(IDictionary), string migrationRecoveryPointId = default(string), System.DateTime? lastRecoveryPointReceived = default(System.DateTime?), string lastRecoveryPointId = default(string), int? initialSeedingProgressPercentage = default(int?), int? migrationProgressPercentage = default(int?), int? resyncProgressPercentage = default(int?), long? initialSeedingRetryCount = default(long?), long? resyncRetryCount = default(long?), string resyncRequired = default(string), string resyncState = default(string), string performAutoResync = default(string), IDictionary seedDiskTags = default(IDictionary), IDictionary targetDiskTags = default(IDictionary)) { VmwareMachineId = vmwareMachineId; OsType = osType; + FirmwareType = firmwareType; + TargetGeneration = targetGeneration; LicenseType = licenseType; + SqlServerLicenseType = sqlServerLicenseType; DataMoverRunAsAccountId = dataMoverRunAsAccountId; SnapshotRunAsAccountId = snapshotRunAsAccountId; TargetVmName = targetVmName; @@ -84,19 +102,27 @@ public VMwareCbtMigrationDetails() TargetLocation = targetLocation; TargetResourceGroupId = targetResourceGroupId; TargetAvailabilitySetId = targetAvailabilitySetId; + TargetAvailabilityZone = targetAvailabilityZone; + TargetProximityPlacementGroupId = targetProximityPlacementGroupId; TargetBootDiagnosticsStorageAccountId = targetBootDiagnosticsStorageAccountId; + TargetVmTags = targetVmTags; ProtectedDisks = protectedDisks; TargetNetworkId = targetNetworkId; VmNics = vmNics; + TargetNicTags = targetNicTags; MigrationRecoveryPointId = migrationRecoveryPointId; LastRecoveryPointReceived = lastRecoveryPointReceived; LastRecoveryPointId = lastRecoveryPointId; InitialSeedingProgressPercentage = initialSeedingProgressPercentage; MigrationProgressPercentage = migrationProgressPercentage; ResyncProgressPercentage = resyncProgressPercentage; + InitialSeedingRetryCount = initialSeedingRetryCount; + ResyncRetryCount = resyncRetryCount; ResyncRequired = resyncRequired; ResyncState = resyncState; PerformAutoResync = performAutoResync; + SeedDiskTags = seedDiskTags; + TargetDiskTags = targetDiskTags; CustomInit(); } @@ -117,6 +143,18 @@ public VMwareCbtMigrationDetails() [JsonProperty(PropertyName = "osType")] public string OsType { get; private set; } + /// + /// Gets the firmware type. + /// + [JsonProperty(PropertyName = "firmwareType")] + public string FirmwareType { get; private set; } + + /// + /// Gets the target generation. + /// + [JsonProperty(PropertyName = "targetGeneration")] + public string TargetGeneration { get; private set; } + /// /// Gets or sets license Type of the VM to be used. /// @@ -124,13 +162,19 @@ public VMwareCbtMigrationDetails() public string LicenseType { get; set; } /// - /// Gets the data mover RunAs account Id. + /// Gets or sets the SQL Server license type. + /// + [JsonProperty(PropertyName = "sqlServerLicenseType")] + public string SqlServerLicenseType { get; set; } + + /// + /// Gets the data mover run as account Id. /// [JsonProperty(PropertyName = "dataMoverRunAsAccountId")] public string DataMoverRunAsAccountId { get; private set; } /// - /// Gets the snapshot RunAs account Id. + /// Gets the snapshot run as account Id. /// [JsonProperty(PropertyName = "snapshotRunAsAccountId")] public string SnapshotRunAsAccountId { get; private set; } @@ -165,12 +209,30 @@ public VMwareCbtMigrationDetails() [JsonProperty(PropertyName = "targetAvailabilitySetId")] public string TargetAvailabilitySetId { get; set; } + /// + /// Gets or sets the target availability zone. + /// + [JsonProperty(PropertyName = "targetAvailabilityZone")] + public string TargetAvailabilityZone { get; set; } + + /// + /// Gets or sets the target proximity placement group Id. + /// + [JsonProperty(PropertyName = "targetProximityPlacementGroupId")] + public string TargetProximityPlacementGroupId { get; set; } + /// /// Gets or sets the target boot diagnostics storage account ARM Id. /// [JsonProperty(PropertyName = "targetBootDiagnosticsStorageAccountId")] public string TargetBootDiagnosticsStorageAccountId { get; set; } + /// + /// Gets or sets the target VM tags. + /// + [JsonProperty(PropertyName = "targetVmTags")] + public IDictionary TargetVmTags { get; set; } + /// /// Gets or sets the list of protected disks. /// @@ -189,6 +251,12 @@ public VMwareCbtMigrationDetails() [JsonProperty(PropertyName = "vmNics")] public IList VmNics { get; set; } + /// + /// Gets or sets the tags for the target NICs. + /// + [JsonProperty(PropertyName = "targetNicTags")] + public IDictionary TargetNicTags { get; set; } + /// /// Gets the recovery point Id to which the VM was migrated. /// @@ -225,6 +293,18 @@ public VMwareCbtMigrationDetails() [JsonProperty(PropertyName = "resyncProgressPercentage")] public int? ResyncProgressPercentage { get; private set; } + /// + /// Gets the initial seeding retry count. + /// + [JsonProperty(PropertyName = "initialSeedingRetryCount")] + public long? InitialSeedingRetryCount { get; private set; } + + /// + /// Gets the resync retry count. + /// + [JsonProperty(PropertyName = "resyncRetryCount")] + public long? ResyncRetryCount { get; private set; } + /// /// Gets a value indicating whether resync is required. /// @@ -244,5 +324,17 @@ public VMwareCbtMigrationDetails() [JsonProperty(PropertyName = "performAutoResync")] public string PerformAutoResync { get; set; } + /// + /// Gets or sets the tags for the seed disks. + /// + [JsonProperty(PropertyName = "seedDiskTags")] + public IDictionary SeedDiskTags { get; set; } + + /// + /// Gets or sets the tags for the target disks. + /// + [JsonProperty(PropertyName = "targetDiskTags")] + public IDictionary TargetDiskTags { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtNicDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtNicDetails.cs index dd5c2ef7b5e5..bef342154e0d 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtNicDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtNicDetails.cs @@ -40,9 +40,10 @@ public VMwareCbtNicDetails() /// The target IP address type. /// Possible values include: 'Dynamic', 'Static' /// Target subnet name. + /// Target NIC name. /// A value indicating whether /// this NIC is selected for migration. - public VMwareCbtNicDetails(string nicId = default(string), string isPrimaryNic = default(string), string sourceIPAddress = default(string), string sourceIPAddressType = default(string), string sourceNetworkId = default(string), string targetIPAddress = default(string), string targetIPAddressType = default(string), string targetSubnetName = default(string), string isSelectedForMigration = default(string)) + public VMwareCbtNicDetails(string nicId = default(string), string isPrimaryNic = default(string), string sourceIPAddress = default(string), string sourceIPAddressType = default(string), string sourceNetworkId = default(string), string targetIPAddress = default(string), string targetIPAddressType = default(string), string targetSubnetName = default(string), string targetNicName = default(string), string isSelectedForMigration = default(string)) { NicId = nicId; IsPrimaryNic = isPrimaryNic; @@ -52,6 +53,7 @@ public VMwareCbtNicDetails() TargetIPAddress = targetIPAddress; TargetIPAddressType = targetIPAddressType; TargetSubnetName = targetSubnetName; + TargetNicName = targetNicName; IsSelectedForMigration = isSelectedForMigration; CustomInit(); } @@ -111,6 +113,12 @@ public VMwareCbtNicDetails() [JsonProperty(PropertyName = "targetSubnetName")] public string TargetSubnetName { get; set; } + /// + /// Gets or sets target NIC name. + /// + [JsonProperty(PropertyName = "targetNicName")] + public string TargetNicName { get; set; } + /// /// Gets or sets a value indicating whether this NIC is selected for /// migration. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtNicInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtNicInput.cs index 3c9c27db3e04..449c682d6f8b 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtNicInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtNicInput.cs @@ -37,13 +37,15 @@ public VMwareCbtNicInput() /// The static IP address. /// A value indicating whether /// this NIC is selected for migration. - public VMwareCbtNicInput(string nicId, string isPrimaryNic, string targetSubnetName = default(string), string targetStaticIPAddress = default(string), string isSelectedForMigration = default(string)) + /// Target NIC name. + public VMwareCbtNicInput(string nicId, string isPrimaryNic, string targetSubnetName = default(string), string targetStaticIPAddress = default(string), string isSelectedForMigration = default(string), string targetNicName = default(string)) { NicId = nicId; IsPrimaryNic = isPrimaryNic; TargetSubnetName = targetSubnetName; TargetStaticIPAddress = targetStaticIPAddress; IsSelectedForMigration = isSelectedForMigration; + TargetNicName = targetNicName; CustomInit(); } @@ -83,6 +85,12 @@ public VMwareCbtNicInput() [JsonProperty(PropertyName = "isSelectedForMigration")] public string IsSelectedForMigration { get; set; } + /// + /// Gets or sets target NIC name. + /// + [JsonProperty(PropertyName = "targetNicName")] + public string TargetNicName { get; set; } + /// /// Validate the object. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtProtectedDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtProtectedDiskDetails.cs index c84801d0002d..fb8934910df4 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtProtectedDiskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtProtectedDiskDetails.cs @@ -33,6 +33,8 @@ public VMwareCbtProtectedDiskDetails() /// /// The disk id. /// The disk name. + /// The disk type. Possible values include: + /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' /// The disk path. /// A value indicating whether the disk is the /// OS disk. @@ -47,12 +49,13 @@ public VMwareCbtProtectedDiskDetails() /// disk. /// The ARM Id of the target managed /// disk. - /// The disk type. Possible values include: - /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' - public VMwareCbtProtectedDiskDetails(string diskId = default(string), string diskName = default(string), string diskPath = default(string), string isOSDisk = default(string), long? capacityInBytes = default(long?), string logStorageAccountId = default(string), string logStorageAccountSasSecretName = default(string), string diskEncryptionSetId = default(string), string seedManagedDiskId = default(string), string targetManagedDiskId = default(string), string diskType = default(string)) + /// The name for the target managed + /// disk. + public VMwareCbtProtectedDiskDetails(string diskId = default(string), string diskName = default(string), string diskType = default(string), string diskPath = default(string), string isOSDisk = default(string), long? capacityInBytes = default(long?), string logStorageAccountId = default(string), string logStorageAccountSasSecretName = default(string), string diskEncryptionSetId = default(string), string seedManagedDiskId = default(string), string targetManagedDiskId = default(string), string targetDiskName = default(string)) { DiskId = diskId; DiskName = diskName; + DiskType = diskType; DiskPath = diskPath; IsOSDisk = isOSDisk; CapacityInBytes = capacityInBytes; @@ -61,7 +64,7 @@ public VMwareCbtProtectedDiskDetails() DiskEncryptionSetId = diskEncryptionSetId; SeedManagedDiskId = seedManagedDiskId; TargetManagedDiskId = targetManagedDiskId; - DiskType = diskType; + TargetDiskName = targetDiskName; CustomInit(); } @@ -82,6 +85,13 @@ public VMwareCbtProtectedDiskDetails() [JsonProperty(PropertyName = "diskName")] public string DiskName { get; private set; } + /// + /// Gets or sets the disk type. Possible values include: + /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' + /// + [JsonProperty(PropertyName = "diskType")] + public string DiskType { get; set; } + /// /// Gets the disk path. /// @@ -131,11 +141,10 @@ public VMwareCbtProtectedDiskDetails() public string TargetManagedDiskId { get; private set; } /// - /// Gets or sets the disk type. Possible values include: - /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' + /// Gets or sets the name for the target managed disk. /// - [JsonProperty(PropertyName = "diskType")] - public string DiskType { get; set; } + [JsonProperty(PropertyName = "targetDiskName")] + public string TargetDiskName { get; set; } } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtUpdateDiskInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtUpdateDiskInput.cs new file mode 100644 index 000000000000..95e6bc91cd48 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtUpdateDiskInput.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.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// VMwareCbt disk input for update. + /// + public partial class VMwareCbtUpdateDiskInput + { + /// + /// Initializes a new instance of the VMwareCbtUpdateDiskInput class. + /// + public VMwareCbtUpdateDiskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the VMwareCbtUpdateDiskInput class. + /// + /// The disk Id. + /// The target disk name. + public VMwareCbtUpdateDiskInput(string diskId, string targetDiskName = default(string)) + { + DiskId = diskId; + TargetDiskName = targetDiskName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the disk Id. + /// + [JsonProperty(PropertyName = "diskId")] + public string DiskId { get; set; } + + /// + /// Gets or sets the target disk name. + /// + [JsonProperty(PropertyName = "targetDiskName")] + public string TargetDiskName { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (DiskId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DiskId"); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtUpdateMigrationItemInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtUpdateMigrationItemInput.cs index 128314bad7c9..49d9ceeb008d 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtUpdateMigrationItemInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtUpdateMigrationItemInput.cs @@ -40,25 +40,43 @@ public VMwareCbtUpdateMigrationItemInput() /// Id. /// The target availability set /// ARM Id. + /// The target availability + /// zone. + /// The target proximity + /// placement group ARM Id. /// The target boot /// diagnostics storage account ARM Id. /// The target network ARM Id. /// The list of NIC details. + /// The list of disk update properties. /// The license type. Possible values /// include: 'NotSpecified', 'NoLicenseType', 'WindowsServer' + /// The SQL Server license type. + /// Possible values include: 'NotSpecified', 'NoLicenseType', 'PAYG', + /// 'AHUB' /// A value indicating whether auto /// resync is to be done. - public VMwareCbtUpdateMigrationItemInput(string targetVmName = default(string), string targetVmSize = default(string), string targetResourceGroupId = default(string), string targetAvailabilitySetId = default(string), string targetBootDiagnosticsStorageAccountId = default(string), string targetNetworkId = default(string), IList vmNics = default(IList), string licenseType = default(string), string performAutoResync = default(string)) + /// The target VM tags. + /// The tags for the target disks. + /// The tags for the target NICs. + public VMwareCbtUpdateMigrationItemInput(string targetVmName = default(string), string targetVmSize = default(string), string targetResourceGroupId = default(string), string targetAvailabilitySetId = default(string), string targetAvailabilityZone = default(string), string targetProximityPlacementGroupId = default(string), string targetBootDiagnosticsStorageAccountId = default(string), string targetNetworkId = default(string), IList vmNics = default(IList), IList vmDisks = default(IList), string licenseType = default(string), string sqlServerLicenseType = default(string), string performAutoResync = default(string), IDictionary targetVmTags = default(IDictionary), IDictionary targetDiskTags = default(IDictionary), IDictionary targetNicTags = default(IDictionary)) { TargetVmName = targetVmName; TargetVmSize = targetVmSize; TargetResourceGroupId = targetResourceGroupId; TargetAvailabilitySetId = targetAvailabilitySetId; + TargetAvailabilityZone = targetAvailabilityZone; + TargetProximityPlacementGroupId = targetProximityPlacementGroupId; TargetBootDiagnosticsStorageAccountId = targetBootDiagnosticsStorageAccountId; TargetNetworkId = targetNetworkId; VmNics = vmNics; + VmDisks = vmDisks; LicenseType = licenseType; + SqlServerLicenseType = sqlServerLicenseType; PerformAutoResync = performAutoResync; + TargetVmTags = targetVmTags; + TargetDiskTags = targetDiskTags; + TargetNicTags = targetNicTags; CustomInit(); } @@ -91,6 +109,18 @@ public VMwareCbtUpdateMigrationItemInput() [JsonProperty(PropertyName = "targetAvailabilitySetId")] public string TargetAvailabilitySetId { get; set; } + /// + /// Gets or sets the target availability zone. + /// + [JsonProperty(PropertyName = "targetAvailabilityZone")] + public string TargetAvailabilityZone { get; set; } + + /// + /// Gets or sets the target proximity placement group ARM Id. + /// + [JsonProperty(PropertyName = "targetProximityPlacementGroupId")] + public string TargetProximityPlacementGroupId { get; set; } + /// /// Gets or sets the target boot diagnostics storage account ARM Id. /// @@ -109,6 +139,12 @@ public VMwareCbtUpdateMigrationItemInput() [JsonProperty(PropertyName = "vmNics")] public IList VmNics { get; set; } + /// + /// Gets or sets the list of disk update properties. + /// + [JsonProperty(PropertyName = "vmDisks")] + public IList VmDisks { get; set; } + /// /// Gets or sets the license type. Possible values include: /// 'NotSpecified', 'NoLicenseType', 'WindowsServer' @@ -116,11 +152,36 @@ public VMwareCbtUpdateMigrationItemInput() [JsonProperty(PropertyName = "licenseType")] public string LicenseType { get; set; } + /// + /// Gets or sets the SQL Server license type. Possible values include: + /// 'NotSpecified', 'NoLicenseType', 'PAYG', 'AHUB' + /// + [JsonProperty(PropertyName = "sqlServerLicenseType")] + public string SqlServerLicenseType { get; set; } + /// /// Gets or sets a value indicating whether auto resync is to be done. /// [JsonProperty(PropertyName = "performAutoResync")] public string PerformAutoResync { get; set; } + /// + /// Gets or sets the target VM tags. + /// + [JsonProperty(PropertyName = "targetVmTags")] + public IDictionary TargetVmTags { get; set; } + + /// + /// Gets or sets the tags for the target disks. + /// + [JsonProperty(PropertyName = "targetDiskTags")] + public IDictionary TargetDiskTags { get; set; } + + /// + /// Gets or sets the tags for the target NICs. + /// + [JsonProperty(PropertyName = "targetNicTags")] + public IDictionary TargetNicTags { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareDetails.cs index 6fc6c44d9e18..8934fe5f6bac 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareDetails.cs @@ -67,7 +67,7 @@ public VMwareDetails() /// The host name. /// The last heartbeat received from CS /// server. - /// Version status + /// Version status. /// CS SSL cert expiry date. /// CS SSL cert expiry /// date. @@ -277,7 +277,7 @@ public VMwareDetails() public System.DateTime? LastHeartbeat { get; set; } /// - /// Gets or sets version status + /// Gets or sets version status. /// [JsonProperty(PropertyName = "versionStatus")] public string VersionStatus { get; set; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareV2FabricCreationInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareV2FabricCreationInput.cs index 59e48ba8314f..ca5eb6b78585 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareV2FabricCreationInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareV2FabricCreationInput.cs @@ -33,12 +33,15 @@ public VMwareV2FabricCreationInput() /// Initializes a new instance of the VMwareV2FabricCreationInput /// class. /// - /// The ARM Id of the VMware site. /// The ARM Id of the migration /// solution. - public VMwareV2FabricCreationInput(string vmwareSiteId, string migrationSolutionId) + /// The ARM Id of the VMware site. + /// The ARM Id of the physical + /// site. + public VMwareV2FabricCreationInput(string migrationSolutionId, string vmwareSiteId = default(string), string physicalSiteId = default(string)) { VmwareSiteId = vmwareSiteId; + PhysicalSiteId = physicalSiteId; MigrationSolutionId = migrationSolutionId; CustomInit(); } @@ -54,6 +57,12 @@ public VMwareV2FabricCreationInput(string vmwareSiteId, string migrationSolution [JsonProperty(PropertyName = "vmwareSiteId")] public string VmwareSiteId { get; set; } + /// + /// Gets or sets the ARM Id of the physical site. + /// + [JsonProperty(PropertyName = "physicalSiteId")] + public string PhysicalSiteId { get; set; } + /// /// Gets or sets the ARM Id of the migration solution. /// @@ -68,10 +77,6 @@ public VMwareV2FabricCreationInput(string vmwareSiteId, string migrationSolution /// public virtual void Validate() { - if (VmwareSiteId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "VmwareSiteId"); - } if (MigrationSolutionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "MigrationSolutionId"); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareV2FabricSpecificDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareV2FabricSpecificDetails.cs index bedfb8ea76d2..4f67ad5cf76b 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareV2FabricSpecificDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareV2FabricSpecificDetails.cs @@ -11,6 +11,8 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -33,16 +35,23 @@ public VMwareV2FabricSpecificDetails() /// class. /// /// The ARM Id of the VMware site. + /// The ARM Id of the physical + /// site. /// The Migration solution ARM /// Id. /// The service endpoint. /// The service resource Id. - public VMwareV2FabricSpecificDetails(string vmwareSiteId = default(string), string migrationSolutionId = default(string), string serviceEndpoint = default(string), string serviceResourceId = default(string)) + /// The service container Id. + /// The list of process servers. + public VMwareV2FabricSpecificDetails(string vmwareSiteId = default(string), string physicalSiteId = default(string), string migrationSolutionId = default(string), string serviceEndpoint = default(string), string serviceResourceId = default(string), string serviceContainerId = default(string), IList processServers = default(IList)) { VmwareSiteId = vmwareSiteId; + PhysicalSiteId = physicalSiteId; MigrationSolutionId = migrationSolutionId; ServiceEndpoint = serviceEndpoint; ServiceResourceId = serviceResourceId; + ServiceContainerId = serviceContainerId; + ProcessServers = processServers; CustomInit(); } @@ -57,6 +66,12 @@ public VMwareV2FabricSpecificDetails() [JsonProperty(PropertyName = "vmwareSiteId")] public string VmwareSiteId { get; private set; } + /// + /// Gets the ARM Id of the physical site. + /// + [JsonProperty(PropertyName = "physicalSiteId")] + public string PhysicalSiteId { get; private set; } + /// /// Gets the Migration solution ARM Id. /// @@ -75,5 +90,17 @@ public VMwareV2FabricSpecificDetails() [JsonProperty(PropertyName = "serviceResourceId")] public string ServiceResourceId { get; private set; } + /// + /// Gets the service container Id. + /// + [JsonProperty(PropertyName = "serviceContainerId")] + public string ServiceContainerId { get; private set; } + + /// + /// Gets the list of process servers. + /// + [JsonProperty(PropertyName = "processServers")] + public IList ProcessServers { get; private set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareVirtualMachineDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareVirtualMachineDetails.cs index 29574f7130e9..81280d067154 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareVirtualMachineDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareVirtualMachineDetails.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// VMware provider specific settings + /// VMware provider specific settings. /// [Newtonsoft.Json.JsonObject("VMwareVirtualMachine")] public partial class VMwareVirtualMachineDetails : ConfigurationSettings diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VirtualMachineTaskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VirtualMachineTaskDetails.cs index 6a8954ffa6b1..43c809140786 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VirtualMachineTaskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VirtualMachineTaskDetails.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models /// /// This class represents the virtual machine task details. /// - public partial class VirtualMachineTaskDetails : TaskTypeDetails + public partial class VirtualMachineTaskDetails : JobTaskDetails { /// /// Initializes a new instance of the VirtualMachineTaskDetails class. @@ -29,15 +29,15 @@ public VirtualMachineTaskDetails() /// /// Initializes a new instance of the VirtualMachineTaskDetails class. /// + /// The job entity. /// The skipped reason. /// The skipped reason /// string. - /// The job entity. - public VirtualMachineTaskDetails(string skippedReason = default(string), string skippedReasonString = default(string), JobEntity jobTask = default(JobEntity)) + public VirtualMachineTaskDetails(JobEntity jobTask = default(JobEntity), string skippedReason = default(string), string skippedReasonString = default(string)) + : base(jobTask) { SkippedReason = skippedReason; SkippedReasonString = skippedReasonString; - JobTask = jobTask; CustomInit(); } @@ -58,11 +58,5 @@ public VirtualMachineTaskDetails() [JsonProperty(PropertyName = "skippedReasonString")] public string SkippedReasonString { get; set; } - /// - /// Gets or sets the job entity. - /// - [JsonProperty(PropertyName = "jobTask")] - public JobEntity JobTask { get; set; } - } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VmReplicationProgressHealth.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VmReplicationProgressHealth.cs new file mode 100644 index 000000000000..1f6b319aeb50 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VmReplicationProgressHealth.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + + /// + /// Defines values for VmReplicationProgressHealth. + /// + public static class VmReplicationProgressHealth + { + public const string None = "None"; + public const string InProgress = "InProgress"; + public const string SlowProgress = "SlowProgress"; + public const string NoProgress = "NoProgress"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VmmVirtualMachineDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VmmVirtualMachineDetails.cs index 55a75851cb32..ddea52187010 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VmmVirtualMachineDetails.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VmmVirtualMachineDetails.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models /// VMM fabric provider specific VM settings. /// [Newtonsoft.Json.JsonObject("VmmVirtualMachine")] - public partial class VmmVirtualMachineDetails : ConfigurationSettings + public partial class VmmVirtualMachineDetails : HyperVVirtualMachineDetails { /// /// Initializes a new instance of the VmmVirtualMachineDetails class. @@ -39,25 +39,19 @@ public VmmVirtualMachineDetails() /// time. /// A value indicating whether the VM has /// a physical disk attached. String value of - /// {SrsDataContract.PresenceStatus} enum. Possible values include: + /// SrsDataContract.PresenceStatus enum. Possible values include: /// 'Unknown', 'Present', 'NotPresent' /// A value indicating whether the /// VM has a fibre channel adapter attached. String value of - /// {SrsDataContract.PresenceStatus} enum. Possible values include: + /// SrsDataContract.PresenceStatus enum. Possible values include: /// 'Unknown', 'Present', 'NotPresent' /// A value indicating whether the VM has a - /// shared VHD attached. String value of - /// {SrsDataContract.PresenceStatus} enum. Possible values include: - /// 'Unknown', 'Present', 'NotPresent' + /// shared VHD attached. String value of SrsDataContract.PresenceStatus + /// enum. Possible values include: 'Unknown', 'Present', + /// 'NotPresent' public VmmVirtualMachineDetails(string sourceItemId = default(string), string generation = default(string), OSDetails osDetails = default(OSDetails), IList diskDetails = default(IList), string hasPhysicalDisk = default(string), string hasFibreChannelAdapter = default(string), string hasSharedVhd = default(string)) + : base(sourceItemId, generation, osDetails, diskDetails, hasPhysicalDisk, hasFibreChannelAdapter, hasSharedVhd) { - SourceItemId = sourceItemId; - Generation = generation; - OsDetails = osDetails; - DiskDetails = diskDetails; - HasPhysicalDisk = hasPhysicalDisk; - HasFibreChannelAdapter = hasFibreChannelAdapter; - HasSharedVhd = hasSharedVhd; CustomInit(); } @@ -66,53 +60,5 @@ public VmmVirtualMachineDetails() /// partial void CustomInit(); - /// - /// Gets or sets the source id of the object. - /// - [JsonProperty(PropertyName = "sourceItemId")] - public string SourceItemId { get; set; } - - /// - /// Gets or sets the id of the object in fabric. - /// - [JsonProperty(PropertyName = "generation")] - public string Generation { get; set; } - - /// - /// Gets or sets the Last replication time. - /// - [JsonProperty(PropertyName = "osDetails")] - public OSDetails OsDetails { get; set; } - - /// - /// Gets or sets the Last successful failover time. - /// - [JsonProperty(PropertyName = "diskDetails")] - public IList DiskDetails { get; set; } - - /// - /// Gets or sets a value indicating whether the VM has a physical disk - /// attached. String value of {SrsDataContract.PresenceStatus} enum. - /// Possible values include: 'Unknown', 'Present', 'NotPresent' - /// - [JsonProperty(PropertyName = "hasPhysicalDisk")] - public string HasPhysicalDisk { get; set; } - - /// - /// Gets or sets a value indicating whether the VM has a fibre channel - /// adapter attached. String value of {SrsDataContract.PresenceStatus} - /// enum. Possible values include: 'Unknown', 'Present', 'NotPresent' - /// - [JsonProperty(PropertyName = "hasFibreChannelAdapter")] - public string HasFibreChannelAdapter { get; set; } - - /// - /// Gets or sets a value indicating whether the VM has a shared VHD - /// attached. String value of {SrsDataContract.PresenceStatus} enum. - /// Possible values include: 'Unknown', 'Present', 'NotPresent' - /// - [JsonProperty(PropertyName = "hasSharedVhd")] - public string HasSharedVhd { get; set; } - } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Operations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Operations.cs index 9fe5a266bed5..15fda7bee3e2 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Operations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Operations.cs @@ -103,7 +103,7 @@ internal Operations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/operations").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/operations").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/RecoveryPointsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/RecoveryPointsOperations.cs index 274de0cad04a..000abc04b7fe 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/RecoveryPointsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/RecoveryPointsOperations.cs @@ -51,7 +51,7 @@ internal RecoveryPointsOperations(SiteRecoveryManagementClient client) public SiteRecoveryManagementClient Client { get; private set; } /// - /// Get recovery points for a replication protected item. + /// Gets the list of recovery points for a replication protected item. /// /// /// Lists the available recovery points for a replication protected item. @@ -63,7 +63,7 @@ internal RecoveryPointsOperations(SiteRecoveryManagementClient client) /// The protection container name. /// /// - /// The replication protected item's name. + /// The replication protected item name. /// /// /// Headers that will be added to request. @@ -131,7 +131,7 @@ internal RecoveryPointsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/recoveryPoints").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/recoveryPoints").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)); @@ -269,7 +269,7 @@ internal RecoveryPointsOperations(SiteRecoveryManagementClient client) } /// - /// Get a recovery point. + /// Gets a recovery point. /// /// /// Get the details of specified recovery point. @@ -281,7 +281,7 @@ internal RecoveryPointsOperations(SiteRecoveryManagementClient client) /// The protection container name. /// /// - /// The replication protected item's name. + /// The replication protected item name. /// /// /// The recovery point name. @@ -357,7 +357,7 @@ internal RecoveryPointsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/recoveryPoints/{recoveryPointName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/recoveryPoints/{recoveryPointName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -496,7 +496,7 @@ internal RecoveryPointsOperations(SiteRecoveryManagementClient client) } /// - /// Get recovery points for a replication protected item. + /// Gets the list of recovery points for a replication protected item. /// /// /// Lists the available recovery points for a replication protected item. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/RecoveryPointsOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/RecoveryPointsOperationsExtensions.cs index ae13105d38cc..6a8979683dfc 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/RecoveryPointsOperationsExtensions.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/RecoveryPointsOperationsExtensions.cs @@ -22,7 +22,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public static partial class RecoveryPointsOperationsExtensions { /// - /// Get recovery points for a replication protected item. + /// Gets the list of recovery points for a replication protected item. /// /// /// Lists the available recovery points for a replication protected item. @@ -37,7 +37,7 @@ public static partial class RecoveryPointsOperationsExtensions /// The protection container name. /// /// - /// The replication protected item's name. + /// The replication protected item name. /// public static IPage ListByReplicationProtectedItems(this IRecoveryPointsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName) { @@ -45,7 +45,7 @@ public static IPage ListByReplicationProtectedItems(this IRecover } /// - /// Get recovery points for a replication protected item. + /// Gets the list of recovery points for a replication protected item. /// /// /// Lists the available recovery points for a replication protected item. @@ -60,7 +60,7 @@ public static IPage ListByReplicationProtectedItems(this IRecover /// The protection container name. /// /// - /// The replication protected item's name. + /// The replication protected item name. /// /// /// The cancellation token. @@ -74,7 +74,7 @@ public static IPage ListByReplicationProtectedItems(this IRecover } /// - /// Get a recovery point. + /// Gets a recovery point. /// /// /// Get the details of specified recovery point. @@ -89,7 +89,7 @@ public static IPage ListByReplicationProtectedItems(this IRecover /// The protection container name. /// /// - /// The replication protected item's name. + /// The replication protected item name. /// /// /// The recovery point name. @@ -100,7 +100,7 @@ public static RecoveryPoint Get(this IRecoveryPointsOperations operations, strin } /// - /// Get a recovery point. + /// Gets a recovery point. /// /// /// Get the details of specified recovery point. @@ -115,7 +115,7 @@ public static RecoveryPoint Get(this IRecoveryPointsOperations operations, strin /// The protection container name. /// /// - /// The replication protected item's name. + /// The replication protected item name. /// /// /// The recovery point name. @@ -132,7 +132,7 @@ public static RecoveryPoint Get(this IRecoveryPointsOperations operations, strin } /// - /// Get recovery points for a replication protected item. + /// Gets the list of recovery points for a replication protected item. /// /// /// Lists the available recovery points for a replication protected item. @@ -149,7 +149,7 @@ public static IPage ListByReplicationProtectedItemsNext(this IRec } /// - /// Get recovery points for a replication protected item. + /// Gets the list of recovery points for a replication protected item. /// /// /// Lists the available recovery points for a replication protected item. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationAlertSettingsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationAlertSettingsOperations.cs index 05f0346ebee9..6df38e0c3158 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationAlertSettingsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationAlertSettingsOperations.cs @@ -107,7 +107,7 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationAlertSettings").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationAlertSettings").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -306,7 +306,7 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationAlertSettings/{alertSettingName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationAlertSettings/{alertSettingName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -441,6 +441,31 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) return _result; } + /// + /// Configures email notifications for this vault. + /// + /// + /// Create or update an email notification(alert) configuration. + /// + /// + /// The name of the email notification(alert) configuration. + /// + /// + /// The input to configure the email notification(alert). + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string alertSettingName, ConfigureAlertRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(alertSettingName, request, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Configures email notifications for this vault. /// @@ -474,7 +499,7 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateWithHttpMessagesAsync(string alertSettingName, ConfigureAlertRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateWithHttpMessagesAsync(string alertSettingName, ConfigureAlertRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -510,11 +535,11 @@ internal ReplicationAlertSettingsOperations(SiteRecoveryManagementClient client) tracingParameters.Add("alertSettingName", alertSettingName); tracingParameters.Add("request", request); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Create", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationAlertSettings/{alertSettingName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationAlertSettings/{alertSettingName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationAlertSettingsOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationAlertSettingsOperationsExtensions.cs index 82f90ff0c7bc..9027a20061ef 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationAlertSettingsOperationsExtensions.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationAlertSettingsOperationsExtensions.cs @@ -141,6 +141,52 @@ public static Alert Create(this IReplicationAlertSettingsOperations operations, } } + /// + /// Configures email notifications for this vault. + /// + /// + /// Create or update an email notification(alert) configuration. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the email notification(alert) configuration. + /// + /// + /// The input to configure the email notification(alert). + /// + public static Alert BeginCreate(this IReplicationAlertSettingsOperations operations, string alertSettingName, ConfigureAlertRequest request) + { + return operations.BeginCreateAsync(alertSettingName, request).GetAwaiter().GetResult(); + } + + /// + /// Configures email notifications for this vault. + /// + /// + /// Create or update an email notification(alert) configuration. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the email notification(alert) configuration. + /// + /// + /// The input to configure the email notification(alert). + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateAsync(this IReplicationAlertSettingsOperations operations, string alertSettingName, ConfigureAlertRequest request, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(alertSettingName, request, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Gets the list of configured email notification(alert) configurations. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationEligibilityResultsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationEligibilityResultsOperations.cs index ada748e1ef93..18cae8d5ab1a 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationEligibilityResultsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationEligibilityResultsOperations.cs @@ -112,7 +112,7 @@ internal ReplicationEligibilityResultsOperations(SiteRecoveryManagementClient cl } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}/providers/Microsoft.RecoveryServices/replicationEligibilityResults").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}/providers/Microsoft.RecoveryServices/replicationEligibilityResults").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{virtualMachineName}", System.Uri.EscapeDataString(virtualMachineName)); @@ -308,7 +308,7 @@ internal ReplicationEligibilityResultsOperations(SiteRecoveryManagementClient cl } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}/providers/Microsoft.RecoveryServices/replicationEligibilityResults/default").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}/providers/Microsoft.RecoveryServices/replicationEligibilityResults/default").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{virtualMachineName}", System.Uri.EscapeDataString(virtualMachineName)); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationEventsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationEventsOperations.cs index ae4a94d32647..38f89393be3d 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationEventsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationEventsOperations.cs @@ -112,7 +112,7 @@ internal ReplicationEventsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationEvents").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationEvents").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -319,7 +319,7 @@ internal ReplicationEventsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationEvents/{eventName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationEvents/{eventName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationFabricsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationFabricsOperations.cs index 6a8d84e9c020..9464a869293f 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationFabricsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationFabricsOperations.cs @@ -12,6 +12,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery { using Microsoft.Rest; using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; using Models; using Newtonsoft.Json; using System.Collections; @@ -51,7 +52,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) public SiteRecoveryManagementClient Client { get; private set; } /// - /// Gets the list of ASR fabrics + /// Gets the list of ASR fabrics. /// /// /// Gets a list of the Azure Site Recovery fabrics in the vault. @@ -107,7 +108,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -250,6 +251,9 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) /// /// Fabric name. /// + /// + /// OData parameters to apply to the operation. + /// /// /// Headers that will be added to request. /// @@ -271,7 +275,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string fabricName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string fabricName, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -300,18 +304,27 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{fabricName}", System.Uri.EscapeDataString(fabricName)); List _queryParameters = new List(); + if (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))); @@ -446,7 +459,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) /// /// /// The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V - /// site) + /// site). /// /// /// Name of the ASR fabric. @@ -566,7 +579,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) /// The operation to delete or remove an Azure Site Recovery fabric. /// /// - /// ASR fabric to delete + /// ASR fabric to delete. /// /// /// The headers that will be added to request. @@ -611,7 +624,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) /// /// /// The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V - /// site) + /// site). /// /// /// Name of the ASR fabric. @@ -680,7 +693,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -883,7 +896,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1065,7 +1078,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/checkConsistency").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/checkConsistency").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1262,7 +1275,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/migratetoaad").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/migratetoaad").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1453,7 +1466,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/reassociateGateway").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/reassociateGateway").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1601,7 +1614,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) /// The operation to delete or remove an Azure Site Recovery fabric. /// /// - /// ASR fabric to delete + /// ASR fabric to delete. /// /// /// Headers that will be added to request. @@ -1656,7 +1669,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/remove").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/remove").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1846,7 +1859,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/renewCertificate").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/renewCertificate").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1988,7 +2001,7 @@ internal ReplicationFabricsOperations(SiteRecoveryManagementClient client) } /// - /// Gets the list of ASR fabrics + /// Gets the list of ASR fabrics. /// /// /// Gets a list of the Azure Site Recovery fabrics in the vault. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationFabricsOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationFabricsOperationsExtensions.cs index 4fd2ce26b571..f6cb2e90a0e1 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationFabricsOperationsExtensions.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationFabricsOperationsExtensions.cs @@ -12,6 +12,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery { using Microsoft.Rest; using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; using Models; using System.Threading; using System.Threading.Tasks; @@ -22,7 +23,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public static partial class ReplicationFabricsOperationsExtensions { /// - /// Gets the list of ASR fabrics + /// Gets the list of ASR fabrics. /// /// /// Gets a list of the Azure Site Recovery fabrics in the vault. @@ -36,7 +37,7 @@ public static IPage List(this IReplicationFabricsOperations operations) } /// - /// Gets the list of ASR fabrics + /// Gets the list of ASR fabrics. /// /// /// Gets a list of the Azure Site Recovery fabrics in the vault. @@ -67,9 +68,12 @@ public static IPage List(this IReplicationFabricsOperations operations) /// /// Fabric name. /// - public static Fabric Get(this IReplicationFabricsOperations operations, string fabricName) + /// + /// OData parameters to apply to the operation. + /// + public static Fabric Get(this IReplicationFabricsOperations operations, string fabricName, ODataQuery odataQuery = default(ODataQuery)) { - return operations.GetAsync(fabricName).GetAwaiter().GetResult(); + return operations.GetAsync(fabricName, odataQuery).GetAwaiter().GetResult(); } /// @@ -84,12 +88,15 @@ public static Fabric Get(this IReplicationFabricsOperations operations, string f /// /// Fabric name. /// + /// + /// OData parameters to apply to the operation. + /// /// /// The cancellation token. /// - public static async Task GetAsync(this IReplicationFabricsOperations operations, string fabricName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IReplicationFabricsOperations operations, string fabricName, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(fabricName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(fabricName, odataQuery, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -100,7 +107,7 @@ public static Fabric Get(this IReplicationFabricsOperations operations, string f /// /// /// The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V - /// site) + /// site). /// /// /// The operations group for this extension method. @@ -121,7 +128,7 @@ public static Fabric Create(this IReplicationFabricsOperations operations, strin /// /// /// The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V - /// site) + /// site). /// /// /// The operations group for this extension method. @@ -315,7 +322,7 @@ public static Fabric ReassociateGateway(this IReplicationFabricsOperations opera /// The operations group for this extension method. /// /// - /// ASR fabric to delete + /// ASR fabric to delete. /// public static void Delete(this IReplicationFabricsOperations operations, string fabricName) { @@ -332,7 +339,7 @@ public static void Delete(this IReplicationFabricsOperations operations, string /// The operations group for this extension method. /// /// - /// ASR fabric to delete + /// ASR fabric to delete. /// /// /// The cancellation token. @@ -393,7 +400,7 @@ public static Fabric RenewCertificate(this IReplicationFabricsOperations operati /// /// /// The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V - /// site) + /// site). /// /// /// The operations group for this extension method. @@ -414,7 +421,7 @@ public static Fabric BeginCreate(this IReplicationFabricsOperations operations, /// /// /// The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V - /// site) + /// site). /// /// /// The operations group for this extension method. @@ -608,7 +615,7 @@ public static Fabric BeginReassociateGateway(this IReplicationFabricsOperations /// The operations group for this extension method. /// /// - /// ASR fabric to delete + /// ASR fabric to delete. /// public static void BeginDelete(this IReplicationFabricsOperations operations, string fabricName) { @@ -625,7 +632,7 @@ public static void BeginDelete(this IReplicationFabricsOperations operations, st /// The operations group for this extension method. /// /// - /// ASR fabric to delete + /// ASR fabric to delete. /// /// /// The cancellation token. @@ -682,7 +689,7 @@ public static Fabric BeginRenewCertificate(this IReplicationFabricsOperations op } /// - /// Gets the list of ASR fabrics + /// Gets the list of ASR fabrics. /// /// /// Gets a list of the Azure Site Recovery fabrics in the vault. @@ -699,7 +706,7 @@ public static IPage ListNext(this IReplicationFabricsOperations operatio } /// - /// Gets the list of ASR fabrics + /// Gets the list of ASR fabrics. /// /// /// Gets a list of the Azure Site Recovery fabrics in the vault. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationJobsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationJobsOperations.cs index acd608ed5015..618127bcd40f 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationJobsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationJobsOperations.cs @@ -112,7 +112,7 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -261,7 +261,7 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) /// Get the details of an Azure Site Recovery job. /// /// - /// Job identifier + /// Job identifier. /// /// /// Headers that will be added to request. @@ -319,7 +319,7 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -502,7 +502,7 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) /// Resumes the specified job. /// /// - /// The operation to resume an Azure Site Recovery job + /// The operation to resume an Azure Site Recovery job. /// /// /// Job identifier. @@ -611,7 +611,7 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/cancel").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/cancel").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -811,7 +811,7 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/restart").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/restart").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)); @@ -950,7 +950,7 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) /// Resumes the specified job. /// /// - /// The operation to resume an Azure Site Recovery job + /// The operation to resume an Azure Site Recovery job. /// /// /// Job identifier. @@ -1019,7 +1019,7 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/resume").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/resume").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1226,7 +1226,7 @@ internal ReplicationJobsOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/export").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/export").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationJobsOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationJobsOperationsExtensions.cs index 4b9816d871b5..4f6ac61fa451 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationJobsOperationsExtensions.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationJobsOperationsExtensions.cs @@ -72,7 +72,7 @@ public static partial class ReplicationJobsOperationsExtensions /// The operations group for this extension method. /// /// - /// Job identifier + /// Job identifier. /// public static Job Get(this IReplicationJobsOperations operations, string jobName) { @@ -89,7 +89,7 @@ public static Job Get(this IReplicationJobsOperations operations, string jobName /// The operations group for this extension method. /// /// - /// Job identifier + /// Job identifier. /// /// /// The cancellation token. @@ -186,7 +186,7 @@ public static Job Restart(this IReplicationJobsOperations operations, string job /// Resumes the specified job. /// /// - /// The operation to resume an Azure Site Recovery job + /// The operation to resume an Azure Site Recovery job. /// /// /// The operations group for this extension method. @@ -206,7 +206,7 @@ public static Job Resume(this IReplicationJobsOperations operations, string jobN /// Resumes the specified job. /// /// - /// The operation to resume an Azure Site Recovery job + /// The operation to resume an Azure Site Recovery job. /// /// /// The operations group for this extension method. @@ -354,7 +354,7 @@ public static Job BeginRestart(this IReplicationJobsOperations operations, strin /// Resumes the specified job. /// /// - /// The operation to resume an Azure Site Recovery job + /// The operation to resume an Azure Site Recovery job. /// /// /// The operations group for this extension method. @@ -374,7 +374,7 @@ public static Job BeginResume(this IReplicationJobsOperations operations, string /// Resumes the specified job. /// /// - /// The operation to resume an Azure Site Recovery job + /// The operation to resume an Azure Site Recovery job. /// /// /// The operations group for this extension method. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationLogicalNetworksOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationLogicalNetworksOperations.cs index 8048e17c90d8..fbbcadf2cb67 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationLogicalNetworksOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationLogicalNetworksOperations.cs @@ -54,7 +54,7 @@ internal ReplicationLogicalNetworksOperations(SiteRecoveryManagementClient clien /// Gets the list of logical networks under a fabric. /// /// - /// Lists all the logical networks of the Azure Site Recovery fabric + /// Lists all the logical networks of the Azure Site Recovery fabric. /// /// /// Server Id. @@ -115,7 +115,7 @@ internal ReplicationLogicalNetworksOperations(SiteRecoveryManagementClient clien } // 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}/replicationLogicalNetworks").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationLogicalNetworks").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)); @@ -323,7 +323,7 @@ internal ReplicationLogicalNetworksOperations(SiteRecoveryManagementClient clien } // 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}/replicationLogicalNetworks/{logicalNetworkName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationLogicalNetworks/{logicalNetworkName}").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)); @@ -463,7 +463,7 @@ internal ReplicationLogicalNetworksOperations(SiteRecoveryManagementClient clien /// Gets the list of logical networks under a fabric. /// /// - /// Lists all the logical networks of the Azure Site Recovery fabric + /// Lists all the logical networks of the Azure Site Recovery fabric. /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationLogicalNetworksOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationLogicalNetworksOperationsExtensions.cs index 3b5cc82463c2..b399ec952da5 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationLogicalNetworksOperationsExtensions.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationLogicalNetworksOperationsExtensions.cs @@ -25,7 +25,7 @@ public static partial class ReplicationLogicalNetworksOperationsExtensions /// Gets the list of logical networks under a fabric. /// /// - /// Lists all the logical networks of the Azure Site Recovery fabric + /// Lists all the logical networks of the Azure Site Recovery fabric. /// /// /// The operations group for this extension method. @@ -42,7 +42,7 @@ public static IPage ListByReplicationFabrics(this IReplicationLo /// Gets the list of logical networks under a fabric. /// /// - /// Lists all the logical networks of the Azure Site Recovery fabric + /// Lists all the logical networks of the Azure Site Recovery fabric. /// /// /// The operations group for this extension method. @@ -111,7 +111,7 @@ public static LogicalNetwork Get(this IReplicationLogicalNetworksOperations oper /// Gets the list of logical networks under a fabric. /// /// - /// Lists all the logical networks of the Azure Site Recovery fabric + /// Lists all the logical networks of the Azure Site Recovery fabric. /// /// /// The operations group for this extension method. @@ -128,7 +128,7 @@ public static IPage ListByReplicationFabricsNext(this IReplicati /// Gets the list of logical networks under a fabric. /// /// - /// Lists all the logical networks of the Azure Site Recovery fabric + /// Lists all the logical networks of the Azure Site Recovery fabric. /// /// /// The operations group for this extension method. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationMigrationItemsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationMigrationItemsOperations.cs index 71bf9a5b955f..62943495cf9a 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationMigrationItemsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationMigrationItemsOperations.cs @@ -63,6 +63,15 @@ internal ReplicationMigrationItemsOperations(SiteRecoveryManagementClient client /// /// Protection container name. /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The pagination token. + /// + /// + /// The page size. + /// /// /// Headers that will be added to request. /// @@ -84,7 +93,7 @@ internal ReplicationMigrationItemsOperations(SiteRecoveryManagementClient client /// /// A response object containing the response body and response headers. /// - public async Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), string takeToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -117,24 +126,43 @@ internal ReplicationMigrationItemsOperations(SiteRecoveryManagementClient client { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); + tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("takeToken", takeToken); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationProtectionContainers", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{fabricName}", System.Uri.EscapeDataString(fabricName)); _url = _url.Replace("{protectionContainerName}", System.Uri.EscapeDataString(protectionContainerName)); List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } if (Client.ApiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } + if (skipToken != null) + { + _queryParameters.Add(string.Format("skipToken={0}", System.Uri.EscapeDataString(skipToken))); + } + if (takeToken != null) + { + _queryParameters.Add(string.Format("takeToken={0}", System.Uri.EscapeDataString(takeToken))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -338,7 +366,7 @@ internal ReplicationMigrationItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}").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)); @@ -701,6 +729,9 @@ internal ReplicationMigrationItemsOperations(SiteRecoveryManagementClient client /// /// The pagination token. /// + /// + /// The page size. + /// /// /// Headers that will be added to request. /// @@ -722,7 +753,7 @@ internal ReplicationMigrationItemsOperations(SiteRecoveryManagementClient client /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), string takeToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -749,12 +780,13 @@ internal ReplicationMigrationItemsOperations(SiteRecoveryManagementClient client Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("odataQuery", odataQuery); tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("takeToken", takeToken); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationMigrationItems").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationMigrationItems").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)); @@ -775,6 +807,10 @@ internal ReplicationMigrationItemsOperations(SiteRecoveryManagementClient client { _queryParameters.Add(string.Format("skipToken={0}", System.Uri.EscapeDataString(skipToken))); } + if (takeToken != null) + { + _queryParameters.Add(string.Format("takeToken={0}", System.Uri.EscapeDataString(takeToken))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -993,7 +1029,7 @@ internal ReplicationMigrationItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}").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)); @@ -1218,7 +1254,7 @@ internal ReplicationMigrationItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}").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)); @@ -1430,7 +1466,7 @@ internal ReplicationMigrationItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}").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)); @@ -1666,7 +1702,7 @@ internal ReplicationMigrationItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}/migrate").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}/migrate").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)); @@ -1902,7 +1938,7 @@ internal ReplicationMigrationItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}/resync").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}/resync").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)); @@ -2138,7 +2174,7 @@ internal ReplicationMigrationItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}/testMigrate").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}/testMigrate").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -2374,7 +2410,7 @@ internal ReplicationMigrationItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}/testMigrateCleanup").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}/testMigrateCleanup").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationMigrationItemsOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationMigrationItemsOperationsExtensions.cs index dbe9dc44d459..ed1bd14984db 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationMigrationItemsOperationsExtensions.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationMigrationItemsOperationsExtensions.cs @@ -37,9 +37,18 @@ public static partial class ReplicationMigrationItemsOperationsExtensions /// /// Protection container name. /// - public static IPage ListByReplicationProtectionContainers(this IReplicationMigrationItemsOperations operations, string fabricName, string protectionContainerName) + /// + /// OData parameters to apply to the operation. + /// + /// + /// The pagination token. + /// + /// + /// The page size. + /// + public static IPage ListByReplicationProtectionContainers(this IReplicationMigrationItemsOperations operations, string fabricName, string protectionContainerName, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), string takeToken = default(string)) { - return operations.ListByReplicationProtectionContainersAsync(fabricName, protectionContainerName).GetAwaiter().GetResult(); + return operations.ListByReplicationProtectionContainersAsync(fabricName, protectionContainerName, odataQuery, skipToken, takeToken).GetAwaiter().GetResult(); } /// @@ -57,12 +66,21 @@ public static IPage ListByReplicationProtectionContainers(this IR /// /// Protection container name. /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The pagination token. + /// + /// + /// The page size. + /// /// /// The cancellation token. /// - public static async Task> ListByReplicationProtectionContainersAsync(this IReplicationMigrationItemsOperations operations, string fabricName, string protectionContainerName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByReplicationProtectionContainersAsync(this IReplicationMigrationItemsOperations operations, string fabricName, string protectionContainerName, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), string takeToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByReplicationProtectionContainersWithHttpMessagesAsync(fabricName, protectionContainerName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByReplicationProtectionContainersWithHttpMessagesAsync(fabricName, protectionContainerName, odataQuery, skipToken, takeToken, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -529,9 +547,12 @@ public static MigrationItem TestMigrateCleanup(this IReplicationMigrationItemsOp /// /// The pagination token. /// - public static IPage List(this IReplicationMigrationItemsOperations operations, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string)) + /// + /// The page size. + /// + public static IPage List(this IReplicationMigrationItemsOperations operations, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), string takeToken = default(string)) { - return operations.ListAsync(odataQuery, skipToken).GetAwaiter().GetResult(); + return operations.ListAsync(odataQuery, skipToken, takeToken).GetAwaiter().GetResult(); } /// @@ -546,12 +567,15 @@ public static MigrationItem TestMigrateCleanup(this IReplicationMigrationItemsOp /// /// The pagination token. /// + /// + /// The page size. + /// /// /// The cancellation token. /// - public static async Task> ListAsync(this IReplicationMigrationItemsOperations operations, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IReplicationMigrationItemsOperations operations, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), string takeToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(odataQuery, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(odataQuery, skipToken, takeToken, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationNetworkMappingsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationNetworkMappingsOperations.cs index 361a53cadd86..b9fd0c430b75 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationNetworkMappingsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationNetworkMappingsOperations.cs @@ -123,7 +123,7 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings").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)); @@ -263,7 +263,7 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien /// Gets network mapping by name. /// /// - /// Gets the details of an ASR network mapping + /// Gets the details of an ASR network mapping. /// /// /// Primary fabric name. @@ -340,7 +340,7 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -624,7 +624,7 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationNetworkMappings").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationNetworkMappings").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -831,6 +831,10 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien { throw new ValidationException(ValidationRules.CannotBeNull, "input"); } + if (input != null) + { + input.Validate(); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -847,7 +851,7 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1068,7 +1072,7 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1276,7 +1280,7 @@ internal ReplicationNetworkMappingsOperations(SiteRecoveryManagementClient clien } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationNetworkMappingsOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationNetworkMappingsOperationsExtensions.cs index 26af45aa5752..4cab6b1aee78 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationNetworkMappingsOperationsExtensions.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationNetworkMappingsOperationsExtensions.cs @@ -71,7 +71,7 @@ public static IPage ListByReplicationNetworks(this IReplicationN /// Gets network mapping by name. /// /// - /// Gets the details of an ASR network mapping + /// Gets the details of an ASR network mapping. /// /// /// The operations group for this extension method. @@ -94,7 +94,7 @@ public static NetworkMapping Get(this IReplicationNetworkMappingsOperations oper /// Gets network mapping by name. /// /// - /// Gets the details of an ASR network mapping + /// Gets the details of an ASR network mapping. /// /// /// The operations group for this extension method. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationNetworksOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationNetworksOperations.cs index cbc93447e1b6..c9ab1748d20a 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationNetworksOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationNetworksOperations.cs @@ -57,7 +57,7 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) /// Lists the networks available for a fabric. /// /// - /// Fabric name + /// Fabric name. /// /// /// Headers that will be added to request. @@ -115,7 +115,7 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -323,7 +323,7 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -463,7 +463,7 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) /// Gets the list of networks. View-only API. /// /// - /// Lists the networks available in a vault + /// Lists the networks available in a vault. /// /// /// Headers that will be added to request. @@ -516,7 +516,7 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationNetworks").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationNetworks").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -830,7 +830,7 @@ internal ReplicationNetworksOperations(SiteRecoveryManagementClient client) /// Gets the list of networks. View-only API. /// /// - /// Lists the networks available in a vault + /// Lists the networks available in a vault. /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationNetworksOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationNetworksOperationsExtensions.cs index 25706d34a3a7..96b9df0dabf3 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationNetworksOperationsExtensions.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationNetworksOperationsExtensions.cs @@ -31,7 +31,7 @@ public static partial class ReplicationNetworksOperationsExtensions /// The operations group for this extension method. /// /// - /// Fabric name + /// Fabric name. /// public static IPage ListByReplicationFabrics(this IReplicationNetworksOperations operations, string fabricName) { @@ -48,7 +48,7 @@ public static IPage ListByReplicationFabrics(this IReplicationNetworksO /// The operations group for this extension method. /// /// - /// Fabric name + /// Fabric name. /// /// /// The cancellation token. @@ -111,7 +111,7 @@ public static Network Get(this IReplicationNetworksOperations operations, string /// Gets the list of networks. View-only API. /// /// - /// Lists the networks available in a vault + /// Lists the networks available in a vault. /// /// /// The operations group for this extension method. @@ -125,7 +125,7 @@ public static IPage List(this IReplicationNetworksOperations operations /// Gets the list of networks. View-only API. /// /// - /// Lists the networks available in a vault + /// Lists the networks available in a vault. /// /// /// The operations group for this extension method. @@ -185,7 +185,7 @@ public static IPage ListByReplicationFabricsNext(this IReplicationNetwo /// Gets the list of networks. View-only API. /// /// - /// Lists the networks available in a vault + /// Lists the networks available in a vault. /// /// /// The operations group for this extension method. @@ -202,7 +202,7 @@ public static IPage ListNext(this IReplicationNetworksOperations operat /// Gets the list of networks. View-only API. /// /// - /// Lists the networks available in a vault + /// Lists the networks available in a vault. /// /// /// The operations group for this extension method. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationPoliciesOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationPoliciesOperations.cs index 7400cfb8d8b6..5ec93341541f 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationPoliciesOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationPoliciesOperations.cs @@ -51,7 +51,7 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) public SiteRecoveryManagementClient Client { get; private set; } /// - /// Gets the list of replication policies + /// Gets the list of replication policies. /// /// /// Lists the replication policies for a vault. @@ -107,7 +107,7 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -306,7 +306,7 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -445,13 +445,13 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) /// Creates the policy. /// /// - /// The operation to create a replication policy + /// The operation to create a replication policy. /// /// - /// Replication policy name + /// Replication policy name. /// /// - /// Create policy input + /// Create policy input. /// /// /// The headers that will be added to request. @@ -498,7 +498,7 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) /// Policy Id. /// /// - /// Update Policy Input + /// Update Policy Input. /// /// /// The headers that will be added to request. @@ -517,13 +517,13 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) /// Creates the policy. /// /// - /// The operation to create a replication policy + /// The operation to create a replication policy. /// /// - /// Replication policy name + /// Replication policy name. /// /// - /// Create policy input + /// Create policy input. /// /// /// Headers that will be added to request. @@ -586,7 +586,7 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -789,7 +789,7 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -916,7 +916,7 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) /// Policy Id. /// /// - /// Update Policy Input + /// Update Policy Input. /// /// /// Headers that will be added to request. @@ -979,7 +979,7 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1121,7 +1121,7 @@ internal ReplicationPoliciesOperations(SiteRecoveryManagementClient client) } /// - /// Gets the list of replication policies + /// Gets the list of replication policies. /// /// /// Lists the replication policies for a vault. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationPoliciesOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationPoliciesOperationsExtensions.cs index 9793cd20ad06..93ab6eaeb852 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationPoliciesOperationsExtensions.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationPoliciesOperationsExtensions.cs @@ -22,7 +22,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public static partial class ReplicationPoliciesOperationsExtensions { /// - /// Gets the list of replication policies + /// Gets the list of replication policies. /// /// /// Lists the replication policies for a vault. @@ -36,7 +36,7 @@ public static IPage List(this IReplicationPoliciesOperations operations) } /// - /// Gets the list of replication policies + /// Gets the list of replication policies. /// /// /// Lists the replication policies for a vault. @@ -99,16 +99,16 @@ public static Policy Get(this IReplicationPoliciesOperations operations, string /// Creates the policy. /// /// - /// The operation to create a replication policy + /// The operation to create a replication policy. /// /// /// The operations group for this extension method. /// /// - /// Replication policy name + /// Replication policy name. /// /// - /// Create policy input + /// Create policy input. /// public static Policy Create(this IReplicationPoliciesOperations operations, string policyName, CreatePolicyInput input) { @@ -119,16 +119,16 @@ public static Policy Create(this IReplicationPoliciesOperations operations, stri /// Creates the policy. /// /// - /// The operation to create a replication policy + /// The operation to create a replication policy. /// /// /// The operations group for this extension method. /// /// - /// Replication policy name + /// Replication policy name. /// /// - /// Create policy input + /// Create policy input. /// /// /// The cancellation token. @@ -191,7 +191,7 @@ public static void Delete(this IReplicationPoliciesOperations operations, string /// Policy Id. /// /// - /// Update Policy Input + /// Update Policy Input. /// public static Policy Update(this IReplicationPoliciesOperations operations, string policyName, UpdatePolicyInput input) { @@ -211,7 +211,7 @@ public static Policy Update(this IReplicationPoliciesOperations operations, stri /// Policy Id. /// /// - /// Update Policy Input + /// Update Policy Input. /// /// /// The cancellation token. @@ -228,16 +228,16 @@ public static Policy Update(this IReplicationPoliciesOperations operations, stri /// Creates the policy. /// /// - /// The operation to create a replication policy + /// The operation to create a replication policy. /// /// /// The operations group for this extension method. /// /// - /// Replication policy name + /// Replication policy name. /// /// - /// Create policy input + /// Create policy input. /// public static Policy BeginCreate(this IReplicationPoliciesOperations operations, string policyName, CreatePolicyInput input) { @@ -248,16 +248,16 @@ public static Policy BeginCreate(this IReplicationPoliciesOperations operations, /// Creates the policy. /// /// - /// The operation to create a replication policy + /// The operation to create a replication policy. /// /// /// The operations group for this extension method. /// /// - /// Replication policy name + /// Replication policy name. /// /// - /// Create policy input + /// Create policy input. /// /// /// The cancellation token. @@ -320,7 +320,7 @@ public static void BeginDelete(this IReplicationPoliciesOperations operations, s /// Policy Id. /// /// - /// Update Policy Input + /// Update Policy Input. /// public static Policy BeginUpdate(this IReplicationPoliciesOperations operations, string policyName, UpdatePolicyInput input) { @@ -340,7 +340,7 @@ public static Policy BeginUpdate(this IReplicationPoliciesOperations operations, /// Policy Id. /// /// - /// Update Policy Input + /// Update Policy Input. /// /// /// The cancellation token. @@ -354,7 +354,7 @@ public static Policy BeginUpdate(this IReplicationPoliciesOperations operations, } /// - /// Gets the list of replication policies + /// Gets the list of replication policies. /// /// /// Lists the replication policies for a vault. @@ -371,7 +371,7 @@ public static IPage ListNext(this IReplicationPoliciesOperations operati } /// - /// Gets the list of replication policies + /// Gets the list of replication policies. /// /// /// Lists the replication policies for a vault. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectableItemsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectableItemsOperations.cs index 1b75f648e2cf..f2fce88cc59b 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectableItemsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectableItemsOperations.cs @@ -66,6 +66,12 @@ internal ReplicationProtectableItemsOperations(SiteRecoveryManagementClient clie /// /// OData parameters to apply to the operation. /// + /// + /// take OData query parameter. + /// + /// + /// skipToken OData query parameter. + /// /// /// Headers that will be added to request. /// @@ -87,7 +93,7 @@ internal ReplicationProtectableItemsOperations(SiteRecoveryManagementClient clie /// /// A response object containing the response body and response headers. /// - public async Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByReplicationProtectionContainersWithHttpMessagesAsync(string fabricName, string protectionContainerName, ODataQuery odataQuery = default(ODataQuery), string take = default(string), string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -123,12 +129,14 @@ internal ReplicationProtectableItemsOperations(SiteRecoveryManagementClient clie tracingParameters.Add("odataQuery", odataQuery); tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); + tracingParameters.Add("take", take); + tracingParameters.Add("skipToken", skipToken); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListByReplicationProtectionContainers", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectableItems").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectableItems").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -147,6 +155,14 @@ internal ReplicationProtectableItemsOperations(SiteRecoveryManagementClient clie { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } + if (take != null) + { + _queryParameters.Add(string.Format("$take={0}", System.Uri.EscapeDataString(take))); + } + if (skipToken != null) + { + _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -353,7 +369,7 @@ internal ReplicationProtectableItemsOperations(SiteRecoveryManagementClient clie } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectableItems/{protectableItemName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectableItems/{protectableItemName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectableItemsOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectableItemsOperationsExtensions.cs index cc712b2cf07b..8be3bcfd5ecb 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectableItemsOperationsExtensions.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectableItemsOperationsExtensions.cs @@ -40,9 +40,15 @@ public static partial class ReplicationProtectableItemsOperationsExtensions /// /// OData parameters to apply to the operation. /// - public static IPage ListByReplicationProtectionContainers(this IReplicationProtectableItemsOperations operations, string fabricName, string protectionContainerName, ODataQuery odataQuery = default(ODataQuery)) + /// + /// take OData query parameter. + /// + /// + /// skipToken OData query parameter. + /// + public static IPage ListByReplicationProtectionContainers(this IReplicationProtectableItemsOperations operations, string fabricName, string protectionContainerName, ODataQuery odataQuery = default(ODataQuery), string take = default(string), string skipToken = default(string)) { - return operations.ListByReplicationProtectionContainersAsync(fabricName, protectionContainerName, odataQuery).GetAwaiter().GetResult(); + return operations.ListByReplicationProtectionContainersAsync(fabricName, protectionContainerName, odataQuery, take, skipToken).GetAwaiter().GetResult(); } /// @@ -63,12 +69,18 @@ public static partial class ReplicationProtectableItemsOperationsExtensions /// /// OData parameters to apply to the operation. /// + /// + /// take OData query parameter. + /// + /// + /// skipToken OData query parameter. + /// /// /// The cancellation token. /// - public static async Task> ListByReplicationProtectionContainersAsync(this IReplicationProtectableItemsOperations operations, string fabricName, string protectionContainerName, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByReplicationProtectionContainersAsync(this IReplicationProtectableItemsOperations operations, string fabricName, string protectionContainerName, ODataQuery odataQuery = default(ODataQuery), string take = default(string), string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByReplicationProtectionContainersWithHttpMessagesAsync(fabricName, protectionContainerName, odataQuery, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByReplicationProtectionContainersWithHttpMessagesAsync(fabricName, protectionContainerName, odataQuery, take, skipToken, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperations.cs index f36b05bdaec0..8ddcf039c7cc 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperations.cs @@ -125,7 +125,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems").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)); @@ -342,7 +342,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}").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)); @@ -543,7 +543,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Updates protection. + /// Updates the replication protected item settings. /// /// /// The operation to update the recovery settings of an ASR replication @@ -619,7 +619,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// The protection container name. /// /// - /// The replicated protected item's name. + /// The replicated protected item name. /// /// /// The ApplyRecoveryPointInput. @@ -638,7 +638,35 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Execute commit failover + /// Execute cancel failover. + /// + /// + /// Operation to cancel the failover of the replication protected item. + /// + /// + /// Unique fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Replication protected item name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> FailoverCancelWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginFailoverCancelWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Execute commit failover. /// /// /// Operation to commit the failover of the replication protected item. @@ -666,7 +694,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Execute planned failover + /// Execute planned failover. /// /// /// Operation to initiate a planned failover of the replication protected item. @@ -681,7 +709,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// Replication protected item name. /// /// - /// Disable protection input. + /// Planned failover input. /// /// /// The headers that will be added to request. @@ -789,7 +817,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Execute Reverse Replication\Reprotect + /// Execute Reverse Replication\Reprotect. /// /// /// Operation to reprotect or reverse replicate a failed over replication @@ -804,8 +832,8 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// Replication protected item name. /// - /// - /// Disable protection input. + /// + /// Reverse replication input. /// /// /// The headers that will be added to request. @@ -813,10 +841,10 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// The cancellation token. /// - public async Task> ReprotectWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ReprotectWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput reprotectInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginReprotectWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, rrInput, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginReprotectWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -852,7 +880,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Execute test failover + /// Execute test failover. /// /// /// Operation to perform a test failover of the replication protected item. @@ -866,7 +894,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// Replication protected item name. /// - /// + /// /// Test failover input. /// /// @@ -875,10 +903,10 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// The cancellation token. /// - public async Task> TestFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> TestFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput testfailoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginTestFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginTestFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -914,7 +942,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Execute unplanned failover + /// Execute unplanned failover. /// /// /// Operation to initiate a failover of the replication protected item. @@ -929,7 +957,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// Replication protected item name. /// /// - /// Disable protection input. + /// Failover input. /// /// /// The headers that will be added to request. @@ -987,7 +1015,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// /// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or - /// null + /// null. /// /// /// Headers that will be added to request. @@ -1042,7 +1070,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectedItems").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectedItems").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1278,7 +1306,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}").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)); @@ -1502,7 +1530,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}").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)); @@ -1622,7 +1650,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Updates protection. + /// Updates the replication protected item settings. /// /// /// The operation to update the recovery settings of an ASR replication @@ -1711,7 +1739,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}").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)); @@ -1927,6 +1955,10 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "addDisksInput"); } + if (addDisksInput != null) + { + addDisksInput.Validate(); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1943,7 +1975,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/addDisks").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/addDisks").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)); @@ -2100,7 +2132,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// The protection container name. /// /// - /// The replicated protected item's name. + /// The replicated protected item name. /// /// /// The ApplyRecoveryPointInput. @@ -2160,6 +2192,10 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "applyRecoveryPointInput"); } + if (applyRecoveryPointInput != null) + { + applyRecoveryPointInput.Validate(); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2176,7 +2212,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/applyRecoveryPoint").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/applyRecoveryPoint").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -2320,7 +2356,225 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Execute commit failover + /// Execute cancel failover. + /// + /// + /// Operation to cancel the failover of the replication protected item. + /// + /// + /// Unique fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Replication protected item name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginFailoverCancelWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ResourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceName"); + } + if (Client.ResourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (fabricName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); + } + if (protectionContainerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "protectionContainerName"); + } + if (replicatedProtectedItemName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("fabricName", fabricName); + tracingParameters.Add("protectionContainerName", protectionContainerName); + tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginFailoverCancel", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/failoverCancel").ToString(); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{fabricName}", System.Uri.EscapeDataString(fabricName)); + _url = _url.Replace("{protectionContainerName}", System.Uri.EscapeDataString(protectionContainerName)); + _url = _url.Replace("{replicatedProtectedItemName}", System.Uri.EscapeDataString(replicatedProtectedItemName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Execute commit failover. /// /// /// Operation to commit the failover of the replication protected item. @@ -2400,7 +2654,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/failoverCommit").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/failoverCommit").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -2538,7 +2792,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Execute planned failover + /// Execute planned failover. /// /// /// Operation to initiate a planned failover of the replication protected item. @@ -2553,7 +2807,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// Replication protected item name. /// /// - /// Disable protection input. + /// Planned failover input. /// /// /// Headers that will be added to request. @@ -2626,7 +2880,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/plannedFailover").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/plannedFailover").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -2840,6 +3094,10 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "disableProtectionInput"); } + if (disableProtectionInput != null) + { + disableProtectionInput.Validate(); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2856,7 +3114,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/remove").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/remove").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -3070,7 +3328,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/removeDisks").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/removeDisks").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -3295,7 +3553,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/repairReplication").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/repairReplication").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -3433,7 +3691,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Execute Reverse Replication\Reprotect + /// Execute Reverse Replication\Reprotect. /// /// /// Operation to reprotect or reverse replicate a failed over replication @@ -3448,8 +3706,8 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// Replication protected item name. /// - /// - /// Disable protection input. + /// + /// Reverse replication input. /// /// /// Headers that will be added to request. @@ -3472,7 +3730,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// A response object containing the response body and response headers. /// - public async Task> BeginReprotectWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginReprotectWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput reprotectInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -3502,9 +3760,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); } - if (rrInput == null) + if (reprotectInput == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "rrInput"); + throw new ValidationException(ValidationRules.CannotBeNull, "reprotectInput"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -3516,13 +3774,13 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); - tracingParameters.Add("rrInput", rrInput); + tracingParameters.Add("reprotectInput", reprotectInput); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "BeginReprotect", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/reProtect").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/reProtect").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -3572,9 +3830,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Serialize Request string _requestContent = null; - if(rrInput != null) + if(reprotectInput != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(rrInput, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(reprotectInput, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } @@ -3754,7 +4012,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/ResolveHealthErrors").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/resolveHealthErrors").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -3898,7 +4156,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Execute test failover + /// Execute test failover. /// /// /// Operation to perform a test failover of the replication protected item. @@ -3912,7 +4170,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// Replication protected item name. /// - /// + /// /// Test failover input. /// /// @@ -3936,7 +4194,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// /// A response object containing the response body and response headers. /// - public async Task> BeginTestFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginTestFailoverWithHttpMessagesAsync(string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput testfailoverInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -3966,9 +4224,13 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "replicatedProtectedItemName"); } - if (failoverInput == null) + if (testfailoverInput == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "failoverInput"); + throw new ValidationException(ValidationRules.CannotBeNull, "testfailoverInput"); + } + if (testfailoverInput != null) + { + testfailoverInput.Validate(); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -3980,13 +4242,13 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client tracingParameters.Add("fabricName", fabricName); tracingParameters.Add("protectionContainerName", protectionContainerName); tracingParameters.Add("replicatedProtectedItemName", replicatedProtectedItemName); - tracingParameters.Add("failoverInput", failoverInput); + tracingParameters.Add("testfailoverInput", testfailoverInput); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "BeginTestFailover", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/testFailover").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/testFailover").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -4036,9 +4298,9 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client // Serialize Request string _requestContent = null; - if(failoverInput != null) + if(testfailoverInput != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(failoverInput, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(testfailoverInput, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } @@ -4222,7 +4484,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/testFailoverCleanup").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/testFailoverCleanup").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -4366,7 +4628,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } /// - /// Execute unplanned failover + /// Execute unplanned failover. /// /// /// Operation to initiate a failover of the replication protected item. @@ -4381,7 +4643,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client /// Replication protected item name. /// /// - /// Disable protection input. + /// Failover input. /// /// /// Headers that will be added to request. @@ -4438,6 +4700,10 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "failoverInput"); } + if (failoverInput != null) + { + failoverInput.Validate(); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4454,7 +4720,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/unplannedFailover").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/unplannedFailover").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -4687,7 +4953,7 @@ internal ReplicationProtectedItemsOperations(SiteRecoveryManagementClient client } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicationProtectedItemName}/updateMobilityService").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicationProtectedItemName}/updateMobilityService").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperationsExtensions.cs index d4fb526124c8..8df0e6575051 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperationsExtensions.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectedItemsOperationsExtensions.cs @@ -238,7 +238,7 @@ public static void Purge(this IReplicationProtectedItemsOperations operations, s } /// - /// Updates protection. + /// Updates the replication protected item settings. /// /// /// The operation to update the recovery settings of an ASR replication @@ -265,7 +265,7 @@ public static ReplicationProtectedItem Update(this IReplicationProtectedItemsOpe } /// - /// Updates protection. + /// Updates the replication protected item settings. /// /// /// The operation to update the recovery settings of an ASR replication @@ -372,7 +372,7 @@ public static ReplicationProtectedItem AddDisks(this IReplicationProtectedItemsO /// The protection container name. /// /// - /// The replicated protected item's name. + /// The replicated protected item name. /// /// /// The ApplyRecoveryPointInput. @@ -399,7 +399,7 @@ public static ReplicationProtectedItem ApplyRecoveryPoint(this IReplicationProte /// The protection container name. /// /// - /// The replicated protected item's name. + /// The replicated protected item name. /// /// /// The ApplyRecoveryPointInput. @@ -416,7 +416,59 @@ public static ReplicationProtectedItem ApplyRecoveryPoint(this IReplicationProte } /// - /// Execute commit failover + /// Execute cancel failover. + /// + /// + /// Operation to cancel the failover of the replication protected item. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Unique fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Replication protected item name. + /// + public static ReplicationProtectedItem FailoverCancel(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName) + { + return operations.FailoverCancelAsync(fabricName, protectionContainerName, replicatedProtectedItemName).GetAwaiter().GetResult(); + } + + /// + /// Execute cancel failover. + /// + /// + /// Operation to cancel the failover of the replication protected item. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Unique fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Replication protected item name. + /// + /// + /// The cancellation token. + /// + public static async Task FailoverCancelAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.FailoverCancelWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Execute commit failover. /// /// /// Operation to commit the failover of the replication protected item. @@ -439,7 +491,7 @@ public static ReplicationProtectedItem FailoverCommit(this IReplicationProtected } /// - /// Execute commit failover + /// Execute commit failover. /// /// /// Operation to commit the failover of the replication protected item. @@ -468,7 +520,7 @@ public static ReplicationProtectedItem FailoverCommit(this IReplicationProtected } /// - /// Execute planned failover + /// Execute planned failover. /// /// /// Operation to initiate a planned failover of the replication protected item. @@ -486,7 +538,7 @@ public static ReplicationProtectedItem FailoverCommit(this IReplicationProtected /// Replication protected item name. /// /// - /// Disable protection input. + /// Planned failover input. /// public static ReplicationProtectedItem PlannedFailover(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, PlannedFailoverInput failoverInput) { @@ -494,7 +546,7 @@ public static ReplicationProtectedItem PlannedFailover(this IReplicationProtecte } /// - /// Execute planned failover + /// Execute planned failover. /// /// /// Operation to initiate a planned failover of the replication protected item. @@ -512,7 +564,7 @@ public static ReplicationProtectedItem PlannedFailover(this IReplicationProtecte /// Replication protected item name. /// /// - /// Disable protection input. + /// Planned failover input. /// /// /// The cancellation token. @@ -695,7 +747,7 @@ public static ReplicationProtectedItem RepairReplication(this IReplicationProtec } /// - /// Execute Reverse Replication\Reprotect + /// Execute Reverse Replication\Reprotect. /// /// /// Operation to reprotect or reverse replicate a failed over replication @@ -713,16 +765,16 @@ public static ReplicationProtectedItem RepairReplication(this IReplicationProtec /// /// Replication protected item name. /// - /// - /// Disable protection input. + /// + /// Reverse replication input. /// - public static ReplicationProtectedItem Reprotect(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput) + public static ReplicationProtectedItem Reprotect(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput reprotectInput) { - return operations.ReprotectAsync(fabricName, protectionContainerName, replicatedProtectedItemName, rrInput).GetAwaiter().GetResult(); + return operations.ReprotectAsync(fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput).GetAwaiter().GetResult(); } /// - /// Execute Reverse Replication\Reprotect + /// Execute Reverse Replication\Reprotect. /// /// /// Operation to reprotect or reverse replicate a failed over replication @@ -740,15 +792,15 @@ public static ReplicationProtectedItem Reprotect(this IReplicationProtectedItems /// /// Replication protected item name. /// - /// - /// Disable protection input. + /// + /// Reverse replication input. /// /// /// The cancellation token. /// - public static async Task ReprotectAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ReprotectAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput reprotectInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ReprotectWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, rrInput, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ReprotectWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -813,7 +865,7 @@ public static ReplicationProtectedItem ResolveHealthErrors(this IReplicationProt } /// - /// Execute test failover + /// Execute test failover. /// /// /// Operation to perform a test failover of the replication protected item. @@ -830,16 +882,16 @@ public static ReplicationProtectedItem ResolveHealthErrors(this IReplicationProt /// /// Replication protected item name. /// - /// + /// /// Test failover input. /// - public static ReplicationProtectedItem TestFailover(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput) + public static ReplicationProtectedItem TestFailover(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput testfailoverInput) { - return operations.TestFailoverAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput).GetAwaiter().GetResult(); + return operations.TestFailoverAsync(fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput).GetAwaiter().GetResult(); } /// - /// Execute test failover + /// Execute test failover. /// /// /// Operation to perform a test failover of the replication protected item. @@ -856,15 +908,15 @@ public static ReplicationProtectedItem TestFailover(this IReplicationProtectedIt /// /// Replication protected item name. /// - /// + /// /// Test failover input. /// /// /// The cancellation token. /// - public static async Task TestFailoverAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task TestFailoverAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput testfailoverInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.TestFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.TestFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -929,7 +981,7 @@ public static ReplicationProtectedItem TestFailoverCleanup(this IReplicationProt } /// - /// Execute unplanned failover + /// Execute unplanned failover. /// /// /// Operation to initiate a failover of the replication protected item. @@ -947,7 +999,7 @@ public static ReplicationProtectedItem TestFailoverCleanup(this IReplicationProt /// Replication protected item name. /// /// - /// Disable protection input. + /// Failover input. /// public static ReplicationProtectedItem UnplannedFailover(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverInput failoverInput) { @@ -955,7 +1007,7 @@ public static ReplicationProtectedItem UnplannedFailover(this IReplicationProtec } /// - /// Execute unplanned failover + /// Execute unplanned failover. /// /// /// Operation to initiate a failover of the replication protected item. @@ -973,7 +1025,7 @@ public static ReplicationProtectedItem UnplannedFailover(this IReplicationProtec /// Replication protected item name. /// /// - /// Disable protection input. + /// Failover input. /// /// /// The cancellation token. @@ -1060,7 +1112,7 @@ public static ReplicationProtectedItem UpdateMobilityService(this IReplicationPr /// /// /// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or - /// null + /// null. /// public static IPage List(this IReplicationProtectedItemsOperations operations, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string)) { @@ -1081,7 +1133,7 @@ public static ReplicationProtectedItem UpdateMobilityService(this IReplicationPr /// /// /// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or - /// null + /// null. /// /// /// The cancellation token. @@ -1210,7 +1262,7 @@ public static void BeginPurge(this IReplicationProtectedItemsOperations operatio } /// - /// Updates protection. + /// Updates the replication protected item settings. /// /// /// The operation to update the recovery settings of an ASR replication @@ -1237,7 +1289,7 @@ public static ReplicationProtectedItem BeginUpdate(this IReplicationProtectedIte } /// - /// Updates protection. + /// Updates the replication protected item settings. /// /// /// The operation to update the recovery settings of an ASR replication @@ -1344,7 +1396,7 @@ public static ReplicationProtectedItem BeginAddDisks(this IReplicationProtectedI /// The protection container name. /// /// - /// The replicated protected item's name. + /// The replicated protected item name. /// /// /// The ApplyRecoveryPointInput. @@ -1371,7 +1423,7 @@ public static ReplicationProtectedItem BeginApplyRecoveryPoint(this IReplication /// The protection container name. /// /// - /// The replicated protected item's name. + /// The replicated protected item name. /// /// /// The ApplyRecoveryPointInput. @@ -1388,7 +1440,59 @@ public static ReplicationProtectedItem BeginApplyRecoveryPoint(this IReplication } /// - /// Execute commit failover + /// Execute cancel failover. + /// + /// + /// Operation to cancel the failover of the replication protected item. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Unique fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Replication protected item name. + /// + public static ReplicationProtectedItem BeginFailoverCancel(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName) + { + return operations.BeginFailoverCancelAsync(fabricName, protectionContainerName, replicatedProtectedItemName).GetAwaiter().GetResult(); + } + + /// + /// Execute cancel failover. + /// + /// + /// Operation to cancel the failover of the replication protected item. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Unique fabric name. + /// + /// + /// Protection container name. + /// + /// + /// Replication protected item name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginFailoverCancelAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginFailoverCancelWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Execute commit failover. /// /// /// Operation to commit the failover of the replication protected item. @@ -1411,7 +1515,7 @@ public static ReplicationProtectedItem BeginFailoverCommit(this IReplicationProt } /// - /// Execute commit failover + /// Execute commit failover. /// /// /// Operation to commit the failover of the replication protected item. @@ -1440,7 +1544,7 @@ public static ReplicationProtectedItem BeginFailoverCommit(this IReplicationProt } /// - /// Execute planned failover + /// Execute planned failover. /// /// /// Operation to initiate a planned failover of the replication protected item. @@ -1458,7 +1562,7 @@ public static ReplicationProtectedItem BeginFailoverCommit(this IReplicationProt /// Replication protected item name. /// /// - /// Disable protection input. + /// Planned failover input. /// public static ReplicationProtectedItem BeginPlannedFailover(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, PlannedFailoverInput failoverInput) { @@ -1466,7 +1570,7 @@ public static ReplicationProtectedItem BeginPlannedFailover(this IReplicationPro } /// - /// Execute planned failover + /// Execute planned failover. /// /// /// Operation to initiate a planned failover of the replication protected item. @@ -1484,7 +1588,7 @@ public static ReplicationProtectedItem BeginPlannedFailover(this IReplicationPro /// Replication protected item name. /// /// - /// Disable protection input. + /// Planned failover input. /// /// /// The cancellation token. @@ -1667,7 +1771,7 @@ public static ReplicationProtectedItem BeginRepairReplication(this IReplicationP } /// - /// Execute Reverse Replication\Reprotect + /// Execute Reverse Replication\Reprotect. /// /// /// Operation to reprotect or reverse replicate a failed over replication @@ -1685,16 +1789,16 @@ public static ReplicationProtectedItem BeginRepairReplication(this IReplicationP /// /// Replication protected item name. /// - /// - /// Disable protection input. + /// + /// Reverse replication input. /// - public static ReplicationProtectedItem BeginReprotect(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput) + public static ReplicationProtectedItem BeginReprotect(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput reprotectInput) { - return operations.BeginReprotectAsync(fabricName, protectionContainerName, replicatedProtectedItemName, rrInput).GetAwaiter().GetResult(); + return operations.BeginReprotectAsync(fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput).GetAwaiter().GetResult(); } /// - /// Execute Reverse Replication\Reprotect + /// Execute Reverse Replication\Reprotect. /// /// /// Operation to reprotect or reverse replicate a failed over replication @@ -1712,15 +1816,15 @@ public static ReplicationProtectedItem BeginReprotect(this IReplicationProtected /// /// Replication protected item name. /// - /// - /// Disable protection input. + /// + /// Reverse replication input. /// /// /// The cancellation token. /// - public static async Task BeginReprotectAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput rrInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginReprotectAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationInput reprotectInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginReprotectWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, rrInput, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginReprotectWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1785,7 +1889,7 @@ public static ReplicationProtectedItem BeginResolveHealthErrors(this IReplicatio } /// - /// Execute test failover + /// Execute test failover. /// /// /// Operation to perform a test failover of the replication protected item. @@ -1802,16 +1906,16 @@ public static ReplicationProtectedItem BeginResolveHealthErrors(this IReplicatio /// /// Replication protected item name. /// - /// + /// /// Test failover input. /// - public static ReplicationProtectedItem BeginTestFailover(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput) + public static ReplicationProtectedItem BeginTestFailover(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput testfailoverInput) { - return operations.BeginTestFailoverAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput).GetAwaiter().GetResult(); + return operations.BeginTestFailoverAsync(fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput).GetAwaiter().GetResult(); } /// - /// Execute test failover + /// Execute test failover. /// /// /// Operation to perform a test failover of the replication protected item. @@ -1828,15 +1932,15 @@ public static ReplicationProtectedItem BeginTestFailover(this IReplicationProtec /// /// Replication protected item name. /// - /// + /// /// Test failover input. /// /// /// The cancellation token. /// - public static async Task BeginTestFailoverAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput failoverInput, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginTestFailoverAsync(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverInput testfailoverInput, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginTestFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginTestFailoverWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1901,7 +2005,7 @@ public static ReplicationProtectedItem BeginTestFailoverCleanup(this IReplicatio } /// - /// Execute unplanned failover + /// Execute unplanned failover. /// /// /// Operation to initiate a failover of the replication protected item. @@ -1919,7 +2023,7 @@ public static ReplicationProtectedItem BeginTestFailoverCleanup(this IReplicatio /// Replication protected item name. /// /// - /// Disable protection input. + /// Failover input. /// public static ReplicationProtectedItem BeginUnplannedFailover(this IReplicationProtectedItemsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverInput failoverInput) { @@ -1927,7 +2031,7 @@ public static ReplicationProtectedItem BeginUnplannedFailover(this IReplicationP } /// - /// Execute unplanned failover + /// Execute unplanned failover. /// /// /// Operation to initiate a failover of the replication protected item. @@ -1945,7 +2049,7 @@ public static ReplicationProtectedItem BeginUnplannedFailover(this IReplicationP /// Replication protected item name. /// /// - /// Disable protection input. + /// Failover input. /// /// /// The cancellation token. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionContainerMappingsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionContainerMappingsOperations.cs index 4d11c13e45b0..452c6f8a64c5 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionContainerMappingsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionContainerMappingsOperations.cs @@ -123,7 +123,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings").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)); @@ -260,7 +260,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement } /// - /// Gets a protection container mapping/ + /// Gets a protection container mapping. /// /// /// Gets the details of a protection container mapping. @@ -340,7 +340,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}").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)); @@ -512,7 +512,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement /// Purge protection container mapping. /// /// - /// The operation to purge(force delete) a protection container mapping + /// The operation to purge(force delete) a protection container mapping. /// /// /// Fabric name. @@ -655,7 +655,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement } // 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}/replicationProtectionContainerMappings").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionContainerMappings").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -878,7 +878,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}").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)); @@ -1025,7 +1025,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement /// Purge protection container mapping. /// /// - /// The operation to purge(force delete) a protection container mapping + /// The operation to purge(force delete) a protection container mapping. /// /// /// Fabric name. @@ -1099,7 +1099,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}").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)); @@ -1307,7 +1307,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}").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)); @@ -1536,7 +1536,7 @@ internal ReplicationProtectionContainerMappingsOperations(SiteRecoveryManagement } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}/remove").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}/remove").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionContainerMappingsOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionContainerMappingsOperationsExtensions.cs index c938338175e9..7e6c780dac1a 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionContainerMappingsOperationsExtensions.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionContainerMappingsOperationsExtensions.cs @@ -68,7 +68,7 @@ public static IPage ListByReplicationProtectionConta } /// - /// Gets a protection container mapping/ + /// Gets a protection container mapping. /// /// /// Gets the details of a protection container mapping. @@ -91,7 +91,7 @@ public static ProtectionContainerMapping Get(this IReplicationProtectionContaine } /// - /// Gets a protection container mapping/ + /// Gets a protection container mapping. /// /// /// Gets the details of a protection container mapping. @@ -181,7 +181,7 @@ public static ProtectionContainerMapping Create(this IReplicationProtectionConta /// Purge protection container mapping. /// /// - /// The operation to purge(force delete) a protection container mapping + /// The operation to purge(force delete) a protection container mapping. /// /// /// The operations group for this extension method. @@ -204,7 +204,7 @@ public static void Purge(this IReplicationProtectionContainerMappingsOperations /// Purge protection container mapping. /// /// - /// The operation to purge(force delete) a protection container mapping + /// The operation to purge(force delete) a protection container mapping. /// /// /// The operations group for this extension method. @@ -435,7 +435,7 @@ public static ProtectionContainerMapping BeginCreate(this IReplicationProtection /// Purge protection container mapping. /// /// - /// The operation to purge(force delete) a protection container mapping + /// The operation to purge(force delete) a protection container mapping. /// /// /// The operations group for this extension method. @@ -458,7 +458,7 @@ public static void BeginPurge(this IReplicationProtectionContainerMappingsOperat /// Purge protection container mapping. /// /// - /// The operation to purge(force delete) a protection container mapping + /// The operation to purge(force delete) a protection container mapping. /// /// /// The operations group for this extension method. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionContainersOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionContainersOperations.cs index 2bce3b9c0012..3ec981a78b00 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionContainersOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionContainersOperations.cs @@ -115,7 +115,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers").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)); @@ -323,7 +323,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}").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)); @@ -492,7 +492,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient /// /// /// The operation to a add a protectable item to a protection container(Add - /// physical server.) + /// physical server). /// /// /// The name of the fabric. @@ -628,7 +628,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient } // 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}/replicationProtectionContainers").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionContainers").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -843,7 +843,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}").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)); @@ -990,7 +990,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient /// /// /// The operation to a add a protectable item to a protection container(Add - /// physical server.) + /// physical server). /// /// /// The name of the fabric. @@ -1067,7 +1067,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/discoverProtectableItem").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/discoverProtectableItem").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1279,7 +1279,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/remove").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/remove").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1480,7 +1480,7 @@ internal ReplicationProtectionContainersOperations(SiteRecoveryManagementClient } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/switchprotection").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/switchprotection").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionContainersOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionContainersOperationsExtensions.cs index 3cf4004a316f..49cf35c9265b 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionContainersOperationsExtensions.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionContainersOperationsExtensions.cs @@ -164,7 +164,7 @@ public static ProtectionContainer Create(this IReplicationProtectionContainersOp /// /// /// The operation to a add a protectable item to a protection container(Add - /// physical server.) + /// physical server). /// /// /// The operations group for this extension method. @@ -188,7 +188,7 @@ public static ProtectionContainer DiscoverProtectableItem(this IReplicationProte /// /// /// The operation to a add a protectable item to a protection container(Add - /// physical server.) + /// physical server). /// /// /// The operations group for this extension method. @@ -403,7 +403,7 @@ public static ProtectionContainer BeginCreate(this IReplicationProtectionContain /// /// /// The operation to a add a protectable item to a protection container(Add - /// physical server.) + /// physical server). /// /// /// The operations group for this extension method. @@ -427,7 +427,7 @@ public static ProtectionContainer BeginDiscoverProtectableItem(this IReplication /// /// /// The operation to a add a protectable item to a protection container(Add - /// physical server.) + /// physical server). /// /// /// The operations group for this extension method. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionIntentsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionIntentsOperations.cs new file mode 100644 index 000000000000..46e42c3e945f --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionIntentsOperations.cs @@ -0,0 +1,876 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ReplicationProtectionIntentsOperations operations. + /// + internal partial class ReplicationProtectionIntentsOperations : IServiceOperations, IReplicationProtectionIntentsOperations + { + /// + /// Initializes a new instance of the ReplicationProtectionIntentsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ReplicationProtectionIntentsOperations(SiteRecoveryManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SiteRecoveryManagementClient + /// + public SiteRecoveryManagementClient Client { get; private set; } + + /// + /// Gets the list of replication protection intent objects. + /// + /// + /// Gets the list of ASR replication protection intent objects in the vault. + /// + /// + /// The pagination token. + /// + /// + /// The page size. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string skipToken = default(string), string takeToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ResourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceName"); + } + if (Client.ResourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("takeToken", takeToken); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionIntents").ToString(); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (skipToken != null) + { + _queryParameters.Add(string.Format("skipToken={0}", System.Uri.EscapeDataString(skipToken))); + } + if (takeToken != null) + { + _queryParameters.Add(string.Format("takeToken={0}", System.Uri.EscapeDataString(takeToken))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the details of a Replication protection intent item. + /// + /// + /// Gets the details of an ASR replication protection intent. + /// + /// + /// Replication protection intent name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string intentObjectName, 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 (intentObjectName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "intentObjectName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("intentObjectName", intentObjectName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionIntents/{intentObjectName}").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("{intentObjectName}", System.Uri.EscapeDataString(intentObjectName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create protection intent Resource. + /// + /// + /// The operation to create an ASR replication protection intent item. + /// + /// + /// A name for the replication protection item. + /// + /// + /// Create Protection Intent Input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string intentObjectName, CreateProtectionIntentInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(intentObjectName, input, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create protection intent Resource. + /// + /// + /// The operation to create an ASR replication protection intent item. + /// + /// + /// A name for the replication protection item. + /// + /// + /// Create Protection Intent Input. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateWithHttpMessagesAsync(string intentObjectName, CreateProtectionIntentInput input, 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 (intentObjectName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "intentObjectName"); + } + if (input == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "input"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("intentObjectName", intentObjectName); + tracingParameters.Add("input", input); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionIntents/{intentObjectName}").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("{intentObjectName}", System.Uri.EscapeDataString(intentObjectName)); + 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("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(input != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(input, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the list of replication protection intent objects. + /// + /// + /// Gets the list of ASR replication protection intent objects in the vault. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionIntentsOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionIntentsOperationsExtensions.cs new file mode 100644 index 000000000000..7e509bba7bfd --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionIntentsOperationsExtensions.cs @@ -0,0 +1,243 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ReplicationProtectionIntentsOperations. + /// + public static partial class ReplicationProtectionIntentsOperationsExtensions + { + /// + /// Gets the list of replication protection intent objects. + /// + /// + /// Gets the list of ASR replication protection intent objects in the vault. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The pagination token. + /// + /// + /// The page size. + /// + public static IPage List(this IReplicationProtectionIntentsOperations operations, string skipToken = default(string), string takeToken = default(string)) + { + return operations.ListAsync(skipToken, takeToken).GetAwaiter().GetResult(); + } + + /// + /// Gets the list of replication protection intent objects. + /// + /// + /// Gets the list of ASR replication protection intent objects in the vault. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The pagination token. + /// + /// + /// The page size. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IReplicationProtectionIntentsOperations operations, string skipToken = default(string), string takeToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(skipToken, takeToken, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the details of a Replication protection intent item. + /// + /// + /// Gets the details of an ASR replication protection intent. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Replication protection intent name. + /// + public static ReplicationProtectionIntent Get(this IReplicationProtectionIntentsOperations operations, string intentObjectName) + { + return operations.GetAsync(intentObjectName).GetAwaiter().GetResult(); + } + + /// + /// Gets the details of a Replication protection intent item. + /// + /// + /// Gets the details of an ASR replication protection intent. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Replication protection intent name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IReplicationProtectionIntentsOperations operations, string intentObjectName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(intentObjectName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create protection intent Resource. + /// + /// + /// The operation to create an ASR replication protection intent item. + /// + /// + /// The operations group for this extension method. + /// + /// + /// A name for the replication protection item. + /// + /// + /// Create Protection Intent Input. + /// + public static ReplicationProtectionIntent Create(this IReplicationProtectionIntentsOperations operations, string intentObjectName, CreateProtectionIntentInput input) + { + return operations.CreateAsync(intentObjectName, input).GetAwaiter().GetResult(); + } + + /// + /// Create protection intent Resource. + /// + /// + /// The operation to create an ASR replication protection intent item. + /// + /// + /// The operations group for this extension method. + /// + /// + /// A name for the replication protection item. + /// + /// + /// Create Protection Intent Input. + /// + /// + /// The cancellation token. + /// + public static async Task CreateAsync(this IReplicationProtectionIntentsOperations operations, string intentObjectName, CreateProtectionIntentInput input, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateWithHttpMessagesAsync(intentObjectName, input, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create protection intent Resource. + /// + /// + /// The operation to create an ASR replication protection intent item. + /// + /// + /// The operations group for this extension method. + /// + /// + /// A name for the replication protection item. + /// + /// + /// Create Protection Intent Input. + /// + public static ReplicationProtectionIntent BeginCreate(this IReplicationProtectionIntentsOperations operations, string intentObjectName, CreateProtectionIntentInput input) + { + return operations.BeginCreateAsync(intentObjectName, input).GetAwaiter().GetResult(); + } + + /// + /// Create protection intent Resource. + /// + /// + /// The operation to create an ASR replication protection intent item. + /// + /// + /// The operations group for this extension method. + /// + /// + /// A name for the replication protection item. + /// + /// + /// Create Protection Intent Input. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateAsync(this IReplicationProtectionIntentsOperations operations, string intentObjectName, CreateProtectionIntentInput input, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(intentObjectName, input, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the list of replication protection intent objects. + /// + /// + /// Gets the list of ASR replication protection intent objects in the vault. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IReplicationProtectionIntentsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets the list of replication protection intent objects. + /// + /// + /// Gets the list of ASR replication protection intent objects in the vault. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IReplicationProtectionIntentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationRecoveryPlansOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationRecoveryPlansOperations.cs index bbd47beb211c..d141ba2b692a 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationRecoveryPlansOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationRecoveryPlansOperations.cs @@ -107,7 +107,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -306,7 +306,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}").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)); @@ -498,7 +498,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) /// Recovery plan name. /// /// - /// Update recovery plan input + /// Update recovery plan input. /// /// /// The headers that will be added to request. @@ -513,11 +513,33 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Execute cancel failover of the recovery plan. + /// + /// + /// The operation to cancel the failover of a recovery plan. + /// + /// + /// Recovery plan name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> FailoverCancelWithHttpMessagesAsync(string recoveryPlanName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginFailoverCancelWithHttpMessagesAsync(recoveryPlanName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Execute commit failover of the recovery plan. /// /// - /// The operation to commit the fail over of a recovery plan. + /// The operation to commit the failover of a recovery plan. /// /// /// Recovery plan name. @@ -592,7 +614,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) /// Recovery plan name. /// /// - /// Failover input. + /// Recovery plan test failover input. /// /// /// The headers that will be added to request. @@ -617,7 +639,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) /// Recovery plan name. /// /// - /// Test failover cleanup input. + /// Recovery plan test failover cleanup input. /// /// /// The headers that will be added to request. @@ -636,13 +658,13 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) /// Execute unplanned failover of the recovery plan. /// /// - /// The operation to start the failover of a recovery plan. + /// The operation to start the unplanned failover of a recovery plan. /// /// /// Recovery plan name. /// /// - /// Failover input. + /// Recovery plan unplanned failover input. /// /// /// The headers that will be added to request. @@ -734,7 +756,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}").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)); @@ -937,7 +959,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}").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)); @@ -1064,7 +1086,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) /// Recovery plan name. /// /// - /// Update recovery plan input + /// Update recovery plan input. /// /// /// Headers that will be added to request. @@ -1127,7 +1149,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}").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)); @@ -1268,11 +1290,211 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) return _result; } + /// + /// Execute cancel failover of the recovery plan. + /// + /// + /// The operation to cancel the failover of a recovery plan. + /// + /// + /// Recovery plan name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginFailoverCancelWithHttpMessagesAsync(string recoveryPlanName, 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 (recoveryPlanName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "recoveryPlanName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("recoveryPlanName", recoveryPlanName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginFailoverCancel", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/failoverCancel").ToString(); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{recoveryPlanName}", System.Uri.EscapeDataString(recoveryPlanName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Execute commit failover of the recovery plan. /// /// - /// The operation to commit the fail over of a recovery plan. + /// The operation to commit the failover of a recovery plan. /// /// /// Recovery plan name. @@ -1333,7 +1555,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/failoverCommit").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/failoverCommit").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1545,7 +1767,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/plannedFailover").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/plannedFailover").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1751,7 +1973,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/reProtect").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/reProtect").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1896,7 +2118,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) /// Recovery plan name. /// /// - /// Failover input. + /// Recovery plan test failover input. /// /// /// Headers that will be added to request. @@ -1963,7 +2185,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailover").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailover").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -2114,7 +2336,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) /// Recovery plan name. /// /// - /// Test failover cleanup input. + /// Recovery plan test failover cleanup input. /// /// /// Headers that will be added to request. @@ -2181,7 +2403,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailoverCleanup").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailoverCleanup").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -2326,13 +2548,13 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) /// Execute unplanned failover of the recovery plan. /// /// - /// The operation to start the failover of a recovery plan. + /// The operation to start the unplanned failover of a recovery plan. /// /// /// Recovery plan name. /// /// - /// Failover input. + /// Recovery plan unplanned failover input. /// /// /// Headers that will be added to request. @@ -2399,7 +2621,7 @@ internal ReplicationRecoveryPlansOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/unplannedFailover").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/unplannedFailover").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationRecoveryPlansOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationRecoveryPlansOperationsExtensions.cs index be3bc8457e26..5dcd1e3848ae 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationRecoveryPlansOperationsExtensions.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationRecoveryPlansOperationsExtensions.cs @@ -191,7 +191,7 @@ public static void Delete(this IReplicationRecoveryPlansOperations operations, s /// Recovery plan name. /// /// - /// Update recovery plan input + /// Update recovery plan input. /// public static RecoveryPlan Update(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, UpdateRecoveryPlanInput input) { @@ -211,7 +211,7 @@ public static RecoveryPlan Update(this IReplicationRecoveryPlansOperations opera /// Recovery plan name. /// /// - /// Update recovery plan input + /// Update recovery plan input. /// /// /// The cancellation token. @@ -224,11 +224,51 @@ public static RecoveryPlan Update(this IReplicationRecoveryPlansOperations opera } } + /// + /// Execute cancel failover of the recovery plan. + /// + /// + /// The operation to cancel the failover of a recovery plan. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Recovery plan name. + /// + public static RecoveryPlan FailoverCancel(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName) + { + return operations.FailoverCancelAsync(recoveryPlanName).GetAwaiter().GetResult(); + } + + /// + /// Execute cancel failover of the recovery plan. + /// + /// + /// The operation to cancel the failover of a recovery plan. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Recovery plan name. + /// + /// + /// The cancellation token. + /// + public static async Task FailoverCancelAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.FailoverCancelWithHttpMessagesAsync(recoveryPlanName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Execute commit failover of the recovery plan. /// /// - /// The operation to commit the fail over of a recovery plan. + /// The operation to commit the failover of a recovery plan. /// /// /// The operations group for this extension method. @@ -245,7 +285,7 @@ public static RecoveryPlan FailoverCommit(this IReplicationRecoveryPlansOperatio /// Execute commit failover of the recovery plan. /// /// - /// The operation to commit the fail over of a recovery plan. + /// The operation to commit the failover of a recovery plan. /// /// /// The operations group for this extension method. @@ -363,7 +403,7 @@ public static RecoveryPlan Reprotect(this IReplicationRecoveryPlansOperations op /// Recovery plan name. /// /// - /// Failover input. + /// Recovery plan test failover input. /// public static RecoveryPlan TestFailover(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverInput input) { @@ -383,7 +423,7 @@ public static RecoveryPlan TestFailover(this IReplicationRecoveryPlansOperations /// Recovery plan name. /// /// - /// Failover input. + /// Recovery plan test failover input. /// /// /// The cancellation token. @@ -409,7 +449,7 @@ public static RecoveryPlan TestFailover(this IReplicationRecoveryPlansOperations /// Recovery plan name. /// /// - /// Test failover cleanup input. + /// Recovery plan test failover cleanup input. /// public static RecoveryPlan TestFailoverCleanup(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input) { @@ -429,7 +469,7 @@ public static RecoveryPlan TestFailoverCleanup(this IReplicationRecoveryPlansOpe /// Recovery plan name. /// /// - /// Test failover cleanup input. + /// Recovery plan test failover cleanup input. /// /// /// The cancellation token. @@ -446,7 +486,7 @@ public static RecoveryPlan TestFailoverCleanup(this IReplicationRecoveryPlansOpe /// Execute unplanned failover of the recovery plan. /// /// - /// The operation to start the failover of a recovery plan. + /// The operation to start the unplanned failover of a recovery plan. /// /// /// The operations group for this extension method. @@ -455,7 +495,7 @@ public static RecoveryPlan TestFailoverCleanup(this IReplicationRecoveryPlansOpe /// Recovery plan name. /// /// - /// Failover input. + /// Recovery plan unplanned failover input. /// public static RecoveryPlan UnplannedFailover(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanUnplannedFailoverInput input) { @@ -466,7 +506,7 @@ public static RecoveryPlan UnplannedFailover(this IReplicationRecoveryPlansOpera /// Execute unplanned failover of the recovery plan. /// /// - /// The operation to start the failover of a recovery plan. + /// The operation to start the unplanned failover of a recovery plan. /// /// /// The operations group for this extension method. @@ -475,7 +515,7 @@ public static RecoveryPlan UnplannedFailover(this IReplicationRecoveryPlansOpera /// Recovery plan name. /// /// - /// Failover input. + /// Recovery plan unplanned failover input. /// /// /// The cancellation token. @@ -584,7 +624,7 @@ public static void BeginDelete(this IReplicationRecoveryPlansOperations operatio /// Recovery plan name. /// /// - /// Update recovery plan input + /// Update recovery plan input. /// public static RecoveryPlan BeginUpdate(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, UpdateRecoveryPlanInput input) { @@ -604,7 +644,7 @@ public static RecoveryPlan BeginUpdate(this IReplicationRecoveryPlansOperations /// Recovery plan name. /// /// - /// Update recovery plan input + /// Update recovery plan input. /// /// /// The cancellation token. @@ -617,11 +657,51 @@ public static RecoveryPlan BeginUpdate(this IReplicationRecoveryPlansOperations } } + /// + /// Execute cancel failover of the recovery plan. + /// + /// + /// The operation to cancel the failover of a recovery plan. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Recovery plan name. + /// + public static RecoveryPlan BeginFailoverCancel(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName) + { + return operations.BeginFailoverCancelAsync(recoveryPlanName).GetAwaiter().GetResult(); + } + + /// + /// Execute cancel failover of the recovery plan. + /// + /// + /// The operation to cancel the failover of a recovery plan. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Recovery plan name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginFailoverCancelAsync(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginFailoverCancelWithHttpMessagesAsync(recoveryPlanName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Execute commit failover of the recovery plan. /// /// - /// The operation to commit the fail over of a recovery plan. + /// The operation to commit the failover of a recovery plan. /// /// /// The operations group for this extension method. @@ -638,7 +718,7 @@ public static RecoveryPlan BeginFailoverCommit(this IReplicationRecoveryPlansOpe /// Execute commit failover of the recovery plan. /// /// - /// The operation to commit the fail over of a recovery plan. + /// The operation to commit the failover of a recovery plan. /// /// /// The operations group for this extension method. @@ -756,7 +836,7 @@ public static RecoveryPlan BeginReprotect(this IReplicationRecoveryPlansOperatio /// Recovery plan name. /// /// - /// Failover input. + /// Recovery plan test failover input. /// public static RecoveryPlan BeginTestFailover(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverInput input) { @@ -776,7 +856,7 @@ public static RecoveryPlan BeginTestFailover(this IReplicationRecoveryPlansOpera /// Recovery plan name. /// /// - /// Failover input. + /// Recovery plan test failover input. /// /// /// The cancellation token. @@ -802,7 +882,7 @@ public static RecoveryPlan BeginTestFailover(this IReplicationRecoveryPlansOpera /// Recovery plan name. /// /// - /// Test failover cleanup input. + /// Recovery plan test failover cleanup input. /// public static RecoveryPlan BeginTestFailoverCleanup(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanTestFailoverCleanupInput input) { @@ -822,7 +902,7 @@ public static RecoveryPlan BeginTestFailoverCleanup(this IReplicationRecoveryPla /// Recovery plan name. /// /// - /// Test failover cleanup input. + /// Recovery plan test failover cleanup input. /// /// /// The cancellation token. @@ -839,7 +919,7 @@ public static RecoveryPlan BeginTestFailoverCleanup(this IReplicationRecoveryPla /// Execute unplanned failover of the recovery plan. /// /// - /// The operation to start the failover of a recovery plan. + /// The operation to start the unplanned failover of a recovery plan. /// /// /// The operations group for this extension method. @@ -848,7 +928,7 @@ public static RecoveryPlan BeginTestFailoverCleanup(this IReplicationRecoveryPla /// Recovery plan name. /// /// - /// Failover input. + /// Recovery plan unplanned failover input. /// public static RecoveryPlan BeginUnplannedFailover(this IReplicationRecoveryPlansOperations operations, string recoveryPlanName, RecoveryPlanUnplannedFailoverInput input) { @@ -859,7 +939,7 @@ public static RecoveryPlan BeginUnplannedFailover(this IReplicationRecoveryPlans /// Execute unplanned failover of the recovery plan. /// /// - /// The operation to start the failover of a recovery plan. + /// The operation to start the unplanned failover of a recovery plan. /// /// /// The operations group for this extension method. @@ -868,7 +948,7 @@ public static RecoveryPlan BeginUnplannedFailover(this IReplicationRecoveryPlans /// Recovery plan name. /// /// - /// Failover input. + /// Recovery plan unplanned failover input. /// /// /// The cancellation token. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationRecoveryServicesProvidersOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationRecoveryServicesProvidersOperations.cs index e46be782520d..b3dac9958681 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationRecoveryServicesProvidersOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationRecoveryServicesProvidersOperations.cs @@ -57,7 +57,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl /// Lists the registered recovery services providers for the specified fabric. /// /// - /// Fabric name + /// Fabric name. /// /// /// Headers that will be added to request. @@ -115,7 +115,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders").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)); @@ -260,7 +260,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl /// Fabric name. /// /// - /// Recovery services provider name + /// Recovery services provider name. /// /// /// Headers that will be added to request. @@ -323,7 +323,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}").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)); @@ -488,7 +488,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl } /// - /// Purges recovery service provider from fabric + /// Purges recovery service provider from fabric. /// /// /// The operation to purge(force delete) a recovery services provider from the @@ -547,7 +547,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl /// /// /// The operation to removes/delete(unregister) a recovery services provider - /// from the vault + /// from the vault. /// /// /// Fabric name. @@ -573,7 +573,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl /// is a view only api. /// /// - /// Lists the registered recovery services providers in the vault + /// Lists the registered recovery services providers in the vault. /// /// /// Headers that will be added to request. @@ -626,7 +626,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl } // 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}/replicationRecoveryServicesProviders").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryServicesProviders").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -845,7 +845,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}").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)); @@ -988,7 +988,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl } /// - /// Purges recovery service provider from fabric + /// Purges recovery service provider from fabric. /// /// /// The operation to purge(force delete) a recovery services provider from the @@ -1058,7 +1058,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}").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)); @@ -1250,7 +1250,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}/refreshProvider").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}/refreshProvider").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1394,7 +1394,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl /// /// /// The operation to removes/delete(unregister) a recovery services provider - /// from the vault + /// from the vault. /// /// /// Fabric name. @@ -1460,7 +1460,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}/remove").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}/remove").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1759,7 +1759,7 @@ internal ReplicationRecoveryServicesProvidersOperations(SiteRecoveryManagementCl /// is a view only api. /// /// - /// Lists the registered recovery services providers in the vault + /// Lists the registered recovery services providers in the vault. /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationRecoveryServicesProvidersOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationRecoveryServicesProvidersOperationsExtensions.cs index 6a84572d61cf..43f6feea9953 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationRecoveryServicesProvidersOperationsExtensions.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationRecoveryServicesProvidersOperationsExtensions.cs @@ -31,7 +31,7 @@ public static partial class ReplicationRecoveryServicesProvidersOperationsExtens /// The operations group for this extension method. /// /// - /// Fabric name + /// Fabric name. /// public static IPage ListByReplicationFabrics(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName) { @@ -48,7 +48,7 @@ public static IPage ListByReplicationFabrics(this IRep /// The operations group for this extension method. /// /// - /// Fabric name + /// Fabric name. /// /// /// The cancellation token. @@ -74,7 +74,7 @@ public static IPage ListByReplicationFabrics(this IRep /// Fabric name. /// /// - /// Recovery services provider name + /// Recovery services provider name. /// public static RecoveryServicesProvider Get(this IReplicationRecoveryServicesProvidersOperations operations, string fabricName, string providerName) { @@ -94,7 +94,7 @@ public static RecoveryServicesProvider Get(this IReplicationRecoveryServicesProv /// Fabric name. /// /// - /// Recovery services provider name + /// Recovery services provider name. /// /// /// The cancellation token. @@ -160,7 +160,7 @@ public static RecoveryServicesProvider Create(this IReplicationRecoveryServicesP } /// - /// Purges recovery service provider from fabric + /// Purges recovery service provider from fabric. /// /// /// The operation to purge(force delete) a recovery services provider from the @@ -181,7 +181,7 @@ public static void Purge(this IReplicationRecoveryServicesProvidersOperations op } /// - /// Purges recovery service provider from fabric + /// Purges recovery service provider from fabric. /// /// /// The operation to purge(force delete) a recovery services provider from the @@ -260,7 +260,7 @@ public static RecoveryServicesProvider RefreshProvider(this IReplicationRecovery /// /// /// The operation to removes/delete(unregister) a recovery services provider - /// from the vault + /// from the vault. /// /// /// The operations group for this extension method. @@ -284,7 +284,7 @@ public static void Delete(this IReplicationRecoveryServicesProvidersOperations o /// /// /// The operation to removes/delete(unregister) a recovery services provider - /// from the vault + /// from the vault. /// /// /// The operations group for this extension method. @@ -308,7 +308,7 @@ public static void Delete(this IReplicationRecoveryServicesProvidersOperations o /// is a view only api. /// /// - /// Lists the registered recovery services providers in the vault + /// Lists the registered recovery services providers in the vault. /// /// /// The operations group for this extension method. @@ -323,7 +323,7 @@ public static IPage List(this IReplicationRecoveryServ /// is a view only api. /// /// - /// Lists the registered recovery services providers in the vault + /// Lists the registered recovery services providers in the vault. /// /// /// The operations group for this extension method. @@ -392,7 +392,7 @@ public static RecoveryServicesProvider BeginCreate(this IReplicationRecoveryServ } /// - /// Purges recovery service provider from fabric + /// Purges recovery service provider from fabric. /// /// /// The operation to purge(force delete) a recovery services provider from the @@ -413,7 +413,7 @@ public static void BeginPurge(this IReplicationRecoveryServicesProvidersOperatio } /// - /// Purges recovery service provider from fabric + /// Purges recovery service provider from fabric. /// /// /// The operation to purge(force delete) a recovery services provider from the @@ -492,7 +492,7 @@ public static RecoveryServicesProvider BeginRefreshProvider(this IReplicationRec /// /// /// The operation to removes/delete(unregister) a recovery services provider - /// from the vault + /// from the vault. /// /// /// The operations group for this extension method. @@ -516,7 +516,7 @@ public static void BeginDelete(this IReplicationRecoveryServicesProvidersOperati /// /// /// The operation to removes/delete(unregister) a recovery services provider - /// from the vault + /// from the vault. /// /// /// The operations group for this extension method. @@ -580,7 +580,7 @@ public static IPage ListByReplicationFabricsNext(this /// is a view only api. /// /// - /// Lists the registered recovery services providers in the vault + /// Lists the registered recovery services providers in the vault. /// /// /// The operations group for this extension method. @@ -598,7 +598,7 @@ public static IPage ListNext(this IReplicationRecovery /// is a view only api. /// /// - /// Lists the registered recovery services providers in the vault + /// Lists the registered recovery services providers in the vault. /// /// /// The operations group for this extension method. diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationStorageClassificationMappingsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationStorageClassificationMappingsOperations.cs index e2ee201eb437..cb1f364b1dd3 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationStorageClassificationMappingsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationStorageClassificationMappingsOperations.cs @@ -123,7 +123,7 @@ internal ReplicationStorageClassificationMappingsOperations(SiteRecoveryManageme } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings").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)); @@ -340,7 +340,7 @@ internal ReplicationStorageClassificationMappingsOperations(SiteRecoveryManageme } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings/{storageClassificationMappingName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings/{storageClassificationMappingName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -593,7 +593,7 @@ internal ReplicationStorageClassificationMappingsOperations(SiteRecoveryManageme } // 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}/replicationStorageClassificationMappings").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationStorageClassificationMappings").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -816,7 +816,7 @@ internal ReplicationStorageClassificationMappingsOperations(SiteRecoveryManageme } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings/{storageClassificationMappingName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings/{storageClassificationMappingName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1037,7 +1037,7 @@ internal ReplicationStorageClassificationMappingsOperations(SiteRecoveryManageme } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings/{storageClassificationMappingName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings/{storageClassificationMappingName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationStorageClassificationsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationStorageClassificationsOperations.cs index 10c902f3f812..5ee06c98c5e3 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationStorageClassificationsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationStorageClassificationsOperations.cs @@ -115,7 +115,7 @@ internal ReplicationStorageClassificationsOperations(SiteRecoveryManagementClien } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications").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)); @@ -323,7 +323,7 @@ internal ReplicationStorageClassificationsOperations(SiteRecoveryManagementClien } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -516,7 +516,7 @@ internal ReplicationStorageClassificationsOperations(SiteRecoveryManagementClien } // 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}/replicationStorageClassifications").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationStorageClassifications").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationVaultHealthOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationVaultHealthOperations.cs index 84570a72245a..82fa84fecade 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationVaultHealthOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationVaultHealthOperations.cs @@ -107,7 +107,7 @@ internal ReplicationVaultHealthOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultHealth").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultHealth").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)); @@ -311,7 +311,7 @@ internal ReplicationVaultHealthOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultHealth/default/refresh").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultHealth/default/refresh").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationVaultSettingOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationVaultSettingOperations.cs index f8a683edadbf..0e7f6d540948 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationVaultSettingOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationVaultSettingOperations.cs @@ -108,7 +108,7 @@ internal ReplicationVaultSettingOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultSettings").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultSettings").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)); @@ -308,7 +308,7 @@ internal ReplicationVaultSettingOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultSettings/{vaultSettingName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultSettings/{vaultSettingName}").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)); @@ -443,6 +443,32 @@ internal ReplicationVaultSettingOperations(SiteRecoveryManagementClient client) return _result; } + /// + /// Updates vault setting. A vault setting object is a singleton per vault and + /// it is always present by default. + /// + /// + /// The operation to configure vault setting. + /// + /// + /// Vault setting name. + /// + /// + /// Vault setting creation input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string vaultSettingName, VaultSettingCreationInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(vaultSettingName, input, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Updates vault setting. A vault setting object is a singleton per vault and /// it is always present by default. @@ -477,7 +503,7 @@ internal ReplicationVaultSettingOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateWithHttpMessagesAsync(string vaultSettingName, VaultSettingCreationInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateWithHttpMessagesAsync(string vaultSettingName, VaultSettingCreationInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -517,11 +543,11 @@ internal ReplicationVaultSettingOperations(SiteRecoveryManagementClient client) tracingParameters.Add("vaultSettingName", vaultSettingName); tracingParameters.Add("input", input); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Create", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultSettings/{vaultSettingName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultSettings/{vaultSettingName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationVaultSettingOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationVaultSettingOperationsExtensions.cs index 5872a91840a5..ff01736c08ee 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationVaultSettingOperationsExtensions.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationVaultSettingOperationsExtensions.cs @@ -147,6 +147,54 @@ public static VaultSetting Create(this IReplicationVaultSettingOperations operat } } + /// + /// Updates vault setting. A vault setting object is a singleton per vault and + /// it is always present by default. + /// + /// + /// The operation to configure vault setting. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Vault setting name. + /// + /// + /// Vault setting creation input. + /// + public static VaultSetting BeginCreate(this IReplicationVaultSettingOperations operations, string vaultSettingName, VaultSettingCreationInput input) + { + return operations.BeginCreateAsync(vaultSettingName, input).GetAwaiter().GetResult(); + } + + /// + /// Updates vault setting. A vault setting object is a singleton per vault and + /// it is always present by default. + /// + /// + /// The operation to configure vault setting. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Vault setting name. + /// + /// + /// Vault setting creation input. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateAsync(this IReplicationVaultSettingOperations operations, string vaultSettingName, VaultSettingCreationInput input, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(vaultSettingName, input, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Gets the list of vault setting. /// diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationvCentersOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationvCentersOperations.cs index 1588f6500123..66d12fea5135 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationvCentersOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationvCentersOperations.cs @@ -115,7 +115,7 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters").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)); @@ -254,13 +254,13 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) /// Gets the details of a vCenter. /// /// - /// Gets the details of a registered vCenter server(Add vCenter server.) + /// Gets the details of a registered vCenter server(Add vCenter server). /// /// /// Fabric name. /// - /// - /// vCenter name. + /// + /// vcenter name. /// /// /// Headers that will be added to request. @@ -283,7 +283,7 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string fabricName, string vCenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string fabricName, string vcenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -305,9 +305,9 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); } - if (vCenterName == null) + if (vcenterName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "vCenterName"); + throw new ValidationException(ValidationRules.CannotBeNull, "vcenterName"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -317,18 +317,18 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); - tracingParameters.Add("vCenterName", vCenterName); + tracingParameters.Add("vcenterName", vcenterName); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vCenterName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vcenterName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{fabricName}", System.Uri.EscapeDataString(fabricName)); - _url = _url.Replace("{vCenterName}", System.Uri.EscapeDataString(vCenterName)); + _url = _url.Replace("{vcenterName}", System.Uri.EscapeDataString(vcenterName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -468,8 +468,8 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) /// /// Fabric name. /// - /// - /// vCenter name. + /// + /// vcenter name. /// /// /// The input to the add vCenter operation. @@ -480,15 +480,15 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) /// /// The cancellation token. /// - public async Task> CreateWithHttpMessagesAsync(string fabricName, string vCenterName, AddVCenterRequest addVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateWithHttpMessagesAsync(string fabricName, string vcenterName, AddVCenterRequest addVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(fabricName, vCenterName, addVCenterRequest, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(fabricName, vcenterName, addVCenterRequest, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Remove vCenter operation. + /// Remove vcenter operation. /// /// /// The operation to remove(unregister) a registered vCenter server from the @@ -497,8 +497,8 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) /// /// Fabric name. /// - /// - /// vCenter name. + /// + /// vcenter name. /// /// /// The headers that will be added to request. @@ -506,10 +506,10 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) /// /// The cancellation token. /// - public async Task DeleteWithHttpMessagesAsync(string fabricName, string vCenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string fabricName, string vcenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(fabricName, vCenterName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(fabricName, vcenterName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -522,8 +522,8 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) /// /// Fabric name. /// - /// - /// vCenter name + /// + /// vcenter name. /// /// /// The input to the update vCenter operation. @@ -534,10 +534,10 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) /// /// The cancellation token. /// - public async Task> UpdateWithHttpMessagesAsync(string fabricName, string vCenterName, UpdateVCenterRequest updateVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string fabricName, string vcenterName, UpdateVCenterRequest updateVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(fabricName, vCenterName, updateVCenterRequest, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(fabricName, vcenterName, updateVCenterRequest, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -598,7 +598,7 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationvCenters").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationvCenters").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -741,8 +741,8 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) /// /// Fabric name. /// - /// - /// vCenter name. + /// + /// vcenter name. /// /// /// The input to the add vCenter operation. @@ -768,7 +768,7 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateWithHttpMessagesAsync(string fabricName, string vCenterName, AddVCenterRequest addVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateWithHttpMessagesAsync(string fabricName, string vcenterName, AddVCenterRequest addVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -790,9 +790,9 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); } - if (vCenterName == null) + if (vcenterName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "vCenterName"); + throw new ValidationException(ValidationRules.CannotBeNull, "vcenterName"); } if (addVCenterRequest == null) { @@ -806,19 +806,19 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); - tracingParameters.Add("vCenterName", vCenterName); + tracingParameters.Add("vcenterName", vcenterName); tracingParameters.Add("addVCenterRequest", addVCenterRequest); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vCenterName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vcenterName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{fabricName}", System.Uri.EscapeDataString(fabricName)); - _url = _url.Replace("{vCenterName}", System.Uri.EscapeDataString(vCenterName)); + _url = _url.Replace("{vcenterName}", System.Uri.EscapeDataString(vcenterName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -956,7 +956,7 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) } /// - /// Remove vCenter operation. + /// Remove vcenter operation. /// /// /// The operation to remove(unregister) a registered vCenter server from the @@ -965,8 +965,8 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) /// /// Fabric name. /// - /// - /// vCenter name. + /// + /// vcenter name. /// /// /// Headers that will be added to request. @@ -986,7 +986,7 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string fabricName, string vCenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginDeleteWithHttpMessagesAsync(string fabricName, string vcenterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1008,9 +1008,9 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); } - if (vCenterName == null) + if (vcenterName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "vCenterName"); + throw new ValidationException(ValidationRules.CannotBeNull, "vcenterName"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -1020,18 +1020,18 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); - tracingParameters.Add("vCenterName", vCenterName); + tracingParameters.Add("vcenterName", vcenterName); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vCenterName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vcenterName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{fabricName}", System.Uri.EscapeDataString(fabricName)); - _url = _url.Replace("{vCenterName}", System.Uri.EscapeDataString(vCenterName)); + _url = _url.Replace("{vcenterName}", System.Uri.EscapeDataString(vcenterName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -1153,8 +1153,8 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) /// /// Fabric name. /// - /// - /// vCenter name + /// + /// vcenter name. /// /// /// The input to the update vCenter operation. @@ -1180,7 +1180,7 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginUpdateWithHttpMessagesAsync(string fabricName, string vCenterName, UpdateVCenterRequest updateVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginUpdateWithHttpMessagesAsync(string fabricName, string vcenterName, UpdateVCenterRequest updateVCenterRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1202,9 +1202,9 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); } - if (vCenterName == null) + if (vcenterName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "vCenterName"); + throw new ValidationException(ValidationRules.CannotBeNull, "vcenterName"); } if (updateVCenterRequest == null) { @@ -1218,19 +1218,19 @@ internal ReplicationvCentersOperations(SiteRecoveryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("fabricName", fabricName); - tracingParameters.Add("vCenterName", vCenterName); + tracingParameters.Add("vcenterName", vcenterName); tracingParameters.Add("updateVCenterRequest", updateVCenterRequest); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vCenterName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vcenterName}").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{fabricName}", System.Uri.EscapeDataString(fabricName)); - _url = _url.Replace("{vCenterName}", System.Uri.EscapeDataString(vCenterName)); + _url = _url.Replace("{vcenterName}", System.Uri.EscapeDataString(vcenterName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationvCentersOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationvCentersOperationsExtensions.cs index 8b58b9d1224a..f528a91c73ca 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationvCentersOperationsExtensions.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationvCentersOperationsExtensions.cs @@ -65,7 +65,7 @@ public static IPage ListByReplicationFabrics(this IReplicationvCentersO /// Gets the details of a vCenter. /// /// - /// Gets the details of a registered vCenter server(Add vCenter server.) + /// Gets the details of a registered vCenter server(Add vCenter server). /// /// /// The operations group for this extension method. @@ -73,19 +73,19 @@ public static IPage ListByReplicationFabrics(this IReplicationvCentersO /// /// Fabric name. /// - /// - /// vCenter name. + /// + /// vcenter name. /// - public static VCenter Get(this IReplicationvCentersOperations operations, string fabricName, string vCenterName) + public static VCenter Get(this IReplicationvCentersOperations operations, string fabricName, string vcenterName) { - return operations.GetAsync(fabricName, vCenterName).GetAwaiter().GetResult(); + return operations.GetAsync(fabricName, vcenterName).GetAwaiter().GetResult(); } /// /// Gets the details of a vCenter. /// /// - /// Gets the details of a registered vCenter server(Add vCenter server.) + /// Gets the details of a registered vCenter server(Add vCenter server). /// /// /// The operations group for this extension method. @@ -93,15 +93,15 @@ public static VCenter Get(this IReplicationvCentersOperations operations, string /// /// Fabric name. /// - /// - /// vCenter name. + /// + /// vcenter name. /// /// /// The cancellation token. /// - public static async Task GetAsync(this IReplicationvCentersOperations operations, string fabricName, string vCenterName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IReplicationvCentersOperations operations, string fabricName, string vcenterName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(fabricName, vCenterName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(fabricName, vcenterName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -119,15 +119,15 @@ public static VCenter Get(this IReplicationvCentersOperations operations, string /// /// Fabric name. /// - /// - /// vCenter name. + /// + /// vcenter name. /// /// /// The input to the add vCenter operation. /// - public static VCenter Create(this IReplicationvCentersOperations operations, string fabricName, string vCenterName, AddVCenterRequest addVCenterRequest) + public static VCenter Create(this IReplicationvCentersOperations operations, string fabricName, string vcenterName, AddVCenterRequest addVCenterRequest) { - return operations.CreateAsync(fabricName, vCenterName, addVCenterRequest).GetAwaiter().GetResult(); + return operations.CreateAsync(fabricName, vcenterName, addVCenterRequest).GetAwaiter().GetResult(); } /// @@ -142,8 +142,8 @@ public static VCenter Create(this IReplicationvCentersOperations operations, str /// /// Fabric name. /// - /// - /// vCenter name. + /// + /// vcenter name. /// /// /// The input to the add vCenter operation. @@ -151,16 +151,16 @@ public static VCenter Create(this IReplicationvCentersOperations operations, str /// /// The cancellation token. /// - public static async Task CreateAsync(this IReplicationvCentersOperations operations, string fabricName, string vCenterName, AddVCenterRequest addVCenterRequest, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this IReplicationvCentersOperations operations, string fabricName, string vcenterName, AddVCenterRequest addVCenterRequest, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateWithHttpMessagesAsync(fabricName, vCenterName, addVCenterRequest, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateWithHttpMessagesAsync(fabricName, vcenterName, addVCenterRequest, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Remove vCenter operation. + /// Remove vcenter operation. /// /// /// The operation to remove(unregister) a registered vCenter server from the @@ -172,16 +172,16 @@ public static VCenter Create(this IReplicationvCentersOperations operations, str /// /// Fabric name. /// - /// - /// vCenter name. + /// + /// vcenter name. /// - public static void Delete(this IReplicationvCentersOperations operations, string fabricName, string vCenterName) + public static void Delete(this IReplicationvCentersOperations operations, string fabricName, string vcenterName) { - operations.DeleteAsync(fabricName, vCenterName).GetAwaiter().GetResult(); + operations.DeleteAsync(fabricName, vcenterName).GetAwaiter().GetResult(); } /// - /// Remove vCenter operation. + /// Remove vcenter operation. /// /// /// The operation to remove(unregister) a registered vCenter server from the @@ -193,15 +193,15 @@ public static void Delete(this IReplicationvCentersOperations operations, string /// /// Fabric name. /// - /// - /// vCenter name. + /// + /// vcenter name. /// /// /// The cancellation token. /// - public static async Task DeleteAsync(this IReplicationvCentersOperations operations, string fabricName, string vCenterName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IReplicationvCentersOperations operations, string fabricName, string vcenterName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(fabricName, vCenterName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.DeleteWithHttpMessagesAsync(fabricName, vcenterName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -216,15 +216,15 @@ public static void Delete(this IReplicationvCentersOperations operations, string /// /// Fabric name. /// - /// - /// vCenter name + /// + /// vcenter name. /// /// /// The input to the update vCenter operation. /// - public static VCenter Update(this IReplicationvCentersOperations operations, string fabricName, string vCenterName, UpdateVCenterRequest updateVCenterRequest) + public static VCenter Update(this IReplicationvCentersOperations operations, string fabricName, string vcenterName, UpdateVCenterRequest updateVCenterRequest) { - return operations.UpdateAsync(fabricName, vCenterName, updateVCenterRequest).GetAwaiter().GetResult(); + return operations.UpdateAsync(fabricName, vcenterName, updateVCenterRequest).GetAwaiter().GetResult(); } /// @@ -239,8 +239,8 @@ public static VCenter Update(this IReplicationvCentersOperations operations, str /// /// Fabric name. /// - /// - /// vCenter name + /// + /// vcenter name. /// /// /// The input to the update vCenter operation. @@ -248,9 +248,9 @@ public static VCenter Update(this IReplicationvCentersOperations operations, str /// /// The cancellation token. /// - public static async Task UpdateAsync(this IReplicationvCentersOperations operations, string fabricName, string vCenterName, UpdateVCenterRequest updateVCenterRequest, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IReplicationvCentersOperations operations, string fabricName, string vcenterName, UpdateVCenterRequest updateVCenterRequest, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(fabricName, vCenterName, updateVCenterRequest, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(fabricName, vcenterName, updateVCenterRequest, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -302,15 +302,15 @@ public static IPage List(this IReplicationvCentersOperations operations /// /// Fabric name. /// - /// - /// vCenter name. + /// + /// vcenter name. /// /// /// The input to the add vCenter operation. /// - public static VCenter BeginCreate(this IReplicationvCentersOperations operations, string fabricName, string vCenterName, AddVCenterRequest addVCenterRequest) + public static VCenter BeginCreate(this IReplicationvCentersOperations operations, string fabricName, string vcenterName, AddVCenterRequest addVCenterRequest) { - return operations.BeginCreateAsync(fabricName, vCenterName, addVCenterRequest).GetAwaiter().GetResult(); + return operations.BeginCreateAsync(fabricName, vcenterName, addVCenterRequest).GetAwaiter().GetResult(); } /// @@ -325,8 +325,8 @@ public static VCenter BeginCreate(this IReplicationvCentersOperations operations /// /// Fabric name. /// - /// - /// vCenter name. + /// + /// vcenter name. /// /// /// The input to the add vCenter operation. @@ -334,16 +334,16 @@ public static VCenter BeginCreate(this IReplicationvCentersOperations operations /// /// The cancellation token. /// - public static async Task BeginCreateAsync(this IReplicationvCentersOperations operations, string fabricName, string vCenterName, AddVCenterRequest addVCenterRequest, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCreateAsync(this IReplicationvCentersOperations operations, string fabricName, string vcenterName, AddVCenterRequest addVCenterRequest, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginCreateWithHttpMessagesAsync(fabricName, vCenterName, addVCenterRequest, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(fabricName, vcenterName, addVCenterRequest, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Remove vCenter operation. + /// Remove vcenter operation. /// /// /// The operation to remove(unregister) a registered vCenter server from the @@ -355,16 +355,16 @@ public static VCenter BeginCreate(this IReplicationvCentersOperations operations /// /// Fabric name. /// - /// - /// vCenter name. + /// + /// vcenter name. /// - public static void BeginDelete(this IReplicationvCentersOperations operations, string fabricName, string vCenterName) + public static void BeginDelete(this IReplicationvCentersOperations operations, string fabricName, string vcenterName) { - operations.BeginDeleteAsync(fabricName, vCenterName).GetAwaiter().GetResult(); + operations.BeginDeleteAsync(fabricName, vcenterName).GetAwaiter().GetResult(); } /// - /// Remove vCenter operation. + /// Remove vcenter operation. /// /// /// The operation to remove(unregister) a registered vCenter server from the @@ -376,15 +376,15 @@ public static void BeginDelete(this IReplicationvCentersOperations operations, s /// /// Fabric name. /// - /// - /// vCenter name. + /// + /// vcenter name. /// /// /// The cancellation token. /// - public static async Task BeginDeleteAsync(this IReplicationvCentersOperations operations, string fabricName, string vCenterName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginDeleteAsync(this IReplicationvCentersOperations operations, string fabricName, string vcenterName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginDeleteWithHttpMessagesAsync(fabricName, vCenterName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.BeginDeleteWithHttpMessagesAsync(fabricName, vcenterName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -399,15 +399,15 @@ public static void BeginDelete(this IReplicationvCentersOperations operations, s /// /// Fabric name. /// - /// - /// vCenter name + /// + /// vcenter name. /// /// /// The input to the update vCenter operation. /// - public static VCenter BeginUpdate(this IReplicationvCentersOperations operations, string fabricName, string vCenterName, UpdateVCenterRequest updateVCenterRequest) + public static VCenter BeginUpdate(this IReplicationvCentersOperations operations, string fabricName, string vcenterName, UpdateVCenterRequest updateVCenterRequest) { - return operations.BeginUpdateAsync(fabricName, vCenterName, updateVCenterRequest).GetAwaiter().GetResult(); + return operations.BeginUpdateAsync(fabricName, vcenterName, updateVCenterRequest).GetAwaiter().GetResult(); } /// @@ -422,8 +422,8 @@ public static VCenter BeginUpdate(this IReplicationvCentersOperations operations /// /// Fabric name. /// - /// - /// vCenter name + /// + /// vcenter name. /// /// /// The input to the update vCenter operation. @@ -431,9 +431,9 @@ public static VCenter BeginUpdate(this IReplicationvCentersOperations operations /// /// The cancellation token. /// - public static async Task BeginUpdateAsync(this IReplicationvCentersOperations operations, string fabricName, string vCenterName, UpdateVCenterRequest updateVCenterRequest, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginUpdateAsync(this IReplicationvCentersOperations operations, string fabricName, string vcenterName, UpdateVCenterRequest updateVCenterRequest, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(fabricName, vCenterName, updateVCenterRequest, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(fabricName, vcenterName, updateVCenterRequest, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SdkInfo_SiteRecoveryManagementClient.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SdkInfo_SiteRecoveryManagementClient.cs new file mode 100644 index 000000000000..7473e4de94f9 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SdkInfo_SiteRecoveryManagementClient.cs @@ -0,0 +1,53 @@ + +// +// 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 System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_SiteRecoveryManagementClient + { + get + { + return new Tuple[] + { + new Tuple("Compute", "ReplicationEligibilityResults", "2021-02-10"), + new Tuple("RecoveryServices", "MigrationRecoveryPoints", "2021-02-10"), + new Tuple("RecoveryServices", "Operations", "2021-02-10"), + new Tuple("RecoveryServices", "RecoveryPoints", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationAlertSettings", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationEvents", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationFabrics", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationJobs", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationLogicalNetworks", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationMigrationItems", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationNetworkMappings", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationNetworks", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationPolicies", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationProtectableItems", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationProtectedItems", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationProtectionContainerMappings", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationProtectionContainers", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationProtectionIntents", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationRecoveryPlans", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationRecoveryServicesProviders", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationStorageClassificationMappings", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationStorageClassifications", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationVaultHealth", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationVaultSetting", "2021-02-10"), + new Tuple("RecoveryServices", "ReplicationvCenters", "2021-02-10"), + new Tuple("RecoveryServices", "SupportedOperatingSystems", "2021-02-10"), + new Tuple("RecoveryServices", "TargetComputeSizes", "2021-02-10"), + }.AsEnumerable(); + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SiteRecoveryManagementClient.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SiteRecoveryManagementClient.cs index 89824284ae61..763b72909d43 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SiteRecoveryManagementClient.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SiteRecoveryManagementClient.cs @@ -192,6 +192,11 @@ public partial class SiteRecoveryManagementClient : ServiceClient public virtual IReplicationPoliciesOperations ReplicationPolicies { get; private set; } + /// + /// Gets the IReplicationProtectionIntentsOperations. + /// + public virtual IReplicationProtectionIntentsOperations ReplicationProtectionIntents { get; private set; } + /// /// Gets the IReplicationRecoveryPlansOperations. /// @@ -475,12 +480,13 @@ private void Initialize() ReplicationvCenters = new ReplicationvCentersOperations(this); ReplicationJobs = new ReplicationJobsOperations(this); ReplicationPolicies = new ReplicationPoliciesOperations(this); + ReplicationProtectionIntents = new ReplicationProtectionIntentsOperations(this); ReplicationRecoveryPlans = new ReplicationRecoveryPlansOperations(this); SupportedOperatingSystems = new SupportedOperatingSystemsOperations(this); ReplicationVaultHealth = new ReplicationVaultHealthOperations(this); ReplicationVaultSetting = new ReplicationVaultSettingOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2018-07-10"; + ApiVersion = "2021-02-10"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; @@ -509,6 +515,18 @@ private void Initialize() new Iso8601TimeSpanConverter() } }; + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("resourceType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("resourceType")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("resourceType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("resourceType")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("resourceType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("resourceType")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("resourceType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("resourceType")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("resourceType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("resourceType")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("resourceType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("resourceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); @@ -527,6 +545,8 @@ private void Initialize() DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); @@ -555,8 +575,8 @@ private void Initialize() DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); - SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); - DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); @@ -571,6 +591,8 @@ private void Initialize() DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); @@ -579,8 +601,12 @@ private void Initialize() DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SupportedOperatingSystemsOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SupportedOperatingSystemsOperations.cs index 16a3fcf31ab2..394b9b00c28d 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SupportedOperatingSystemsOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SupportedOperatingSystemsOperations.cs @@ -51,8 +51,11 @@ internal SupportedOperatingSystemsOperations(SiteRecoveryManagementClient client public SiteRecoveryManagementClient Client { get; private set; } /// - /// Gets the data of supported OSes by SRS. + /// Gets the data of supported operating systems by SRS. /// + /// + /// The instance type. + /// /// /// Headers that will be added to request. /// @@ -74,7 +77,7 @@ internal SupportedOperatingSystemsOperations(SiteRecoveryManagementClient client /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string instanceType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -99,12 +102,13 @@ internal SupportedOperatingSystemsOperations(SiteRecoveryManagementClient client { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("instanceType", instanceType); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationSupportedOperatingSystems").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationSupportedOperatingSystems").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)); @@ -113,6 +117,10 @@ internal SupportedOperatingSystemsOperations(SiteRecoveryManagementClient client { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } + if (instanceType != null) + { + _queryParameters.Add(string.Format("instanceType={0}", System.Uri.EscapeDataString(instanceType))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SupportedOperatingSystemsOperationsExtensions.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SupportedOperatingSystemsOperationsExtensions.cs index da96f4013369..5e742c4bcf3e 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SupportedOperatingSystemsOperationsExtensions.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SupportedOperatingSystemsOperationsExtensions.cs @@ -22,28 +22,34 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery public static partial class SupportedOperatingSystemsOperationsExtensions { /// - /// Gets the data of supported OSes by SRS. + /// Gets the data of supported operating systems by SRS. /// /// /// The operations group for this extension method. /// - public static SupportedOperatingSystems Get(this ISupportedOperatingSystemsOperations operations) + /// + /// The instance type. + /// + public static SupportedOperatingSystems Get(this ISupportedOperatingSystemsOperations operations, string instanceType = default(string)) { - return operations.GetAsync().GetAwaiter().GetResult(); + return operations.GetAsync(instanceType).GetAwaiter().GetResult(); } /// - /// Gets the data of supported OSes by SRS. + /// Gets the data of supported operating systems by SRS. /// /// /// The operations group for this extension method. /// + /// + /// The instance type. + /// /// /// The cancellation token. /// - public static async Task GetAsync(this ISupportedOperatingSystemsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this ISupportedOperatingSystemsOperations operations, string instanceType = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(instanceType, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/TargetComputeSizesOperations.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/TargetComputeSizesOperations.cs index d429cc8d28fa..fb9208657188 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/TargetComputeSizesOperations.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/TargetComputeSizesOperations.cs @@ -131,7 +131,7 @@ internal TargetComputeSizesOperations(SiteRecoveryManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/targetComputeSizes").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/targetComputeSizes").ToString(); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(Client.ResourceName)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));