From 6e1dec8cfdb1685f21efbfbc336f4c87e89be5b2 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 30 Nov 2020 02:09:07 +0000 Subject: [PATCH] CodeGen from PR 11834 in Azure/azure-rest-api-specs ASR: removing blob uri and sas token from examples (#11834) * removing blob uri and sas token from examplaes * added place holder value --- .../IReplicationMigrationItemsOperations.cs | 70 -- ...IReplicationProtectionIntentsOperations.cs | 129 +++ .../ISiteRecoveryManagementClient.cs | 5 + .../Models/A2ACreateProtectionIntentInput.cs | 277 ++++++ .../A2AProtectionIntentDiskInputDetails.cs | 85 ++ ...ProtectionIntentManagedDiskInputDetails.cs | 126 +++ .../Models/A2ARecoveryAvailabilityType.cs | 23 + .../Models/A2AReplicationIntentDetails.cs | 245 +++++ .../Generated/Models/A2ATestFailoverInput.cs | 66 ++ .../Models/A2AUnplannedFailoverInput.cs | 66 ++ .../src/Generated/Models/A2AVmDiskDetails.cs | 69 ++ .../Models/A2AVmManagedDiskDetails.cs | 106 +++ ...RecoveryServicesProviderInputProperties.cs | 26 +- .../src/Generated/Models/AgentDetails.cs | 87 ++ .../src/Generated/Models/AgentDiskDetails.cs | 84 ++ .../Models/AgentUpgradeBlockedReason.cs | 34 + .../Models/AutoProtectionOfDataDisk.cs | 22 + .../Models/AutoProtectionOfDataDiskStatus.cs | 22 + .../Models/CreateProtectionIntentInput.cs | 54 ++ .../CreateProtectionIntentProperties.cs | 57 ++ ...ProtectionIntentProviderSpecificDetails.cs | 36 + .../Generated/Models/DiskEncryptionKeyInfo.cs | 8 +- .../src/Generated/Models/DraDetails.cs | 96 ++ .../Models/ExistingProtectionProfile.cs | 68 ++ .../Models/ExistingRecoveryAvailabilitySet.cs | 56 ++ ...ExistingRecoveryProximityPlacementGroup.cs | 57 ++ .../ExistingRecoveryRecoveryResourceGroup.cs | 56 ++ .../Models/ExistingRecoveryVirtualNetwork.cs | 78 ++ .../Models/ExistingStorageAccount.cs | 68 ++ ...HyperVReplicaAzureEnableProtectionInput.cs | 20 +- .../HyperVReplicaAzureReplicationDetails.cs | 20 +- .../HyperVReplicaAzureTestFailoverInput.cs | 84 ++ ...yperVReplicaAzureUnplannedFailoverInput.cs | 84 ++ ...zureUpdateReplicationProtectedItemInput.cs | 20 +- .../InMageAzureV2EnableProtectionInput.cs | 20 +- .../Models/InMageAzureV2ReplicationDetails.cs | 29 +- .../Models/InMageAzureV2TestFailoverInput.cs | 66 ++ .../InMageAzureV2UnplannedFailoverInput.cs | 66 ++ ...reV2UpdateReplicationProtectedItemInput.cs | 20 +- ...MageRcmAgentUpgradeBlockingErrorDetails.cs | 96 ++ .../InMageRcmApplyRecoveryPointInput.cs | 54 ++ .../Generated/Models/InMageRcmDiskInput.cs | 79 ++ .../Models/InMageRcmDisksDefaultInput.cs | 71 ++ .../Models/InMageRcmEnableProtectionInput.cs | 203 +++++ .../Generated/Models/InMageRcmEventDetails.cs | 52 ++ .../Models/InMageRcmFabricCreationInput.cs | 95 ++ .../Models/InMageRcmFabricSpecificDetails.cs | 162 ++++ .../InMageRcmLastAgentUpgradeErrorDetails.cs | 96 ++ .../Models/InMageRcmMobilityAgentDetails.cs | 126 +++ .../Generated/Models/InMageRcmNicDetails.cs | 155 ++++ .../src/Generated/Models/InMageRcmNicInput.cs | 104 +++ .../Models/InMageRcmPolicyCreationInput.cs | 84 ++ .../Models/InMageRcmPolicyDetails.cs | 81 ++ .../Models/InMageRcmProtectedDiskDetails.cs | 124 +++ .../Models/InMageRcmRecoveryPointDetails.cs | 56 ++ .../Models/InMageRcmReplicationDetails.cs | 449 ++++++++++ .../Models/InMageRcmTestFailoverInput.cs | 64 ++ .../Models/InMageRcmUnplannedFailoverInput.cs | 67 ++ ...eRcmUpdateReplicationProtectedItemInput.cs | 143 +++ .../Models/InMageTestFailoverInput.cs | 72 ++ .../Models/InMageUnplannedFailoverInput.cs | 74 ++ .../Generated/Models/KeyEncryptionKeyInfo.cs | 8 +- .../Models/MigrationItemOperation.cs | 1 - .../Models/MigrationItemProperties.cs | 45 +- .../Models/MobilityAgentUpgradeState.cs | 24 + .../Generated/Models/NewProtectionProfile.cs | 110 +++ .../Generated/Models/ProcessServerDetails.cs | 201 +++++ .../Models/ProtectionProfileCustomDetails.cs | 36 + .../Generated/Models/PushInstallerDetails.cs | 96 ++ .../src/Generated/Models/RcmProxyDetails.cs | 96 ++ .../RecoveryAvailabilitySetCustomDetails.cs | 36 + .../RecoveryPlanInMageRcmFailoverInput.cs | 69 ++ .../Generated/Models/RecoveryPlanPointType.cs | 24 + ...eryProximityPlacementGroupCustomDetails.cs | 36 + .../RecoveryResourceGroupCustomDetails.cs | 36 + .../RecoveryVirtualNetworkCustomDetails.cs | 36 + .../Models/ReplicationAgentDetails.cs | 96 ++ .../Models/ReplicationProtectionIntent.cs | 58 ++ .../ReplicationProtectionIntentProperties.cs | 95 ++ ...rotectionIntentProviderSpecificSettings.cs | 36 + .../Generated/Models/ReprotectAgentDetails.cs | 96 ++ .../Models/StorageAccountCustomDetails.cs | 36 + .../src/Generated/Models/TestFailoverInput.cs | 6 +- .../Models/TestFailoverInputProperties.cs | 10 +- .../TestFailoverProviderSpecificInput.cs | 36 + .../Models/TestMigrateCleanupInput.cs | 4 - .../TestMigrateCleanupInputProperties.cs | 17 - .../Models/UnplannedFailoverInput.cs | 7 +- .../UnplannedFailoverInputProperties.cs | 6 +- .../UnplannedFailoverProviderSpecificInput.cs | 36 + .../Models/VMwareCbtContainerCreationInput.cs | 2 +- .../Generated/Models/VMwareCbtDiskInput.cs | 11 +- .../Models/VMwareCbtEnableMigrationInput.cs | 11 +- .../Models/VMwareCbtMigrationDetails.cs | 69 +- .../Models/VMwareCbtProtectedDiskDetails.cs | 11 +- .../VMwareCbtUpdateMigrationItemInput.cs | 11 +- .../ReplicationMigrationItemsOperations.cs | 267 ------ ...ationMigrationItemsOperationsExtensions.cs | 116 --- .../ReplicationProtectionIntentsOperations.cs | 835 ++++++++++++++++++ ...onProtectionIntentsOperationsExtensions.cs | 185 ++++ .../SdkInfo_SiteRecoveryManagementClient.cs | 53 ++ .../Generated/SiteRecoveryManagementClient.cs | 28 +- 102 files changed, 7457 insertions(+), 647 deletions(-) create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionIntentsOperations.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACreateProtectionIntentInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectionIntentDiskInputDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectionIntentManagedDiskInputDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ARecoveryAvailabilityType.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationIntentDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ATestFailoverInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUnplannedFailoverInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmDiskDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentDiskDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AgentUpgradeBlockedReason.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AutoProtectionOfDataDisk.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AutoProtectionOfDataDiskStatus.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentProperties.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentProviderSpecificDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DraDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingProtectionProfile.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryAvailabilitySet.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryProximityPlacementGroup.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryRecoveryResourceGroup.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingRecoveryVirtualNetwork.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ExistingStorageAccount.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureTestFailoverInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUnplannedFailoverInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2TestFailoverInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2UnplannedFailoverInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmAgentUpgradeBlockingErrorDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmApplyRecoveryPointInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmDiskInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmDisksDefaultInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmEnableProtectionInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmEventDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFabricCreationInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFabricSpecificDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmLastAgentUpgradeErrorDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmMobilityAgentDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmNicDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmNicInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmPolicyCreationInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmPolicyDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmProtectedDiskDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmRecoveryPointDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmReplicationDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmTestFailoverInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmUnplannedFailoverInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmUpdateReplicationProtectedItemInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageTestFailoverInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageUnplannedFailoverInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MobilityAgentUpgradeState.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/NewProtectionProfile.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProcessServerDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProtectionProfileCustomDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PushInstallerDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RcmProxyDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryAvailabilitySetCustomDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanInMageRcmFailoverInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanPointType.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryProximityPlacementGroupCustomDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryResourceGroupCustomDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryVirtualNetworkCustomDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationAgentDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationProtectionIntent.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationProtectionIntentProperties.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationProtectionIntentProviderSpecificSettings.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReprotectAgentDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/StorageAccountCustomDetails.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverProviderSpecificInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UnplannedFailoverProviderSpecificInput.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionIntentsOperations.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionIntentsOperationsExtensions.cs create mode 100644 sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SdkInfo_SiteRecoveryManagementClient.cs 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..f4378a19f71b 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 @@ -215,41 +215,6 @@ public partial interface IReplicationMigrationItemsOperations /// Task> MigrateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string migrationItemName, MigrateInput migrateInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Resynchronizes replication. - /// - /// - /// The operation to resynchronize replication of an ASR migration - /// item. - /// - /// - /// Fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Migration item name. - /// - /// - /// Resync 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> ResyncWithHttpMessagesAsync(string fabricName, string protectionContainerName, string migrationItemName, ResyncInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// /// Test migrate item. /// /// @@ -477,41 +442,6 @@ public partial interface IReplicationMigrationItemsOperations /// Task> BeginMigrateWithHttpMessagesAsync(string fabricName, string protectionContainerName, string migrationItemName, MigrateInput migrateInput, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Resynchronizes replication. - /// - /// - /// The operation to resynchronize replication of an ASR migration - /// item. - /// - /// - /// Fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Migration item name. - /// - /// - /// Resync 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> BeginResyncWithHttpMessagesAsync(string fabricName, string protectionContainerName, string migrationItemName, ResyncInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// /// Test migrate item. /// /// 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..a6641317ab29 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/IReplicationProtectionIntentsOperations.cs @@ -0,0 +1,129 @@ +// +// 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 headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the details of a Replication protection intent item. + /// + /// + /// Gets the details of an ASR replication protection intent. + /// + /// + /// Replication protection intent name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string intentObjectName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create protection intent Resource. + /// + /// + /// The operation to create an ASR replication protection intent item. + /// + /// + /// A name for the replication protection item. + /// + /// + /// Create Protection Intent Input. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateWithHttpMessagesAsync(string intentObjectName, CreateProtectionIntentInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the list of replication protection intent objects. + /// + /// + /// Gets the list of ASR replication protection intent objects in the + /// vault. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISiteRecoveryManagementClient.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ISiteRecoveryManagementClient.cs index 25b5858aade8..4d4591e05625 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 @@ -159,6 +159,11 @@ public partial interface ISiteRecoveryManagementClient : System.IDisposable /// IReplicationProtectionContainerMappingsOperations ReplicationProtectionContainerMappings { get; } + /// + /// Gets the IReplicationProtectionIntentsOperations. + /// + IReplicationProtectionIntentsOperations ReplicationProtectionIntents { get; } + /// /// Gets the IReplicationRecoveryServicesProvidersOperations. /// 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..1d4407d6687b --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2ACreateProtectionIntentInput.cs @@ -0,0 +1,277 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A2A create protection intent input. + /// + [Newtonsoft.Json.JsonObject("A2A")] + public partial class A2ACreateProtectionIntentInput : CreateProtectionIntentProviderSpecificDetails + { + /// + /// Initializes a new instance of the A2ACreateProtectionIntentInput + /// class. + /// + public A2ACreateProtectionIntentInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the A2ACreateProtectionIntentInput + /// class. + /// + /// The fabric specific object Id of the + /// virtual machine. + /// The primary location for the virtual + /// machine. + /// The recovery location for the + /// virtual machine. + /// The recovery subscription Id + /// of the virtual machine. + /// The recovery availability + /// type of the virtual machine. Possible values include: 'Single', + /// 'AvailabilitySet', 'AvailabilityZone' + /// The recovery resource group + /// Id. Valid for V2 scenarios. + /// The protection profile + /// custom inputs. + /// The primary + /// staging storage account input. + /// The recovery + /// availability set input. + /// The recovery + /// virtual network input. + /// The + /// recovery proximity placement group custom input. + /// A value indicating whether + /// the auto protection is enabled. Possible values include: + /// 'Disabled', 'Enabled' + /// The list of vm disk inputs. + /// The list of vm managed disk + /// inputs. + /// The multi vm group name. + /// The multi vm group id. + /// The boot diagnostic + /// storage account. + /// The recovery disk encryption + /// information (for two pass flows). + /// The recovery availability + /// zone. + public A2ACreateProtectionIntentInput(string fabricObjectId, string primaryLocation, string recoveryLocation, string recoverySubscriptionId, string recoveryAvailabilityType, string recoveryResourceGroupId, ProtectionProfileCustomDetails protectionProfileCustomInput = default(ProtectionProfileCustomDetails), StorageAccountCustomDetails primaryStagingStorageAccountCustomInput = default(StorageAccountCustomDetails), RecoveryAvailabilitySetCustomDetails recoveryAvailabilitySetCustomInput = default(RecoveryAvailabilitySetCustomDetails), RecoveryVirtualNetworkCustomDetails recoveryVirtualNetworkCustomInput = default(RecoveryVirtualNetworkCustomDetails), RecoveryProximityPlacementGroupCustomDetails recoveryProximityPlacementGroupCustomInput = default(RecoveryProximityPlacementGroupCustomDetails), string autoProtectionOfDataDisk = default(string), IList vmDisks = default(IList), IList vmManagedDisks = default(IList), string multiVmGroupName = default(string), string multiVmGroupId = default(string), StorageAccountCustomDetails recoveryBootDiagStorageAccount = default(StorageAccountCustomDetails), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo), string recoveryAvailabilityZone = default(string)) + { + FabricObjectId = fabricObjectId; + PrimaryLocation = primaryLocation; + RecoveryLocation = recoveryLocation; + RecoverySubscriptionId = recoverySubscriptionId; + RecoveryAvailabilityType = recoveryAvailabilityType; + ProtectionProfileCustomInput = protectionProfileCustomInput; + RecoveryResourceGroupId = recoveryResourceGroupId; + PrimaryStagingStorageAccountCustomInput = primaryStagingStorageAccountCustomInput; + RecoveryAvailabilitySetCustomInput = recoveryAvailabilitySetCustomInput; + RecoveryVirtualNetworkCustomInput = recoveryVirtualNetworkCustomInput; + RecoveryProximityPlacementGroupCustomInput = recoveryProximityPlacementGroupCustomInput; + AutoProtectionOfDataDisk = autoProtectionOfDataDisk; + VmDisks = vmDisks; + VmManagedDisks = vmManagedDisks; + MultiVmGroupName = multiVmGroupName; + MultiVmGroupId = multiVmGroupId; + RecoveryBootDiagStorageAccount = recoveryBootDiagStorageAccount; + DiskEncryptionInfo = diskEncryptionInfo; + RecoveryAvailabilityZone = recoveryAvailabilityZone; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the fabric specific object Id of the virtual machine. + /// + [JsonProperty(PropertyName = "fabricObjectId")] + public string FabricObjectId { get; set; } + + /// + /// Gets or sets the primary location for the virtual machine. + /// + [JsonProperty(PropertyName = "primaryLocation")] + public string PrimaryLocation { get; set; } + + /// + /// Gets or sets the recovery location for the virtual machine. + /// + [JsonProperty(PropertyName = "recoveryLocation")] + public string RecoveryLocation { get; set; } + + /// + /// Gets or sets the recovery subscription Id of the virtual machine. + /// + [JsonProperty(PropertyName = "recoverySubscriptionId")] + public string RecoverySubscriptionId { get; set; } + + /// + /// Gets or sets the recovery availability type of the virtual machine. + /// Possible values include: 'Single', 'AvailabilitySet', + /// 'AvailabilityZone' + /// + [JsonProperty(PropertyName = "recoveryAvailabilityType")] + public string RecoveryAvailabilityType { get; set; } + + /// + /// Gets or sets the protection profile custom inputs. + /// + [JsonProperty(PropertyName = "protectionProfileCustomInput")] + public ProtectionProfileCustomDetails ProtectionProfileCustomInput { get; set; } + + /// + /// Gets or sets the recovery resource group Id. Valid for V2 + /// scenarios. + /// + [JsonProperty(PropertyName = "recoveryResourceGroupId")] + public string RecoveryResourceGroupId { get; set; } + + /// + /// Gets or sets the primary staging storage account input. + /// + [JsonProperty(PropertyName = "primaryStagingStorageAccountCustomInput")] + public StorageAccountCustomDetails PrimaryStagingStorageAccountCustomInput { get; set; } + + /// + /// Gets or sets the recovery availability set input. + /// + [JsonProperty(PropertyName = "recoveryAvailabilitySetCustomInput")] + public RecoveryAvailabilitySetCustomDetails RecoveryAvailabilitySetCustomInput { get; set; } + + /// + /// Gets or sets the recovery virtual network input. + /// + [JsonProperty(PropertyName = "recoveryVirtualNetworkCustomInput")] + public RecoveryVirtualNetworkCustomDetails RecoveryVirtualNetworkCustomInput { get; set; } + + /// + /// Gets or sets the recovery proximity placement group custom input. + /// + [JsonProperty(PropertyName = "recoveryProximityPlacementGroupCustomInput")] + public RecoveryProximityPlacementGroupCustomDetails RecoveryProximityPlacementGroupCustomInput { get; set; } + + /// + /// Gets or sets a value indicating whether the auto protection is + /// enabled. Possible values include: 'Disabled', 'Enabled' + /// + [JsonProperty(PropertyName = "autoProtectionOfDataDisk")] + public string AutoProtectionOfDataDisk { get; set; } + + /// + /// Gets or sets the list of vm disk inputs. + /// + [JsonProperty(PropertyName = "vmDisks")] + public IList VmDisks { get; set; } + + /// + /// Gets or sets the list of vm managed disk inputs. + /// + [JsonProperty(PropertyName = "vmManagedDisks")] + public IList VmManagedDisks { get; set; } + + /// + /// Gets or sets the multi vm group name. + /// + [JsonProperty(PropertyName = "multiVmGroupName")] + public string MultiVmGroupName { get; set; } + + /// + /// Gets or sets the multi vm group id. + /// + [JsonProperty(PropertyName = "multiVmGroupId")] + public string MultiVmGroupId { get; set; } + + /// + /// Gets or sets the boot diagnostic storage account. + /// + [JsonProperty(PropertyName = "recoveryBootDiagStorageAccount")] + public StorageAccountCustomDetails RecoveryBootDiagStorageAccount { get; set; } + + /// + /// Gets or sets the recovery disk encryption information (for two pass + /// flows). + /// + [JsonProperty(PropertyName = "diskEncryptionInfo")] + public DiskEncryptionInfo DiskEncryptionInfo { get; set; } + + /// + /// Gets or sets the recovery availability zone. + /// + [JsonProperty(PropertyName = "recoveryAvailabilityZone")] + public string RecoveryAvailabilityZone { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (FabricObjectId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "FabricObjectId"); + } + if (PrimaryLocation == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PrimaryLocation"); + } + if (RecoveryLocation == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryLocation"); + } + if (RecoverySubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "RecoverySubscriptionId"); + } + if (RecoveryAvailabilityType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryAvailabilityType"); + } + if (RecoveryResourceGroupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "RecoveryResourceGroupId"); + } + if (VmDisks != null) + { + foreach (var element in VmDisks) + { + if (element != null) + { + element.Validate(); + } + } + } + if (VmManagedDisks != null) + { + foreach (var element1 in VmManagedDisks) + { + if (element1 != null) + { + element1.Validate(); + } + } + } + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectionIntentDiskInputDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AProtectionIntentDiskInputDetails.cs new file mode 100644 index 000000000000..59a7d16d9e55 --- /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 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/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/A2AReplicationIntentDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationIntentDetails.cs new file mode 100644 index 000000000000..72259d74920f --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AReplicationIntentDetails.cs @@ -0,0 +1,245 @@ +// +// 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; + + /// + /// 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 fabric specific object Id of the + /// virtual machine. + /// The ID of Policy governing this PE. + /// The primary location for the virtual + /// machine. + /// The recovery location for the + /// virtual machine. + /// The recovery subscription Id + /// of the virtual machine. + /// The recovery fabric + /// Name. + /// The recovery fabric + /// Name. + /// The primary container + /// Name. + /// The recovery container + /// Name. + /// The recovery availability + /// type of the virtual machine. + /// The list of vm disk details. + /// The list of vm managed disk + /// details. + /// The recovery resource group + /// id. + /// The recovery availability + /// set Id. + /// The recovery virtual network + /// Id. + /// 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 fabricObjectId = default(string), string policyId = default(string), string primaryLocation = default(string), string recoveryLocation = default(string), string recoverySubscriptionId = default(string), string primaryFabricFriendlyName = default(string), string recoveryFabricFriendlyName = default(string), string primaryContainerFriendlyName = default(string), string recoveryContainerFriendlyName = default(string), string recoveryAvailabilityType = default(string), IList vmDisks = default(IList), IList vmManagedDisks = default(IList), string recoveryResourceGroupId = default(string), string recoveryAvailabilitySetId = default(string), string recoveryVirtualNetworkId = default(string), string recoveryProximityPlacementGroupId = default(string), string autoProtectionOfDataDiskStatus = default(string), string multiVmGroupName = default(string), string multiVmGroupId = default(string), string recoveryBootDiagStorageAccountId = default(string), DiskEncryptionInfo diskEncryptionInfo = default(DiskEncryptionInfo), string recoveryAvailabilityZone = default(string)) + { + FabricObjectId = fabricObjectId; + PolicyId = policyId; + PrimaryLocation = primaryLocation; + RecoveryLocation = recoveryLocation; + RecoverySubscriptionId = recoverySubscriptionId; + PrimaryFabricFriendlyName = primaryFabricFriendlyName; + RecoveryFabricFriendlyName = recoveryFabricFriendlyName; + PrimaryContainerFriendlyName = primaryContainerFriendlyName; + RecoveryContainerFriendlyName = recoveryContainerFriendlyName; + RecoveryAvailabilityType = recoveryAvailabilityType; + VmDisks = vmDisks; + VmManagedDisks = vmManagedDisks; + RecoveryResourceGroupId = recoveryResourceGroupId; + RecoveryAvailabilitySetId = recoveryAvailabilitySetId; + RecoveryVirtualNetworkId = recoveryVirtualNetworkId; + RecoveryProximityPlacementGroupId = recoveryProximityPlacementGroupId; + AutoProtectionOfDataDiskStatus = autoProtectionOfDataDiskStatus; + MultiVmGroupName = multiVmGroupName; + MultiVmGroupId = multiVmGroupId; + RecoveryBootDiagStorageAccountId = recoveryBootDiagStorageAccountId; + 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 ID of Policy governing this PE. + /// + [JsonProperty(PropertyName = "policyId")] + public string PolicyId { 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 fabric Name. + /// + [JsonProperty(PropertyName = "primaryFabricFriendlyName")] + public string PrimaryFabricFriendlyName { get; set; } + + /// + /// Gets or sets the recovery fabric Name. + /// + [JsonProperty(PropertyName = "recoveryFabricFriendlyName")] + public string RecoveryFabricFriendlyName { get; set; } + + /// + /// Gets or sets the primary container Name. + /// + [JsonProperty(PropertyName = "primaryContainerFriendlyName")] + public string PrimaryContainerFriendlyName { get; set; } + + /// + /// Gets or sets the recovery container Name. + /// + [JsonProperty(PropertyName = "recoveryContainerFriendlyName")] + public string RecoveryContainerFriendlyName { get; set; } + + /// + /// Gets or sets the recovery availability type of the virtual machine. + /// + [JsonProperty(PropertyName = "recoveryAvailabilityType")] + public string RecoveryAvailabilityType { 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 recovery availability set Id. + /// + [JsonProperty(PropertyName = "recoveryAvailabilitySetId")] + public string RecoveryAvailabilitySetId { get; set; } + + /// + /// Gets or sets the recovery virtual network Id. + /// + [JsonProperty(PropertyName = "recoveryVirtualNetworkId")] + public string RecoveryVirtualNetworkId { get; set; } + + /// + /// Gets or sets the recovery proximity placement group custom details. + /// + [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 = "autoProtectionOfDataDiskStatus")] + public string AutoProtectionOfDataDiskStatus { 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 = "recoveryBootDiagStorageAccountId")] + public string RecoveryBootDiagStorageAccountId { 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; } + + } +} 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/A2AUnplannedFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUnplannedFailoverInput.cs new file mode 100644 index 000000000000..a08da451d866 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AUnplannedFailoverInput.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 unplanned failover. + /// + [Newtonsoft.Json.JsonObject("A2A")] + public partial class A2AUnplannedFailoverInput : UnplannedFailoverProviderSpecificInput + { + /// + /// Initializes a new instance of the A2AUnplannedFailoverInput class. + /// + public A2AUnplannedFailoverInput() + { + CustomInit(); + } + + /// + /// 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 failover or not. + public A2AUnplannedFailoverInput(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 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 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/A2AVmDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmDiskDetails.cs new file mode 100644 index 000000000000..c6558a3746c4 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmDiskDetails.cs @@ -0,0 +1,69 @@ +// +// 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 disk details. + /// + public partial class A2AVmDiskDetails + { + /// + /// Initializes a new instance of the A2AVmDiskDetails class. + /// + public A2AVmDiskDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the A2AVmDiskDetails class. + /// + /// The disk Uri. + /// The recovery VHD + /// storage account Id. + /// The primary + /// staging storage account Id. + public A2AVmDiskDetails(string diskUri = default(string), string recoveryAzureStorageAccountId = default(string), string primaryStagingAzureStorageAccountId = default(string)) + { + DiskUri = diskUri; + RecoveryAzureStorageAccountId = recoveryAzureStorageAccountId; + PrimaryStagingAzureStorageAccountId = primaryStagingAzureStorageAccountId; + 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 Id. + /// + [JsonProperty(PropertyName = "recoveryAzureStorageAccountId")] + public string RecoveryAzureStorageAccountId { get; set; } + + /// + /// Gets or sets the primary staging storage account Id. + /// + [JsonProperty(PropertyName = "primaryStagingAzureStorageAccountId")] + public string PrimaryStagingAzureStorageAccountId { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskDetails.cs new file mode 100644 index 000000000000..a228b6e9e6dc --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/A2AVmManagedDiskDetails.cs @@ -0,0 +1,106 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Azure VM managed disk input details. + /// + public partial class A2AVmManagedDiskDetails + { + /// + /// Initializes a new instance of the A2AVmManagedDiskDetails class. + /// + public A2AVmManagedDiskDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the A2AVmManagedDiskDetails class. + /// + /// The disk Id. + /// The primary + /// staging storage account Arm Id. + /// The target resource group Arm + /// Id. + /// The replica disk + /// type. + /// The target disk type + /// after failover. + /// The recovery disk + /// encryption set Id. + /// The recovery disk encryption + /// information (for one / single pass flows). + public A2AVmManagedDiskDetails(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)) + { + DiskId = diskId; + PrimaryStagingAzureStorageAccountId = primaryStagingAzureStorageAccountId; + RecoveryResourceGroupId = recoveryResourceGroupId; + 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 Arm Id. + /// + [JsonProperty(PropertyName = "primaryStagingAzureStorageAccountId")] + public string PrimaryStagingAzureStorageAccountId { get; set; } + + /// + /// Gets or sets the target resource group Arm Id. + /// + [JsonProperty(PropertyName = "recoveryResourceGroupId")] + public string RecoveryResourceGroupId { get; set; } + + /// + /// Gets or sets the replica disk type. + /// + [JsonProperty(PropertyName = "recoveryReplicaDiskAccountType")] + public string RecoveryReplicaDiskAccountType { get; set; } + + /// + /// Gets or sets the target disk type after failover. + /// + [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/AddRecoveryServicesProviderInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AddRecoveryServicesProviderInputProperties.cs index 67b7b01b2476..e310cb899312 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,17 @@ 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 identity + /// provider input for data plane authentication. + public AddRecoveryServicesProviderInputProperties(string machineName, IdentityProviderInput authenticationIdentityInput, IdentityProviderInput resourceAccessIdentityInput, string machineId = default(string), IdentityProviderInput dataPlaneAuthenticationIdentityInput = default(IdentityProviderInput)) { MachineName = machineName; + MachineId = machineId; AuthenticationIdentityInput = authenticationIdentityInput; ResourceAccessIdentityInput = resourceAccessIdentityInput; + DataPlaneAuthenticationIdentityInput = dataPlaneAuthenticationIdentityInput; CustomInit(); } @@ -58,6 +64,13 @@ 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 identity provider input for DRA authentication. /// @@ -70,6 +83,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 +118,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..a5fab74cfd38 --- /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 details of agent 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 details of agent 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/AutoProtectionOfDataDisk.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AutoProtectionOfDataDisk.cs new file mode 100644 index 000000000000..0d5b2f2e37db --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AutoProtectionOfDataDisk.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 AutoProtectionOfDataDisk. + /// + public static class AutoProtectionOfDataDisk + { + public const string Disabled = "Disabled"; + public const string Enabled = "Enabled"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AutoProtectionOfDataDiskStatus.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AutoProtectionOfDataDiskStatus.cs new file mode 100644 index 000000000000..a9452a9297e2 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/AutoProtectionOfDataDiskStatus.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 AutoProtectionOfDataDiskStatus. + /// + public static class AutoProtectionOfDataDiskStatus + { + public const string Disabled = "Disabled"; + public const string Enabled = "Enabled"; + } +} 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..ae2f0e3f4872 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentProperties.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; + + /// + /// 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. + /// For other providers, it can be null. + 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. For other providers, + /// it can be null. + /// + [JsonProperty(PropertyName = "providerSpecificDetails")] + public CreateProtectionIntentProviderSpecificDetails ProviderSpecificDetails { get; set; } + + } +} diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentProviderSpecificDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentProviderSpecificDetails.cs new file mode 100644 index 000000000000..2e5993ab38cd --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/CreateProtectionIntentProviderSpecificDetails.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; + + /// + /// Create protection intent provider specific input. + /// + public partial class CreateProtectionIntentProviderSpecificDetails + { + /// + /// Initializes a new instance of the + /// CreateProtectionIntentProviderSpecificDetails class. + /// + public CreateProtectionIntentProviderSpecificDetails() + { + 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/DiskEncryptionKeyInfo.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DiskEncryptionKeyInfo.cs index 14c7733603c0..8df13c8d8744 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/DraDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DraDetails.cs new file mode 100644 index 000000000000..07a274a1eff9 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/DraDetails.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; + + /// + /// 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 version. + /// The last heartbeat received from the + /// DRA. + /// The health of the DRA. Possible values + /// include: 'None', 'Normal', 'Warning', 'Critical' + /// The health errors. + public DraDetails(string id = default(string), string name = default(string), string version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), string health = default(string), IList healthErrors = default(IList)) + { + Id = id; + Name = name; + 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 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 of the DRA. 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/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/HyperVReplicaAzureEnableProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureEnableProtectionInput.cs index 120dd0f2232c..584b17d5399b 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 @@ -60,7 +60,11 @@ public HyperVReplicaAzureEnableProtectionInput() /// failover VM is to be created. /// A value indicating whether managed /// disks should be used during failover. - public HyperVReplicaAzureEnableProtectionInput(string hvHostVmId = default(string), string vmName = default(string), string osType = default(string), string vhdId = default(string), string targetStorageAccountId = default(string), string targetAzureNetworkId = default(string), string targetAzureSubnetId = default(string), string enableRdpOnTargetOption = default(string), string targetAzureVmName = default(string), string logStorageAccountId = default(string), IList disksToInclude = default(IList), string targetAzureV1ResourceGroupId = default(string), string targetAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string)) + /// The target availability + /// zone. + /// The proximity + /// placement group 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)) { HvHostVmId = hvHostVmId; VmName = vmName; @@ -76,6 +80,8 @@ public HyperVReplicaAzureEnableProtectionInput() TargetAzureV1ResourceGroupId = targetAzureV1ResourceGroupId; TargetAzureV2ResourceGroupId = targetAzureV2ResourceGroupId; UseManagedDisks = useManagedDisks; + TargetAvailabilityZone = targetAvailabilityZone; + TargetProximityPlacementGroupId = targetProximityPlacementGroupId; CustomInit(); } @@ -174,5 +180,17 @@ public HyperVReplicaAzureEnableProtectionInput() [JsonProperty(PropertyName = "useManagedDisks")] public string UseManagedDisks { get; set; } + /// + /// Gets or sets the target availability zone. + /// + [JsonProperty(PropertyName = "targetAvailabilityZone")] + public string TargetAvailabilityZone { get; set; } + + /// + /// Gets or sets the proximity placement group ARM Id. + /// + [JsonProperty(PropertyName = "targetProximityPlacementGroupId")] + public string TargetProximityPlacementGroupId { get; set; } + } } 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 d5fc1ae0481b..31a33960bb80 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 @@ -74,11 +74,15 @@ public HyperVReplicaAzureReplicationDetails() /// group Id. /// The recovery availability /// set Id. + /// The target availability + /// zone. + /// The target proximity + /// placement group Id. /// A value indicating whether managed /// 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 useManagedDisks = default(string), string licenseType = default(string)) + public HyperVReplicaAzureReplicationDetails(IList azureVmDiskDetails = default(IList), string recoveryAzureVmName = default(string), string recoveryAzureVMSize = default(string), string recoveryAzureStorageAccount = default(string), string recoveryAzureLogStorageAccountId = default(string), System.DateTime? lastReplicatedTime = default(System.DateTime?), long? rpoInSeconds = default(long?), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), string vmId = default(string), string vmProtectionState = default(string), string vmProtectionStateDescription = default(string), InitialReplicationDetails initialReplicationDetails = default(InitialReplicationDetails), IList vmNics = default(IList), string selectedRecoveryAzureNetworkId = default(string), string selectedSourceNicId = default(string), string encryption = default(string), OSDetails oSDetails = default(OSDetails), int? sourceVmRamSizeInMB = default(int?), int? sourceVmCpuCount = default(int?), string enableRdpOnTargetOption = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryAvailabilitySetId = default(string), string targetAvailabilityZone = default(string), string targetProximityPlacementGroupId = default(string), string useManagedDisks = default(string), string licenseType = default(string)) { AzureVmDiskDetails = azureVmDiskDetails; RecoveryAzureVmName = recoveryAzureVmName; @@ -102,6 +106,8 @@ public HyperVReplicaAzureReplicationDetails() EnableRdpOnTargetOption = enableRdpOnTargetOption; RecoveryAzureResourceGroupId = recoveryAzureResourceGroupId; RecoveryAvailabilitySetId = recoveryAvailabilitySetId; + TargetAvailabilityZone = targetAvailabilityZone; + TargetProximityPlacementGroupId = targetProximityPlacementGroupId; UseManagedDisks = useManagedDisks; LicenseType = licenseType; CustomInit(); @@ -249,6 +255,18 @@ public HyperVReplicaAzureReplicationDetails() [JsonProperty(PropertyName = "recoveryAvailabilitySetId")] public string RecoveryAvailabilitySetId { 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 a value indicating whether managed disks should be /// used during failover. 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..9ef12dafa808 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureTestFailoverInput.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; + + /// + /// 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. + /// + /// Location of the vault. + /// 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 vaultLocation = default(string), string primaryKekCertificatePfx = default(string), string secondaryKekCertificatePfx = default(string), string recoveryPointId = default(string)) + { + VaultLocation = vaultLocation; + PrimaryKekCertificatePfx = primaryKekCertificatePfx; + SecondaryKekCertificatePfx = secondaryKekCertificatePfx; + RecoveryPointId = recoveryPointId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + 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. + /// + [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..1c3612e7956b --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzureUnplannedFailoverInput.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; + + /// + /// 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. + /// + /// Location of the vault. + /// 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 vaultLocation = default(string), string primaryKekCertificatePfx = default(string), string secondaryKekCertificatePfx = default(string), string recoveryPointId = default(string)) + { + VaultLocation = vaultLocation; + PrimaryKekCertificatePfx = primaryKekCertificatePfx; + SecondaryKekCertificatePfx = secondaryKekCertificatePfx; + RecoveryPointId = recoveryPointId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + 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. + /// + [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 130e328c5c5c..70c905f587c6 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 @@ -42,12 +42,18 @@ public HyperVReplicaAzureUpdateReplicationProtectedItemInput() /// disks should be used during failover. /// The dictionary of disk /// resource Id to disk encryption set ARM Id. - public HyperVReplicaAzureUpdateReplicationProtectedItemInput(string recoveryAzureV1ResourceGroupId = default(string), string recoveryAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string), IDictionary diskIdToDiskEncryptionMap = default(IDictionary)) + /// The target proximity + /// 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)) { RecoveryAzureV1ResourceGroupId = recoveryAzureV1ResourceGroupId; RecoveryAzureV2ResourceGroupId = recoveryAzureV2ResourceGroupId; UseManagedDisks = useManagedDisks; DiskIdToDiskEncryptionMap = diskIdToDiskEncryptionMap; + TargetProximityPlacementGroupId = targetProximityPlacementGroupId; + TargetAvailabilityZone = targetAvailabilityZone; CustomInit(); } @@ -84,5 +90,17 @@ public HyperVReplicaAzureUpdateReplicationProtectedItemInput() [JsonProperty(PropertyName = "diskIdToDiskEncryptionMap")] public IDictionary DiskIdToDiskEncryptionMap { get; set; } + /// + /// Gets or sets the target proximity placement group Id. + /// + [JsonProperty(PropertyName = "targetProximityPlacementGroupId")] + public string TargetProximityPlacementGroupId { get; set; } + + /// + /// Gets or sets the target availability zone. + /// + [JsonProperty(PropertyName = "targetAvailabilityZone")] + public string TargetAvailabilityZone { get; set; } + } } diff --git a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2EnableProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2EnableProtectionInput.cs index 4e9e367bfe18..377c5ec79fc5 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 @@ -61,7 +61,11 @@ public InMageAzureV2EnableProtectionInput() /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' /// The DiskEncryptionSet ARM /// ID. - public InMageAzureV2EnableProtectionInput(string masterTargetId = default(string), string processServerId = default(string), string storageAccountId = default(string), string runAsAccountId = default(string), string multiVmGroupId = default(string), string multiVmGroupName = default(string), IList disksToInclude = default(IList), string targetAzureNetworkId = default(string), string targetAzureSubnetId = default(string), string enableRdpOnTargetOption = default(string), string targetAzureVmName = default(string), string logStorageAccountId = default(string), string targetAzureV1ResourceGroupId = default(string), string targetAzureV2ResourceGroupId = default(string), string diskType = default(string), string diskEncryptionSetId = default(string)) + /// The target availability + /// zone. + /// The proximity + /// placement group 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)) { MasterTargetId = masterTargetId; ProcessServerId = processServerId; @@ -79,6 +83,8 @@ public InMageAzureV2EnableProtectionInput() TargetAzureV2ResourceGroupId = targetAzureV2ResourceGroupId; DiskType = diskType; DiskEncryptionSetId = diskEncryptionSetId; + TargetAvailabilityZone = targetAvailabilityZone; + TargetProximityPlacementGroupId = targetProximityPlacementGroupId; CustomInit(); } @@ -189,5 +195,17 @@ public InMageAzureV2EnableProtectionInput() [JsonProperty(PropertyName = "diskEncryptionSetId")] public string DiskEncryptionSetId { get; set; } + /// + /// Gets or sets the target availability zone. + /// + [JsonProperty(PropertyName = "targetAvailabilityZone")] + public string TargetAvailabilityZone { get; set; } + + /// + /// Gets or sets the proximity placement group ARM Id. + /// + [JsonProperty(PropertyName = "targetProximityPlacementGroupId")] + public string TargetProximityPlacementGroupId { 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 f46d6b9feaf0..e59783fe0541 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 @@ -91,6 +91,8 @@ public InMageAzureV2ReplicationDetails() /// The PE Network details. /// The selected recovery /// azure network Id. + /// The test failover virtual + /// network. /// The selected source nic Id which /// will be used as the primary nic during failover. /// A value indicating the discovery type @@ -107,6 +109,10 @@ public InMageAzureV2ReplicationDetails() /// group Id. /// The recovery availability /// set Id. + /// The target availability + /// zone. + /// The target proximity + /// placement group Id. /// A value indicating whether managed /// disks should be used during failover. /// License Type of the VM to be @@ -123,7 +129,7 @@ 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 selectedSourceNicId = default(string), string discoveryType = default(string), string enableRdpOnTargetOption = default(string), IList datastores = default(IList), string targetVmId = default(string), string recoveryAzureResourceGroupId = default(string), string recoveryAvailabilitySetId = default(string), string useManagedDisks = default(string), string licenseType = default(string), IList validationErrors = default(IList), System.DateTime? lastRpoCalculatedTime = default(System.DateTime?), System.DateTime? lastUpdateReceivedTime = default(System.DateTime?), string replicaId = default(string), string osVersion = default(string), IList protectedManagedDisks = default(IList)) + 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)) { InfrastructureVmId = infrastructureVmId; VCenterInfrastructureId = vCenterInfrastructureId; @@ -161,6 +167,7 @@ public InMageAzureV2ReplicationDetails() RecoveryAzureLogStorageAccountId = recoveryAzureLogStorageAccountId; VmNics = vmNics; SelectedRecoveryAzureNetworkId = selectedRecoveryAzureNetworkId; + SelectedTfoAzureNetworkId = selectedTfoAzureNetworkId; SelectedSourceNicId = selectedSourceNicId; DiscoveryType = discoveryType; EnableRdpOnTargetOption = enableRdpOnTargetOption; @@ -168,6 +175,8 @@ public InMageAzureV2ReplicationDetails() TargetVmId = targetVmId; RecoveryAzureResourceGroupId = recoveryAzureResourceGroupId; RecoveryAvailabilitySetId = recoveryAvailabilitySetId; + TargetAvailabilityZone = targetAvailabilityZone; + TargetProximityPlacementGroupId = targetProximityPlacementGroupId; UseManagedDisks = useManagedDisks; LicenseType = licenseType; ValidationErrors = validationErrors; @@ -406,6 +415,12 @@ public InMageAzureV2ReplicationDetails() [JsonProperty(PropertyName = "selectedRecoveryAzureNetworkId")] public string SelectedRecoveryAzureNetworkId { get; set; } + /// + /// Gets or sets the test failover virtual network. + /// + [JsonProperty(PropertyName = "selectedTfoAzureNetworkId")] + public string SelectedTfoAzureNetworkId { get; set; } + /// /// Gets or sets the selected source nic Id which will be used as the /// primary nic during failover. @@ -455,6 +470,18 @@ public InMageAzureV2ReplicationDetails() [JsonProperty(PropertyName = "recoveryAvailabilitySetId")] public string RecoveryAvailabilitySetId { 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 a value indicating whether managed disks should be /// used during failover. 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..c64bdaf4855f --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2TestFailoverInput.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; + + /// + /// 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. + /// + /// Location of the vault. + /// 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 vaultLocation = default(string), string recoveryPointId = default(string)) + { + VaultLocation = vaultLocation; + RecoveryPointId = recoveryPointId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + 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 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/InMageAzureV2UnplannedFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2UnplannedFailoverInput.cs new file mode 100644 index 000000000000..859118cb13bb --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2UnplannedFailoverInput.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; + + /// + /// InMageAzureV2 provider specific input for unplanned failover. + /// + [Newtonsoft.Json.JsonObject("InMageAzureV2")] + public partial class InMageAzureV2UnplannedFailoverInput : UnplannedFailoverProviderSpecificInput + { + /// + /// Initializes a new instance of the + /// InMageAzureV2UnplannedFailoverInput class. + /// + public InMageAzureV2UnplannedFailoverInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// 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 InMageAzureV2UnplannedFailoverInput(string vaultLocation = default(string), string recoveryPointId = default(string)) + { + VaultLocation = vaultLocation; + RecoveryPointId = recoveryPointId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + 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 + /// 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/InMageAzureV2UpdateReplicationProtectedItemInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageAzureV2UpdateReplicationProtectedItemInput.cs index 763c7a413e72..c51d03a92176 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 @@ -38,11 +38,17 @@ public InMageAzureV2UpdateReplicationProtectedItemInput() /// resource group Id for resource manager deployment. /// A value indicating whether managed /// disks should be used during failover. - public InMageAzureV2UpdateReplicationProtectedItemInput(string recoveryAzureV1ResourceGroupId = default(string), string recoveryAzureV2ResourceGroupId = default(string), string useManagedDisks = default(string)) + /// The target proximity + /// 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)) { RecoveryAzureV1ResourceGroupId = recoveryAzureV1ResourceGroupId; RecoveryAzureV2ResourceGroupId = recoveryAzureV2ResourceGroupId; UseManagedDisks = useManagedDisks; + TargetProximityPlacementGroupId = targetProximityPlacementGroupId; + TargetAvailabilityZone = targetAvailabilityZone; CustomInit(); } @@ -72,5 +78,17 @@ public InMageAzureV2UpdateReplicationProtectedItemInput() [JsonProperty(PropertyName = "useManagedDisks")] public string UseManagedDisks { get; set; } + /// + /// Gets or sets the target proximity placement group Id. + /// + [JsonProperty(PropertyName = "targetProximityPlacementGroupId")] + public string TargetProximityPlacementGroupId { get; set; } + + /// + /// Gets or sets the target availability zone. + /// + [JsonProperty(PropertyName = "targetAvailabilityZone")] + public string TargetAvailabilityZone { 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..0ae911b78667 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmApplyRecoveryPointInput.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; + + /// + /// 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 = 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. + /// + [JsonProperty(PropertyName = "recoveryPointId")] + public string RecoveryPointId { get; set; } + + } +} 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..49e33eca066a --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmDiskInput.cs @@ -0,0 +1,79 @@ +// +// 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 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 disk encryption set ARM + /// Id. + public InMageRcmDiskInput(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 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 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/InMageRcmDisksDefaultInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmDisksDefaultInput.cs new file mode 100644 index 000000000000..333f49946ba7 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmDisksDefaultInput.cs @@ -0,0 +1,71 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// 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 disk encryption set ARM + /// Id. + public InMageRcmDisksDefaultInput(string logStorageAccountId = default(string), string diskType = default(string), 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 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/InMageRcmEnableProtectionInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmEnableProtectionInput.cs new file mode 100644 index 000000000000..b315ffdf54dc --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmEnableProtectionInput.cs @@ -0,0 +1,203 @@ +// +// 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 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 disks to include list. + /// The default disk input. + /// The target resource group ARM + /// Id. + /// 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 process server Id. + /// The multi VM group name. + public InMageRcmEnableProtectionInput(string fabricDiscoveryMachineId = default(string), IList disksToInclude = default(IList), InMageRcmDisksDefaultInput disksDefault = default(InMageRcmDisksDefaultInput), string targetResourceGroupId = default(string), 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 processServerId = 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; } + + } +} 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..a6a6af08ab7e --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmEventDetails.cs @@ -0,0 +1,52 @@ +// +// 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. + public InMageRcmEventDetails(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/InMageRcmFabricCreationInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFabricCreationInput.cs new file mode 100644 index 000000000000..8a19a015406c --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFabricCreationInput.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; + + /// + /// 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. + /// The certificate to be used for AAD + /// authentication. + public InMageRcmFabricCreationInput(string vmwareSiteId = default(string), string physicalSiteId = default(string), IdentityProviderInput sourceAgentIdentity = default(IdentityProviderInput), string authCertificate = default(string)) + { + VmwareSiteId = vmwareSiteId; + PhysicalSiteId = physicalSiteId; + SourceAgentIdentity = sourceAgentIdentity; + AuthCertificate = authCertificate; + 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; } + + /// + /// Gets or sets the certificate to be used for AAD authentication. + /// + [JsonProperty(PropertyName = "authCertificate")] + public string AuthCertificate { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + 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..50dbd883a043 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmFabricSpecificDetails.cs @@ -0,0 +1,162 @@ +// +// 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 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 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; + 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 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/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..a6c9048c34b7 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmMobilityAgentDetails.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; + + /// + /// 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 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 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/InMageRcmNicDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmNicDetails.cs new file mode 100644 index 000000000000..967f6195914a --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmNicDetails.cs @@ -0,0 +1,155 @@ +// +// 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 a value indicating whether this is the primary NIC. + /// + [JsonProperty(PropertyName = "isPrimaryNic")] + public string IsPrimaryNic { get; private set; } + + /// + /// Gets a value indicating whether this NIC is selected for failover. + /// + [JsonProperty(PropertyName = "isSelectedForFailover")] + public string IsSelectedForFailover { get; private 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 the target IP address. + /// + [JsonProperty(PropertyName = "targetIPAddress")] + public string TargetIPAddress { get; private set; } + + /// + /// Gets the target IP address type. Possible values include: + /// 'Dynamic', 'Static' + /// + [JsonProperty(PropertyName = "targetIPAddressType")] + public string TargetIPAddressType { get; private set; } + + /// + /// Gets target subnet name. + /// + [JsonProperty(PropertyName = "targetSubnetName")] + public string TargetSubnetName { get; private set; } + + /// + /// Gets test subnet name. + /// + [JsonProperty(PropertyName = "testSubnetName")] + public string TestSubnetName { get; private set; } + + /// + /// Gets the test IP address. + /// + [JsonProperty(PropertyName = "testIPAddress")] + public string TestIPAddress { get; private set; } + + /// + /// Gets the test IP address type. Possible values include: 'Dynamic', + /// 'Static' + /// + [JsonProperty(PropertyName = "testIPAddressType")] + public string TestIPAddressType { get; private 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..a98b1a00e279 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmNicInput.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; + + /// + /// 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 = default(string), string isPrimaryNic = default(string), 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; } + + } +} 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..dcc5a8d4153e --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmPolicyDetails.cs @@ -0,0 +1,81 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// 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 the duration in minutes until which the recovery points need + /// to be stored. + /// + [JsonProperty(PropertyName = "recoveryPointHistoryInMinutes")] + public int? RecoveryPointHistoryInMinutes { get; private set; } + + /// + /// Gets the app consistent snapshot frequency in minutes. + /// + [JsonProperty(PropertyName = "appConsistentFrequencyInMinutes")] + public int? AppConsistentFrequencyInMinutes { get; private set; } + + /// + /// Gets the crash consistent snapshot frequency in minutes. + /// + [JsonProperty(PropertyName = "crashConsistentFrequencyInMinutes")] + public int? CrashConsistentFrequencyInMinutes { get; private set; } + + /// + /// Gets a value indicating whether multi-VM sync has to be enabled. + /// + [JsonProperty(PropertyName = "enableMultiVmSync")] + public string EnableMultiVmSync { get; private 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..08a4e5b75584 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmProtectedDiskDetails.cs @@ -0,0 +1,124 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models +{ + using Newtonsoft.Json; + using System.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 disk encryption set 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' + 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)) + { + DiskId = diskId; + DiskName = diskName; + IsOSDisk = isOSDisk; + CapacityInBytes = capacityInBytes; + LogStorageAccountId = logStorageAccountId; + DiskEncryptionSetId = diskEncryptionSetId; + SeedManagedDiskId = seedManagedDiskId; + TargetManagedDiskId = targetManagedDiskId; + DiskType = diskType; + 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 disk encryption set 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 the disk type. Possible values include: 'Standard_LRS', + /// 'Premium_LRS', 'StandardSSD_LRS' + /// + [JsonProperty(PropertyName = "diskType")] + public string DiskType { 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..97e27d9a2db6 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmReplicationDetails.cs @@ -0,0 +1,449 @@ +// +// 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 target generation. + /// License Type of the VM to be + /// used. + /// Target VM name. + /// The target VM size. + /// The target resource group + /// 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 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 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. + /// 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 last agent upgrade + /// failed or cancelled job Id. + /// 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 targetGeneration = default(string), string licenseType = default(string), 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), 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?), int? resyncProgressPercentage = default(int?), long? resyncProcessedBytes = default(long?), long? resyncTransferredBytes = default(long?), string resyncRequired = default(string), string resyncState = default(string), string agentUpgradeState = default(string), string lastAgentUpgradeType = default(string), string lastAgentUpgradeFailedJobId = 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; + TargetGeneration = targetGeneration; + LicenseType = licenseType; + TargetVmName = targetVmName; + TargetVmSize = targetVmSize; + TargetResourceGroupId = targetResourceGroupId; + 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; + ResyncProgressPercentage = resyncProgressPercentage; + ResyncProcessedBytes = resyncProcessedBytes; + ResyncTransferredBytes = resyncTransferredBytes; + ResyncRequired = resyncRequired; + ResyncState = resyncState; + AgentUpgradeState = agentUpgradeState; + LastAgentUpgradeType = lastAgentUpgradeType; + LastAgentUpgradeFailedJobId = lastAgentUpgradeFailedJobId; + 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 target generation. + /// + [JsonProperty(PropertyName = "targetGeneration")] + public string TargetGeneration { get; private set; } + + /// + /// Gets license Type of the VM to be used. + /// + [JsonProperty(PropertyName = "licenseType")] + public string LicenseType { get; private set; } + + /// + /// Gets target VM name. + /// + [JsonProperty(PropertyName = "targetVmName")] + public string TargetVmName { get; private set; } + + /// + /// Gets the target VM size. + /// + [JsonProperty(PropertyName = "targetVmSize")] + public string TargetVmSize { get; private set; } + + /// + /// Gets the target resource group Id. + /// + [JsonProperty(PropertyName = "targetResourceGroupId")] + public string TargetResourceGroupId { get; private set; } + + /// + /// Gets the target availability set Id. + /// + [JsonProperty(PropertyName = "targetAvailabilitySetId")] + public string TargetAvailabilitySetId { get; private set; } + + /// + /// Gets the target availability zone. + /// + [JsonProperty(PropertyName = "targetAvailabilityZone")] + public string TargetAvailabilityZone { get; private set; } + + /// + /// Gets the target proximity placement group Id. + /// + [JsonProperty(PropertyName = "targetProximityPlacementGroupId")] + public string TargetProximityPlacementGroupId { get; private set; } + + /// + /// Gets the target boot diagnostics storage account ARM Id. + /// + [JsonProperty(PropertyName = "targetBootDiagnosticsStorageAccountId")] + public string TargetBootDiagnosticsStorageAccountId { get; private set; } + + /// + /// Gets the target network Id. + /// + [JsonProperty(PropertyName = "targetNetworkId")] + public string TargetNetworkId { get; private set; } + + /// + /// Gets the test network Id. + /// + [JsonProperty(PropertyName = "testNetworkId")] + public string TestNetworkId { get; private 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 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 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 last agent upgrade failed or cancelled job Id. + /// + [JsonProperty(PropertyName = "lastAgentUpgradeFailedJobId")] + public string LastAgentUpgradeFailedJobId { get; private set; } + + /// + /// Gets the list of protected disks. + /// + [JsonProperty(PropertyName = "protectedDisks")] + public IList ProtectedDisks { get; private set; } + + /// + /// Gets a value indicating whether last agent upgrade was successful + /// or not. + /// + [JsonProperty(PropertyName = "isLastUpgradeSuccessful")] + public string IsLastUpgradeSuccessful { get; private set; } + + /// + /// Gets the mobility agent information. + /// + [JsonProperty(PropertyName = "mobilityAgentDetails")] + public InMageRcmMobilityAgentDetails MobilityAgentDetails { get; private set; } + + /// + /// Gets the last agent upgrade error information. + /// + [JsonProperty(PropertyName = "lastAgentUpgradeErrorDetails")] + public IList LastAgentUpgradeErrorDetails { get; private set; } + + /// + /// Gets the agent upgrade blocking error information. + /// + [JsonProperty(PropertyName = "agentUpgradeBlockingErrorDetails")] + public IList AgentUpgradeBlockingErrorDetails { get; private set; } + + /// + /// Gets the network details. + /// + [JsonProperty(PropertyName = "vmNics")] + public IList VmNics { 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..0db3adaad619 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageRcmUnplannedFailoverInput.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; + + /// + /// 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 = default(string), 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; } + + } +} 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/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/InMageUnplannedFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageUnplannedFailoverInput.cs new file mode 100644 index 000000000000..96bbd9182629 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/InMageUnplannedFailoverInput.cs @@ -0,0 +1,74 @@ +// +// 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 unplanned failover. + /// + [Newtonsoft.Json.JsonObject("InMage")] + public partial class InMageUnplannedFailoverInput : UnplannedFailoverProviderSpecificInput + { + /// + /// Initializes a new instance of the InMageUnplannedFailoverInput + /// class. + /// + public InMageUnplannedFailoverInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InMageUnplannedFailoverInput + /// 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 + /// failover to a particular recovery point. In case of latest recovery + /// point, null should be passed. + public InMageUnplannedFailoverInput(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 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/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/MigrationItemOperation.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MigrationItemOperation.cs index 50f5a6391699..ea3fb9646965 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MigrationItemOperation.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/MigrationItemOperation.cs @@ -20,6 +20,5 @@ public static class MigrationItemOperation public const string TestMigrate = "TestMigrate"; public const string TestMigrateCleanup = "TestMigrateCleanup"; public const string Migrate = "Migrate"; - public const string StartResync = "StartResync"; } } 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..d8a7b6b98dcc 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 @@ -37,6 +37,8 @@ public MigrationItemProperties() /// item. /// The name of policy governing this /// item. + /// The recovery services + /// provider ARM Id. /// The migration status. Possible values /// include: 'None', 'EnableMigrationInProgress', /// 'EnableMigrationFailed', 'DisableMigrationInProgress', @@ -45,43 +47,34 @@ public MigrationItemProperties() /// 'MigrationSucceeded', 'MigrationFailed' /// The migration state /// description. - /// The last test migration - /// time. - /// The status of the last test - /// migration. /// The test migrate state. Possible /// values include: 'None', 'TestMigrationInProgress', /// 'TestMigrationSucceeded', 'TestMigrationFailed', /// 'TestMigrationCleanupInProgress' /// The test migrate state /// description. - /// The consolidated health. Possible values - /// include: 'None', 'Normal', 'Warning', 'Critical' + /// The consolidated health. /// The list of health errors. /// The allowed operations on the /// migration item, based on the current migration state of the /// item. /// The current job details. - /// The correlation Id for events - /// associated with this migration item. /// The migration provider custom /// settings. - public MigrationItemProperties(string machineName = default(string), string policyId = default(string), string policyFriendlyName = default(string), string migrationState = default(string), string migrationStateDescription = default(string), System.DateTime? lastTestMigrationTime = default(System.DateTime?), string lastTestMigrationStatus = default(string), string testMigrateState = default(string), string testMigrateStateDescription = default(string), string health = default(string), IList healthErrors = default(IList), IList allowedOperations = default(IList), CurrentJobDetails currentJob = default(CurrentJobDetails), string eventCorrelationId = default(string), MigrationProviderSpecificSettings providerSpecificDetails = default(MigrationProviderSpecificSettings)) + public MigrationItemProperties(string machineName = default(string), string policyId = default(string), string policyFriendlyName = default(string), string recoveryServicesProviderId = default(string), string migrationState = default(string), string migrationStateDescription = default(string), string testMigrateState = default(string), string testMigrateStateDescription = default(string), string health = default(string), IList healthErrors = default(IList), IList allowedOperations = default(IList), CurrentJobDetails currentJob = default(CurrentJobDetails), MigrationProviderSpecificSettings providerSpecificDetails = default(MigrationProviderSpecificSettings)) { MachineName = machineName; PolicyId = policyId; PolicyFriendlyName = policyFriendlyName; + RecoveryServicesProviderId = recoveryServicesProviderId; MigrationState = migrationState; MigrationStateDescription = migrationStateDescription; - LastTestMigrationTime = lastTestMigrationTime; - LastTestMigrationStatus = lastTestMigrationStatus; TestMigrateState = testMigrateState; TestMigrateStateDescription = testMigrateStateDescription; Health = health; HealthErrors = healthErrors; AllowedOperations = allowedOperations; CurrentJob = currentJob; - EventCorrelationId = eventCorrelationId; ProviderSpecificDetails = providerSpecificDetails; CustomInit(); } @@ -109,6 +102,12 @@ public MigrationItemProperties() [JsonProperty(PropertyName = "policyFriendlyName")] public string PolicyFriendlyName { get; private set; } + /// + /// Gets the recovery services provider ARM Id. + /// + [JsonProperty(PropertyName = "recoveryServicesProviderId")] + public string RecoveryServicesProviderId { get; private set; } + /// /// Gets the migration status. Possible values include: 'None', /// 'EnableMigrationInProgress', 'EnableMigrationFailed', @@ -125,18 +124,6 @@ public MigrationItemProperties() [JsonProperty(PropertyName = "migrationStateDescription")] public string MigrationStateDescription { get; private set; } - /// - /// Gets the last test migration time. - /// - [JsonProperty(PropertyName = "lastTestMigrationTime")] - public System.DateTime? LastTestMigrationTime { get; private set; } - - /// - /// Gets the status of the last test migration. - /// - [JsonProperty(PropertyName = "lastTestMigrationStatus")] - public string LastTestMigrationStatus { get; private set; } - /// /// Gets the test migrate state. Possible values include: 'None', /// 'TestMigrationInProgress', 'TestMigrationSucceeded', @@ -152,8 +139,7 @@ public MigrationItemProperties() public string TestMigrateStateDescription { get; private set; } /// - /// Gets the consolidated health. Possible values include: 'None', - /// 'Normal', 'Warning', 'Critical' + /// Gets the consolidated health. /// [JsonProperty(PropertyName = "health")] public string Health { get; private set; } @@ -177,13 +163,6 @@ public MigrationItemProperties() [JsonProperty(PropertyName = "currentJob")] public CurrentJobDetails CurrentJob { get; private set; } - /// - /// Gets the correlation Id for events associated with this migration - /// item. - /// - [JsonProperty(PropertyName = "eventCorrelationId")] - public string EventCorrelationId { get; private set; } - /// /// Gets or sets the migration provider custom settings. /// 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/NewProtectionProfile.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/NewProtectionProfile.cs new file mode 100644 index 000000000000..2d5e73be690f --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/NewProtectionProfile.cs @@ -0,0 +1,110 @@ +// +// 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; + + /// + /// New Protection profile input. + /// + [Newtonsoft.Json.JsonObject("New")] + public partial class NewProtectionProfile : ProtectionProfileCustomDetails + { + /// + /// Initializes a new instance of the NewProtectionProfile class. + /// + public NewProtectionProfile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NewProtectionProfile class. + /// + /// 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 crash + /// 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?)) + { + PolicyName = policyName; + RecoveryPointHistory = recoveryPointHistory; + CrashConsistentFrequencyInMinutes = crashConsistentFrequencyInMinutes; + AppConsistentFrequencyInMinutes = appConsistentFrequencyInMinutes; + MultiVmSyncStatus = multiVmSyncStatus; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the protection profile input. + /// + [JsonProperty(PropertyName = "policyName")] + public string PolicyName { get; set; } + + /// + /// Gets or sets the duration in minutes until which the recovery + /// points need to be stored. + /// + [JsonProperty(PropertyName = "recoveryPointHistory")] + public int? RecoveryPointHistory { get; set; } + + /// + /// Gets or sets the 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. Value should be 'Enabled' or 'Disabled'. Possible values + /// include: 'Enable', 'Disable' + /// + [JsonProperty(PropertyName = "multiVmSyncStatus")] + public string MultiVmSyncStatus { get; set; } + + /// + /// Validate the object. + /// + /// + /// 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/ProcessServerDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProcessServerDetails.cs new file mode 100644 index 000000000000..c79c46382f38 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ProcessServerDetails.cs @@ -0,0 +1,201 @@ +// +// 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 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 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 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 health = default(string), IList healthErrors = default(IList), string historicHealth = default(string)) + { + Id = id; + Name = name; + 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; + 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 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 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/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..5e5db309594d --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/PushInstallerDetails.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; + + /// + /// 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 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 version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), string health = default(string), IList healthErrors = default(IList)) + { + Id = id; + Name = name; + 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 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/RcmProxyDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RcmProxyDetails.cs new file mode 100644 index 000000000000..5b8856a900bf --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RcmProxyDetails.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; + + /// + /// 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 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 version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), string health = default(string), IList healthErrors = default(IList)) + { + Id = id; + Name = name; + 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 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/RecoveryPlanInMageRcmFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanInMageRcmFailoverInput.cs new file mode 100644 index 000000000000..1b03e6ffa1c4 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/RecoveryPlanInMageRcmFailoverInput.cs @@ -0,0 +1,69 @@ +// +// 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 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 = default(string), 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; } + + } +} 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/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/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..f4b65cb0b0dc --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReplicationAgentDetails.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; + + /// + /// 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 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 version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), string health = default(string), IList healthErrors = default(IList)) + { + Id = id; + Name = name; + 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 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/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..8b15b4a1e1b1 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/ReprotectAgentDetails.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; + + /// + /// 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 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 version = default(string), System.DateTime? lastHeartbeatUtc = default(System.DateTime?), string health = default(string), IList healthErrors = default(IList)) + { + Id = id; + Name = name; + 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 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/StorageAccountCustomDetails.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/StorageAccountCustomDetails.cs new file mode 100644 index 000000000000..03a09036f73d --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/StorageAccountCustomDetails.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; + + /// + /// Storage account custom input. + /// + public partial class StorageAccountCustomDetails + { + /// + /// Initializes a new instance of the StorageAccountCustomDetails + /// class. + /// + public StorageAccountCustomDetails() + { + 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/TestFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestFailoverInput.cs index 619eb9f6d0cb..958c4ffcda77 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 @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Input definition for planned failover. + /// Input definition for test failover. /// public partial class TestFailoverInput { @@ -29,7 +29,7 @@ public TestFailoverInput() /// /// Initializes a new instance of the TestFailoverInput class. /// - /// Planned failover input properties + /// test failover input properties public TestFailoverInput(TestFailoverInputProperties properties = default(TestFailoverInputProperties)) { Properties = properties; @@ -42,7 +42,7 @@ 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; } 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..cf62d4a0e63e 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,7 +31,7 @@ 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 @@ -40,7 +40,7 @@ public TestFailoverInputProperties() /// the test failover cleanup is to be skipped. /// 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)) + public TestFailoverInputProperties(string failoverDirection = default(string), string networkType = default(string), string networkId = default(string), string skipTestFailoverCleanup = default(string), TestFailoverProviderSpecificInput providerSpecificDetails = default(TestFailoverProviderSpecificInput)) { FailoverDirection = failoverDirection; NetworkType = networkType; @@ -56,7 +56,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; } @@ -84,7 +84,7 @@ public TestFailoverInputProperties() /// 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/TestMigrateCleanupInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestMigrateCleanupInput.cs index 3574ea3f5940..120038f6470a 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestMigrateCleanupInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestMigrateCleanupInput.cs @@ -61,10 +61,6 @@ 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/TestMigrateCleanupInputProperties.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestMigrateCleanupInputProperties.cs index 32b37896e33c..4a3575b1d749 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestMigrateCleanupInputProperties.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/TestMigrateCleanupInputProperties.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models { - using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -50,21 +49,5 @@ public TestMigrateCleanupInputProperties() [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/UnplannedFailoverInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/UnplannedFailoverInput.cs index e1e8c7ed92f4..cb0977f946c1 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 @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// Input definition for planned failover. + /// Input definition for unplanned failover. /// public partial class UnplannedFailoverInput { @@ -29,7 +29,8 @@ public UnplannedFailoverInput() /// /// Initializes a new instance of the UnplannedFailoverInput class. /// - /// Planned failover input properties + /// Unplanned failover input + /// properties. public UnplannedFailoverInput(UnplannedFailoverInputProperties properties = default(UnplannedFailoverInputProperties)) { Properties = properties; @@ -42,7 +43,7 @@ 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; } 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..d49243995f90 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 { @@ -36,7 +36,7 @@ public UnplannedFailoverInputProperties() /// status /// Provider specific /// settings - public UnplannedFailoverInputProperties(string failoverDirection = default(string), string sourceSiteOperations = default(string), ProviderSpecificFailoverInput providerSpecificDetails = default(ProviderSpecificFailoverInput)) + public UnplannedFailoverInputProperties(string failoverDirection = default(string), string sourceSiteOperations = default(string), UnplannedFailoverProviderSpecificInput providerSpecificDetails = default(UnplannedFailoverProviderSpecificInput)) { FailoverDirection = failoverDirection; SourceSiteOperations = sourceSiteOperations; @@ -65,7 +65,7 @@ public UnplannedFailoverInputProperties() /// 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/VMwareCbtContainerCreationInput.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtContainerCreationInput.cs index f5e6871eeb04..ac3d992f5383 100644 --- a/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtContainerCreationInput.cs +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/VMwareCbtContainerCreationInput.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models /// /// VMwareCbt container creation input. /// - [Newtonsoft.Json.JsonObject("VMwareCbt")] + [Newtonsoft.Json.JsonObject("6c7da455-506f-43ff-a16a-8eb101aebb70")] public partial class VMwareCbtContainerCreationInput : ReplicationProviderSpecificContainerCreationInput { /// 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..022d114aa3ee 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 @@ -39,16 +39,13 @@ public VMwareCbtDiskInput() /// name of the log storage account. /// The disk type. Possible values include: /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' - /// The DiskEncryptionSet ARM - /// Id. - public VMwareCbtDiskInput(string diskId, string isOSDisk, string logStorageAccountId, string logStorageAccountSasSecretName, string diskType = default(string), string diskEncryptionSetId = default(string)) + public VMwareCbtDiskInput(string diskId, string isOSDisk, string logStorageAccountId, string logStorageAccountSasSecretName, string diskType = default(string)) { DiskId = diskId; IsOSDisk = isOSDisk; LogStorageAccountId = logStorageAccountId; LogStorageAccountSasSecretName = logStorageAccountSasSecretName; DiskType = diskType; - DiskEncryptionSetId = diskEncryptionSetId; CustomInit(); } @@ -88,12 +85,6 @@ public VMwareCbtDiskInput() [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. /// 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..f56f563a1290 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 @@ -54,9 +54,7 @@ public VMwareCbtEnableMigrationInput() /// 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)) + 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)) { VmwareMachineId = vmwareMachineId; DisksToInclude = disksToInclude; @@ -70,7 +68,6 @@ public VMwareCbtEnableMigrationInput() TargetSubnetName = targetSubnetName; TargetAvailabilitySetId = targetAvailabilitySetId; TargetBootDiagnosticsStorageAccountId = targetBootDiagnosticsStorageAccountId; - PerformAutoResync = performAutoResync; CustomInit(); } @@ -152,12 +149,6 @@ public VMwareCbtEnableMigrationInput() [JsonProperty(PropertyName = "targetBootDiagnosticsStorageAccountId")] public string TargetBootDiagnosticsStorageAccountId { get; set; } - /// - /// Gets or sets a value indicating whether auto resync is to be done. - /// - [JsonProperty(PropertyName = "performAutoResync")] - public string PerformAutoResync { 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..61c23edef270 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 @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models using System.Linq; /// - /// VMwareCbt provider specific settings. + /// VMwareCbt provider specific settings /// [Newtonsoft.Json.JsonObject("VMwareCbt")] public partial class VMwareCbtMigrationDetails : MigrationProviderSpecificSettings @@ -57,22 +57,7 @@ public VMwareCbtMigrationDetails() /// which the VM was migrated. /// The last recovery point /// received time. - /// The last recovery point - /// Id. - /// The initial seeding - /// progress percentage. - /// The migration progress - /// percentage. - /// The resync progress - /// percentage. - /// A value indicating whether resync is - /// required. - /// The resync state. Possible values - /// include: 'None', 'PreparedForResynchronization', - /// '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)) + 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?)) { VmwareMachineId = vmwareMachineId; OsType = osType; @@ -90,13 +75,6 @@ public VMwareCbtMigrationDetails() VmNics = vmNics; MigrationRecoveryPointId = migrationRecoveryPointId; LastRecoveryPointReceived = lastRecoveryPointReceived; - LastRecoveryPointId = lastRecoveryPointId; - InitialSeedingProgressPercentage = initialSeedingProgressPercentage; - MigrationProgressPercentage = migrationProgressPercentage; - ResyncProgressPercentage = resyncProgressPercentage; - ResyncRequired = resyncRequired; - ResyncState = resyncState; - PerformAutoResync = performAutoResync; CustomInit(); } @@ -201,48 +179,5 @@ public VMwareCbtMigrationDetails() [JsonProperty(PropertyName = "lastRecoveryPointReceived")] public System.DateTime? LastRecoveryPointReceived { get; private set; } - /// - /// Gets the last recovery point Id. - /// - [JsonProperty(PropertyName = "lastRecoveryPointId")] - public string LastRecoveryPointId { get; private set; } - - /// - /// Gets the initial seeding progress percentage. - /// - [JsonProperty(PropertyName = "initialSeedingProgressPercentage")] - public int? InitialSeedingProgressPercentage { get; private set; } - - /// - /// Gets the migration progress percentage. - /// - [JsonProperty(PropertyName = "migrationProgressPercentage")] - public int? MigrationProgressPercentage { get; private set; } - - /// - /// Gets the resync progress percentage. - /// - [JsonProperty(PropertyName = "resyncProgressPercentage")] - public int? ResyncProgressPercentage { 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 a value indicating whether auto resync is to be done. - /// - [JsonProperty(PropertyName = "performAutoResync")] - public string PerformAutoResync { get; set; } - } } 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..f9478fd9a77c 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 @@ -41,15 +41,13 @@ public VMwareCbtProtectedDiskDetails() /// Id. /// The key vault secret /// name of the log storage account. - /// 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' - 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)) + 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 seedManagedDiskId = default(string), string targetManagedDiskId = default(string), string diskType = default(string)) { DiskId = diskId; DiskName = diskName; @@ -58,7 +56,6 @@ public VMwareCbtProtectedDiskDetails() CapacityInBytes = capacityInBytes; LogStorageAccountId = logStorageAccountId; LogStorageAccountSasSecretName = logStorageAccountSasSecretName; - DiskEncryptionSetId = diskEncryptionSetId; SeedManagedDiskId = seedManagedDiskId; TargetManagedDiskId = targetManagedDiskId; DiskType = diskType; @@ -112,12 +109,6 @@ public VMwareCbtProtectedDiskDetails() [JsonProperty(PropertyName = "logStorageAccountSasSecretName")] public string LogStorageAccountSasSecretName { 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. /// 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..16b7dc7af593 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 @@ -46,9 +46,7 @@ public VMwareCbtUpdateMigrationItemInput() /// The list of NIC details. /// The license type. Possible values /// include: 'NotSpecified', 'NoLicenseType', 'WindowsServer' - /// 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)) + 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)) { TargetVmName = targetVmName; TargetVmSize = targetVmSize; @@ -58,7 +56,6 @@ public VMwareCbtUpdateMigrationItemInput() TargetNetworkId = targetNetworkId; VmNics = vmNics; LicenseType = licenseType; - PerformAutoResync = performAutoResync; CustomInit(); } @@ -116,11 +113,5 @@ public VMwareCbtUpdateMigrationItemInput() [JsonProperty(PropertyName = "licenseType")] public string LicenseType { get; set; } - /// - /// Gets or sets a value indicating whether auto resync is to be done. - /// - [JsonProperty(PropertyName = "performAutoResync")] - public string PerformAutoResync { get; set; } - } } 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..7f4952b965d6 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 @@ -599,37 +599,6 @@ internal ReplicationMigrationItemsOperations(SiteRecoveryManagementClient client return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } - /// - /// Resynchronizes replication. - /// - /// - /// The operation to resynchronize replication of an ASR migration item. - /// - /// - /// Fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Migration item name. - /// - /// - /// Resync input. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> ResyncWithHttpMessagesAsync(string fabricName, string protectionContainerName, string migrationItemName, ResyncInput input, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginResyncWithHttpMessagesAsync(fabricName, protectionContainerName, migrationItemName, input, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - /// /// Test migrate item. /// @@ -1809,242 +1778,6 @@ internal ReplicationMigrationItemsOperations(SiteRecoveryManagementClient client return _result; } - /// - /// Resynchronizes replication. - /// - /// - /// The operation to resynchronize replication of an ASR migration item. - /// - /// - /// Fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Migration item name. - /// - /// - /// Resync 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> BeginResyncWithHttpMessagesAsync(string fabricName, string protectionContainerName, string migrationItemName, ResyncInput 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 (fabricName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "fabricName"); - } - if (protectionContainerName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "protectionContainerName"); - } - if (migrationItemName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "migrationItemName"); - } - if (input == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "input"); - } - if (input != null) - { - input.Validate(); - } - // 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("migrationItemName", migrationItemName); - tracingParameters.Add("input", input); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginResync", 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/{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)); - _url = _url.Replace("{fabricName}", System.Uri.EscapeDataString(fabricName)); - _url = _url.Replace("{protectionContainerName}", System.Uri.EscapeDataString(protectionContainerName)); - _url = _url.Replace("{migrationItemName}", System.Uri.EscapeDataString(migrationItemName)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(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 && (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; - } - /// /// Test migrate item. /// 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..21bc59b78678 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 @@ -343,64 +343,6 @@ public static MigrationItem Migrate(this IReplicationMigrationItemsOperations op } } - /// - /// Resynchronizes replication. - /// - /// - /// The operation to resynchronize replication of an ASR migration item. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Migration item name. - /// - /// - /// Resync input. - /// - public static MigrationItem Resync(this IReplicationMigrationItemsOperations operations, string fabricName, string protectionContainerName, string migrationItemName, ResyncInput input) - { - return operations.ResyncAsync(fabricName, protectionContainerName, migrationItemName, input).GetAwaiter().GetResult(); - } - - /// - /// Resynchronizes replication. - /// - /// - /// The operation to resynchronize replication of an ASR migration item. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Migration item name. - /// - /// - /// Resync input. - /// - /// - /// The cancellation token. - /// - public static async Task ResyncAsync(this IReplicationMigrationItemsOperations operations, string fabricName, string protectionContainerName, string migrationItemName, ResyncInput input, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ResyncWithHttpMessagesAsync(fabricName, protectionContainerName, migrationItemName, input, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Test migrate item. /// @@ -786,64 +728,6 @@ public static MigrationItem BeginMigrate(this IReplicationMigrationItemsOperatio } } - /// - /// Resynchronizes replication. - /// - /// - /// The operation to resynchronize replication of an ASR migration item. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Migration item name. - /// - /// - /// Resync input. - /// - public static MigrationItem BeginResync(this IReplicationMigrationItemsOperations operations, string fabricName, string protectionContainerName, string migrationItemName, ResyncInput input) - { - return operations.BeginResyncAsync(fabricName, protectionContainerName, migrationItemName, input).GetAwaiter().GetResult(); - } - - /// - /// Resynchronizes replication. - /// - /// - /// The operation to resynchronize replication of an ASR migration item. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Fabric name. - /// - /// - /// Protection container name. - /// - /// - /// Migration item name. - /// - /// - /// Resync input. - /// - /// - /// The cancellation token. - /// - public static async Task BeginResyncAsync(this IReplicationMigrationItemsOperations operations, string fabricName, string protectionContainerName, string migrationItemName, ResyncInput input, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.BeginResyncWithHttpMessagesAsync(fabricName, protectionContainerName, migrationItemName, input, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Test migrate item. /// 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..61dbd1bf01da --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionIntentsOperations.cs @@ -0,0 +1,835 @@ +// +// 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. + /// + /// + /// 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(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ResourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceName"); + } + if (Client.ResourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "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 (_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. + /// + /// + /// 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> CreateWithHttpMessagesAsync(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, "Create", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/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..3c0addbd0e38 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/ReplicationProtectionIntentsOperationsExtensions.cs @@ -0,0 +1,185 @@ +// +// 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. + /// + public static IPage List(this IReplicationProtectionIntentsOperations operations) + { + return operations.ListAsync().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 cancellation token. + /// + public static async Task> ListAsync(this IReplicationProtectionIntentsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(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; + } + } + + /// + /// 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/SdkInfo_SiteRecoveryManagementClient.cs b/sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/SdkInfo_SiteRecoveryManagementClient.cs new file mode 100644 index 000000000000..2cc9213a4a97 --- /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", "2018-07-10"), + new Tuple("RecoveryServices", "MigrationRecoveryPoints", "2018-07-10"), + new Tuple("RecoveryServices", "Operations", "2018-07-10"), + new Tuple("RecoveryServices", "RecoveryPoints", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationAlertSettings", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationEvents", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationFabrics", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationJobs", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationLogicalNetworks", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationMigrationItems", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationNetworkMappings", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationNetworks", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationPolicies", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationProtectableItems", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationProtectedItems", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationProtectionContainerMappings", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationProtectionContainers", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationProtectionIntents", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationRecoveryPlans", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationRecoveryServicesProviders", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationStorageClassificationMappings", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationStorageClassifications", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationVaultHealth", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationVaultSetting", "2018-07-10"), + new Tuple("RecoveryServices", "ReplicationvCenters", "2018-07-10"), + new Tuple("RecoveryServices", "SupportedOperatingSystems", "2018-07-10"), + new Tuple("RecoveryServices", "TargetComputeSizes", "2018-07-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..996cb1d06719 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 @@ -162,6 +162,11 @@ public partial class SiteRecoveryManagementClient : ServiceClient public virtual IReplicationProtectionContainerMappingsOperations ReplicationProtectionContainerMappings { get; private set; } + /// + /// Gets the IReplicationProtectionIntentsOperations. + /// + public virtual IReplicationProtectionIntentsOperations ReplicationProtectionIntents { get; private set; } + /// /// Gets the IReplicationRecoveryServicesProvidersOperations. /// @@ -469,6 +474,7 @@ private void Initialize() RecoveryPoints = new RecoveryPointsOperations(this); TargetComputeSizes = new TargetComputeSizesOperations(this); ReplicationProtectionContainerMappings = new ReplicationProtectionContainerMappingsOperations(this); + ReplicationProtectionIntents = new ReplicationProtectionIntentsOperations(this); ReplicationRecoveryServicesProviders = new ReplicationRecoveryServicesProvidersOperations(this); ReplicationStorageClassifications = new ReplicationStorageClassificationsOperations(this); ReplicationStorageClassificationMappings = new ReplicationStorageClassificationMappingsOperations(this); @@ -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")); @@ -571,16 +591,20 @@ private void Initialize() DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); - SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); - DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("instanceType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("instanceType"));